Skip to content

Commit 7a3ce2d

Browse files
committed
Use rustc_driver::args::raw_args() in Clippy
1 parent 7a2e583 commit 7a3ce2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/clippy/src/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub fn main() {
209209
});
210210

211211
exit(rustc_driver::catch_with_exit_code(move || {
212-
let mut orig_args: Vec<String> = env::args().collect();
212+
let mut orig_args: Vec<String> = rustc_driver::args::raw_args(&handler)?;
213213
let has_sysroot_arg = arg_value(&orig_args, "--sysroot", |_| true).is_some();
214214

215215
let sys_root_env = std::env::var("SYSROOT").ok();

0 commit comments

Comments
 (0)