Skip to content

Commit a211d63

Browse files
BoxyUwUlcnr
authored andcommitted
erase_regions to erase_and_anonymize_regions
1 parent d5e9cc5 commit a211d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type_of.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
240240

241241
// Make sure lifetimes are erased, to avoid generating distinct LLVM
242242
// types for Rust types that only differ in the choice of lifetimes.
243-
let normal_ty = cx.tcx.erase_regions(self.ty);
243+
let normal_ty = cx.tcx.erase_and_anonymize_regions(self.ty);
244244

245245
let mut defer = None;
246246
let ty = if self.ty != normal_ty {

0 commit comments

Comments
 (0)