Empty TokenStream
is provided to attribute procedural macro on trait alias
#79825
Labels
A-proc-macros
Area: Procedural macros
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-trait_alias
`#![feature(trait_alias)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
and
I expected to see this happen: the compiler complained
#![feature(trait_alias)]
was missing, or on nightly, after adding#![feature(trait_alias)]
, compiled successfully, just like built-in#[allow]
on trait alias.Instead, this happened: the assertion failed. The compiler gave an empty
TokenStream
asinput
to the procedural macro:Edit: I found this in the compiler's log:
rust/compiler/rustc_parse/src/lib.rs
Lines 372 to 375 in 8080f54
Meta
I tried this with:
cc #41517
The text was updated successfully, but these errors were encountered: