@@ -19,7 +19,7 @@ use syntax_pos::{Span, DUMMY_SP, symbol::InternedString};
19
19
use syntax:: source_map:: { self , Spanned } ;
20
20
use rustc_target:: spec:: abi:: Abi ;
21
21
use 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 } ;
23
23
use syntax:: attr:: InlineAttr ;
24
24
use syntax:: ext:: hygiene:: SyntaxContext ;
25
25
use syntax:: ptr:: P ;
@@ -142,17 +142,6 @@ pub const DUMMY_HIR_ID: HirId = HirId {
142
142
143
143
pub const DUMMY_ITEM_LOCAL_ID : ItemLocalId = ItemLocalId :: MAX ;
144
144
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
-
156
145
#[ derive( Clone , RustcEncodable , RustcDecodable , Copy ) ]
157
146
pub struct Lifetime {
158
147
pub id : NodeId ,
@@ -1466,7 +1455,7 @@ pub enum ExprKind {
1466
1455
/// A unary operation (For example: `!x`, `*x`)
1467
1456
Unary ( UnOp , P < Expr > ) ,
1468
1457
/// A literal (For example: `1`, `"foo"`)
1469
- Lit ( P < Lit > ) ,
1458
+ Lit ( Lit ) ,
1470
1459
/// A cast (`foo as f64`)
1471
1460
Cast ( P < Expr > , P < Ty > ) ,
1472
1461
Type ( P < Expr > , P < Ty > ) ,
0 commit comments