Skip to content

Commit

Permalink
Use rustc_driver::args::raw_args() in Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
beetrees committed Aug 16, 2023
1 parent 7a2e583 commit 7a3ce2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/clippy/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,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: Vec<String> = rustc_driver::args::raw_args(&handler)?;
let has_sysroot_arg = arg_value(&orig_args, "--sysroot", |_| true).is_some();

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

0 comments on commit 7a3ce2d

Please sign in to comment.