Closed
Description
We currently have a convention that unused variables that start with _
do not cause the unused variable lint to fire.
Should we put in a similar rule for the non_snake_case
lint? (Perhaps just for variables with two leading underscores, __
, ?)
In my particular case, I am using things like format!("foo {N}", N=name)
, and the expanded code causes the non-snake-case lint to fire, because it generates names like __argN
...
I could add an #[allow]
annotation to the code in question, but this seems unfortunate to me. (Am I the only one who finds format strings easier to read if I use short capital letters for the named substitutions?)