Skip to content

Commit ca4ca97

Browse files
committed
FRTs are trivially Freeze
1 parent eded109 commit ca4ca97

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+2
-1
lines changed

compiler/rustc_middle/src/ty/util.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,8 @@ impl<'tcx> Ty<'tcx> {
11681168
| ty::RawPtr(_, _)
11691169
| ty::FnDef(..)
11701170
| ty::Error(_)
1171-
| ty::FnPtr(..) => true,
1171+
| ty::FnPtr(..)
1172+
| ty::Field(..) => true,
11721173
ty::Tuple(fields) => fields.iter().all(Self::is_trivially_freeze),
11731174
ty::Pat(ty, _) | ty::Slice(ty) | ty::Array(ty, _) => ty.is_trivially_freeze(),
11741175
ty::Adt(..)

0 commit comments

Comments
 (0)