File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -1427,10 +1427,12 @@ pub fn build_target_config(
1427
1427
}
1428
1428
target
1429
1429
}
1430
- Err ( e) => early_dcx. early_fatal ( format ! (
1431
- "Error loading target specification: {e}. \
1432
- Run `rustc --print target-list` for a list of built-in targets"
1433
- ) ) ,
1430
+ Err ( e) => {
1431
+ let mut err =
1432
+ early_dcx. early_struct_fatal ( format ! ( "error loading target specification: {e}" ) ) ;
1433
+ err. help ( "run `rustc --print target-list` for a list of built-in targets" ) ;
1434
+ err. emit ( ) ;
1435
+ }
1434
1436
}
1435
1437
}
1436
1438
Original file line number Diff line number Diff line change @@ -3516,7 +3516,7 @@ impl Target {
3516
3516
Err ( "the `i586-pc-windows-msvc` target has been removed. Use the `i686-pc-windows-msvc` target instead.\n \
3517
3517
Windows 10 (the minimum required OS version) requires a CPU baseline of at least i686 so you can safely switch". into ( ) )
3518
3518
} else {
3519
- Err ( format ! ( "Could not find specification for target {target_tuple:?}" ) )
3519
+ Err ( format ! ( "could not find specification for target {target_tuple:?}" ) )
3520
3520
}
3521
3521
}
3522
3522
TargetTuple :: TargetJson { ref contents, .. } => {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ fn main() {
14
14
. input ( "foo.rs" )
15
15
. target ( "my-invalid-platform.json" )
16
16
. run_fail ( )
17
- . assert_stderr_contains ( "Error loading target specification" ) ;
17
+ . assert_stderr_contains ( "error loading target specification" ) ;
18
18
rustc ( )
19
19
. input ( "foo.rs" )
20
20
. target ( "my-incomplete-platform.json" )
Original file line number Diff line number Diff line change 7
7
8
8
fn main ( ) { }
9
9
10
- //~? ERROR Error loading target specification: Could not find specification for target "x86_64_unknown-linux-musl"
10
+ //~? ERROR error loading target specification: could not find specification for target "x86_64_unknown-linux-musl"
Original file line number Diff line number Diff line change 1
- error: Error loading target specification: Could not find specification for target "x86_64_unknown-linux-musl". Run `rustc --print target-list` for a list of built-in targets
1
+ error: error loading target specification: could not find specification for target "x86_64_unknown-linux-musl"
2
+ |
3
+ = help: run `rustc --print target-list` for a list of built-in targets
2
4
You can’t perform that action at this time.
0 commit comments