diff options
| author | bors <bors@rust-lang.org> | 2018-08-07 11:00:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-08-07 11:00:07 +0000 |
| commit | 18925dee25ce649562d203e72068e3a57b60b153 (patch) | |
| tree | cefb7c09f52e823aa3c03dc072d29cba51e52c2a /src/libsyntax/parse | |
| parent | 9e472c2acea2b7714985390abb6b7fe420a4f346 (diff) | |
| parent | d9e9230b1d3ccb8eb0fe57d0e0a29e08f09292c3 (diff) | |
| download | rust-18925dee25ce649562d203e72068e3a57b60b153.tar.gz rust-18925dee25ce649562d203e72068e3a57b60b153.zip | |
Auto merge of #53150 - kennytm:rollup, r=kennytm
Rollup of 10 pull requests Successful merges: - #52885 (Remove some unused method arguments from typeck) - #52886 (cleanup: Remove `Def::GlobalAsm`) - #53028 (Building librustc_codegen_llvm in a separate directory) - #53052 (fixed broken links to char) - #53060 (Change rustdoc style so fully qualified name does not overlap src link) - #53068 (Rename Executor trait to Spawn) - #53093 (Enable macros to pass $:literal to another macro) - #53107 (Remove references to `StaticMutex` which got removed a while ago) - #53135 (Rust 2018: Disable catch_expr, not targeted for 2018 edition) - #53139 (set emit_debug_gdb_scripts: false for riscv32imac-unknown-none target)
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index c449cc0a652..1d0c6b5317a 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -302,6 +302,10 @@ impl Token { BinOp(Minus) => true, Ident(ident, false) if ident.name == keywords::True.name() => true, Ident(ident, false) if ident.name == keywords::False.name() => true, + Interpolated(ref nt) => match nt.0 { + NtLiteral(..) => true, + _ => false, + }, _ => false, } } |
