]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_parse/src/parser/pat.rs
Rollup merge of #104433 - TaKO8Ki:fix-104392, r=estebank
[rust.git] / compiler / rustc_parse / src / parser / pat.rs
index 52c11b4e35f34372b59e21ac27037cc38e9a7269..b3af37a5f7029241d538fe34d1a31abdb179b340 100644 (file)
@@ -420,7 +420,7 @@ fn parse_pat_with_range_pat(
                 err.span_label(self_.token.span, format!("expected {}", expected));
                 err
             });
-            PatKind::Lit(self.mk_expr(lo, ExprKind::Lit(lit)))
+            PatKind::Lit(self.mk_expr(lo, ExprKind::Lit(lit.token_lit)))
         } else {
             // Try to parse everything else as literal with optional minus
             match self.parse_literal_maybe_minus() {