1
Fork 0
rust/compiler/rustc_lint/src
bors 6ce76091c7 Auto merge of #96745 - ehuss:even-more-attribute-validation, r=cjgillot
Visit attributes in more places.

This adds 3 loosely related changes (I can split PRs if desired):

- Attribute checking on pattern struct fields.
- Attribute checking on struct expression fields.
- Lint level visiting on pattern struct fields, struct expression fields, and generic parameters.

There are still some lints which ignore lint levels in various positions. This is a consequence of how the lints themselves are implemented. For example, lint levels on associated consts don't work with `unused_braces`.
2022-08-15 05:50:54 +00:00
..
nonstandard_style
array_into_iter.rs lint: port array-into-iter diagnostics 2022-06-30 08:59:19 +01:00
builtin.rs Rollup merge of #99911 - cjgillot:no-guess, r=davidtwco 2022-08-01 16:49:31 +02:00
context.rs Improve position named arguments lint underline and formatting names 2022-08-02 00:20:44 -06:00
early.rs Add missing visit_pat_field in early lint visitor. 2022-08-11 21:48:39 -07:00
enum_intrinsics_non_enums.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
expect.rs lint: port expectation diagnostics 2022-06-30 08:59:21 +01:00
hidden_unicode_codepoints.rs lint: port hidden unicode codepoints diagnostics 2022-06-30 08:59:21 +01:00
internal.rs lint: add bad opt access internal lint 2022-07-27 11:24:27 +01:00
late.rs Simplify rustc_hir::intravisit::Visitor::visit_variant_data. 2022-08-11 10:54:01 +10:00
levels.rs Add visitors for PatField and ExprField. 2022-08-11 21:48:39 -07:00
lib.rs Adjust cfgs 2022-08-12 16:28:15 -04:00
methods.rs lint: port CString ptr diagnostics 2022-06-30 08:59:21 +01:00
non_ascii_idents.rs lint: port non-ascii-idents diagnostics 2022-06-30 08:59:21 +01:00
non_fmt_panic.rs lint: port non-fmt-panic diagnostics 2022-06-30 08:59:21 +01:00
nonstandard_style.rs Add visitors for PatField and ExprField. 2022-08-11 21:48:39 -07:00
noop_method_call.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
pass_by_value.rs lint: port pass-by-value diagnostics 2022-06-30 08:59:21 +01:00
passes.rs Simplify rustc_ast::visit::Visitor::visit_poly_trait_ref. 2022-08-11 11:10:01 +10:00
redundant_semicolon.rs lint: port redundant semicolons diagnostics 2022-06-30 08:59:21 +01:00
tests.rs Update to last upstream version 2021-07-08 17:14:28 +02:00
traits.rs lint: port drop trait/glue diagnostics 2022-06-30 08:59:21 +01:00
types.rs Make Node::ExprField a child of Node::Expr. 2022-08-11 21:48:39 -07:00
unused.rs Do not consider method call receiver as an argument in AST. 2022-08-10 18:34:54 +02:00