Skip to content

Commit c9d60e0

Browse files
committed
Use rustc_driver::args::raw_args() in Clippy
1 parent 48f30d9 commit c9d60e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/cargo

Submodule cargo updated 265 files

src/tools/clippy/src/driver.rs

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

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

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

0 commit comments

Comments
 (0)