about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/passes.rs
AgeCommit message (Collapse)AuthorLines
2023-09-28Remove `rustc_lint_defs::lint_array`DaniPopes-2/+2
2023-09-27Use absolute paths in rustc_lint::passes macrosAlex Macleod-79/+77
A cosmetic change, so the callsite doesn't have to import things
2023-08-31diagnostics: avoid wrong `unused_parens` on `x as (T) < y`Michael Howell-0/+1
2023-01-28Take a LocalDefId in hir::Visitor::visit_fn.Camille GILLOT-1/+2
2023-01-14fix issues in unused lintyukang-0/+3
2022-12-12Reinstate `{Early,Late}LintPassObjects`.Nicholas Nethercote-0/+10
I removed these in #105291, and subsequently learned they are necessary for performance. This commit reinstates them with the new and more descriptive names `RuntimeCombined{Early,Late}LintPass`, similar to the existing passes like `BuiltinCombinedEarlyLintPass`. It also adds some comments, particularly emphasising how we have ways to combine passes at both compile-time and runtime. And it moves some comments around.
2022-12-07Rename `$passes` as `$pass` in several macros.Nicholas Nethercote-14/+14
Because it makes more sense that way.
2022-12-07Add some useful comments.Nicholas Nethercote-0/+4
2022-12-07Remove `$hir` argument from `late_lint_methods!`.Nicholas Nethercote-38/+38
Because it's always `'tcx`.
2022-12-02Auto merge of #104863 - nnethercote:reduce-lint-macros, r=cjgillotbors-19/+6
Reduce macro usage for lints r? `@cjgillot`
2022-12-02Remove some unnecessary `Send` bounds.Nicholas Nethercote-3/+2
Required to get the parallel compiler building again.
2022-12-02Eliminate four unnecessary lint macros.Nicholas Nethercote-16/+4
The lint definitions use macros heavily. This commit merges some of them that are split unnecessarily. I find the reduced indirection makes it easier to imagine what the generated code will look like.
2022-12-01rustc_hir: Relax lifetime requirements on `Visitor::visit_path`Vadim Petrochenkov-1/+1
2022-09-12Remove unused argument from `check_mac_def`.Nicholas Nethercote-1/+1
2022-09-12Remove unused argument from `visit_poly_trait_ref`.Nicholas Nethercote-1/+1
2022-09-12Remove unused span argument from `check_mod` and `process_mod`.Nicholas Nethercote-1/+1
2022-09-06Allow lint passes to be bound by `TyCtxt`Jason Newcomb-1/+1
2022-08-29Remove `Sync` requirement from lint pass objects as they are created on demandJason Newcomb-3/+2
2022-08-11Simplify `rustc_ast::visit::Visitor::visit_poly_trait_ref`.Nicholas Nethercote-2/+1
It is passed an argument that is never used.
2022-07-29Remove some late `check_*` functions.Nicholas Nethercote-19/+1
They're not used by rustc or clippy.
2022-07-29Remove some early `check_*` functions.Nicholas Nethercote-19/+0
They're not used by rustc or clippy.
2021-09-30Do not pass hir::Crate to lints.Camille GILLOT-2/+2
2021-07-25Add inferred args to typeckkadmin-0/+1
2021-03-16ast/hir: Rename field-related structuresVadim Petrochenkov-2/+2
StructField -> FieldDef ("field definition") Field -> ExprField ("expression field", not "field expression") FieldPat -> PatField ("pattern field", not "field pattern") Also rename visiting and other methods working on them.
2021-02-18ast: Stop using `Mod` in `Crate`Vadim Petrochenkov-2/+0
Crate root is sufficiently different from `mod` items, at least at syntactic level. Also remove customization point for "`mod` item or crate root" from AST visitors.
2020-10-16Add check_generic_arg early passSantiago Pastorino-0/+2
2020-08-30mv compiler to compiler/mark-0/+285