Files
rust/compiler/rustc_mir_transform/src
Nicholas Nethercote a97cd3ba57 Make Analysis immutable in many more places.
The `state: A::Domain` value is the primary things that's modified when
performing an analysis. The `Analysis` impl is immutable in every case
but one (`MaybeRequiredStorage`) and it now uses interior mutability.

As well as changing many `&mut A` arguments to `&A`, this also:
- lets `CowMut` be replaced with the simpler `SimpleCow` in `cursor.rs`;
- removes the need for the `RefCell` in `Formatter`;
- removes the need for `MaybeBorrowedLocals` to impl `Clone`, because
  it's a unit type and it's now clear that its constructor can be used
  directly instead of being put into a local variable and cloned.
2025-10-28 08:23:27 +11:00
..
2025-10-24 02:41:50 +00:00
2025-10-10 12:57:24 +00:00
2025-09-08 15:07:12 -07:00
2025-07-21 08:08:41 +00:00
2025-08-13 09:33:09 -05:00
2025-10-11 20:50:21 +00:00
2025-09-21 13:12:18 -04:00
2025-10-10 12:57:24 +00:00
2025-09-17 21:12:17 +00:00
2025-07-01 19:00:21 +00:00
2025-10-19 02:22:18 +00:00
2025-10-10 12:57:24 +00:00
2025-10-06 10:57:27 -07:00
2025-10-10 12:57:24 +00:00
2025-10-10 12:57:24 +00:00