This environment variable does not need to be defined everywhere, and it might have unintended consequences.
I tried implementing this, but in the end, the only macro that calls cargo under the hood that ends up without RUSTC_BOOTSTRAP=1 is %cargo_test. All other places where cargo is invoked need it:
RUSTC_BOOTSTRAP=1
%cargo_test
%cargo_build
-Z avoid-dev-deps
%cargo_install
RUSTC_BOOTSTRAP
%cargo_license
%cargo_license_summary
cargo tree
dev
So ... the end effect of moving RUSTC_BOOTSTRAP=1 into only the places where it's needed is basically the same as having it defined in a central location, because it's basically needed everywhere.
Metadata Update from @decathorpe: - Issue set to the milestone: None (was: 25.3) - Issue status updated to: Closed (was: Open)