structure the message
This commit is contained in:
parent
5c2a32296d
commit
842da5c1ae
2 changed files with 9 additions and 5 deletions
|
@ -1423,10 +1423,12 @@ pub fn build_target_config(
|
|||
}
|
||||
target
|
||||
}
|
||||
Err(e) => early_dcx.early_fatal(format!(
|
||||
"error loading target specification: {e}; \
|
||||
run `rustc --print target-list` for a list of built-in targets"
|
||||
)),
|
||||
Err(e) => {
|
||||
let mut err =
|
||||
early_dcx.early_struct_fatal(format!("error loading target specification: {e}"));
|
||||
err.help("run `rustc --print target-list` for a list of built-in targets");
|
||||
err.emit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
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
|
||||
error: error loading target specification: could not find specification for target "x86_64_unknown-linux-musl"
|
||||
|
|
||||
= help: run `rustc --print target-list` for a list of built-in targets
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue