@@ -28,7 +28,7 @@ use syntax::ast::{Name, Ident};
28
28
use syntax:: attr;
29
29
30
30
use 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 } ;
32
32
use syntax:: ext:: base:: { MacroKind , SyntaxExtension } ;
33
33
use syntax:: ext:: base:: Determinacy :: Undetermined ;
34
34
use syntax:: ext:: hygiene:: Mark ;
@@ -442,9 +442,8 @@ impl<'a> Resolver<'a> {
442
442
ItemKind :: ForeignMod ( ..) => { }
443
443
444
444
// 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 ) ) ;
448
447
self . define ( parent, ident, ValueNS , ( def, vis, sp, expansion) ) ;
449
448
}
450
449
ItemKind :: Const ( ..) => {
@@ -616,8 +615,8 @@ impl<'a> Resolver<'a> {
616
615
ForeignItemKind :: Fn ( ..) => {
617
616
( Def :: Fn ( self . definitions . local_def_id ( item. id ) ) , ValueNS )
618
617
}
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 )
621
620
}
622
621
ForeignItemKind :: Ty => {
623
622
( Def :: ForeignTy ( self . definitions . local_def_id ( item. id ) ) , TypeNS )
0 commit comments