about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-09-24 19:02:06 +0800
committer许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-09-24 19:04:51 +0800
commit705ab171a4cc872f79753cf2b83a967baa67b7a4 (patch)
tree71273852022f96e74bf14a986286ea963b5f6c8b /compiler/rustc_mir_transform/src
parent6d132d9a5d526ca74db4ca4396e7e5f8c88573ae (diff)
downloadrust-705ab171a4cc872f79753cf2b83a967baa67b7a4.tar.gz
rust-705ab171a4cc872f79753cf2b83a967baa67b7a4.zip
Fix tool cargo being off-by-one from rustc staging
Previously if you pass compiler stage 1 to `tool::Cargo`, it will build
stage2 rustc and give you back a cargo built with stage2 rustc, which is
not what we want.

This commit adds a hack that chops off a stage from the compiler passed
to `tool::Cargo`, meaning that we will get a cargo built with stage 1
compiler, avoiding unnecessary and incorrect build of stage2 rustc and
the cargo built by that.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions