about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/errors.rs
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2024-11-27 20:31:29 +0000
committerGitHub <noreply@github.com>2024-11-27 20:31:29 +0000
commitb4163f08c748da7259c4dda3a0234a88b56c85d5 (patch)
treeb94ea882bb7728fd6d54c6e19647a493c5318999 /compiler/rustc_hir_analysis/src/errors.rs
parent67657da6719ad030fac4d308731d8d3687b3b6e0 (diff)
parent17fb5adf58bda51c03d9a8794ecd622b8b221cb5 (diff)
downloadrust-b4163f08c748da7259c4dda3a0234a88b56c85d5.tar.gz
rust-b4163f08c748da7259c4dda3a0234a88b56c85d5.zip
[`bad_bit_mask`] Fix FP on proc macros (#13736)
`clap-3.1.6` was not compiling on the rustc-perf benchmarks because of
this lint. Also, the user could not allow the lint on the macro itself
because it was checking Exprs, not whatever the input of `bitflags!` is.

```
error: &-masking with zero
   --> src/build/arg_settings.rs:197:1
    |
            (#[allow] here)
197 | / bitflags! {
198 | |     struct Flags: u32 {
199 | |         const REQUIRED         ...
200 | |         const MULTIPLE_OCC     ...
...   |
226 | |     }
227 | | }
    | |_^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
    = note: this error originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
```

changelog:  [`bad_bit_mask`]: Fix FP on procedural macros
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions