Skip to content

Commit

Permalink
Auto merge of #126409 - pacak:incr-uplorry, r=michaelwoerister
Browse files Browse the repository at this point in the history
Trying to address an incremental compilation issues

This pull request contains two independent changes, one makes it so when `try_force_from_dep_node` fails to recover a query - it marks the node as "red" instead of "green" and the second one makes Debug impl for `DepNode` less panicky if it encounters something from the previous compilation that doesn't map to anything in the current one.

I'm not 100% confident that this is the correct approach, but so far I managed to find a bunch of comments suggesting that some things are allowed to fail in a certain way and changes I made are allowing for those things to fail this way and it fixes all the small reproducers I managed to find.

Compilation panic this pull request avoids is caused by an automatically generated code on an associated type and it is not happening if something else marks it as outdated first (or close like that, but scenario is quite obscure).

Fixes rust-lang/rust#107226
Fixes rust-lang/rust#125367
  • Loading branch information
bors committed Jun 20, 2024
2 parents 400a29d + be080ca commit dad0796
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit dad0796

Please sign in to comment.