Skip to content

Commit

Permalink
Parse rustc's representation of macro expansion error
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 13, 2023
1 parent 41b83c8 commit a80570c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,10 @@ 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);
}
_ => {}
}

Expand Down

0 comments on commit a80570c

Please sign in to comment.