rust/compiler/rustc_middle/src
bors a0c28cd9dc Auto merge of #115401 - Zoxc:freeze, r=oli-obk
Add `FreezeLock` type and use it to store `Definitions`

This adds a `FreezeLock` type which allows mutation using a lock until the value is frozen where it can be accessed lock-free. It's used to store `Definitions` in `Untracked` instead of a `RwLock`. Unlike the current scheme of leaking read guards this doesn't deadlock if definitions is written to after no mutation are expected.
2023-09-06 11:48:43 +00:00
..
dep_graph Encode DepKind as u16 2023-09-03 18:48:23 -04:00
hir Add Freeze type and use it to store Definitions 2023-09-02 08:13:03 +02:00
infer refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
middle rustc: Move stable_crate_id from Session to GlobalCtxt 2023-08-09 14:35:23 +08:00
mir interpret: make MemPlace, Place, Operand types private to the interpreter 2023-09-04 17:53:38 +02:00
query Use relative positions inside a SourceFile. 2023-09-03 12:56:10 +00:00
thir Move scrutinee HirId into MatchSource::TryDesugar 2023-08-14 21:43:56 +00:00
traits Move scrutinee HirId into MatchSource::TryDesugar 2023-08-14 21:43:56 +00:00
ty Add Freeze type and use it to store Definitions 2023-09-02 08:13:03 +02:00
util inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
arena.rs Remove metadata_loader query 2023-08-13 16:38:50 +00:00
error.rs Don't attempt to compute layout of type referencing error 2023-07-27 18:24:08 +00:00
lib.rs Bump cfg(bootstrap) 2023-08-23 20:05:14 -04:00
lint.rs Add help to allow lint for the implied by suggestion 2023-09-04 14:21:38 +02:00
macros.rs Make everything builtin! 2023-07-25 16:08:58 +00:00
metadata.rs rustc_metadata: Remove Span from ModChild 2023-04-18 17:25:04 +03:00
tests.rs
thir.rs Move scrutinee HirId into MatchSource::TryDesugar 2023-08-14 21:43:56 +00:00
values.rs More precisely detect cycle errors from type_of on opaque 2023-08-27 22:03:16 +00:00