mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-25 21:34:18 +00:00
Update sysroot crates
This commit is contained in:
parent
c69f762f26
commit
9e306909db
@ -68,8 +68,9 @@ impl Sysroot {
|
||||
pub fn load(sysroot_src_dir: &AbsPath) -> Result<Sysroot> {
|
||||
let mut sysroot = Sysroot { crates: Arena::default() };
|
||||
|
||||
for name in SYSROOT_CRATES.trim().lines() {
|
||||
let root = [format!("{}/src/lib.rs", name), format!("lib{}/lib.rs", name)]
|
||||
for path in SYSROOT_CRATES.trim().lines() {
|
||||
let name = path.split('/').last().unwrap();
|
||||
let root = [format!("{}/src/lib.rs", path), format!("lib{}/lib.rs", path)]
|
||||
.iter()
|
||||
.map(|it| sysroot_src_dir.join(it))
|
||||
.find(|it| it.exists());
|
||||
@ -191,9 +192,8 @@ panic_abort
|
||||
panic_unwind
|
||||
proc_macro
|
||||
profiler_builtins
|
||||
rtstartup
|
||||
std
|
||||
stdarch
|
||||
stdarch/crates/std_detect
|
||||
term
|
||||
test
|
||||
unwind";
|
||||
@ -204,9 +204,8 @@ core
|
||||
panic_abort
|
||||
panic_unwind
|
||||
profiler_builtins
|
||||
rtstartup
|
||||
proc_macro
|
||||
stdarch
|
||||
std_detect
|
||||
term
|
||||
test
|
||||
unwind";
|
||||
|
Loading…
Reference in New Issue
Block a user