aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_project_model/src/sysroot.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_project_model/src/sysroot.rs b/crates/ra_project_model/src/sysroot.rs
index 8b87aa7bd..72ccb61a7 100644
--- a/crates/ra_project_model/src/sysroot.rs
+++ b/crates/ra_project_model/src/sysroot.rs
@@ -70,6 +70,11 @@ impl Sysroot {
70 } 70 }
71 } 71 }
72 } 72 }
73 if let Some(alloc) = sysroot.by_name("alloc") {
74 if let Some(core) = sysroot.by_name("core") {
75 sysroot.crates[alloc].deps.push(core);
76 }
77 }
73 Ok(sysroot) 78 Ok(sysroot)
74 } 79 }
75 80