55pub use self :: BlockCheckMode :: * ;
66pub use self :: CaptureClause :: * ;
77pub use self :: FunctionRetTy :: * ;
8- pub use self :: Mutability :: * ;
98pub use self :: PrimTy :: * ;
109pub use self :: UnOp :: * ;
1110pub use self :: UnsafeSource :: * ;
@@ -23,6 +22,7 @@ use syntax_pos::{Span, DUMMY_SP, MultiSpan};
2322use syntax:: source_map:: Spanned ;
2423use syntax:: ast:: { self , CrateSugar , Ident , Name , NodeId , AsmDialect } ;
2524use syntax:: ast:: { Attribute , Label , LitKind , StrStyle , FloatTy , IntTy , UintTy } ;
25+ pub use syntax:: ast:: Mutability ;
2626use syntax:: attr:: { InlineAttr , OptimizeAttr } ;
2727use syntax:: symbol:: { Symbol , kw} ;
2828use syntax:: tokenstream:: TokenStream ;
@@ -1053,37 +1053,6 @@ pub enum PatKind {
10531053 Slice ( HirVec < P < Pat > > , Option < P < Pat > > , HirVec < P < Pat > > ) ,
10541054}
10551055
1056- #[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , HashStable ,
1057- RustcEncodable , RustcDecodable , Hash , Debug ) ]
1058- pub enum Mutability {
1059- MutMutable ,
1060- MutImmutable ,
1061- }
1062-
1063- impl Mutability {
1064- /// Returns `MutMutable` only if both `self` and `other` are mutable.
1065- pub fn and ( self , other : Self ) -> Self {
1066- match self {
1067- MutMutable => other,
1068- MutImmutable => MutImmutable ,
1069- }
1070- }
1071-
1072- pub fn invert ( self ) -> Self {
1073- match self {
1074- MutMutable => MutImmutable ,
1075- MutImmutable => MutMutable ,
1076- }
1077- }
1078-
1079- pub fn prefix_str ( & self ) -> & ' static str {
1080- match self {
1081- MutMutable => "mut " ,
1082- MutImmutable => "" ,
1083- }
1084- }
1085- }
1086-
10871056#[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , HashStable ) ]
10881057pub enum BinOpKind {
10891058 /// The `+` operator (addition).
0 commit comments