ra_project_model: migrate to Sysroot::alloc()

This commit is contained in:
Veetaha 2020-03-01 00:16:57 +02:00
parent 5e78036e6c
commit 9f1adf8498

View File

@ -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);
}