about summary refs log tree commit diff
path: root/compiler/rustc_ast_passes/src/node_count.rs
AgeCommit message (Collapse)AuthorLines
2024-11-15Merge `-Zhir-stats` into `-Zinput-stats`Sam Estep-129/+0
2024-10-24Pass Ident by reference in ast Visitormaxcabrajac-1/+1
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-05-30Rename HIR `TypeBinding` to `AssocItemConstraint` and related cleanupLeón Orell Valerian Liehr-2/+2
2024-04-25ast: Generalize item kind visitingVadim Petrochenkov-1/+1
And avoid duplicating logic for visiting `Item`s with different kinds (regular, associated, foreign).
2022-09-12Remove unused span argument from `walk_fn`.Nicholas Nethercote-2/+2
2022-09-12Remove `path_span` argument to the `visit_path_segment` methods.Nicholas Nethercote-2/+2
The `visit_path_segment` method of both the AST and HIR visitors has a `path_span` argument that isn't necessary. This commit removes it. There are two very small and inconsequential functional changes. - One call to `NodeCollector::insert` now is passed a path segment identifier span instead of a full path span. This span is only used in a panic message printed in the case of an internal compiler bug. - Likewise, one call to `LifetimeCollectVisitor::record_elided_anchor` now uses a path segment identifier span instead of a full path span. This span is used to make some `'_` lifetimes.
2022-08-11Simplify `rustc_ast::visit::Visitor::visit_poly_trait_ref`.Nicholas Nethercote-2/+2
It is passed an argument that is never used.
2022-08-11Simplify `rustc_ast::visit::Visitor::visit_enum_def`.Nicholas Nethercote-9/+3
It's passed three arguments that are never used.
2022-07-29Remove `visit_name` from the AST visitor.Nicholas Nethercote-2/+1
Because the default is empty and it's never overridden. This means `walk_ident` can also be removed, because it does nothing.
2022-05-20Introduce LifetimeCtxt.Camille GILLOT-1/+1
2022-04-21rename to `BoundKind` and add commentsSparrowLii-1/+1
2022-04-20Add `BoundCtxt` in `visit_param_bounds` to check questions in boundsSparrowLii-1/+1
2022-01-17add eq constraints on associated constantskadmin-2/+2
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-4/+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.
2021-02-01Box the biggest ast::ItemKind variantsDániel Buga-1/+1
2020-11-03rustc_ast: `visit_mac` -> `visit_mac_call`Vadim Petrochenkov-1/+1
2020-11-03rustc_ast: Do not panic by default when visiting macro callsVadim Petrochenkov-2/+2
2020-08-30mv compiler to compiler/mark-0/+140