about summary refs log tree commit diff
path: root/src/test/ui/namespace
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-08-09 20:29:39 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-08-10 12:04:10 -0700
commiteef284be59bbbe50e4d5369542a80e1ccd2ba7ab (patch)
treee071f85f8fcfeb6ca763eb37ca0d1b2d9e9901a5 /src/test/ui/namespace
parent18f3be7704a4ec7976fcd1272c728974243d29bd (diff)
Tweak ordering of suggestions
Modify logic to make it easier to follow and recover labels that would
otherwise be lost.
Diffstat (limited to 'src/test/ui/namespace')
-rw-r--r--src/test/ui/namespace/namespace-mix.stderr16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/namespace/namespace-mix.stderr b/src/test/ui/namespace/namespace-mix.stderr
index 636789c9cc3..2e25ffa168f 100644
--- a/src/test/ui/namespace/namespace-mix.stderr
+++ b/src/test/ui/namespace/namespace-mix.stderr
@@ -53,14 +53,14 @@ LL |         TV(),
 LL |     check(m7::V);
    |           ^^^^^
    |
-help: a tuple variant with a similar name exists
-   |
-LL |     check(m7::TV);
-   |               ^^
 help: use struct literal syntax instead
    |
 LL |     check(m7::V {});
    |           ^^^^^^^^
+help: a tuple variant with a similar name exists
+   |
+LL |     check(m7::TV);
+   |               ^^
 help: consider importing one of these items instead
    |
 LL | use m8::V;
@@ -79,14 +79,14 @@ LL |     check(xm7::V);
 LL |         TV(),
    |         ---- similarly named tuple variant `TV` defined here
    |
-help: a tuple variant with a similar name exists
-   |
-LL |     check(xm7::TV);
-   |                ^^
 help: use struct literal syntax instead
    |
 LL |     check(xm7::V { /* fields */ });
    |           ^^^^^^^^^^^^^^^^^^^^^^^
+help: a tuple variant with a similar name exists
+   |
+LL |     check(xm7::TV);
+   |                ^^
 help: consider importing one of these items instead
    |
 LL | use m8::V;