@@ -21,7 +21,7 @@ use syntax_pos::{Span, DUMMY_SP, MultiSpan};
21
21
use syntax:: source_map:: Spanned ;
22
22
use syntax:: ast:: { self , CrateSugar , Ident , Name , NodeId , AsmDialect } ;
23
23
use syntax:: ast:: { Attribute , Label , LitKind , StrStyle , FloatTy , IntTy , UintTy } ;
24
- pub use syntax:: ast:: { Mutability , Constness , Unsafety , Movability , CaptureBy , IsAuto } ;
24
+ pub use syntax:: ast:: { Mutability , Constness , Unsafety , Movability , CaptureBy , IsAuto , ImplPolarity } ;
25
25
use syntax:: attr:: { InlineAttr , OptimizeAttr } ;
26
26
use syntax:: symbol:: { Symbol , kw} ;
27
27
use syntax:: tokenstream:: TokenStream ;
@@ -2155,24 +2155,6 @@ impl Defaultness {
2155
2155
}
2156
2156
}
2157
2157
2158
- #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , HashStable ) ]
2159
- pub enum ImplPolarity {
2160
- /// `impl Trait for Type`
2161
- Positive ,
2162
- /// `impl !Trait for Type`
2163
- Negative ,
2164
- }
2165
-
2166
- impl fmt:: Debug for ImplPolarity {
2167
- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2168
- f. write_str ( match self {
2169
- ImplPolarity :: Positive => "positive" ,
2170
- ImplPolarity :: Negative => "negative" ,
2171
- } )
2172
- }
2173
- }
2174
-
2175
-
2176
2158
#[ derive( RustcEncodable , RustcDecodable , Debug , HashStable ) ]
2177
2159
pub enum FunctionRetTy {
2178
2160
/// Return type is not specified.
0 commit comments