Skip to content

Commit 759633f

Browse files
author
mejrs
committed
Improve proc macro attribute diagnostics
1 parent 72dd648 commit 759633f

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)