about summary refs log tree commit diff
path: root/src/libsyntax_ext
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax_ext')
-rw-r--r--src/libsyntax_ext/deriving/generic/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/deriving/generic/mod.rs b/src/libsyntax_ext/deriving/generic/mod.rs
index 44a07f532a7..672726d1475 100644
--- a/src/libsyntax_ext/deriving/generic/mod.rs
+++ b/src/libsyntax_ext/deriving/generic/mod.rs
@@ -666,7 +666,7 @@ impl<'a> TraitDef<'a> {
 
         let self_params: Vec<_> = generics.params.iter().map(|param| match param.kind {
             GenericParamKind::Lifetime { .. } => {
-                GenericArg::Lifetime(ast::Lifetime { id: param.id, ident: param.ident })
+                GenericArg::Lifetime(cx.lifetime(self.span, param.ident))
             }
             GenericParamKind::Type { .. } => {
                 GenericArg::Type(cx.ty_ident(self.span, param.ident))