-
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
Fix mir-cfg dumps #82362
Fix mir-cfg dumps #82362
Conversation
Should I add a test to this? I have a minimal repro: const TAG: &'static str = "ABCD";
fn main() {
if TAG == "" {}
} but I couldn't find a way to accept a test based on rustc exit code (without comparing stdout contents), and I'm not sure if we want to check dot outputs. |
we already have pretty printing tests in https://github.com/rust-lang/rust/tree/master/src/test/pretty I think you should be able to just add it there |
@oli-obk I couldn't put this in |
Heh that's a neat trick. Please leave the explanation on why it is here and not in the ui test suite in a comment in that file, otherwise someone will be confused by that test in the future |
Sigh.. it seems like you can't easily ignore stdout contents of a test.. Putting the test in |
Fixes rust-lang#81918 Fixes rust-lang#82326 (duplicate) Fixes rust-lang#82325
@oli-obk nvm, figured it out. Could you review? |
@bors r+ rollup |
📌 Commit 2145a87 has been approved by |
Fix mir-cfg dumps Fixes rust-lang#81918 Fixes rust-lang#82326 (duplicate) Fixes rust-lang#82325 --- r? `@oli-obk`
Rollup of 10 pull requests Successful merges: - rust-lang#81629 (Point out implicit deref coercions in borrow) - rust-lang#82113 (Improve non_fmt_panic lint.) - rust-lang#82258 (Implement -Z hir-stats for nested foreign items) - rust-lang#82296 (Support `pub` on `macro_rules`) - rust-lang#82297 (Consider auto derefs before warning about write only fields) - rust-lang#82305 (Remove many RefCells from DocContext) - rust-lang#82308 (Lower condition of `if` expression before it's "then" block) - rust-lang#82311 (Jsondocck improvements) - rust-lang#82362 (Fix mir-cfg dumps) - rust-lang#82391 (disable atomic_max/min tests in Miri) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #81918
Fixes #82326 (duplicate)
Fixes #82325
r? @oli-obk