File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ impl Step for Std {
95
95
const DEFAULT : bool = true ;
96
96
97
97
fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
98
- run. crate_or_deps ( "sysroot" ) . path ( "library" ) . alias ( "core" )
98
+ run. crate_or_deps ( "sysroot" ) . path ( "library" )
99
99
}
100
100
101
101
fn make_run ( run : RunConfig < ' _ > ) {
Original file line number Diff line number Diff line change @@ -572,10 +572,7 @@ impl Step for Std {
572
572
573
573
fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
574
574
let builder = run. builder ;
575
- run. crate_or_deps ( "sysroot" )
576
- . path ( "library" )
577
- . alias ( "core" )
578
- . default_condition ( builder. config . docs )
575
+ run. crate_or_deps ( "sysroot" ) . path ( "library" ) . default_condition ( builder. config . docs )
579
576
}
580
577
581
578
fn make_run ( run : RunConfig < ' _ > ) {
Original file line number Diff line number Diff line change @@ -127,10 +127,14 @@ impl RunConfig<'_> {
127
127
pub fn cargo_crates_in_set ( & self ) -> Vec < String > {
128
128
let mut crates = Vec :: new ( ) ;
129
129
for krate in & self . paths {
130
- let path = krate. assert_single_path ( ) ;
131
- let Some ( crate_name) = self . builder . crate_paths . get ( & path. path ) else {
132
- panic ! ( "missing crate for path {}" , path. path. display( ) )
133
- } ;
130
+ let path = & krate. assert_single_path ( ) . path ;
131
+
132
+ let crate_name = self
133
+ . builder
134
+ . crate_paths
135
+ . get ( path)
136
+ . unwrap_or_else ( || panic ! ( "missing crate for path {}" , path. display( ) ) ) ;
137
+
134
138
crates. push ( crate_name. to_string ( ) ) ;
135
139
}
136
140
crates
You can’t perform that action at this time.
0 commit comments