We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rustc_driver::args::raw_args()
1 parent 7a2e583 commit 7a3ce2dCopy full SHA for 7a3ce2d
src/tools/clippy/src/driver.rs
@@ -209,7 +209,7 @@ pub fn main() {
209
});
210
211
exit(rustc_driver::catch_with_exit_code(move || {
212
- let mut orig_args: Vec<String> = env::args().collect();
+ let mut orig_args: Vec<String> = rustc_driver::args::raw_args(&handler)?;
213
let has_sysroot_arg = arg_value(&orig_args, "--sysroot", |_| true).is_some();
214
215
let sys_root_env = std::env::var("SYSROOT").ok();
0 commit comments