Add alloc -> core dependency

This commit is contained in:
Florian Diebold 2019-06-13 21:59:50 +02:00
parent a3a03b65dc
commit dafa177088

View File

@ -70,6 +70,11 @@ pub fn discover(cargo_toml: &Path) -> Result<Sysroot> {
}
}
}
if let Some(alloc) = sysroot.by_name("alloc") {
if let Some(core) = sysroot.by_name("core") {
sysroot.crates[alloc].deps.push(core);
}
}
Ok(sysroot)
}