about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorYuri Astrakhan <YuriAstrakhan@gmail.com>2024-07-19 11:51:21 -0400
committerYuri Astrakhan <YuriAstrakhan@gmail.com>2024-07-19 14:52:07 -0400
commitc1c13bd07ca476c0d9b53b0fa1384ea8a83962e3 (patch)
tree1f0a57170aabc15c11b0030b310e60490355ddeb /tests/rustdoc-js-std/parser-errors.js
parent25dce8f92b6d342f9aa70c8716f41f963b343b5c (diff)
downloadrust-c1c13bd07ca476c0d9b53b0fa1384ea8a83962e3.tar.gz
rust-c1c13bd07ca476c0d9b53b0fa1384ea8a83962e3.zip
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.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions