mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
internal: Record unresolved derive invocations in hir
This commit is contained in:
parent
989c06b25d
commit
6b7b09d329
8 changed files with 87 additions and 52 deletions
|
@ -1381,6 +1381,18 @@ mod foo {
|
|||
// ^^^^
|
||||
}
|
||||
#[derive(foo::Copy$0)]
|
||||
struct Foo;
|
||||
"#,
|
||||
);
|
||||
check(
|
||||
r#"
|
||||
//- minicore:derive
|
||||
mod foo {
|
||||
// ^^^
|
||||
#[rustc_builtin_macro]
|
||||
pub macro Copy {}
|
||||
}
|
||||
#[derive(foo$0::Copy)]
|
||||
struct Foo;
|
||||
"#,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue