rust/compiler/rustc_passes
Matthias Krüger 83ed227a8f
Rollup merge of #94580 - xFrednet:55112-only-reason-in-lint-attr, r=lcnr
Emit `unused_attributes` if a level attr only has a reason

Fixes a comment from `compiler/rustc_lint/src/levels.rs`. Lint level attributes that only contain a reason will also trigger the `unused_attribute` lint. The lint now also checks for the `expect` lint level.

That's it, have a great rest of the day for everyone reasoning this 🙃

cc: #55112
2022-03-08 11:04:52 +01:00
..
src Rollup merge of #94580 - xFrednet:55112-only-reason-in-lint-attr, r=lcnr 2022-03-08 11:04:52 +01:00
Cargo.toml