diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-07-31 11:52:42 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-07-31 19:56:11 +1000 |
| commit | 618a90d1b0682f687b63cc591ef78814538d5a8f (patch) | |
| tree | 450aefbf9dc73da329eeabfddefdf172d2d8672c /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp | |
| parent | 86ff11e729e780f533030208f1c0ab25e52e6f47 (diff) | |
| download | rust-618a90d1b0682f687b63cc591ef78814538d5a8f.tar.gz rust-618a90d1b0682f687b63cc591ef78814538d5a8f.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
