@@ -21,7 +21,7 @@ use syntax_pos::{Span, DUMMY_SP, MultiSpan};
2121use syntax:: source_map:: Spanned ;
2222use syntax:: ast:: { self , CrateSugar , Ident , Name , NodeId , AsmDialect } ;
2323use 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 } ;
2525use syntax:: attr:: { InlineAttr , OptimizeAttr } ;
2626use syntax:: symbol:: { Symbol , kw} ;
2727use syntax:: tokenstream:: TokenStream ;
@@ -2155,24 +2155,6 @@ impl Defaultness {
21552155 }
21562156}
21572157
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-
21762158#[ derive( RustcEncodable , RustcDecodable , Debug , HashStable ) ]
21772159pub enum FunctionRetTy {
21782160 /// Return type is not specified.
0 commit comments