@@ -15,7 +15,7 @@ pub use self::UnsafeSource::*;
15
15
pub use self :: ViewPath_ :: * ;
16
16
pub use self :: PathParameters :: * ;
17
17
18
- use attr:: { ThinAttributes , HasAttrs } ;
18
+ use attr:: ThinAttributes ;
19
19
use codemap:: { mk_sp, respan, Span , Spanned , DUMMY_SP , ExpnId } ;
20
20
use abi:: Abi ;
21
21
use errors;
@@ -825,10 +825,6 @@ impl StmtKind {
825
825
StmtKind :: Mac ( ..) => None ,
826
826
}
827
827
}
828
-
829
- pub fn attrs ( & self ) -> & [ Attribute ] {
830
- HasAttrs :: attrs ( self )
831
- }
832
828
}
833
829
834
830
#[ derive( Clone , Copy , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
@@ -858,12 +854,6 @@ pub struct Local {
858
854
pub attrs : ThinAttributes ,
859
855
}
860
856
861
- impl Local {
862
- pub fn attrs ( & self ) -> & [ Attribute ] {
863
- HasAttrs :: attrs ( self )
864
- }
865
- }
866
-
867
857
pub type Decl = Spanned < DeclKind > ;
868
858
869
859
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
@@ -874,12 +864,6 @@ pub enum DeclKind {
874
864
Item ( P < Item > ) ,
875
865
}
876
866
877
- impl Decl {
878
- pub fn attrs ( & self ) -> & [ Attribute ] {
879
- HasAttrs :: attrs ( self )
880
- }
881
- }
882
-
883
867
/// represents one arm of a 'match'
884
868
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
885
869
pub struct Arm {
@@ -919,12 +903,6 @@ pub struct Expr {
919
903
pub attrs : ThinAttributes
920
904
}
921
905
922
- impl Expr {
923
- pub fn attrs ( & self ) -> & [ Attribute ] {
924
- HasAttrs :: attrs ( self )
925
- }
926
- }
927
-
928
906
impl fmt:: Debug for Expr {
929
907
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
930
908
write ! ( f, "expr({}: {})" , self . id, pprust:: expr_to_string( self ) )
@@ -2036,12 +2014,6 @@ pub struct Item {
2036
2014
pub span : Span ,
2037
2015
}
2038
2016
2039
- impl Item {
2040
- pub fn attrs ( & self ) -> & [ Attribute ] {
2041
- & self . attrs
2042
- }
2043
- }
2044
-
2045
2017
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
2046
2018
pub enum ItemKind {
2047
2019
/// An`extern crate` item, with optional original crate name,
0 commit comments