mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
cd8c5f78ec
Avoid ref when using format! in compiler Clean up a few minor refs in `format!` macro, as it has a performance cost. Apparently the compiler is unable to inline `format!("{}", &variable)`, and does a run-time double-reference instead (format macro already does one level referencing). Inlining format args prevents accidental `&` misuse. See also https://github.com/rust-lang/rust-clippy/issues/10851 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
The rustc_sanitizers
crate contains the source code for providing support for
the sanitizers to the Rust compiler.