Skip to content

Commit 84cfe09

Browse files
committed
Fall through to 'Unrecognized literal' error
1 parent a80570c commit 84cfe09

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/lit.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,10 +1089,7 @@ mod value {
10891089
// c"...", cr"...", cr#"..."#
10901090
// TODO: add a Lit::CStr variant?
10911091
b'c' => return Lit::Verbatim(token),
1092-
b'(' => {
1093-
assert_eq!(repr, "(/*ERROR*/)");
1094-
return Lit::Verbatim(token);
1095-
}
1092+
b'(' if repr == "(/*ERROR*/)" => return Lit::Verbatim(token),
10961093
_ => {}
10971094
}
10981095

0 commit comments

Comments
 (0)