-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Clean up "const" situation in format_args!(). #140544
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
base: master
Are you sure you want to change the base?
Conversation
Rather than marking the Argument::new_display etc. functions as non-const, this marks the Arguments::new_v1 functions as non-const.
r? @ibraheemdev rustbot has assigned @ibraheemdev. Use |
Some changes occurred to the CTFE machinery Some changes occurred to constck cc @fee1-dead |
r? @RalfJung |
@bors r+ rollup |
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors r- |
Oop, forgot to bless two tests. CI passes now. @bors r=fee1-dead |
This cleans up the "const" situation in the format_args!() expansion/lowering.
Rather than marking the Argument::new_display etc. functions as non-const, this marks the Arguments::new_v1 functions as non-const.
Example expansion/lowering of format_args!() in const: