Files
rust/compiler/rustc_lint
Jonathan Brouwer c70f022125 Rollup merge of #160159 - Urgau:invalid_ref_casts-unsafe-cell, r=mejrs
More accurately check for interior mutability in `invalid_reference_casting` lint

This PR replaces the `Freeze` trait check in the `invalid_reference_casting` lint by a recursive type check.

The check was not enough to determine if a type has "interior mutability", as `Freeze` is proxy for "has *some* interior mutability", not "fully covered by interior mutability".

As requested in https://github.com/rust-lang/rust/pull/159960#issuecomment-5090709661
2026-07-31 16:02:36 +02:00
..