We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ee2c66 commit 169c989Copy full SHA for 169c989
compiler/rustc_sanitizers/src/cfi/typeid/itanium_cxx_abi/transform.rs
@@ -146,7 +146,10 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for TransformTy<'tcx> {
146
!is_zst
147
});
148
if let Some(field) = field {
149
- let ty0 = self.tcx.erase_regions(field.ty(self.tcx, args));
+ let ty0 = self.tcx.normalize_erasing_regions(
150
+ ty::ParamEnv::reveal_all(),
151
+ field.ty(self.tcx, args),
152
+ );
153
// Generalize any repr(transparent) user-defined type that is either a
154
// pointer or reference, and either references itself or any other type that
155
// contains or references itself, to avoid a reference cycle.
0 commit comments