We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<BoundConstness as Display>
1 parent d59f06f commit e36a24eCopy full SHA for e36a24e
compiler/rustc_middle/src/ty/mod.rs
@@ -333,7 +333,8 @@ impl fmt::Display for BoundConstness {
333
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
334
match self {
335
Self::NotConst => f.write_str("normal"),
336
- _ => write!(f, "`{self}`"),
+ Self::Const => f.write_str("const"),
337
+ Self::ConstIfConst => f.write_str("~const"),
338
}
339
340
0 commit comments