diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2022-05-07 15:23:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-07 15:23:44 +0200 |
| commit | c29f8575acae4b1e533f630b51a639758919911c (patch) | |
| tree | 0069dcecc6f47d711990fa5b67ec039dedd56478 /src/test/ui/layout/debug.rs | |
| parent | 613920562215286a84dae65e63b7aff7061f7cdd (diff) | |
| parent | d4557529704e0ec6956bb1fadf666abe9b1a9a61 (diff) | |
| download | rust-c29f8575acae4b1e533f630b51a639758919911c.tar.gz rust-c29f8575acae4b1e533f630b51a639758919911c.zip | |
Rollup merge of #96581 - RalfJung:debug-size-align, r=oli-obk
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`````
Diffstat (limited to 'src/test/ui/layout/debug.rs')
| -rw-r--r-- | src/test/ui/layout/debug.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/layout/debug.rs b/src/test/ui/layout/debug.rs index 299151df664..a282e71235c 100644 --- a/src/test/ui/layout/debug.rs +++ b/src/test/ui/layout/debug.rs @@ -1,4 +1,4 @@ -// normalize-stderr-test "pref: Align \{\n *pow2: [1-3],\n *\}" -> "pref: $$PREF_ALIGN" +// normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN" #![feature(never_type, rustc_attrs, type_alias_impl_trait)] #![crate_type = "lib"] |
