about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-11 03:56:37 +0000
committerbors <bors@rust-lang.org>2022-07-11 03:56:37 +0000
commita51fb2ba827f24ec4d676a9575a0a5e46afd302a (patch)
tree7e8dba3de12ba968eeee1303a948b9a6d56f1b94 /compiler/rustc_interface/src
parentadaddb5bab936250535665fe1e7c6982d03352cb (diff)
parent7d4bd54f751db36a32a7d4594f075bf1a0b92bbf (diff)
downloadrust-a51fb2ba827f24ec4d676a9575a0a5e46afd302a.tar.gz
rust-a51fb2ba827f24ec4d676a9575a0a5e46afd302a.zip
Auto merge of #99130 - jyn514:std-cache-invalidation, r=Mark-Simulacrum
Fix `x build library/std compiler/rustc`

Previously, this was broken because of improper caching:
1. `StepDescription::maybe_run` builds `Compile::Std`, which only built `std` and not `proc_macro`
1. `Std` calls `builder.ensure(StdLink)`
1. `Rustc` calls `ensure(Std)`, which builds all crates, including `proc_macro`
1. `Rustc` calls `ensure(StdLink)`. `ensure` would see that it had already been run and do nothing.  <-- bug is here
1. Cargo gives an error that `proc_macro` doesn't exist.

This fixes the caching by adding `crates` to `StdLink`, so it will get rerun if the crates that are built change.

Fixes https://github.com/rust-lang/rust/issues/99129.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions