@@ -19,7 +19,7 @@ use syntax_pos::{Span, DUMMY_SP, symbol::InternedString};
1919use syntax:: source_map:: { self , Spanned } ;
2020use rustc_target:: spec:: abi:: Abi ;
2121use syntax:: ast:: { self , CrateSugar , Ident , Name , NodeId , DUMMY_NODE_ID , AsmDialect } ;
22- use syntax:: ast:: { Attribute , Lit , StrStyle , FloatTy , IntTy , UintTy } ;
22+ use syntax:: ast:: { Attribute , Label , Lit , StrStyle , FloatTy , IntTy , UintTy } ;
2323use syntax:: attr:: InlineAttr ;
2424use syntax:: ext:: hygiene:: SyntaxContext ;
2525use syntax:: ptr:: P ;
@@ -142,17 +142,6 @@ pub const DUMMY_HIR_ID: HirId = HirId {
142142
143143pub const DUMMY_ITEM_LOCAL_ID : ItemLocalId = ItemLocalId :: MAX ;
144144
145- #[ derive( Clone , RustcEncodable , RustcDecodable , Copy ) ]
146- pub struct Label {
147- pub ident : Ident ,
148- }
149-
150- impl fmt:: Debug for Label {
151- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
152- write ! ( f, "label({:?})" , self . ident)
153- }
154- }
155-
156145#[ derive( Clone , RustcEncodable , RustcDecodable , Copy ) ]
157146pub struct Lifetime {
158147 pub id : NodeId ,
0 commit comments