about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/collect/generics_of.rs
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2024-11-27 17:52:57 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2024-11-28 15:45:27 +0000
commit71b698c0b81c2e35c852ebcdf1f5cbe9e9162a50 (patch)
treedbe91e29ec618b7e46ffb36ec6112e4ca49f17f4 /compiler/rustc_hir_analysis/src/collect/generics_of.rs
parent72d2db7bf46f565f4ee5cc73d65b4f4906e7420e (diff)
downloadrust-71b698c0b81c2e35c852ebcdf1f5cbe9e9162a50.tar.gz
rust-71b698c0b81c2e35c852ebcdf1f5cbe9e9162a50.zip
Replace `Symbol::intern` calls with preinterned symbols
Diffstat (limited to 'compiler/rustc_hir_analysis/src/collect/generics_of.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/collect/generics_of.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect/generics_of.rs b/compiler/rustc_hir_analysis/src/collect/generics_of.rs
index c31bff28fd3..111dee744fd 100644
--- a/compiler/rustc_hir_analysis/src/collect/generics_of.rs
+++ b/compiler/rustc_hir_analysis/src/collect/generics_of.rs
@@ -419,7 +419,7 @@ pub(super) fn generics_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Generics {
     if let Node::ConstBlock(_) = node {
         own_params.push(ty::GenericParamDef {
             index: next_index(),
-            name: Symbol::intern("<const_ty>"),
+            name: rustc_span::sym::const_ty_placeholder,
             def_id: def_id.to_def_id(),
             pure_wrt_drop: false,
             kind: ty::GenericParamDefKind::Type { has_default: false, synthetic: false },