1
Fork 0
rust/compiler/rustc_middle/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
..
dep_graph Reduce exposure of things. 2023-11-16 16:49:22 +11:00
hir Unify SourceFile::name_hash and StableSourceFileId 2023-12-19 22:34:26 +01:00
hooks Rename hook. 2023-11-01 16:49:18 +00:00
infer NFC: do not clone types that are copy 2023-12-15 23:19:51 +01:00
middle Don't pass lint back out of lint decorator 2023-12-15 16:05:36 +00:00
mir Rollup merge of #119198 - compiler-errors:desugaring, r=eholk 2023-12-22 21:41:04 -05:00
query Auto merge of #119139 - michaelwoerister:cleanup-stable-source-file-id, r=cjgillot 2023-12-24 21:58:39 +00:00
thir Add never_patterns feature gate 2023-11-29 03:58:29 +01:00
traits Rollup merge of #119071 - lcnr:overflowo, r=compiler-errors 2023-12-20 09:46:11 +01:00
ty Auto merge of #119218 - Nadrieril:nested-opaque-reveal, r=compiler-errors 2023-12-23 23:00:08 +00:00
util Rename Session::span_diagnostic as Session::dcx. 2023-12-18 16:06:21 +11:00
arena.rs Make ConstKind and TyKind Copy 2023-12-12 01:09:12 +00:00
error.rs don't point at const usage site for resolution-time errors 2023-09-14 22:34:05 +02:00
lib.rs update cfg(bootstrap)s 2023-12-22 11:14:11 +01:00
lint.rs Streamline struct_lint_level. 2023-12-23 13:18:50 +11:00
macros.rs Rename HandlerInner::delay_span_bug as HandlerInner::span_delayed_bug. 2023-12-02 09:01:19 +11:00
metadata.rs rustc_metadata: Remove Span from ModChild 2023-04-18 17:25:04 +03:00
tests.rs
thir.rs Don't include destruction scopes in THIR 2023-12-04 16:31:13 +00:00
values.rs Move some methods from tcx.hir() to tcx 2023-12-12 06:40:29 -08:00