Skip to content

Commit 7267216

Browse files
authored
Rollup merge of #106407 - mejrs:attr_check, r=compiler-errors
Improve proc macro attribute diagnostics Closes rust-lang/rust#102923
2 parents 34618b5 + 70f2dec commit 7267216

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proc_macro/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ pub fn is_available() -> bool {
7474
///
7575
/// This is both the input and output of `#[proc_macro]`, `#[proc_macro_attribute]`
7676
/// and `#[proc_macro_derive]` definitions.
77+
#[rustc_diagnostic_item = "TokenStream"]
7778
#[stable(feature = "proc_macro_lib", since = "1.15.0")]
7879
#[derive(Clone)]
7980
pub struct TokenStream(Option<bridge::client::TokenStream>);

0 commit comments

Comments
 (0)