mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
ra_project_model: migrate to Sysroot::alloc()
This commit is contained in:
@@ -66,7 +66,7 @@ pub fn discover(cargo_toml: &Path) -> Result<Sysroot> {
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(alloc) = sysroot.by_name("alloc") {
|
||||
if let Some(alloc) = sysroot.alloc() {
|
||||
if let Some(core) = sysroot.core() {
|
||||
sysroot.crates[alloc].deps.push(core);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user