about summary refs log tree commit diff
path: root/tests/ui/pattern
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-13 03:21:25 +0000
committerJubilee Young <workingjubilee@gmail.com>2025-02-14 00:44:10 -0800
commit6d71251cf9e40326461f90f8ff9a7024706aea87 (patch)
tree9632ff91f2996a68f9d9c4ebdb3f3ebf8cfa64f4 /tests/ui/pattern
parentf6406dfd4efceb6f713e503aecda587304135ed9 (diff)
downloadrust-6d71251cf9e40326461f90f8ff9a7024706aea87.tar.gz
rust-6d71251cf9e40326461f90f8ff9a7024706aea87.zip
Trim suggestion parts to the subset that is purely additive
Diffstat (limited to 'tests/ui/pattern')
-rw-r--r--tests/ui/pattern/pat-tuple-field-count-cross.stderr2
-rw-r--r--tests/ui/pattern/pat-tuple-overfield.stderr2
-rw-r--r--tests/ui/pattern/patkind-ref-binding-issue-114896.stderr2
-rw-r--r--tests/ui/pattern/patkind-ref-binding-issue-122415.stderr2
-rw-r--r--tests/ui/pattern/usefulness/doc-hidden-fields.stderr18
-rw-r--r--tests/ui/pattern/usefulness/stable-gated-fields.stderr6
6 files changed, 16 insertions, 16 deletions
diff --git a/tests/ui/pattern/pat-tuple-field-count-cross.stderr b/tests/ui/pattern/pat-tuple-field-count-cross.stderr
index 931db37c78e..e164281826b 100644
--- a/tests/ui/pattern/pat-tuple-field-count-cross.stderr
+++ b/tests/ui/pattern/pat-tuple-field-count-cross.stderr
@@ -122,7 +122,7 @@ LL | pub enum E1 { Z0, Z1(), S(u8, u8, u8) }
 help: use the tuple variant pattern syntax instead
    |
 LL |         E1::Z1() => {}
-   |         ~~~~~~~~
+   |               ++
 help: a unit variant with a similar name exists
    |
 LL -         E1::Z1 => {}
diff --git a/tests/ui/pattern/pat-tuple-overfield.stderr b/tests/ui/pattern/pat-tuple-overfield.stderr
index ea3663ea40e..b19b9d19347 100644
--- a/tests/ui/pattern/pat-tuple-overfield.stderr
+++ b/tests/ui/pattern/pat-tuple-overfield.stderr
@@ -156,7 +156,7 @@ LL |         E1::Z1 => {}
 help: use the tuple variant pattern syntax instead
    |
 LL |         E1::Z1() => {}
-   |         ~~~~~~~~
+   |               ++
 help: a unit variant with a similar name exists
    |
 LL -         E1::Z1 => {}
diff --git a/tests/ui/pattern/patkind-ref-binding-issue-114896.stderr b/tests/ui/pattern/patkind-ref-binding-issue-114896.stderr
index e9c2fccaba2..a6623c6306b 100644
--- a/tests/ui/pattern/patkind-ref-binding-issue-114896.stderr
+++ b/tests/ui/pattern/patkind-ref-binding-issue-114896.stderr
@@ -7,7 +7,7 @@ LL |         b.make_ascii_uppercase();
 help: consider changing this to be mutable
    |
 LL |         let &(mut b) = a;
-   |             ~~~~~  +
+   |              ++++  +
 
 error: aborting due to 1 previous error
 
diff --git a/tests/ui/pattern/patkind-ref-binding-issue-122415.stderr b/tests/ui/pattern/patkind-ref-binding-issue-122415.stderr
index e93b8bbaccc..7fa65e3d6bd 100644
--- a/tests/ui/pattern/patkind-ref-binding-issue-122415.stderr
+++ b/tests/ui/pattern/patkind-ref-binding-issue-122415.stderr
@@ -7,7 +7,7 @@ LL |     mutate(&mut x);
 help: consider changing this to be mutable
    |
 LL | fn foo(&(mut x): &i32) {
-   |        ~~~~~  +
+   |         ++++  +
 
 error: aborting due to 1 previous error
 
diff --git a/tests/ui/pattern/usefulness/doc-hidden-fields.stderr b/tests/ui/pattern/usefulness/doc-hidden-fields.stderr
index 158eac9a1bd..d7e1b54e749 100644
--- a/tests/ui/pattern/usefulness/doc-hidden-fields.stderr
+++ b/tests/ui/pattern/usefulness/doc-hidden-fields.stderr
@@ -18,15 +18,15 @@ LL |     let HiddenStruct { one } = HiddenStruct::default();
 help: include the missing field in the pattern and ignore the inaccessible fields
    |
 LL |     let HiddenStruct { one, two, .. } = HiddenStruct::default();
-   |                           ~~~~~~~~~~~
+   |                           +++++++++
 help: if you don't care about this missing field, you can explicitly ignore it
    |
 LL |     let HiddenStruct { one, two: _, .. } = HiddenStruct::default();
-   |                           ~~~~~~~~~~~~~~
+   |                           ++++++++++++
 help: or always ignore missing fields here
    |
 LL |     let HiddenStruct { one, .. } = HiddenStruct::default();
-   |                           ~~~~~~
+   |                           ++++
 
 error[E0027]: pattern does not mention field `two`
   --> $DIR/doc-hidden-fields.rs:21:9
@@ -37,15 +37,15 @@ LL |     let HiddenStruct { one, hide } = HiddenStruct::default();
 help: include the missing field in the pattern
    |
 LL |     let HiddenStruct { one, hide, two } = HiddenStruct::default();
-   |                                 ~~~~~~~
+   |                                 +++++
 help: if you don't care about this missing field, you can explicitly ignore it
    |
 LL |     let HiddenStruct { one, hide, two: _ } = HiddenStruct::default();
-   |                                 ~~~~~~~~~~
+   |                                 ++++++++
 help: or always ignore missing fields here
    |
 LL |     let HiddenStruct { one, hide, .. } = HiddenStruct::default();
-   |                                 ~~~~~~
+   |                                 ++++
 
 error[E0027]: pattern does not mention field `im_hidden`
   --> $DIR/doc-hidden-fields.rs:24:9
@@ -56,15 +56,15 @@ LL |     let InCrate { a, b } = InCrate { a: 0, b: false, im_hidden: 0 };
 help: include the missing field in the pattern
    |
 LL |     let InCrate { a, b, im_hidden } = InCrate { a: 0, b: false, im_hidden: 0 };
-   |                       ~~~~~~~~~~~~~
+   |                       +++++++++++
 help: if you don't care about this missing field, you can explicitly ignore it
    |
 LL |     let InCrate { a, b, im_hidden: _ } = InCrate { a: 0, b: false, im_hidden: 0 };
-   |                       ~~~~~~~~~~~~~~~~
+   |                       ++++++++++++++
 help: or always ignore missing fields here
    |
 LL |     let InCrate { a, b, .. } = InCrate { a: 0, b: false, im_hidden: 0 };
-   |                       ~~~~~~
+   |                       ++++
 
 error: aborting due to 4 previous errors
 
diff --git a/tests/ui/pattern/usefulness/stable-gated-fields.stderr b/tests/ui/pattern/usefulness/stable-gated-fields.stderr
index d6e9bac7c13..7c30b530d6d 100644
--- a/tests/ui/pattern/usefulness/stable-gated-fields.stderr
+++ b/tests/ui/pattern/usefulness/stable-gated-fields.stderr
@@ -7,15 +7,15 @@ LL |     let UnstableStruct { stable } = UnstableStruct::default();
 help: include the missing field in the pattern and ignore the inaccessible fields
    |
 LL |     let UnstableStruct { stable, stable2, .. } = UnstableStruct::default();
-   |                                ~~~~~~~~~~~~~~~
+   |                                +++++++++++++
 help: if you don't care about this missing field, you can explicitly ignore it
    |
 LL |     let UnstableStruct { stable, stable2: _, .. } = UnstableStruct::default();
-   |                                ~~~~~~~~~~~~~~~~~~
+   |                                ++++++++++++++++
 help: or always ignore missing fields here
    |
 LL |     let UnstableStruct { stable, .. } = UnstableStruct::default();
-   |                                ~~~~~~
+   |                                ++++
 
 error: pattern requires `..` due to inaccessible fields
   --> $DIR/stable-gated-fields.rs:11:9