forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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#116044 - cuviper:beta-next, r=cuviper
[beta] backports - Fix a pthread_t handle leak rust-lang#114696 - MCP661: Move wasm32-wasi-preview1-threads target to Tier 2 rust-lang#115345 - Don't modify libstd to dump rustc ICEs rust-lang#115627 - Paper over an accidental regression rust-lang#115844 - Update to LLVM 17.0.0 rust-lang#115959 r? cuviper
- Loading branch information
Showing
16 changed files
with
153 additions
and
92 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
Submodule llvm-project
updated
495 files
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,13 @@ | ||
//! This test shows a situation where through subtle compiler changes we can | ||
//! suddenly infer a different lifetime in the hidden type, and thus not meet | ||
//! the opaque type bounds anymore. In this case `'a` and `'b` are equal, so | ||
//! picking either is fine, but then we'll fail an identity check of the hidden | ||
//! type and the expected hidden type. | ||
// check-pass | ||
|
||
fn test<'a: 'b, 'b: 'a>() -> impl IntoIterator<Item = (&'a u8, impl Into<(&'b u8, &'a u8)>)> { | ||
None::<(_, (_, _))> | ||
} | ||
|
||
fn main() {} |
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,32 @@ | ||
// run-pass | ||
// compile-flags: -C opt-level=1 | ||
|
||
// Make sure LLVM does not miscompile this match. | ||
fn main() { | ||
enum Bits { | ||
None = 0x00, | ||
Low = 0x40, | ||
High = 0x80, | ||
Both = 0xC0, | ||
} | ||
|
||
let value = Box::new(0x40u8); | ||
let mut out = Box::new(0u8); | ||
|
||
let bits = match *value { | ||
0x00 => Bits::None, | ||
0x40 => Bits::Low, | ||
0x80 => Bits::High, | ||
0xC0 => Bits::Both, | ||
_ => return, | ||
}; | ||
|
||
match bits { | ||
Bits::None | Bits::Low => { | ||
*out = 1; | ||
} | ||
_ => (), | ||
} | ||
|
||
assert_eq!(*out, 1); | ||
} |
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
Oops, something went wrong.