diff options
| author | bors <bors@rust-lang.org> | 2022-09-08 23:48:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-08 23:48:08 +0000 |
| commit | b52fb5234cd7c11ecfae51897a6f7fa52e8777fc (patch) | |
| tree | d561d2db54c189850087bff9df77ccda30ba8424 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 32fa80dda57f3c468bb290657eb04720144506ab (diff) | |
| parent | a6d8afd958e35cb0f424de8be11c42116133e23a (diff) | |
| download | rust-b52fb5234cd7c11ecfae51897a6f7fa52e8777fc.tar.gz rust-b52fb5234cd7c11ecfae51897a6f7fa52e8777fc.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
