Add RUSTC env to clippy command (#31694)

* python: add RUSTC env to clippy command

* fix: pass env explicitly
This commit is contained in:
eri 2024-03-15 12:32:43 +01:00 committed by GitHub
parent 3fdbde94cf
commit cb3ae70340
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,7 +139,9 @@ class MachCommands(CommandBase):
self.ensure_bootstrapped() self.ensure_bootstrapped()
self.ensure_clobbered() self.ensure_clobbered()
return self.run_cargo_build_like_command("clippy", params, **kwargs) env = self.build_env()
env['RUSTC'] = 'rustc'
return self.run_cargo_build_like_command("clippy", params, env=env, **kwargs)
@Command('grep', @Command('grep',
description='`git grep` for selected directories.', description='`git grep` for selected directories.',