-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Remove -Z no-landing-pads flag #70175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
82 changes: 41 additions & 41 deletions
82
src/test/mir-opt/generator-tiny/rustc.main-{{closure}}.generator_resume.0.mir
This file contains hidden or 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 |
---|---|---|
@@ -1,78 +1,78 @@ | ||
// MIR for `main::{{closure}}#0` 0 generator_resume | ||
// generator_layout = GeneratorLayout { field_tys: [HasDrop], variant_fields: [[], [], [], [_0]], storage_conflicts: BitMatrix { num_rows: 1, num_columns: 1, words: [1], marker: PhantomData } } | ||
|
||
fn main::{{closure}}#0(_1: std::pin::Pin<&mut [generator@$DIR/generator-tiny.rs:18:16: 24:6 {u8, HasDrop, ()}]>, _2: u8) -> std::ops::GeneratorState<(), ()> { | ||
debug _x => _10; // in scope 0 at $DIR/generator-tiny.rs:18:17: 18:19 | ||
let mut _0: std::ops::GeneratorState<(), ()>; // return place in scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
let _3: HasDrop; // in scope 0 at $DIR/generator-tiny.rs:19:13: 19:15 | ||
let mut _4: !; // in scope 0 at $DIR/generator-tiny.rs:20:9: 23:10 | ||
let mut _5: (); // in scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
let _6: u8; // in scope 0 at $DIR/generator-tiny.rs:21:13: 21:18 | ||
let mut _7: (); // in scope 0 at $DIR/generator-tiny.rs:21:13: 21:18 | ||
let _8: (); // in scope 0 at $DIR/generator-tiny.rs:22:13: 22:21 | ||
let mut _9: (); // in scope 0 at $DIR/generator-tiny.rs:18:25: 18:25 | ||
let _10: u8; // in scope 0 at $DIR/generator-tiny.rs:18:17: 18:19 | ||
let mut _11: isize; // in scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
fn main::{{closure}}#0(_1: std::pin::Pin<&mut [generator@$DIR/generator-tiny.rs:19:16: 25:6 {u8, HasDrop, ()}]>, _2: u8) -> std::ops::GeneratorState<(), ()> { | ||
debug _x => _10; // in scope 0 at $DIR/generator-tiny.rs:19:17: 19:19 | ||
let mut _0: std::ops::GeneratorState<(), ()>; // return place in scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
let _3: HasDrop; // in scope 0 at $DIR/generator-tiny.rs:20:13: 20:15 | ||
let mut _4: !; // in scope 0 at $DIR/generator-tiny.rs:21:9: 24:10 | ||
let mut _5: (); // in scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
let _6: u8; // in scope 0 at $DIR/generator-tiny.rs:22:13: 22:18 | ||
let mut _7: (); // in scope 0 at $DIR/generator-tiny.rs:22:13: 22:18 | ||
let _8: (); // in scope 0 at $DIR/generator-tiny.rs:23:13: 23:21 | ||
let mut _9: (); // in scope 0 at $DIR/generator-tiny.rs:19:25: 19:25 | ||
let _10: u8; // in scope 0 at $DIR/generator-tiny.rs:19:17: 19:19 | ||
let mut _11: isize; // in scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
scope 1 { | ||
debug _d => (((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:18:16: 24:6 {u8, HasDrop, ()}])) as variant#3).0: HasDrop); // in scope 1 at $DIR/generator-tiny.rs:19:13: 19:15 | ||
debug _d => (((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:19:16: 25:6 {u8, HasDrop, ()}])) as variant#3).0: HasDrop); // in scope 1 at $DIR/generator-tiny.rs:20:13: 20:15 | ||
} | ||
|
||
bb0: { | ||
_11 = discriminant((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:18:16: 24:6 {u8, HasDrop, ()}]))); // scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
switchInt(move _11) -> [0u32: bb1, 3u32: bb5, otherwise: bb6]; // scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
_11 = discriminant((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:19:16: 25:6 {u8, HasDrop, ()}]))); // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
switchInt(move _11) -> [0u32: bb1, 3u32: bb5, otherwise: bb6]; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
} | ||
|
||
bb1: { | ||
_10 = move _2; // scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
nop; // scope 0 at $DIR/generator-tiny.rs:19:13: 19:15 | ||
(((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:18:16: 24:6 {u8, HasDrop, ()}])) as variant#3).0: HasDrop) = HasDrop; // scope 0 at $DIR/generator-tiny.rs:19:18: 19:25 | ||
StorageLive(_4); // scope 1 at $DIR/generator-tiny.rs:20:9: 23:10 | ||
goto -> bb2; // scope 1 at $DIR/generator-tiny.rs:20:9: 23:10 | ||
_10 = move _2; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
nop; // scope 0 at $DIR/generator-tiny.rs:20:13: 20:15 | ||
(((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:19:16: 25:6 {u8, HasDrop, ()}])) as variant#3).0: HasDrop) = HasDrop; // scope 0 at $DIR/generator-tiny.rs:20:18: 20:25 | ||
StorageLive(_4); // scope 1 at $DIR/generator-tiny.rs:21:9: 24:10 | ||
goto -> bb2; // scope 1 at $DIR/generator-tiny.rs:21:9: 24:10 | ||
} | ||
|
||
bb2: { | ||
StorageLive(_6); // scope 1 at $DIR/generator-tiny.rs:21:13: 21:18 | ||
StorageLive(_7); // scope 1 at $DIR/generator-tiny.rs:21:13: 21:18 | ||
_7 = (); // scope 1 at $DIR/generator-tiny.rs:21:13: 21:18 | ||
_0 = std::ops::GeneratorState::<(), ()>::Yielded(move _7); // scope 1 at $DIR/generator-tiny.rs:21:13: 21:18 | ||
discriminant((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:18:16: 24:6 {u8, HasDrop, ()}]))) = 3; // scope 1 at $DIR/generator-tiny.rs:21:13: 21:18 | ||
return; // scope 1 at $DIR/generator-tiny.rs:21:13: 21:18 | ||
StorageLive(_6); // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18 | ||
StorageLive(_7); // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18 | ||
_7 = (); // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18 | ||
_0 = std::ops::GeneratorState::<(), ()>::Yielded(move _7); // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18 | ||
discriminant((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:19:16: 25:6 {u8, HasDrop, ()}]))) = 3; // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18 | ||
return; // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18 | ||
} | ||
|
||
bb3: { | ||
StorageDead(_7); // scope 1 at $DIR/generator-tiny.rs:21:17: 21:18 | ||
StorageDead(_6); // scope 1 at $DIR/generator-tiny.rs:21:18: 21:19 | ||
StorageLive(_8); // scope 1 at $DIR/generator-tiny.rs:22:13: 22:21 | ||
_8 = const callee() -> bb4; // scope 1 at $DIR/generator-tiny.rs:22:13: 22:21 | ||
StorageDead(_7); // scope 1 at $DIR/generator-tiny.rs:22:17: 22:18 | ||
StorageDead(_6); // scope 1 at $DIR/generator-tiny.rs:22:18: 22:19 | ||
StorageLive(_8); // scope 1 at $DIR/generator-tiny.rs:23:13: 23:21 | ||
_8 = const callee() -> bb4; // scope 1 at $DIR/generator-tiny.rs:23:13: 23:21 | ||
// ty::Const | ||
// + ty: fn() {callee} | ||
// + val: Value(Scalar(<ZST>)) | ||
// mir::Constant | ||
// + span: $DIR/generator-tiny.rs:22:13: 22:19 | ||
// + span: $DIR/generator-tiny.rs:23:13: 23:19 | ||
// + literal: Const { ty: fn() {callee}, val: Value(Scalar(<ZST>)) } | ||
} | ||
|
||
bb4: { | ||
StorageDead(_8); // scope 1 at $DIR/generator-tiny.rs:22:21: 22:22 | ||
_5 = const (); // scope 1 at $DIR/generator-tiny.rs:20:14: 23:10 | ||
StorageDead(_8); // scope 1 at $DIR/generator-tiny.rs:23:21: 23:22 | ||
_5 = const (); // scope 1 at $DIR/generator-tiny.rs:21:14: 24:10 | ||
// ty::Const | ||
// + ty: () | ||
// + val: Value(Scalar(<ZST>)) | ||
// mir::Constant | ||
// + span: $DIR/generator-tiny.rs:20:14: 23:10 | ||
// + span: $DIR/generator-tiny.rs:21:14: 24:10 | ||
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } | ||
goto -> bb2; // scope 1 at $DIR/generator-tiny.rs:20:9: 23:10 | ||
goto -> bb2; // scope 1 at $DIR/generator-tiny.rs:21:9: 24:10 | ||
} | ||
|
||
bb5: { | ||
StorageLive(_4); // scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
StorageLive(_6); // scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
StorageLive(_7); // scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
_6 = move _2; // scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
goto -> bb3; // scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
StorageLive(_4); // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
StorageLive(_6); // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
StorageLive(_7); // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
_6 = move _2; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
goto -> bb3; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
} | ||
|
||
bb6: { | ||
unreachable; // scope 0 at $DIR/generator-tiny.rs:18:16: 24:6 | ||
unreachable; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6 | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
src/test/run-fail/mir_codegen_no_landing_pads_diverging.rs
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.