about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src
diff options
context:
space:
mode:
authorBoxy <rust@boxyuwu.dev>2025-08-21 16:50:54 +0100
committerlcnr <rust@lcnr.de>2025-09-09 14:49:16 +0200
commite379c7758667f900aaf5551c4553c7d4c121e3e1 (patch)
treec181eeace32e95f479fe817db4261200beb69662 /compiler/rustc_codegen_gcc/src
parentfefce3cecd63cebf2d7c9aa3dd90a84379fcfa1a (diff)
downloadrust-e379c7758667f900aaf5551c4553c7d4c121e3e1.tar.gz
rust-e379c7758667f900aaf5551c4553c7d4c121e3e1.zip
erase_regions to erase_and_anonymize_regions
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
-rw-r--r--compiler/rustc_codegen_gcc/src/type_of.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/type_of.rs b/compiler/rustc_codegen_gcc/src/type_of.rs
index 093f902bc3d..93202483eed 100644
--- a/compiler/rustc_codegen_gcc/src/type_of.rs
+++ b/compiler/rustc_codegen_gcc/src/type_of.rs
@@ -240,7 +240,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
 
         // Make sure lifetimes are erased, to avoid generating distinct LLVM
         // types for Rust types that only differ in the choice of lifetimes.
-        let normal_ty = cx.tcx.erase_regions(self.ty);
+        let normal_ty = cx.tcx.erase_and_anonymize_regions(self.ty);
 
         let mut defer = None;
         let ty = if self.ty != normal_ty {