Skip to content

Commit

Permalink
Fall through to 'Unrecognized literal' error
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 13, 2023
1 parent a80570c commit 84cfe09
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
_ => {}
}

Expand Down

0 comments on commit 84cfe09

Please sign in to comment.