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#91350 - matthiaskrgr:rollup-nleabdj, r=matthi…
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#91049 (Add a caveat to std::os::windows::fs::symlink_file) - rust-lang#91281 (Add demonstration test for rust-lang#91161) - rust-lang#91327 (Delete an unreachable codepath from format_args implementation) - rust-lang#91336 (Remove unused root_parent.) - rust-lang#91349 (Accumulate all values of `-C remark` option) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
9 changed files
with
77 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// aux-build:enums.rs | ||
// run-pass | ||
|
||
extern crate enums; | ||
|
||
use enums::FieldLessWithNonExhaustiveVariant; | ||
|
||
fn main() { | ||
let e = FieldLessWithNonExhaustiveVariant::default(); | ||
// FIXME: https://github.com/rust-lang/rust/issues/91161 | ||
// This `as` cast *should* be an error, since it would fail | ||
// if the non-exhaustive variant got fields. But today it | ||
// doesn't. The fix for that will update this test to | ||
// show an error (and not be run-pass any more). | ||
let d = e as u8; | ||
assert_eq!(d, 0); | ||
} |