File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,8 @@ mod dist {
511
511
target: host,
512
512
mode: Mode :: Std ,
513
513
test_kind: test:: TestKind :: Test ,
514
- krate: INTERNER . intern_str( "std" ) ,
514
+ krate_name: INTERNER . intern_str( "std" ) ,
515
+ krate_path: "library/std" . into( ) ,
515
516
} , ]
516
517
) ;
517
518
}
Original file line number Diff line number Diff line change @@ -271,15 +271,15 @@ impl Cache {
271
271
272
272
#[ cfg( test) ]
273
273
impl Cache {
274
- pub fn all < S : Ord + Copy + Step > ( & mut self ) -> Vec < ( S , S :: Output ) > {
274
+ pub fn all < S : Ord + Step > ( & mut self ) -> Vec < ( S , S :: Output ) > {
275
275
let cache = self . 0 . get_mut ( ) ;
276
276
let type_id = TypeId :: of :: < S > ( ) ;
277
277
let mut v = cache
278
278
. remove ( & type_id)
279
279
. map ( |b| b. downcast :: < HashMap < S , S :: Output > > ( ) . expect ( "correct type" ) )
280
280
. map ( |m| m. into_iter ( ) . collect :: < Vec < _ > > ( ) )
281
281
. unwrap_or_default ( ) ;
282
- v. sort_by_key ( |& ( a, _) | a) ;
282
+ v. sort_by_key ( |( a, _) | a. clone ( ) ) ;
283
283
v
284
284
}
285
285
Original file line number Diff line number Diff line change @@ -1824,7 +1824,7 @@ impl Step for CrateLibrustc {
1824
1824
target : run. target ,
1825
1825
test_kind,
1826
1826
krate_name : krate. name ,
1827
- krate_path : krate. path . clone ( ) ,
1827
+ krate_path : krate. local_path ( builder . build ) ,
1828
1828
} ) ;
1829
1829
}
1830
1830
}
@@ -1873,7 +1873,7 @@ impl Step for Crate {
1873
1873
mode,
1874
1874
test_kind,
1875
1875
krate_name : krate. name ,
1876
- krate_path : krate. path . clone ( ) ,
1876
+ krate_path : krate. local_path ( builder . build ) ,
1877
1877
} ) ;
1878
1878
} ;
1879
1879
You can’t perform that action at this time.
0 commit comments