@@ -386,7 +386,7 @@ impl<'a> State<'a> {
386386 }
387387 hir:: ForeignItemKind :: Static ( ref t, m) => {
388388 self . head ( visibility_qualified ( & item. vis , "static" ) ) ;
389- if m == hir:: Mutability :: Mutable {
389+ if m == hir:: Mutability :: Mut {
390390 self . word_space ( "mut" ) ;
391391 }
392392 self . print_ident ( item. ident ) ;
@@ -502,7 +502,7 @@ impl<'a> State<'a> {
502502 }
503503 hir:: ItemKind :: Static ( ref ty, m, expr) => {
504504 self . head ( visibility_qualified ( & item. vis , "static" ) ) ;
505- if m == hir:: Mutability :: Mutable {
505+ if m == hir:: Mutability :: Mut {
506506 self . word_space ( "mut" ) ;
507507 }
508508 self . print_ident ( item. ident ) ;
@@ -1632,11 +1632,11 @@ impl<'a> State<'a> {
16321632 match binding_mode {
16331633 hir:: BindingAnnotation :: Ref => {
16341634 self . word_nbsp ( "ref" ) ;
1635- self . print_mutability ( hir:: Mutability :: Immutable , false ) ;
1635+ self . print_mutability ( hir:: Mutability :: Not , false ) ;
16361636 }
16371637 hir:: BindingAnnotation :: RefMut => {
16381638 self . word_nbsp ( "ref" ) ;
1639- self . print_mutability ( hir:: Mutability :: Mutable , false ) ;
1639+ self . print_mutability ( hir:: Mutability :: Mut , false ) ;
16401640 }
16411641 hir:: BindingAnnotation :: Unannotated => { }
16421642 hir:: BindingAnnotation :: Mutable => {
@@ -2065,8 +2065,8 @@ impl<'a> State<'a> {
20652065
20662066 pub fn print_mutability ( & mut self , mutbl : hir:: Mutability , print_const : bool ) {
20672067 match mutbl {
2068- hir:: Mutability :: Mutable => self . word_nbsp ( "mut" ) ,
2069- hir:: Mutability :: Immutable => if print_const { self . word_nbsp ( "const" ) } ,
2068+ hir:: Mutability :: Mut => self . word_nbsp ( "mut" ) ,
2069+ hir:: Mutability :: Not => if print_const { self . word_nbsp ( "const" ) } ,
20702070 }
20712071 }
20722072
0 commit comments