Files
rust/compiler/rustc_mir_dataflow
Nicholas Nethercote 3a7e145ffc Fix "first assignment" labels for EverInitializedPlaces
This commit fixes the error message regression in the previous commit by
recomputing flow information at error-reporting time.
`is_local_ever_initialized` is replaced in two ways.
- In `check_access_permissions`: by the new `first_reaching_init`
  function which picks the first init that can reach the error location
  along a path that doesn't cross `StorageDead(local)`.
- In `add_used_mut`: by a simple `contains` test.
2026-08-03 12:02:02 +10:00
..