@@ -77,7 +77,7 @@ pub enum Ty {
77
77
Ref ( Box < Ty > , ast:: Mutability ) ,
78
78
/// `mod::mod::Type<[lifetime], [Params...]>`, including a plain type
79
79
/// parameter, and things like `i32`
80
- Literal ( Path ) ,
80
+ Path ( Path ) ,
81
81
/// includes unit
82
82
Tuple ( Vec < Ty > ) ,
83
83
}
@@ -103,7 +103,7 @@ impl Ty {
103
103
let raw_ty = ty. to_ty ( cx, span, self_ty, self_generics) ;
104
104
cx. ty_rptr ( span, raw_ty, None , * mutbl)
105
105
}
106
- Literal ( p) => p. to_ty ( cx, span, self_ty, self_generics) ,
106
+ Path ( p) => p. to_ty ( cx, span, self_ty, self_generics) ,
107
107
Self_ => cx. ty_path ( self . to_path ( cx, span, self_ty, self_generics) ) ,
108
108
Tuple ( fields) => {
109
109
let ty = ast:: TyKind :: Tup (
@@ -141,7 +141,7 @@ impl Ty {
141
141
142
142
cx. path_all ( span, false , vec ! [ self_ty] , params)
143
143
}
144
- Literal ( ref p) => p. to_path ( cx, span, self_ty, generics) ,
144
+ Path ( ref p) => p. to_path ( cx, span, self_ty, generics) ,
145
145
Ref ( ..) => cx. span_bug ( span, "ref in a path in generic `derive`" ) ,
146
146
Tuple ( ..) => cx. span_bug ( span, "tuple in a path in generic `derive`" ) ,
147
147
}
0 commit comments