Rollup merge of #92825 - pierwill:rustc-version-force-rename, r=Mark-Simulacrum

Rename environment variable for overriding rustc version
This commit is contained in:
Matthias Krüger 2022-01-17 20:07:06 +01:00 committed by GitHub
commit 6acb7043e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -190,7 +190,7 @@ fn report_format_mismatch(report_incremental_info: bool, file: &Path, message: &
fn rustc_version(nightly_build: bool) -> String {
if nightly_build {
if let Some(val) = env::var_os("RUSTC_FORCE_INCR_COMP_ARTIFACT_HEADER") {
if let Some(val) = env::var_os("RUSTC_FORCE_RUSTC_VERSION") {
return val.to_string_lossy().into_owned();
}
}