mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
61469b682c
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, "…", …)` | 😡 | 😡 | 😡 `write!(…, "…", $tmp)` | 😡 | 😡 | 😡 `writeln!($tmp, "…", …)` | 😡 | 😡 | 😡 `writeln!(…, "…", $tmp)` | 😡 | 😡 | 😡 `print!("…", $tmp)` | 😡 | 😡 | 😡 `println!("…", $tmp)` | 😺 | 😡 | 😺 `eprint!("…", $tmp)` | 😡 | 😡 | 😡 `eprintln!("…", $tmp)` | 😺 | 😡 | 😺 `panic!("…", $tmp)` | 😺 | 😺 | 😺
This directory contains the source code of the rust project, including:
- The test suite
- The bootstrapping build system
- Various submodules for tools, like rustdoc, rls, etc.
For more information on how various parts of the compiler work, see the rustc dev guide.