-
Notifications
You must be signed in to change notification settings - Fork 13.3k
inline format!() args up to and including rustc_middle (2) #114068
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
Conversation
cc @davidtwco, @compiler-errors, @JohnTitor, @TaKO8Ki Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
help_str.push_str(&format!(" {{{sym}}}")); | ||
"named argument never used" | ||
} else { | ||
help_str.push_str(&format!(" {{{}}}", idx)); | ||
help_str.push_str(&format!(" {{{idx}}}")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those two are probably best reverted (so as to not to be confused with {{idx}}
)
Substitution::Ordinal(n, _) => Ok(format!("{{{n}}}")), | ||
Substitution::Name(n, _) => Ok(format!("{{{n}}}")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same deal here, revert those please.
@@ -736,7 +736,7 @@ impl TtParser { | |||
"local ambiguity when calling macro `{}`: multiple parsing options: {}", | |||
self.macro_name, | |||
match self.next_mps.len() { | |||
0 => format!("built-in NTs {}.", nts), | |||
0 => format!("built-in NTs {nts}."), | |||
n => format!("built-in NTs {} or {n} other option{s}.", nts, s = pluralize!(n)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
n => format!("built-in NTs {} or {n} other option{s}.", nts, s = pluralize!(n)), | |
n => format!("built-in NTs {nts} or {n} other option{s}.", s = pluralize!(n)), |
Also, just a note: @matthiaskrgr please, don't include tags ( |
Oh crap, sorry, I guess I can force-push them out and that would resolve the issue? |
It should resolve the issue, yes. |
☔ The latest upstream changes (presumably #113281) made this pull request unmergeable. Please resolve the merge conflicts. |
c3407be
to
21cdf6b
Compare
@rustbot ready |
21cdf6b
to
456856e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with commit message typo fixed
formt!()
456856e
to
2381546
Compare
😅 |
I'm not familiar with rustc, but I wonder if inlining |
|
@NobodyXu Moreover |
Thank you for the explanation! |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#110056 (Fix the example in document for WaitTimeoutResult::timed_out) - rust-lang#112655 (Mark `map_or` as `#[must_use]`) - rust-lang#114018 (Make `--error-format human-annotate-rs` handle multiple files) - rust-lang#114068 (inline format!() args up to and including rustc_middle (2)) - rust-lang#114223 (Documentation: Fix Stilted Language in Vec->Indexing) - rust-lang#114227 (Add tidy check for stray rustfix files) r? `@ghost` `@rustbot` modify labels: rollup
r? @WaffleLapkin