Skip to content

Commit b3c6a2c

Browse files
Enable type_changing_struct_update always
1 parent 0ec16f3 commit b3c6a2c

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_typeck/src/check

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
15601560
if let Some(base_expr) = base_expr {
15611561
// FIXME: We are currently creating two branches here in order to maintain
15621562
// consistency. But they should be merged as much as possible.
1563-
let fru_tys = if self.tcx.features().type_changing_struct_update {
1563+
let fru_tys = if self.tcx.features().type_changing_struct_update || true {
15641564
if adt.is_struct() {
15651565
// Make an ADT with fresh inference substitutions.
15661566
let fresh_substs = self.fresh_substs_for_item(base_expr.span, adt.did());

0 commit comments

Comments
 (0)