mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
fix: Correctly handle no_core
/no_std
for preludes
This commit is contained in:
parent
cfce2bb46d
commit
a268eaf053
9 changed files with 120 additions and 71 deletions
|
@ -240,7 +240,12 @@ impl ChangeFixture {
|
|||
crate_graph
|
||||
.add_dep(
|
||||
from_id,
|
||||
Dependency::with_prelude(CrateName::new(&to).unwrap(), to_id, prelude),
|
||||
Dependency::with_prelude(
|
||||
CrateName::new(&to).unwrap(),
|
||||
to_id,
|
||||
prelude,
|
||||
false,
|
||||
),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
|
@ -275,7 +280,15 @@ impl ChangeFixture {
|
|||
|
||||
for krate in all_crates {
|
||||
crate_graph
|
||||
.add_dep(krate, Dependency::new(CrateName::new("core").unwrap(), core_crate))
|
||||
.add_dep(
|
||||
krate,
|
||||
Dependency::with_prelude(
|
||||
CrateName::new("core").unwrap(),
|
||||
core_crate,
|
||||
true,
|
||||
true,
|
||||
),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue