Rename EarlyDiagCtxt
methods to match DiagCtxt
.
- `early_error_no_abort` -> `early_err` - `early_error` -> `early_fatal` - `early_struct_error` -> `early_struct_fatal`
This commit is contained in:
parent
1f08bfa383
commit
3a1b8e643a
11 changed files with 92 additions and 93 deletions
|
@ -194,10 +194,10 @@ fn init_logging(early_dcx: &EarlyDiagCtxt) {
|
|||
Ok("always") => true,
|
||||
Ok("never") => false,
|
||||
Ok("auto") | Err(VarError::NotPresent) => io::stdout().is_terminal(),
|
||||
Ok(value) => early_dcx.early_error(format!(
|
||||
Ok(value) => early_dcx.early_fatal(format!(
|
||||
"invalid log color value '{value}': expected one of always, never, or auto",
|
||||
)),
|
||||
Err(VarError::NotUnicode(value)) => early_dcx.early_error(format!(
|
||||
Err(VarError::NotUnicode(value)) => early_dcx.early_fatal(format!(
|
||||
"invalid log color value '{}': expected one of always, never, or auto",
|
||||
value.to_string_lossy()
|
||||
)),
|
||||
|
@ -727,7 +727,7 @@ fn main_args(
|
|||
let matches = match options.parse(&args) {
|
||||
Ok(m) => m,
|
||||
Err(err) => {
|
||||
early_dcx.early_error(err.to_string());
|
||||
early_dcx.early_fatal(err.to_string());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue