We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52888a7 commit 798da23Copy full SHA for 798da23
src/libsyntax/parse/parser.rs
@@ -1669,6 +1669,12 @@ impl<'a> Parser<'a> {
1669
/// Matches token_lit = LIT_INTEGER | ...
1670
pub fn lit_from_token(&mut self, tok: &token::Token) -> Lit_ {
1671
match *tok {
1672
+ token::Interpolated(token::NtExpr(ref v)) => {
1673
+ match v.node {
1674
+ ExprLit(ref lit) => { lit.node.clone() }
1675
+ _ => { self.unexpected_last(tok); }
1676
+ }
1677
1678
token::Literal(lit, suf) => {
1679
let (suffix_illegal, out) = match lit {
1680
token::Byte(i) => (true, LitByte(parse::byte_lit(i.as_str()).val0())),
0 commit comments