1
Fork 0

structure the message

This commit is contained in:
Tshepang Mbambo 2025-04-03 01:43:06 +02:00
parent 5c2a32296d
commit 842da5c1ae
2 changed files with 9 additions and 5 deletions

View file

@ -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();
}
}
}