diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 8aa03e007e4..7251af77dcc 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2040,12 +2040,11 @@ impl<'a> Parser<'a> { token::Lifetime(ident) => Lifetime { ident: ident, span: self.span, id: ast::DUMMY_NODE_ID }, token::Interpolated(ref nt) => match nt.0 { - token::NtLifetime(lifetime) => + token::NtLifetime(lifetime) => lifetime, - //Lifetime { ident: lifetime.ident, span: lifetime.span, id: ast::DUMMY_NODE_ID }, - _ => self.span_bug(self.span, &format!("not a lifetime: {:?}", self.token)) + _ => self.span_bug(self.span, "not a lifetime") } - _ => self.span_bug(self.span, &format!("not a lifetime: {:?}", self.token)) + _ => self.span_bug(self.span, "not a lifetime") }; self.bump();