rust/compiler/rustc_ast/src/util
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
..
comments update cfg(bootstrap) 2025-01-08 21:26:39 +01:00
case.rs Replace some bool params with an enum 2022-10-01 10:13:02 +00:00
classify.rs compiler: rename {ast,hir}::BareFn* to FnPtr* 2025-07-06 15:03:08 -07:00
comments.rs rustc_ast: replace some len-checks + indexing with slice patterns etc. 🧹 2025-01-26 16:26:52 +00:00
literal.rs Deduplicate IntTy/UintTy/FloatTy. 2025-07-31 19:56:11 +10:00
parser.rs Tighten up assignment operator representations. 2025-04-03 10:23:03 +11:00
unicode.rs Remove dependency on slice_internals feature in rustc_ast 2023-01-22 13:05:47 +01:00