diff options
| author | Michael Wright <mikerite@lavabit.com> | 2022-09-08 20:04:43 +0200 |
|---|---|---|
| committer | Michael Wright <mikerite@lavabit.com> | 2022-09-08 20:04:43 +0200 |
| commit | a6d8afd958e35cb0f424de8be11c42116133e23a (patch) | |
| tree | e3f61368dc190fc285d71c7fe625f533dfbb92a0 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | b30c5c05545047305ca56ce4a2a545ce90dc2821 (diff) | |
| download | rust-a6d8afd958e35cb0f424de8be11c42116133e23a.tar.gz rust-a6d8afd958e35cb0f424de8be11c42116133e23a.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
