Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/goto_definition.rs')
| -rw-r--r-- | crates/ide/src/goto_definition.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ide/src/goto_definition.rs b/crates/ide/src/goto_definition.rs index 29fc1fd2e0..e599efc5e2 100644 --- a/crates/ide/src/goto_definition.rs +++ b/crates/ide/src/goto_definition.rs @@ -1364,10 +1364,21 @@ impl Twait for Stwuct { fn goto_def_derive_input() { check( r#" + //- minicore:derive + #[rustc_builtin_macro] + pub macro Copy {} + // ^^^^ + #[derive(Copy$0)] + struct Foo; + "#, + ); + check( + r#" //- minicore:derive #[rustc_builtin_macro] pub macro Copy {} // ^^^^ +#[cfg_attr(feature = "false", derive)] #[derive(Copy$0)] struct Foo; "#, |