]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/pattern/usefulness/stable-gated-patterns.stderr
Rollup merge of #98654 - nnethercote:pest-2.1.3-opt, r=pnkfelix
[rust.git] / src / test / ui / pattern / usefulness / stable-gated-patterns.stderr
index 559539178cbe3931f486006010b19f2612d1f877..98c75953add89304a4b2ea828f3733ab8f6000bc 100644 (file)
@@ -7,16 +7,11 @@ LL |     match UnstableEnum::Stable {
 note: `UnstableEnum` defined here
   --> $DIR/auxiliary/unstable.rs:9:5
    |
-LL | / pub enum UnstableEnum {
-LL | |     #[stable(feature = "stable_test_feature", since = "1.0.0")]
-LL | |     Stable,
-LL | |     #[stable(feature = "stable_test_feature", since = "1.0.0")]
-LL | |     Stable2,
-   | |     ^^^^^^^ not covered
-LL | |     #[unstable(feature = "unstable_test_feature", issue = "none")]
-LL | |     Unstable,
-LL | | }
-   | |_-
+LL | pub enum UnstableEnum {
+   | ---------------------
+...
+LL |     Stable2,
+   |     ^^^^^^^ not covered
    = note: the matched value is of type `UnstableEnum`
 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
    |
@@ -33,14 +28,8 @@ LL |     match UnstableEnum::Stable {
 note: `UnstableEnum` defined here
   --> $DIR/auxiliary/unstable.rs:5:1
    |
-LL | / pub enum UnstableEnum {
-LL | |     #[stable(feature = "stable_test_feature", since = "1.0.0")]
-LL | |     Stable,
-LL | |     #[stable(feature = "stable_test_feature", since = "1.0.0")]
-...  |
-LL | |     Unstable,
-LL | | }
-   | |_^
+LL | pub enum UnstableEnum {
+   | ^^^^^^^^^^^^^^^^^^^^^
    = note: the matched value is of type `UnstableEnum`
 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
    |