1
Fork 0
rust/compiler/rustc_middle/src/ty/query
Aaron Hill 7429c688a5
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-14 20:22:13 -04:00
..
mod.rs Workaround rustdoc not honouring cfg(parallel_compiler). 2021-02-19 22:05:27 +01:00
on_disk_cache.rs Don't encode file information for span with a dummy location 2021-03-14 20:22:13 -04:00