From 84cfe09484f6468bc85fb01db11c6a10fcb2d988 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 12 Sep 2023 23:53:38 -0600 Subject: [PATCH] Fall through to 'Unrecognized literal' error --- src/lit.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lit.rs b/src/lit.rs index 4bb2e6a8e..5f61fbfed 100644 --- a/src/lit.rs +++ b/src/lit.rs @@ -1089,10 +1089,7 @@ mod value { // c"...", cr"...", cr#"..."# // TODO: add a Lit::CStr variant? b'c' => return Lit::Verbatim(token), - b'(' => { - assert_eq!(repr, "(/*ERROR*/)"); - return Lit::Verbatim(token); - } + b'(' if repr == "(/*ERROR*/)" => return Lit::Verbatim(token), _ => {} }