rust/compiler/rustc_span/src
bors bf8716f1cd Auto merge of #119139 - michaelwoerister:cleanup-stable-source-file-id, r=cjgillot
Unify SourceFile::name_hash and StableSourceFileId

This PR adapts the existing `StableSourceFileId` type so that it can be used instead of the `name_hash` field of `SourceFile`. This simplifies a few things that were kind of duplicated before.

The PR should also fix issues https://github.com/rust-lang/rust/issues/112700 and https://github.com/rust-lang/rust/issues/115835, but I was not able to reproduce these issues in a regression test. As far as I can tell, the root cause of these issues is that the id of the originating crate is not hashed in the `HashStable` impl of `Span` and thus cache entries that should have been considered invalidated were loaded. After this PR, the `stable_id` field of `SourceFile` includes information about the originating crate, so that ICE should not occur anymore.
2023-12-24 21:58:39 +00:00
..
analyze_source_file Use relative positions inside a SourceFile. 2023-09-03 12:56:10 +00:00
edit_distance Add test for precise algorithm used 2023-02-19 22:59:22 +00:00
source_map Unify SourceFile::name_hash and StableSourceFileId 2023-12-19 22:34:26 +01:00
symbol Use FxIndexSet in the symbol interner. 2023-11-03 07:19:41 +11:00
analyze_source_file.rs Initiate the inner usage of cfg_match 2023-10-19 20:18:51 -03:00
caching_source_map_view.rs Add better ICE messages for some undescriptive panics 2023-12-15 00:50:55 -05:00
def_id.rs Specialize DefPathHash table to skip crate IDs 2023-12-23 14:10:28 -05:00
edit_distance.rs rustc_span: Use correct edit distance start length for suggestions 2023-11-27 19:08:27 +01:00
edition.rs Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
fatal_error.rs Auto merge of #117557 - Zoxc:panic-prio, r=petrochenkov 2023-11-09 00:39:02 +00:00
hygiene.rs Replace no_ord_impl with orderable. 2023-11-22 18:38:17 +11:00
lib.rs Unify SourceFile::name_hash and StableSourceFileId 2023-12-19 22:34:26 +01:00
profiling.rs Remove an unnecessary use of with_session_globals. 2023-03-31 15:34:00 +11:00
source_map.rs Unify SourceFile::name_hash and StableSourceFileId 2023-12-19 22:34:26 +01:00
span_encoding.rs debug Span::ctxt() call detection 2023-10-16 19:50:29 -07:00
symbol.rs Desugar for await loops 2023-12-19 12:26:27 -08:00
tests.rs Use Freeze for SourceFile.lines 2023-09-07 13:05:05 +02:00