Skip to content

Commit

Permalink
Merge pull request #1776 from dtolnay/discraw
Browse files Browse the repository at this point in the history
Parse raw addr syntax in discriminants
  • Loading branch information
dtolnay authored Nov 1, 2024
2 parents 12b0d1d + ce9f4b5 commit 43eaf32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ pub(crate) mod parsing {
loop {
if initial {
if consume![&] {
input.parse::<Option<Token![mut]>>()?;
initial = consume![mut] || !consume![raw] || consume![const] || consume![mut];
} else if consume![if] || consume![match] || consume![while] {
depth += 1;
} else if input.parse::<Option<Lit>>()?.is_some()
Expand Down

0 comments on commit 43eaf32

Please sign in to comment.