rust/compiler/rustc_middle/src
bors fa55f668e5 Auto merge of #79721 - Aaron1011:fix/reuse-def-path-hash, r=wesleywiser
Properly re-use def path hash in incremental mode

Fixes #79661

In incremental compilation mode, we update a `DefPathHash -> DefId`
mapping every time we create a `DepNode` for a foreign `DefId`.
This mapping is written out to the on-disk incremental cache, and is
read by the next compilation session to allow us to lazily decode
`DefId`s.

When we decode a `DepNode` from the current incremental cache, we need
to ensure that any previously-recorded `DefPathHash -> DefId` mapping
gets recorded in the new mapping that we write out. However, PR #74967
didn't do this in all cases, leading to us being unable to decode a
`DefPathHash` in certain circumstances.

This PR refactors some of the code around `DepNode` deserialization to
prevent this kind of mistake from happening again.
2020-12-09 13:54:07 +00:00
..
dep_graph Fix rebase fallout 2020-11-25 15:08:51 -05:00
hir Combination of commits 2020-12-03 09:50:10 -08:00
ich Rollup merge of #79036 - cjgillot:steal, r=oli-obk 2020-11-15 13:39:59 +01:00
infer words 2020-11-16 22:42:09 +01:00
middle rustc_metadata: Remove some dead code 2020-12-03 00:05:24 +03:00
mir Fix new 'unnecessary trailing semicolon' warnings 2020-11-26 17:08:36 -05:00
query Combination of commits 2020-12-03 09:50:10 -08:00
traits Auto merge of #79336 - camelid:rename-feature-oibit-to-auto, r=oli-obk 2020-11-25 07:25:19 +00:00
ty Auto merge of #79721 - Aaron1011:fix/reuse-def-path-hash, r=wesleywiser 2020-12-09 13:54:07 +00:00
util Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
arena.rs Combination of commits 2020-12-03 09:50:10 -08:00
lib.rs Introduce TypeVisitor::BreakTy 2020-11-14 20:25:27 +01:00
lint.rs Auto merge of #76931 - oli-obk:const_prop_inline_lint_madness, r=wesleywiser 2020-11-03 16:32:34 +00:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00