diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-16 20:15:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-16 20:15:54 +0200 |
| commit | 82952da3608e9028e273acd5841b4d8938503563 (patch) | |
| tree | 864af5a51f25696816af6446a7f1263b466ff757 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 87c31feab80f91198b21d1bcaa84546b2f0f2800 (diff) | |
| parent | 99af761632420b2778e2b44465a396e28adf6103 (diff) | |
| download | rust-82952da3608e9028e273acd5841b4d8938503563.tar.gz rust-82952da3608e9028e273acd5841b4d8938503563.zip | |
Rollup merge of #131730 - zlfn:master, r=tgross35
Refactor some `core::fmt` macros While looking at the macros in `core::fmt`, find that the macros are not well organized. So I created a patch to fix it. [`core/src/fmt/num.rs`](https://github.com/rust-lang/rust/blob/master/library/core/src/fmt/num.rs) * `impl_int!` and `impl_uint!` macro are **completly** same. It would be better to combine for readability * `impl_int!` has a problem that the indenting is not uniform. It has unified into 4 spaces * `debug` macro in `num` renamed to `impl_Debug`, And it was moved to a position close to the `impl_Display`. [`core/src/fmt/float.rs`](https://github.com/rust-lang/rust/blob/master/library/core/src/fmt/float.rs) [`core/src/fmt/nofloat.rs`](https://github.com/rust-lang/rust/blob/master/library/core/src/fmt/nofloat.rs) * `floating` macro now receive multiple idents at once. It makes the code cleaner. * Modified the panic message more clearly in fallback function of `cfg(no_fp_fmt_parse)`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
