b52fb5234c
Fix `range_{plus,minus}_one` bad suggestions Fixes #9431. The current `range_plus_one` and `range_minus_one` suggestions are completely incorrect when macros are involved. This commit resolves this by disabling the lints for any range expression that is expanded from a macro. The reasons for this are that it is very difficult to create a correct suggestion in this case and that false negatives are less important for pedantic lints. changelog: Fix `range_{plus,minus}_one` bad suggestions |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |