diff options
-rw-r--r-- | crates/ra_project_model/src/sysroot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_project_model/src/sysroot.rs b/crates/ra_project_model/src/sysroot.rs index db779a2d2..c51957c1f 100644 --- a/crates/ra_project_model/src/sysroot.rs +++ b/crates/ra_project_model/src/sysroot.rs | |||
@@ -66,7 +66,7 @@ impl Sysroot { | |||
66 | } | 66 | } |
67 | } | 67 | } |
68 | } | 68 | } |
69 | if let Some(alloc) = sysroot.by_name("alloc") { | 69 | if let Some(alloc) = sysroot.alloc() { |
70 | if let Some(core) = sysroot.core() { | 70 | if let Some(core) = sysroot.core() { |
71 | sysroot.crates[alloc].deps.push(core); | 71 | sysroot.crates[alloc].deps.push(core); |
72 | } | 72 | } |