rust/compiler/rustc_middle/src
bors ae7b1c1916 Auto merge of #127442 - saethlin:alloc-decoding-lock, r=oli-obk
Try to fix ICE from re-interning an AllocId with different allocation contents

As far as I can tell, based on my investigation in https://github.com/rust-lang/rust/issues/126741, the racy decoding scheme implemented here was never fully correct, but the arrangement of Allocations that's required to ICE the compiler requires some very specific MIR optimizations to create. As far as I can tell, GVN likes to create the problematic pattern, which is why we're noticing this problem now.

So the solution here is to not do racy decoding. If two threads race to decoding an AllocId, one of them is going to sit on a lock until the other is done.
2024-07-22 05:56:05 +00:00
..
dep_graph local_def_path_hash_to_def_id can fail 2024-06-19 07:45:47 -04:00
hir Add ConstArgKind::Path and make ConstArg its own HIR node 2024-07-16 19:27:28 -07:00
hooks Introduce and provide a hook for should_codegen_locally 2024-07-15 19:54:47 +00:00
infer Simplify IntVarValue/FloatVarValue 2024-06-01 10:31:32 -04:00
middle Avoid ref when using format! in compiler 2024-07-19 14:52:07 -04:00
mir Auto merge of #127442 - saethlin:alloc-decoding-lock, r=oli-obk 2024-07-22 05:56:05 +00:00
query Auto merge of #127658 - compiler-errors:precise-capturing-rustdoc-cross, r=fmease 2024-07-20 11:03:35 +00:00
thir Track mutability of deref patterns 2024-04-20 15:59:54 +02:00
traits enable fuzzing of SearchGraph 2024-07-12 06:30:19 -04:00
ty Auto merge of #120812 - compiler-errors:impl-sorting, r=lcnr 2024-07-21 22:43:47 +00:00
util Avoid ref when using format! in compiler 2024-07-19 14:52:07 -04:00
arena.rs Uplift PredefinedOpaquesData 2024-06-18 10:40:30 -04:00
error.rs Re-implement a type-size based limit 2024-07-02 15:48:48 -04:00
lib.rs Rollup merge of #125505 - aDotInTheVoid:middle-idl, r=pnkfelix 2024-06-05 18:21:09 +02:00
lint.rs Auto merge of #125410 - fmease:adj-lint-diag-api, r=nnethercote 2024-05-27 08:44:12 +00:00
macros.rs lift_to_tcx -> lift_to_interner 2024-07-17 10:46:10 -04:00
metadata.rs Remove extern crate rustc_macros from rustc_middle. 2024-04-29 11:19:16 +10:00
tests.rs Give an item related to issue 27438 a more meaningful name 2024-04-30 22:27:19 +02:00
thir.rs pattern lowering: make sure we never call user-defined PartialEq instances 2024-07-18 11:58:16 +02:00
values.rs Use Variance glob import everywhere 2024-06-12 16:25:45 -04:00