Closed fmease closed 1 week ago
r? @lcnr
rustbot has assigned @lcnr. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r?
to explicitly pick a reviewer
The job x86_64-gnu-llvm-17
failed! Check out the build log: (web) (plain)
LGTM. Tiny question @fmease can you remove my name from the commit message? Otherwise I'll get a GitHub ping every time it's committed to the various forks.
I only tagged you in the PR description not the commit message, so that should've been fine esp. since @bors quotes username mentions in merge commits.
Anyway, for good measure I've unlinked you from the PR description.
r? compiler
r? compiler
r=me with the suggestion considered. Thanks!
@bors r=nnethercote rollup
Addresses https://github.com/rust-lang/rust/issues/122796#issuecomment-2010803906, cc [@]Thomasdezeeuw.
For attrs inside of a macro like
#[doc(alias = $ident)]
or#[cfg(feature = $ident)]
where$ident
is a macro metavariable of fragment kindident
, we used to say the following when expanded (with$ident
⟼ident
):This was incorrect and caused confusion, justifiably so (see #122796).
In this position, we only accept/expect unsuffixed literals which consist of numeric & string literals as well as the boolean literals / the keywords / the reserved identifiers
false
&true
but not arbitrary identifiers.Furthermore, we used to suggest garbage when encountering unexpected non-identifier tokens:
Now we no longer do.