Skip to content

Commit e5ffba2

Browse files
committed
Use rustc_driver::args::raw_args() in Clippy
1 parent 48f30d9 commit e5ffba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/clippy/src/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ pub fn main() {
191191
});
192192

193193
exit(rustc_driver::catch_with_exit_code(move || {
194-
let mut orig_args: Vec<String> = env::args().collect();
194+
let mut orig_args = rustc_driver::args::raw_args(&early_dcx)?;
195195

196196
let has_sysroot_arg = |args: &mut [String]| -> bool {
197197
if arg_value(args, "--sysroot", |_| true).is_some() {

0 commit comments

Comments
 (0)