Use rustc_driver::args::raw_args() in Clippy

This commit is contained in:
beetrees 2023-05-15 18:37:47 +00:00
parent 0901b9fecf
commit 865ac89dbd

View file

@ -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() {