@@ -20,7 +20,6 @@ pub use self::FunctionRetTy::*;
2020pub use self :: ForeignItem_ :: * ;
2121pub use self :: Item_ :: * ;
2222pub use self :: Mutability :: * ;
23- pub use self :: PathListItem_ :: * ;
2423pub use self :: PrimTy :: * ;
2524pub use self :: Stmt_ :: * ;
2625pub use self :: TraitItem_ :: * ;
@@ -1337,39 +1336,11 @@ pub struct Variant_ {
13371336pub type Variant = Spanned < Variant_ > ;
13381337
13391338#[ 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 ,
13731344}
13741345
13751346pub type PathListItem = Spanned < PathListItem_ > ;
0 commit comments