forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#69833 - Centril:rollup-mh74yue, r=Centril
Rollup of 7 pull requests Successful merges: - rust-lang#69120 (Don't give invalid suggestion on desugared span.) - rust-lang#69326 (mir-interpret: add method to read wide strings from Memory) - rust-lang#69608 (Expose target libdir information via print command) - rust-lang#69734 (Change DIBuilderCreateEnumerator signature to match LLVM 9) - rust-lang#69800 (Compile address sanitizer test with debuginfo) - rust-lang#69807 (Cleanup E0391 explanation) - rust-lang#69820 (clean up E0392 explanation) Failed merges: r? @ghost
- Loading branch information
Showing
15 changed files
with
152 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Verify that DIEnumerator uses isUnsigned flag when appropriate. | ||
// | ||
// compile-flags: -g -C no-prepopulate-passes | ||
|
||
#[repr(i64)] | ||
pub enum I64 { | ||
I64Min = std::i64::MIN, | ||
I64Max = std::i64::MAX, | ||
} | ||
|
||
#[repr(u64)] | ||
pub enum U64 { | ||
U64Min = std::u64::MIN, | ||
U64Max = std::u64::MAX, | ||
} | ||
|
||
fn main() { | ||
let _a = I64::I64Min; | ||
let _b = I64::I64Max; | ||
let _c = U64::U64Min; | ||
let _d = U64::U64Max; | ||
} | ||
|
||
// CHECK: !DIEnumerator(name: "I64Min", value: -9223372036854775808) | ||
// CHECK: !DIEnumerator(name: "I64Max", value: 9223372036854775807) | ||
// CHECK: !DIEnumerator(name: "U64Min", value: 0, isUnsigned: true) | ||
// CHECK: !DIEnumerator(name: "U64Max", value: 18446744073709551615, isUnsigned: true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters