mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
minor: add a test for derive macros in core
This commit is contained in:
parent
5af80d8372
commit
a88344152d
2 changed files with 21 additions and 0 deletions
|
@ -176,6 +176,7 @@ fn find_builtin_crate(db: &dyn AstDatabase, id: MacroCallId) -> tt::TokenTree {
|
|||
let tt = if cg[krate].dependencies.iter().any(|dep| &*dep.name == "core") {
|
||||
quote! { core }
|
||||
} else {
|
||||
cov_mark::hit!(test_copy_expand_in_core);
|
||||
quote! { crate }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue