Skip to content

Commit

Permalink
Merge pull request #333 from dtolnay/validate
Browse files Browse the repository at this point in the history
Delete unreachable cases from raw identifier check
  • Loading branch information
dtolnay committed Jun 20, 2022
2 parents d918477 + 4be2a86 commit c1d32ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fallback.rs
Expand Up @@ -701,7 +701,7 @@ fn validate_ident(string: &str, raw: bool) {

if raw {
match string {
"" | "_" | "super" | "self" | "Self" | "crate" | "$crate" | "{{root}}" => {
"_" | "super" | "self" | "Self" | "crate" => {
panic!("`{}` cannot be a raw identifier", string);
}
_ => {}
Expand Down

0 comments on commit c1d32ce

Please sign in to comment.