rust/compiler/rustc_middle/src
Dylan DPC 9b16c7a712
Rollup merge of #83132 - Aaron1011:fix/incr-cache-dummy, r=estebank
Don't encode file information for span with a dummy location

Fixes #83112

The location information for a dummy span isn't real, so don't encode
it. This brings the incr comp cache code into line with the Span
`StableHash` impl, which doesn't hash the location information for dummy
spans.

Previously, we would attempt to load the 'original' file from a dummy
span - if the file id changed (e.g. due to being moved on disk), we would get an
ICE, since the Span was still valid due to its hash being unchanged.
2021-03-15 16:22:58 +01:00
..
dep_graph Access the session directly from DepContext. 2021-02-20 22:53:46 +01:00
hir Rollup merge of #83108 - jyn514:remove-unused, r=estebank 2021-03-15 16:22:53 +01:00
ich Remove useless method. 2021-03-11 12:24:58 +01:00
infer Move a few more types to rustc_type_ir 2021-01-18 21:06:12 +01:00
middle Enforce that query results implement Debug 2021-01-16 17:53:02 -05:00
mir Rollup merge of #79208 - LeSeulArtichaut:stable-unsafe_op_in_unsafe_fn, r=nikomatsakis 2021-03-10 08:01:25 +09:00
query Use BTreeMap to store attributes. 2021-03-09 19:28:01 +01:00
traits Change x64 size checks to not apply to x32. 2021-03-06 16:02:48 +00:00
ty Don't encode file information for span with a dummy location 2021-03-14 20:22:13 -04:00
util Make panic/assert calls in rustc compatible with Rust 2021. 2021-02-03 22:42:53 +01:00
arena.rs Combination of commits 2020-12-03 09:50:10 -08:00
lib.rs Split DepKindStruct in two. 2021-02-19 17:51:56 +01:00
lint.rs Rollup merge of #81713 - estebank:unstable-assoc-item-lint, r=oli-obk 2021-02-25 14:33:53 +01:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs