about summary refs log tree commit diff
path: root/tests/ui/layout
diff options
context:
space:
mode:
authorLukas Markeffsky <@>2025-02-16 20:26:07 +0100
committerLukas Markeffsky <@>2025-02-18 13:22:45 +0100
commit802b7abab736166fcb12c2567c743e1da6d6806c (patch)
tree1889f9b4c4eda7a0641cc8c89d1750700d9f9963 /tests/ui/layout
parentd0a5bbbb8e394095848e078a3fff72beaad14209 (diff)
downloadrust-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.rs2
-rw-r--r--tests/ui/layout/debug.stderr2
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;