2021-09-10 15:45:04 -05:00
|
|
|
warning: some fields are not explicitly listed
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:102:9
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | VariantNonExhaustive::Bar { x, .. } => {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `y` not listed
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
|
|
|
|
= note: the pattern is of type `VariantNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-10 15:45:04 -05:00
|
|
|
note: the lint level is defined here
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:99:12
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: some fields are not explicitly listed
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:107:9
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | let FunctionalRecord { first_field, second_field, .. } = FunctionalRecord::default();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `third_field` not listed
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
|
|
|
|
= note: the pattern is of type `FunctionalRecord` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-10 15:45:04 -05:00
|
|
|
note: the lint level is defined here
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:106:12
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: some fields are not explicitly listed
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:115:29
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `second_field` not listed
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
|
|
|
|
= note: the pattern is of type `NormalStruct` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-10 15:45:04 -05:00
|
|
|
note: the lint level is defined here
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:114:12
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: some fields are not explicitly listed
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:115:9
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `foo` not listed
|
|
|
|
|
|
|
|
|
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
|
|
|
|
= note: the pattern is of type `NestedStruct` and the `non_exhaustive_omitted_patterns` attribute was found
|
|
|
|
|
2021-10-27 19:30:26 -05:00
|
|
|
warning: some fields are not explicitly listed
|
|
|
|
--> $DIR/omitted-patterns.rs:173:9
|
|
|
|
|
|
|
|
|
LL | let OnlyUnstableStruct { unstable, .. } = OnlyUnstableStruct::new();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `unstable2` not listed
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
|
|
|
|
= note: the pattern is of type `OnlyUnstableStruct` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-10-27 19:30:26 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/omitted-patterns.rs:172:12
|
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: some fields are not explicitly listed
|
|
|
|
--> $DIR/omitted-patterns.rs:181:9
|
|
|
|
|
|
|
|
|
LL | let UnstableStruct { stable, stable2, .. } = UnstableStruct::default();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `unstable` not listed
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
|
|
|
|
= note: the pattern is of type `UnstableStruct` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-10-27 19:30:26 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/omitted-patterns.rs:180:12
|
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-09-10 15:45:04 -05:00
|
|
|
error: some variants are not matched explicitly
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:58:9
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | _ => {}
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^ pattern `NonExhaustiveEnum::Struct { .. }` not covered
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all variants are matched explicitly by adding the suggested match arms
|
|
|
|
= note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-10 15:45:04 -05:00
|
|
|
note: the lint level is defined here
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:57:16
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | #[deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: some variants are not matched explicitly
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:65:9
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | _ => {}
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^ pattern `NonExhaustiveEnum::Tuple(_)` not covered
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all variants are matched explicitly by adding the suggested match arms
|
|
|
|
= note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-10 15:45:04 -05:00
|
|
|
note: the lint level is defined here
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:64:16
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | #[deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: some variants are not matched explicitly
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:75:9
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | _ => {}
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^ pattern `NonExhaustiveEnum::Unit` not covered
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all variants are matched explicitly by adding the suggested match arms
|
|
|
|
= note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-10 15:45:04 -05:00
|
|
|
note: the lint level is defined here
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:74:16
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | #[deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: some variants are not matched explicitly
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:92:32
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | NestedNonExhaustive::A(_) => {}
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^ patterns `NonExhaustiveEnum::Tuple(_)` and `NonExhaustiveEnum::Struct { .. }` not covered
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all variants are matched explicitly by adding the suggested match arms
|
|
|
|
= note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-10 15:45:04 -05:00
|
|
|
note: the lint level is defined here
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:89:12
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | #[deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: some variants are not matched explicitly
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:94:9
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | _ => {}
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^ pattern `NestedNonExhaustive::C` not covered
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
= help: ensure that all variants are matched explicitly by adding the suggested match arms
|
|
|
|
= note: the matched value is of type `NestedNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
|
|
|
|
|
|
|
|
error: some variants are not matched explicitly
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:132:9
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | _ => {}
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^ pattern `NonExhaustiveSingleVariant::A(_)` not covered
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all variants are matched explicitly by adding the suggested match arms
|
|
|
|
= note: the matched value is of type `NonExhaustiveSingleVariant` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-10 15:45:04 -05:00
|
|
|
note: the lint level is defined here
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:130:12
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | #[deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: some variants are not matched explicitly
|
2021-09-18 15:52:43 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:144:9
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | _ => {}
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^ pattern `UnstableEnum::Unstable` not covered
|
2021-09-18 15:52:43 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all variants are matched explicitly by adding the suggested match arms
|
|
|
|
= note: the matched value is of type `UnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-18 15:52:43 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/omitted-patterns.rs:143:16
|
|
|
|
|
|
|
|
|
LL | #[deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: some variants are not matched explicitly
|
2021-10-27 19:30:26 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:168:9
|
2021-09-18 15:52:43 -05:00
|
|
|
|
|
|
|
|
LL | _ => {}
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^ pattern `OnlyUnstableEnum::Unstable2` not covered
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all variants are matched explicitly by adding the suggested match arms
|
|
|
|
= note: the matched value is of type `OnlyUnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-10 15:45:04 -05:00
|
|
|
note: the lint level is defined here
|
2021-10-27 19:30:26 -05:00
|
|
|
--> $DIR/omitted-patterns.rs:165:12
|
2021-09-10 15:45:04 -05:00
|
|
|
|
|
|
|
|
LL | #[deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-10-27 19:30:26 -05:00
|
|
|
error: aborting due to 8 previous errors; 6 warnings emitted
|
2021-09-10 15:45:04 -05:00
|
|
|
|