-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Flatten/inline format_args!() and (string and int) literal arguments into format_args!() #106824
Merged
Commits on Mar 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a769b30 - Browse repository at this point
Copy the full SHA a769b30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94ad7e8 - Browse repository at this point
Copy the full SHA 94ad7e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85ef2f0 - Browse repository at this point
Copy the full SHA 85ef2f0View commit details -
Support flattening/inlining format_args through & and ().
E.g. format_args!("{}", &(format_args!("abc"))).
Configuration menu - View commit details
-
Copy full SHA for caa6ba9 - Browse repository at this point
Copy the full SHA caa6ba9View commit details -
Only inline
{}
string literals in format_args.Placeholders like {:123} would incorrectly get inlined.
Configuration menu - View commit details
-
Copy full SHA for b7678d4 - Browse repository at this point
Copy the full SHA b7678d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6c988b - Browse repository at this point
Copy the full SHA b6c988bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0554401 - Browse repository at this point
Copy the full SHA 0554401View commit details -
Configuration menu - View commit details
-
Copy full SHA for df8c14c - Browse repository at this point
Copy the full SHA df8c14cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a535df - Browse repository at this point
Copy the full SHA 6a535dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96d2521 - Browse repository at this point
Copy the full SHA 96d2521View commit details -
Don't allow new const panic through format flattening.
panic!("a {}", "b") is still not allowed in const, even if the hir flattens to panic!("a b").
Configuration menu - View commit details
-
Copy full SHA for f2f6bcc - Browse repository at this point
Copy the full SHA f2f6bccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d59081 - Browse repository at this point
Copy the full SHA 1d59081View commit details -
Configuration menu - View commit details
-
Copy full SHA for 995e57b - Browse repository at this point
Copy the full SHA 995e57bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 653124a - Browse repository at this point
Copy the full SHA 653124aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d84022 - Browse repository at this point
Copy the full SHA 4d84022View commit details -
Configuration menu - View commit details
-
Copy full SHA for a080165 - Browse repository at this point
Copy the full SHA a080165View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.