File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
collector/src/compile/execute Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ impl<'a> CargoProcess<'a> {
248
248
} ;
249
249
250
250
if let Some ( c) = & self . toolchain . components . clippy {
251
- cmd. env ( "CLIPPY" , & * FAKE_CLIPPY ) . env ( " CLIPPY_REAL", c) ;
251
+ cmd. env ( "CLIPPY_REAL" , c) ;
252
252
}
253
253
254
254
for config in & self . toolchain . components . cargo_configs {
@@ -330,11 +330,17 @@ impl<'a> CargoProcess<'a> {
330
330
let mut cmd = self . base_command ( self . cwd , cargo_subcommand) ;
331
331
cmd. arg ( "-p" ) . arg ( self . get_pkgid ( self . cwd ) ?) ;
332
332
match self . profile {
333
- Profile :: Check | Profile :: Clippy => {
333
+ Profile :: Check => {
334
334
cmd. arg ( "--profile" ) . arg ( "check" ) ;
335
335
}
336
336
Profile :: Debug => { }
337
337
Profile :: Doc => { }
338
+ Profile :: Clippy => {
339
+ cmd. arg ( "--profile" ) . arg ( "check" ) ;
340
+ // For Clippy, we still invoke `cargo rustc`, but we need to override the
341
+ // executed rustc to be clippy-fake.
342
+ cmd. env ( "RUSTC" , & * FAKE_CLIPPY ) ;
343
+ }
338
344
Profile :: Opt => {
339
345
cmd. arg ( "--release" ) ;
340
346
}
You can’t perform that action at this time.
0 commit comments