about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMichael Wright <mikerite@lavabit.com>2022-09-08 20:04:43 +0200
committerMichael Wright <mikerite@lavabit.com>2022-09-08 20:04:43 +0200
commita6d8afd958e35cb0f424de8be11c42116133e23a (patch)
treee3f61368dc190fc285d71c7fe625f533dfbb92a0 /compiler/rustc_codegen_llvm/src/builder.rs
parentb30c5c05545047305ca56ce4a2a545ce90dc2821 (diff)
downloadrust-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_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions