]> git.lizzy.rs Git - rust.git/blobdiff - library/proc_macro/src/lib.rs
Auto merge of #107318 - matthiaskrgr:rollup-776kd81, r=matthiaskrgr
[rust.git] / library / proc_macro / src / lib.rs
index 1699f0d55bc7ec0035a20da0efa511789a1970e7..938935771d64e24c84d775cd2c59472344a02a04 100644 (file)
@@ -74,6 +74,7 @@ pub fn is_available() -> bool {
 ///
 /// This is both the input and output of `#[proc_macro]`, `#[proc_macro_attribute]`
 /// and `#[proc_macro_derive]` definitions.
+#[rustc_diagnostic_item = "TokenStream"]
 #[stable(feature = "proc_macro_lib", since = "1.15.0")]
 #[derive(Clone)]
 pub struct TokenStream(Option<bridge::client::TokenStream>);