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 Feb 16, 2024
1 parent 48f30d9 commit e5ffba2
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 @@ -191,7 +191,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() {
Expand Down

0 comments on commit e5ffba2

Please sign in to comment.