]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_hir/hir.rs
Rollup merge of #68509 - GuillaumeGomez:clean-up-err-codes-e0223-e0225, r=Dylan-DPC
[rust.git] / src / librustc_hir / hir.rs
index 1fef871b5140e41ad2b24b94b3cec134c0ef493c..b62a7e413e3031b30b58ccd8aa04065fdfac7373 100644 (file)
@@ -364,6 +364,7 @@ pub fn own_counts(&self) -> GenericParamCount {
 pub enum TraitBoundModifier {
     None,
     Maybe,
+    MaybeConst,
 }
 
 /// The AST represents all type param bounds as types.
@@ -2440,6 +2441,7 @@ pub enum ItemKind<'hir> {
         unsafety: Unsafety,
         polarity: ImplPolarity,
         defaultness: Defaultness,
+        constness: Constness,
         generics: Generics<'hir>,
 
         /// The trait being implemented, if any.