Skip to content
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

Avoid ref when using format! in compiler #127980

Merged
merged 1 commit into from
Jul 20, 2024
Merged

Commits on Jul 19, 2024

  1. 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.
    nyurik committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    aef0e34 View commit details
    Browse the repository at this point in the history