-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl fmt::Display for u32
compiles to large binary
#118940
Comments
At present, both |
My target is
wasm32-unknown-unknown
but I think it can be applied to any embedded systems. I just want to define panic handler, but formattingcore::panic::Location
costs amlost 3 KiB in binary. This is because inefficientimpl Display for u32
. Also see: https:/dtolnay/itoaThis is mostly because this line:
rust/library/core/src/fmt/num.rs
Line 277 in 1aa6aef
Could we have something like specialization for more simpler
impl Display for $num
?The text was updated successfully, but these errors were encountered: