about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbeetrees <b@beetr.ee>2023-05-15 18:37:47 +0000
committerbeetrees <b@beetr.ee>2024-03-07 00:20:01 +0000
commit865ac89dbd26780e9a39815516c07c6e6148a4bb (patch)
tree2ccbb3988e8f49696f52b2b55d30cf5208e030c8
parent0901b9fecf32c7dd84c83c454d30cbce11cbf2ea (diff)
downloadrust-865ac89dbd26780e9a39815516c07c6e6148a4bb.tar.gz
rust-865ac89dbd26780e9a39815516c07c6e6148a4bb.zip
Use `rustc_driver::args::raw_args()` in Clippy
-rw-r--r--src/driver.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver.rs b/src/driver.rs
index 8fc66644632..9e42abbc9aa 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -190,7 +190,7 @@ pub fn main() {
     });
 
     exit(rustc_driver::catch_with_exit_code(move || {
-        let mut orig_args: Vec<String> = env::args().collect();
+        let mut orig_args = rustc_driver::args::raw_args(&early_dcx)?;
 
         let has_sysroot_arg = |args: &mut [String]| -> bool {
             if arg_value(args, "--sysroot", |_| true).is_some() {