@@ -77,7 +77,7 @@ pub enum Ty {
7777 Ref ( Box < Ty > , ast:: Mutability ) ,
7878 /// `mod::mod::Type<[lifetime], [Params...]>`, including a plain type
7979 /// parameter, and things like `i32`
80- Literal ( Path ) ,
80+ Path ( Path ) ,
8181 /// includes unit
8282 Tuple ( Vec < Ty > ) ,
8383}
@@ -103,7 +103,7 @@ impl Ty {
103103 let raw_ty = ty. to_ty ( cx, span, self_ty, self_generics) ;
104104 cx. ty_rptr ( span, raw_ty, None , * mutbl)
105105 }
106- Literal ( p) => p. to_ty ( cx, span, self_ty, self_generics) ,
106+ Path ( p) => p. to_ty ( cx, span, self_ty, self_generics) ,
107107 Self_ => cx. ty_path ( self . to_path ( cx, span, self_ty, self_generics) ) ,
108108 Tuple ( fields) => {
109109 let ty = ast:: TyKind :: Tup (
@@ -141,7 +141,7 @@ impl Ty {
141141
142142 cx. path_all ( span, false , vec ! [ self_ty] , params)
143143 }
144- Literal ( ref p) => p. to_path ( cx, span, self_ty, generics) ,
144+ Path ( ref p) => p. to_path ( cx, span, self_ty, generics) ,
145145 Ref ( ..) => cx. span_bug ( span, "ref in a path in generic `derive`" ) ,
146146 Tuple ( ..) => cx. span_bug ( span, "tuple in a path in generic `derive`" ) ,
147147 }
0 commit comments