-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Migrate run make const fn mir #126270
Migrate run make const fn mir #126270
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// The `needs-unwind -Cpanic=abort` gives a different MIR output. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should have been There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Worked around this in rust-lang/rustc_codegen_cranelift@e241176 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, fixing it and reverting your mir changes as well. |
||
|
||
use run_make_support::{cwd, diff, rustc}; | ||
|
||
fn main() { | ||
rustc().input("main.rs").emit("mir").output("dump-actual.mir").run(); | ||
diff().expected_file("dump.mir").actual_file("dump-actual.mir").run(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take note to also write this into the support library docs, we probably also should document this in rustc-dev-guide for run-make tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose so. Didn't know there was a guide. ^^'