From 4e0e1889990bdf1d6f10c9071144c44eebc80e97 Mon Sep 17 00:00:00 2001 From: varkor Date: Thu, 7 Feb 2019 14:59:59 +0100 Subject: Make name resolution handle consts in GenericParamsFromOuterFunction properly --- src/libsyntax/parse/token.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index c3885f0d04d..d5856c67156 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -284,6 +284,7 @@ impl Token { match self { OpenDelim(Brace) => true, Interpolated(ref nt) => match nt.0 { + NtExpr(..) => true, NtBlock(..) => true, NtLiteral(..) => true, _ => false, @@ -306,7 +307,7 @@ impl Token { } } - /// Returns `true` if the token is any literal, a minus (which can follow a literal, + /// Returns `true` if the token is any literal, a minus (which can prefix a literal, /// for example a '-42', or one of the boolean idents). crate fn can_begin_literal_or_bool(&self) -> bool { match *self { -- cgit 1.4.1-3-g733a5