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.
1 parent ba3ae28 commit cd30271Copy full SHA for cd30271
compiler/rustc_middle/src/ty/layout.rs
@@ -805,6 +805,7 @@ where
805
| ty::Float(_)
806
| ty::FnPtr(..)
807
| ty::Never
808
+ | ty::Field(..)
809
| ty::FnDef(..)
810
| ty::CoroutineWitness(..)
811
| ty::Foreign(..)
compiler/rustc_ty_utils/src/layout.rs
@@ -676,6 +676,8 @@ fn layout_of_uncached<'tcx>(
676
tcx.mk_layout(layout)
677
}
678
679
+ ty::Field(..) => tcx.mk_layout(LayoutData::never_type(cx)),
680
+
681
ty::UnsafeBinder(bound_ty) => {
682
let ty = tcx.instantiate_bound_regions_with_erased(bound_ty.into());
683
cx.layout_of(ty)?.layout
0 commit comments