@@ -20,7 +20,6 @@ pub use self::FunctionRetTy::*;
20
20
pub use self :: ForeignItem_ :: * ;
21
21
pub use self :: Item_ :: * ;
22
22
pub use self :: Mutability :: * ;
23
- pub use self :: PathListItem_ :: * ;
24
23
pub use self :: PrimTy :: * ;
25
24
pub use self :: Stmt_ :: * ;
26
25
pub use self :: TraitItem_ :: * ;
@@ -1337,39 +1336,11 @@ pub struct Variant_ {
1337
1336
pub type Variant = Spanned < Variant_ > ;
1338
1337
1339
1338
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug , Copy ) ]
1340
- pub enum PathListItem_ {
1341
- PathListIdent {
1342
- name : Name ,
1343
- /// renamed in list, eg `use foo::{bar as baz};`
1344
- rename : Option < Name > ,
1345
- id : NodeId ,
1346
- } ,
1347
- PathListMod {
1348
- /// renamed in list, eg `use foo::{self as baz};`
1349
- rename : Option < Name > ,
1350
- id : NodeId ,
1351
- } ,
1352
- }
1353
-
1354
- impl PathListItem_ {
1355
- pub fn id ( & self ) -> NodeId {
1356
- match * self {
1357
- PathListIdent { id, .. } | PathListMod { id, .. } => id,
1358
- }
1359
- }
1360
-
1361
- pub fn name ( & self ) -> Option < Name > {
1362
- match * self {
1363
- PathListIdent { name, .. } => Some ( name) ,
1364
- PathListMod { .. } => None ,
1365
- }
1366
- }
1367
-
1368
- pub fn rename ( & self ) -> Option < Name > {
1369
- match * self {
1370
- PathListIdent { rename, .. } | PathListMod { rename, .. } => rename,
1371
- }
1372
- }
1339
+ pub struct PathListItem_ {
1340
+ pub name : Name ,
1341
+ /// renamed in list, eg `use foo::{bar as baz};`
1342
+ pub rename : Option < Name > ,
1343
+ pub id : NodeId ,
1373
1344
}
1374
1345
1375
1346
pub type PathListItem = Spanned < PathListItem_ > ;
0 commit comments