about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-05-30 16:49:39 +0100
committervarkor <github@varkor.com>2018-06-20 12:23:08 +0100
commit6015edf9af375385ca9eb2ebbb8794c782fa7244 (patch)
treee07b5a2233e2c32b950b84d3dd1547e62b983f5e /src/libsyntax/parse/parser.rs
parentc4e8e718807d1925769bdcdd055c6d8de05f20ce (diff)
downloadrust-6015edf9af375385ca9eb2ebbb8794c782fa7244.tar.gz
rust-6015edf9af375385ca9eb2ebbb8794c782fa7244.zip
Remove name from GenericParamKind::Lifetime
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 66e48512065..b2cfb459c35 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -4877,9 +4877,7 @@ impl<'a> Parser<'a> {
                     id: lifetime.id,
                     attrs: attrs.into(),
                     bounds,
-                    kind: ast::GenericParamKind::Lifetime {
-                        lifetime,
-                    }
+                    kind: ast::GenericParamKind::Lifetime,
                 });
                 if seen_ty_param {
                     self.span_err(self.prev_span,