diff --git a/crates/ra_project_model/src/sysroot.rs b/crates/ra_project_model/src/sysroot.rs index db779a2d26a..c51957c1f1f 100644 --- a/crates/ra_project_model/src/sysroot.rs +++ b/crates/ra_project_model/src/sysroot.rs @@ -66,7 +66,7 @@ pub fn discover(cargo_toml: &Path) -> Result { } } } - 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); }