We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea5fa17 commit bf4d7faCopy full SHA for bf4d7fa
compiler/rustc_middle/src/ty/print/mod.rs
@@ -136,6 +136,10 @@ pub trait Printer<'tcx>: Sized {
136
match key.disambiguated_data.data {
137
// Closures' own generics are only captures, don't print them.
138
DefPathData::ClosureExpr => {}
139
+ // This covers both `DefKind::AnonConst` and `DefKind::InlineConst`.
140
+ // Anon consts doesn't have their own generics, and inline consts' own
141
+ // generics are their inferred types, so don't print them.
142
+ DefPathData::AnonConst => {}
143
144
// If we have any generic arguments to print, we do that
145
// on top of the same path, but without its own generics.
0 commit comments