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-17 22:01:06 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-18 16:06:21 +1100
commitcce1701c4c3c37c96753ddb15fd822e71558d141 (patch)
treeee866ea6818996b56daa3f260d2f96814b020add /compiler/rustc_driver_impl/src/args.rs
parent45f347681d1744302167179f291885cffc63a800 (diff)
downloadrust-cce1701c4c3c37c96753ddb15fd822e71558d141.tar.gz
rust-cce1701c4c3c37c96753ddb15fd822e71558d141.zip
Rename `EarlyErrorHandler` as `EarlyDiagCtxt`.
Diffstat (limited to 'compiler/rustc_driver_impl/src/args.rs')
-rw-r--r--compiler/rustc_driver_impl/src/args.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_driver_impl/src/args.rs b/compiler/rustc_driver_impl/src/args.rs
index 654d7636da2..d93ac0efffd 100644
--- a/compiler/rustc_driver_impl/src/args.rs
+++ b/compiler/rustc_driver_impl/src/args.rs
@@ -3,7 +3,7 @@ use std::fmt;
 use std::fs;
 use std::io;
 
-use rustc_session::EarlyErrorHandler;
+use rustc_session::EarlyDiagCtxt;
 
 fn arg_expand(arg: String) -> Result<Vec<String>, Error> {
     if let Some(path) = arg.strip_prefix('@') {
@@ -23,7 +23,7 @@ fn arg_expand(arg: String) -> Result<Vec<String>, Error> {
 /// **Note:** This function doesn't interpret argument 0 in any special way.
 /// If this function is intended to be used with command line arguments,
 /// `argv[0]` must be removed prior to calling it manually.
-pub fn arg_expand_all(handler: &EarlyErrorHandler, at_args: &[String]) -> Vec<String> {
+pub fn arg_expand_all(handler: &EarlyDiagCtxt, at_args: &[String]) -> Vec<String> {
     let mut args = Vec::new();
     for arg in at_args {
         match arg_expand(arg.clone()) {