diff options
| author | bors <bors@rust-lang.org> | 2022-05-01 03:18:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-01 03:18:53 +0000 |
| commit | 61469b682c2b0bf9cebc4622f1859e2bb3b7ebca (patch) | |
| tree | 26e9db131d3485e710f899604878d11101cd05c5 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | bf611439e3239ad3f74bd76cc46a4e89b87d8219 (diff) | |
| parent | e2d4c7b7c8c28d0b6ed55dc2f8f1aee05e7673d0 (diff) | |
| download | rust-61469b682c2b0bf9cebc4622f1859e2bb3b7ebca.tar.gz rust-61469b682c2b0bf9cebc4622f1859e2bb3b7ebca.zip | |
Auto merge of #96490 - dtolnay:writetmpbackport, r=Mark-Simulacrum
Make [e]println macros eagerly drop temporaries (for backport)
This PR extracts the subset of #96455 which is only the parts necessary for fixing the 1.61-beta regressions in #96434.
My larger PR #96455 contains a few other changes relative to the pre-#94868 behavior; those are not necessary to backport into 1.61.
argument position | before #94868 | after #94868 | after this PR
--- |:---:|:---:|:---:
`write!($tmp, "…", …)` | :rage: | :rage: | :rage:
`write!(…, "…", $tmp)` | :rage: | :rage: | :rage:
`writeln!($tmp, "…", …)` | :rage: | :rage: | :rage:
`writeln!(…, "…", $tmp)` | :rage: | :rage: | :rage:
`print!("…", $tmp)` | :rage: | :rage: | :rage:
`println!("…", $tmp)` | :smiley_cat: | :rage: | :smiley_cat:
`eprint!("…", $tmp)` | :rage: | :rage: | :rage:
`eprintln!("…", $tmp)` | :smiley_cat: | :rage: | :smiley_cat:
`panic!("…", $tmp)` | :smiley_cat: | :smiley_cat: | :smiley_cat:
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
