We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Freeze
1 parent eded109 commit ca4ca97Copy full SHA for ca4ca97
compiler/rustc_middle/src/ty/util.rs
@@ -1168,7 +1168,8 @@ impl<'tcx> Ty<'tcx> {
1168
| ty::RawPtr(_, _)
1169
| ty::FnDef(..)
1170
| ty::Error(_)
1171
- | ty::FnPtr(..) => true,
+ | ty::FnPtr(..)
1172
+ | ty::Field(..) => true,
1173
ty::Tuple(fields) => fields.iter().all(Self::is_trivially_freeze),
1174
ty::Pat(ty, _) | ty::Slice(ty) | ty::Array(ty, _) => ty.is_trivially_freeze(),
1175
ty::Adt(..)
0 commit comments