Add snake case lint note about keyword identifiers which cannot be raw
This commit is contained in:
parent
91f436b456
commit
750c52af73
2 changed files with 3 additions and 0 deletions
|
@ -283,6 +283,7 @@ impl NonSnakeCase {
|
|||
if sc_ident.name.can_be_raw() {
|
||||
("rename the identifier or convert it to a snake case raw identifier", sc_ident.to_string())
|
||||
} else {
|
||||
err.note(&format!("`{}` cannot be used as a raw identifier", sc));
|
||||
("rename the identifier", String::new())
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue