@@ -28,7 +28,7 @@ use syntax::ast::{Name, Ident};
2828use syntax:: attr;
2929
3030use syntax:: ast:: { self , Block , ForeignItem , ForeignItemKind , Item , ItemKind , NodeId } ;
31- use syntax:: ast:: { MetaItemKind , Mutability , StmtKind , TraitItem , TraitItemKind , Variant } ;
31+ use syntax:: ast:: { MetaItemKind , StmtKind , TraitItem , TraitItemKind , Variant } ;
3232use syntax:: ext:: base:: { MacroKind , SyntaxExtension } ;
3333use syntax:: ext:: base:: Determinacy :: Undetermined ;
3434use syntax:: ext:: hygiene:: Mark ;
@@ -442,9 +442,8 @@ impl<'a> Resolver<'a> {
442442 ItemKind :: ForeignMod ( ..) => { }
443443
444444 // These items live in the value namespace.
445- ItemKind :: Static ( _, m, _) => {
446- let mutbl = m == Mutability :: Mutable ;
447- let def = Def :: Static ( self . definitions . local_def_id ( item. id ) , mutbl) ;
445+ ItemKind :: Static ( ..) => {
446+ let def = Def :: Static ( self . definitions . local_def_id ( item. id ) ) ;
448447 self . define ( parent, ident, ValueNS , ( def, vis, sp, expansion) ) ;
449448 }
450449 ItemKind :: Const ( ..) => {
@@ -616,8 +615,8 @@ impl<'a> Resolver<'a> {
616615 ForeignItemKind :: Fn ( ..) => {
617616 ( Def :: Fn ( self . definitions . local_def_id ( item. id ) ) , ValueNS )
618617 }
619- ForeignItemKind :: Static ( _ , m ) => {
620- ( Def :: Static ( self . definitions . local_def_id ( item. id ) , m ) , ValueNS )
618+ ForeignItemKind :: Static ( .. ) => {
619+ ( Def :: Static ( self . definitions . local_def_id ( item. id ) ) , ValueNS )
621620 }
622621 ForeignItemKind :: Ty => {
623622 ( Def :: ForeignTy ( self . definitions . local_def_id ( item. id ) ) , TypeNS )
0 commit comments