about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/debuginfo
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-12-07 03:04:18 +0000
committerbors <bors@rust-lang.org>2024-12-07 03:04:18 +0000
commitca13e9169fbbbb126190631b5a1e3e20053a52c1 (patch)
tree14c4d69d3887c9fdd9a0e17c78471e6a23f9b3bb /compiler/rustc_codegen_ssa/src/debuginfo
parent75716b45105e443199ce9800c7009ddfd6d2be53 (diff)
parent711c8cc690c70d9b4c0e17e90f21f03d4e9d3ebf (diff)
downloadrust-ca13e9169fbbbb126190631b5a1e3e20053a52c1.tar.gz
rust-ca13e9169fbbbb126190631b5a1e3e20053a52c1.zip
Auto merge of #133883 - saethlin:remove-polymorphization, r=compiler-errors
Remove polymorphization

This PR removes the flag `-Zpolymorphize` and all the infrastructure in the compiler that exists only to support it, per https://github.com/rust-lang/compiler-team/issues/810.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
index 6c4f6d37972..cf72c2ed742 100644
--- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
+++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
@@ -432,11 +432,8 @@ fn push_debuginfo_type_name<'tcx>(
                 push_closure_or_coroutine_name(tcx, def_id, args, qualified, output, visited);
             }
         }
-        // Type parameters from polymorphized functions.
-        ty::Param(_) => {
-            write!(output, "{t:?}").unwrap();
-        }
-        ty::Error(_)
+        ty::Param(_)
+        | ty::Error(_)
         | ty::Infer(_)
         | ty::Placeholder(..)
         | ty::Alias(..)