diff options
| author | Lukas Markeffsky <@> | 2025-02-16 20:26:07 +0100 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2025-02-18 13:22:45 +0100 |
| commit | 802b7abab736166fcb12c2567c743e1da6d6806c (patch) | |
| tree | 1889f9b4c4eda7a0641cc8c89d1750700d9f9963 /tests/ui/layout | |
| parent | d0a5bbbb8e394095848e078a3fff72beaad14209 (diff) | |
| download | rust-802b7abab736166fcb12c2567c743e1da6d6806c.tar.gz rust-802b7abab736166fcb12c2567c743e1da6d6806c.zip | |
clean up layout error diagnostics
- group the fluent slugs together - reword (internal-only) "too generic" error to be more in line with the other errors
Diffstat (limited to 'tests/ui/layout')
| -rw-r--r-- | tests/ui/layout/debug.rs | 2 | ||||
| -rw-r--r-- | tests/ui/layout/debug.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/layout/debug.rs b/tests/ui/layout/debug.rs index c0adf9ec677..b87a1d2031d 100644 --- a/tests/ui/layout/debug.rs +++ b/tests/ui/layout/debug.rs @@ -86,4 +86,4 @@ union EmptyUnion {} //~ ERROR: has an unknown layout // Test the error message of `LayoutError::TooGeneric` // (this error is never emitted to users). #[rustc_layout(debug)] -type TooGeneric<T> = T; //~ ERROR: does not have a fixed size +type TooGeneric<T> = T; //~ ERROR: does not have a fixed layout diff --git a/tests/ui/layout/debug.stderr b/tests/ui/layout/debug.stderr index d64dee4e27f..0daf2d3b9e7 100644 --- a/tests/ui/layout/debug.stderr +++ b/tests/ui/layout/debug.stderr @@ -596,7 +596,7 @@ error: the type has an unknown layout LL | union EmptyUnion {} | ^^^^^^^^^^^^^^^^ -error: `T` does not have a fixed size +error: the type `T` does not have a fixed layout --> $DIR/debug.rs:89:1 | LL | type TooGeneric<T> = T; |
