Remove name from GenericParamKind::Lifetime

This commit is contained in:
varkor
2018-05-30 16:49:39 +01:00
parent c4e8e71880
commit 6015edf9af
10 changed files with 30 additions and 59 deletions

View File

@@ -301,9 +301,7 @@ pub type ParamBounds = Vec<ParamBound>;
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
pub enum GenericParamKind {
/// A lifetime definition, e.g. `'a: 'b+'c+'d`.
Lifetime {
lifetime: Lifetime,
},
Lifetime,
Type {
default: Option<P<Ty>>,
}