about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-02-15 14:38:52 +0000
committerMichael Goulet <michael@errs.io>2024-02-15 17:20:44 +0000
commit6018e21d8ad072d28dbd2e991dfd8295e2de321f (patch)
tree4df7f43b32d3634fdef8de22eb6060ba0842c349 /tests
parentc763f833d14d31fbe63e0b26370a23a51b4f11c5 (diff)
downloadrust-6018e21d8ad072d28dbd2e991dfd8295e2de321f.tar.gz
rust-6018e21d8ad072d28dbd2e991dfd8295e2de321f.zip
Remove a suggestion that is redundant
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/match/dont-highlight-diverging-arms.rs2
-rw-r--r--tests/ui/match/dont-highlight-diverging-arms.stderr4
-rw-r--r--tests/ui/suggestions/issue-81839.stderr15
-rw-r--r--tests/ui/wf/wf-unsafe-trait-obj-match.stderr4
4 files changed, 5 insertions, 20 deletions
diff --git a/tests/ui/match/dont-highlight-diverging-arms.rs b/tests/ui/match/dont-highlight-diverging-arms.rs
index dc3b4ca9caa..0fb614fa18a 100644
--- a/tests/ui/match/dont-highlight-diverging-arms.rs
+++ b/tests/ui/match/dont-highlight-diverging-arms.rs
@@ -14,4 +14,4 @@ fn main() {
 
         None
     };
-}
\ No newline at end of file
+}
diff --git a/tests/ui/match/dont-highlight-diverging-arms.stderr b/tests/ui/match/dont-highlight-diverging-arms.stderr
index 886c1af13fa..f0aaecbb7ad 100644
--- a/tests/ui/match/dont-highlight-diverging-arms.stderr
+++ b/tests/ui/match/dont-highlight-diverging-arms.stderr
@@ -15,10 +15,6 @@ LL | |         }
    |
    = note:   expected enum `Option<u16>`
            found unit type `()`
-help: consider using a semicolon here, but this will discard any values in the match arms
-   |
-LL |         };
-   |          +
 
 error: aborting due to 1 previous error
 
diff --git a/tests/ui/suggestions/issue-81839.stderr b/tests/ui/suggestions/issue-81839.stderr
index de1ea98554b..34ff16c653a 100644
--- a/tests/ui/suggestions/issue-81839.stderr
+++ b/tests/ui/suggestions/issue-81839.stderr
@@ -4,22 +4,15 @@ error[E0308]: `match` arms have incompatible types
 LL | /     match num {
 LL | |         1 => {
 LL | |             cx.answer_str("hi");
-   | |             -------------------- this is found to be of type `()`
+   | |             --------------------
+   | |             |                  |
+   | |             |                  help: consider removing this semicolon
+   | |             this is found to be of type `()`
 LL | |         }
 LL | |         _ => cx.answer_str("hi"),
    | |              ^^^^^^^^^^^^^^^^^^^ expected `()`, found future
 LL | |     }
    | |_____- `match` arms have incompatible types
-   |
-help: consider removing this semicolon
-   |
-LL -             cx.answer_str("hi");
-LL +             cx.answer_str("hi")
-   |
-help: consider using a semicolon here, but this will discard any values in the match arms
-   |
-LL |     };
-   |      +
 
 error: aborting due to 1 previous error
 
diff --git a/tests/ui/wf/wf-unsafe-trait-obj-match.stderr b/tests/ui/wf/wf-unsafe-trait-obj-match.stderr
index 3b53f55ffdc..e30cb8ff921 100644
--- a/tests/ui/wf/wf-unsafe-trait-obj-match.stderr
+++ b/tests/ui/wf/wf-unsafe-trait-obj-match.stderr
@@ -11,10 +11,6 @@ LL | |     }
    |
    = note: expected reference `&S`
               found reference `&R`
-help: consider using a semicolon here, but this will discard any values in the match arms
-   |
-LL |     };
-   |      +
 
 error[E0038]: the trait `Trait` cannot be made into an object
   --> $DIR/wf-unsafe-trait-obj-match.rs:26:21