diff options
| author | varkor <github@varkor.com> | 2019-02-07 14:59:59 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-02-07 15:03:20 +0100 |
| commit | 4e0e1889990bdf1d6f10c9071144c44eebc80e97 (patch) | |
| tree | 1725c5b9ebdc5044476c96c8baaaf01579943bf9 /src/libsyntax/parse | |
| parent | 451f1287839451fc097a406fad1a9160c22c280a (diff) | |
| download | rust-4e0e1889990bdf1d6f10c9071144c44eebc80e97.tar.gz rust-4e0e1889990bdf1d6f10c9071144c44eebc80e97.zip | |
Make name resolution handle consts in GenericParamsFromOuterFunction properly
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |
