Auto merge of #14297 - Veykril:proc-macro-deps, r=Veykril

Add core lib to proc_macro dependencies

Fixes https://github.com/rust-lang/rust-analyzer/issues/14292
This commit is contained in:
bors 2023-03-09 13:44:59 +00:00
commit a738737520
2 changed files with 13 additions and 1 deletions

View File

@ -276,4 +276,7 @@ unwind
std_detect
test";
const PROC_MACRO_DEPS: &str = "std";
// core is required for our builtin derives to work in the proc_macro lib currently
const PROC_MACRO_DEPS: &str = "
std
core";

View File

@ -1547,6 +1547,15 @@ fn rust_project_hello_world_project_model() {
),
prelude: true,
},
Dependency {
crate_id: CrateId(
1,
),
name: CrateName(
"core",
),
prelude: true,
},
],
proc_macro: Err(
"no proc macro loaded for sysroot crate",