diff options
| 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 |
| commit | 705ab171a4cc872f79753cf2b83a967baa67b7a4 (patch) | |
| tree | 71273852022f96e74bf14a986286ea963b5f6c8b /compiler/rustc_mir_transform/src | |
| parent | 6d132d9a5d526ca74db4ca4396e7e5f8c88573ae (diff) | |
| download | rust-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
