aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_project_model/src
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-29 22:16:57 +0000
committerVeetaha <[email protected]>2020-02-29 22:16:57 +0000
commit9f1adf8498d9fd2ca5d207477a77a94eddd9b5a9 (patch)
tree717cd0d2a87083d1134e783b3a7427903c9ea53b /crates/ra_project_model/src
parent5e78036e6c8752fda350818afdd411ab25f405ce (diff)
ra_project_model: migrate to Sysroot::alloc()
Diffstat (limited to 'crates/ra_project_model/src')
-rw-r--r--crates/ra_project_model/src/sysroot.rs2
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 }