File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ impl Sysroot {
68
68
pub fn load ( sysroot_src_dir : & AbsPath ) -> Result < Sysroot > {
69
69
let mut sysroot = Sysroot { crates : Arena :: default ( ) } ;
70
70
71
- for name in SYSROOT_CRATES . trim ( ) . lines ( ) {
72
- let root = [ format ! ( "{}/src/lib.rs" , name) , format ! ( "lib{}/lib.rs" , name) ]
71
+ for path in SYSROOT_CRATES . trim ( ) . lines ( ) {
72
+ let name = path. split ( '/' ) . last ( ) . unwrap ( ) ;
73
+ let root = [ format ! ( "{}/src/lib.rs" , path) , format ! ( "lib{}/lib.rs" , path) ]
73
74
. iter ( )
74
75
. map ( |it| sysroot_src_dir. join ( it) )
75
76
. find ( |it| it. exists ( ) ) ;
@@ -191,9 +192,8 @@ panic_abort
191
192
panic_unwind
192
193
proc_macro
193
194
profiler_builtins
194
- rtstartup
195
195
std
196
- stdarch
196
+ stdarch/crates/std_detect
197
197
term
198
198
test
199
199
unwind" ;
204
204
panic_abort
205
205
panic_unwind
206
206
profiler_builtins
207
- rtstartup
208
207
proc_macro
209
- stdarch
208
+ std_detect
210
209
term
211
210
test
212
211
unwind" ;
You can’t perform that action at this time.
0 commit comments