Skip to content

Commit a63c681

Browse files
committed
FRTs are not trivially Unpin
1 parent ca4ca97 commit a63c681

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/ty/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ impl<'tcx> Ty<'tcx> {
12141214
ty::Tuple(fields) => fields.iter().all(Self::is_trivially_unpin),
12151215
ty::Pat(ty, _) | ty::Slice(ty) | ty::Array(ty, _) => ty.is_trivially_unpin(),
12161216
ty::Adt(..)
1217+
| ty::Field(..)
12171218
| ty::Bound(..)
12181219
| ty::Closure(..)
12191220
| ty::CoroutineClosure(..)

0 commit comments

Comments
 (0)