about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2021-09-22 18:16:07 +0100
committerNadrieril <nadrieril+git@gmail.com>2021-09-26 00:05:52 +0100
commit3175409682e8c2e66b04ed25169a36ab716e71d9 (patch)
tree20a0eba7b5127aec4921057080cbbcb0d0c94f38 /src/test
parent87a0a25b38cb791b5145dcba53ac83f8dc76f197 (diff)
Rework `Fields` internals.
Now `Fields` is just a `Vec` of patterns, with some extra info on the
side to reconstruct patterns when needed. This emphasizes that this
extra info is not central to the algorithm.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/pattern/usefulness/issue-3601.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/pattern/usefulness/issue-3601.stderr b/src/test/ui/pattern/usefulness/issue-3601.stderr
index c873c20cca8..48ed1491508 100644
--- a/src/test/ui/pattern/usefulness/issue-3601.stderr
+++ b/src/test/ui/pattern/usefulness/issue-3601.stderr
@@ -1,8 +1,8 @@
-error[E0004]: non-exhaustive patterns: `Box(_, _)` not covered
+error[E0004]: non-exhaustive patterns: `box _` not covered
   --> $DIR/issue-3601.rs:30:44
    |
 LL |         box NodeKind::Element(ed) => match ed.kind {
-   |                                            ^^^^^^^ pattern `Box(_, _)` not covered
+   |                                            ^^^^^^^ pattern `box _` not covered
    |
    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
    = note: the matched value is of type `Box<ElementKind>`