diff options
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 5911f23552e..757d3337afc 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -333,7 +333,8 @@ impl fmt::Display for BoundConstness { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Self::NotConst => f.write_str("normal"), - _ => write!(f, "`{self}`"), + Self::Const => f.write_str("const"), + Self::ConstIfConst => f.write_str("~const"), } } } |
