Skip to content

Commit 865ac89

Browse files
committed
Use rustc_driver::args::raw_args() in Clippy
1 parent 0901b9f commit 865ac89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver.rs

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

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

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

0 commit comments

Comments
 (0)