Files
rust/compiler/rustc_mir_transform
Jacob Pratt c28d4c6eaa Rollup merge of #160928 - im-lunex:fix_#160891, r=Urgau
check `mut`-restriction when tuple constructor is used as a value

this fixes a bug where tuple struct constructors could bypass `mut` field restrictions when used as function values instead of being called directly. right now `CheckMutRestriction` only checks struct expressions like `Wrapper(5)`. but referencing `inner::Wrapper` as a value was allowed, which let outsiders construct structs with restricted fields.

Fixes rust-lang/rust#160891
2026-08-13 18:16:14 -04:00
..
2026-06-24 23:18:10 +01:00