about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src/args.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-20 14:53:50 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-23 13:23:28 +1100
commit3a1b8e643aa556bb362c3a1c373092242659845c (patch)
treec226fda013472c6854b4de765073dea26d17e742 /compiler/rustc_driver_impl/src/args.rs
parent1f08bfa383850e3f3e41d1a3baf82ee5cd054f3a (diff)
downloadrust-3a1b8e643aa556bb362c3a1c373092242659845c.tar.gz
rust-3a1b8e643aa556bb362c3a1c373092242659845c.zip
Rename `EarlyDiagCtxt` methods to match `DiagCtxt`.
- `early_error_no_abort` -> `early_err`
- `early_error` -> `early_fatal`
- `early_struct_error` -> `early_struct_fatal`
Diffstat (limited to 'compiler/rustc_driver_impl/src/args.rs')
-rw-r--r--compiler/rustc_driver_impl/src/args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/args.rs b/compiler/rustc_driver_impl/src/args.rs
index dc546da7342..b7407f5a508 100644
--- a/compiler/rustc_driver_impl/src/args.rs
+++ b/compiler/rustc_driver_impl/src/args.rs
@@ -28,7 +28,7 @@ pub fn arg_expand_all(early_dcx: &EarlyDiagCtxt, at_args: &[String]) -> Vec<Stri
     for arg in at_args {
         match arg_expand(arg.clone()) {
             Ok(arg) => args.extend(arg),
-            Err(err) => early_dcx.early_error(format!("Failed to load argument file: {err}")),
+            Err(err) => early_dcx.early_fatal(format!("Failed to load argument file: {err}")),
         }
     }
     args