mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix cfg_attr invalidating derive identifier IDE functionality
This commit is contained in:
parent
cc04cfc982
commit
ddf7b70a0f
3 changed files with 14 additions and 15 deletions
|
@ -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;
|
||||
"#,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue