mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-12 07:10:02 +00:00

make Size and Align debug-printing a bit more compact In particular in `{:#?}`-mode, these take up a lot of space, so I think this is the better alternative (even though it is a bit longer in `{:?}` mode, I think it is still more readable). We could make it even smaller by deviating further from what the actual code looks like, e.g. via something like `Size(4 bytes)`. Not sure what people would think about that? Cc `````@oli-obk`````
For more information about how rustc works, see the rustc dev guide.