diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-30 13:02:06 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-02-13 10:39:24 +0100 |
| commit | a833be21626890de406e12f2561d2ffbda4aadb4 (patch) | |
| tree | bd75ba7b37902e0ba9d09e775bdd413f9c868201 /src/libsyntax/util | |
| parent | 36a17e4067d2e67223cd9a172476ee5503d6b44b (diff) | |
parser: fuse free `fn` parsing together.
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/literal.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/util/literal.rs b/src/libsyntax/util/literal.rs index dd06c25b4de..0c611adc06b 100644 --- a/src/libsyntax/util/literal.rs +++ b/src/libsyntax/util/literal.rs @@ -188,6 +188,8 @@ impl Lit { } /// Converts arbitrary token into an AST literal. + /// + /// Keep this in sync with `Token::can_begin_literal_or_bool`. pub fn from_token(token: &Token) -> Result<Lit, LitError> { let lit = match token.kind { token::Ident(name, false) if name.is_bool_lit() => { |
