rust/compiler/rustc_ast/src
Nicholas Nethercote 1901dde97b Deduplicate IntTy/UintTy/FloatTy.
There are identical definitions in `rustc_type_ir` and `rustc_ast`. This
commit removes them and places a single definition in `rustc_ast_ir`.
This requires adding `rust_span` as a dependency of `rustc_ast_ir`, but
means a bunch of silly conversion functions can be removed.

The one annoying wrinkle is that the old version had differences in
their `Debug` impls, e.g. one printed `u32` while the other printed
`U32`. Some compiler error messages rely on the former (yuk), and some
clippy output depends on the latter. So the commit also changes clippy
to not rely on `Debug` and just implement what it needs itself.
2025-07-31 19:56:11 +10:00
..
attr Port #[automatically_derived] to the new attribute parsing infrastructure 2025-07-12 17:48:50 +02:00
expand Define datastructures for #[cfg] attribute, move StrippedCfgItem 2025-07-15 09:01:00 +02:00
util Deduplicate IntTy/UintTy/FloatTy. 2025-07-31 19:56:11 +10:00
ast.rs Deduplicate IntTy/UintTy/FloatTy. 2025-07-31 19:56:11 +10:00
ast_traits.rs completely deduplicate Visitor and MutVisitor 2025-06-19 17:50:44 +08:00
entry.rs remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
format.rs Implement AST visitors using a derive macro. 2025-07-22 01:52:34 +00:00
lib.rs Remove unused feature gates 2025-06-28 23:36:46 +00:00
mut_visit.rs Implement AST visitors using a derive macro. 2025-07-22 01:52:34 +00:00
node_id.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
ptr.rs Reduce P<T> to a typedef of Box<T>. 2025-05-27 13:29:24 +10:00
token.rs Add Ident::is_non_reserved_ident 2025-06-26 18:11:14 +00:00
tokenstream.rs Implement AST visitors using a derive macro. 2025-07-22 01:52:34 +00:00
visit.rs Implement AST visitors using a derive macro. 2025-07-22 01:52:34 +00:00