bors
b52fb5234c
Auto merge of #9446 - mikerite:fix-9431-2, r=giraffate
...
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
2022-09-08 23:48:08 +00:00
..
2022-09-05 22:25:57 +09:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-02 13:03:11 -05:00
2022-09-08 21:27:09 +02:00
2022-08-31 09:24:45 -04:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-05 22:25:57 +09:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-01 23:23:56 +02:00
2022-09-05 22:25:57 +09:00
2022-08-31 09:24:45 -04:00
2022-08-16 11:10:13 +10:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-04 17:20:54 +02:00
2022-08-31 09:24:45 -04:00
2022-08-31 09:24:45 -04:00
2022-09-08 21:27:09 +02:00
2022-08-31 09:24:45 -04:00
2022-09-05 22:25:57 +09:00
2022-08-31 09:24:45 -04:00
2022-09-08 21:27:09 +02:00
2022-09-06 03:16:29 +00:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-05 22:25:57 +09:00
2022-09-05 22:25:57 +09:00
2022-08-31 09:24:45 -04:00
2022-09-05 22:25:57 +09:00
2022-08-31 09:24:45 -04:00
2022-09-08 21:27:09 +02:00
2022-09-02 13:03:11 -05:00
2022-09-08 21:27:09 +02:00
2022-09-03 00:16:28 +02:00
2022-09-08 21:27:09 +02:00
2022-09-02 13:03:11 -05:00
2022-09-01 23:23:56 +02:00
2022-08-31 09:24:45 -04:00
2022-08-31 09:24:45 -04:00
2022-09-08 12:04:55 -03:00
2022-08-31 09:24:45 -04:00
2022-08-31 09:24:45 -04:00
2022-08-31 09:24:45 -04:00
2022-09-08 12:04:55 -03:00
2022-09-01 23:23:56 +02:00
2022-08-31 09:24:45 -04:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-08-31 09:24:45 -04:00
2022-09-05 22:25:57 +09:00
2022-09-05 22:25:57 +09:00
2022-09-05 22:25:57 +09:00
2022-09-05 22:25:57 +09:00
2022-09-05 22:25:57 +09:00
2022-09-05 22:25:57 +09:00
2022-09-08 21:27:09 +02:00
2022-09-02 13:03:11 -05:00
2022-08-31 09:24:45 -04:00
2022-08-31 09:24:45 -04:00
2022-09-05 22:25:57 +09:00
2022-09-02 13:03:11 -05:00
2022-09-02 13:03:11 -05:00
2022-09-08 21:27:09 +02:00
2022-09-02 13:03:11 -05:00
2022-09-02 13:03:11 -05:00
2022-09-05 22:25:57 +09:00
2022-08-16 13:41:34 +10:00
2022-09-08 21:27:09 +02:00
2022-09-02 13:03:11 -05:00
2022-09-08 21:27:09 +02:00
2022-08-31 09:24:45 -04:00
2022-09-02 13:03:11 -05:00
2022-09-05 22:25:57 +09:00
2022-09-08 21:27:09 +02:00
2022-09-06 03:16:29 +00:00
2022-09-08 20:04:43 +02:00
2022-08-31 09:24:45 -04:00
2022-09-05 22:25:57 +09:00
2022-08-26 14:27:08 +02:00
2022-08-31 09:24:45 -04:00
2022-08-31 09:24:45 -04:00
2022-09-05 14:20:25 +10:00
2022-09-08 21:27:09 +02:00
2022-08-31 09:24:45 -04:00
2022-09-05 22:25:57 +09:00
2022-09-06 03:16:29 +00:00
2022-09-05 22:25:57 +09:00
2022-09-05 22:25:57 +09:00
2022-09-08 21:27:09 +02:00
2022-09-05 22:25:57 +09:00
2022-09-05 14:20:25 +10:00
2022-08-31 09:24:45 -04:00
2022-09-05 22:25:57 +09:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-02 13:03:11 -05:00
2022-09-05 22:25:57 +09:00
2022-09-05 22:31:02 +09:00
2022-08-31 09:24:45 -04:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00
2022-09-05 22:25:57 +09:00
2022-09-08 21:27:09 +02:00
2022-09-08 21:27:09 +02:00