From 9f1adf8498d9fd2ca5d207477a77a94eddd9b5a9 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Sun, 1 Mar 2020 00:16:57 +0200 Subject: ra_project_model: migrate to Sysroot::alloc() --- crates/ra_project_model/src/sysroot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_project_model') 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 { } } } - 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); } -- cgit v1.2.3