diff options
author | Florian Diebold <[email protected]> | 2019-06-13 20:59:50 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-06-13 20:59:50 +0100 |
commit | dafa17708838d0dc17ab175451b3c455921b4836 (patch) | |
tree | 9d8ed395393ae54e2b5260904eca3ee7ae97a8f7 /crates | |
parent | a3a03b65dca9dc174bd58cd3d877ede18fc58637 (diff) |
Add alloc -> core dependency
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_project_model/src/sysroot.rs | 5 |
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 | ||