about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crates/ide/src/expand_macro.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ide/src/expand_macro.rs b/crates/ide/src/expand_macro.rs
index 8feaa3b7be9..68eeae226ea 100644
--- a/crates/ide/src/expand_macro.rs
+++ b/crates/ide/src/expand_macro.rs
@@ -366,10 +366,12 @@ fn main() {
     fn macro_expand_derive() {
         check(
             r#"
+//- proc_macros: identity
+
 #[rustc_builtin_macro]
 pub macro Clone {}
 
-#[doc = ""]
+#[proc_macros::identity]
 #[derive(C$0lone)]
 struct Foo {}
 "#,