2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(unknown_lints)]` on by default
|
2021-10-01 09:21:56 -05:00
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:7:1
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
|
|
|
LL | #![allow(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19:5
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
|
|
|
LL | #[allow(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19:5
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
|
|
|
LL | #[allow(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-10-01 09:21:56 -05:00
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31:5
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
2023-10-14 08:19:51 -05:00
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
|
|
|
|
2023-10-14 08:19:51 -05:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31:5
|
2023-10-14 08:19:51 -05:00
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-10-01 09:21:56 -05:00
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:7:1
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
|
|
|
LL | #![allow(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-10-01 09:21:56 -05:00
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19:5
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
|
|
|
LL | #[allow(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-10-01 09:21:56 -05:00
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19:5
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
|
|
|
LL | #[allow(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-10-01 09:21:56 -05:00
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31:5
|
2023-10-14 08:19:51 -05:00
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31:5
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
2023-10-14 08:19:51 -05:00
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-10-01 09:21:56 -05:00
|
|
|
|
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
2021-10-01 09:21:56 -05:00
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
2023-10-04 13:34:50 -05:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2021-10-01 09:21:56 -05:00
|
|
|
|
2022-09-02 22:01:35 -05:00
|
|
|
error[E0004]: non-exhaustive patterns: `Foo::C` not covered
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:25:11
|
2022-02-28 14:29:06 -06:00
|
|
|
|
|
2022-03-08 13:57:03 -06:00
|
|
|
LL | match Foo::A {
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^^^^^^ pattern `Foo::C` not covered
|
2022-03-08 13:57:03 -06:00
|
|
|
|
|
|
|
|
note: `Foo` defined here
|
2023-10-14 11:25:10 -05:00
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:16:9
|
2022-03-08 13:57:03 -06:00
|
|
|
|
|
|
|
|
LL | enum Foo {
|
|
|
|
| ---
|
2023-10-14 08:19:51 -05:00
|
|
|
...
|
|
|
|
LL | C,
|
|
|
|
| ^ not covered
|
2022-02-28 14:29:06 -06:00
|
|
|
= note: the matched value is of type `Foo`
|
2022-03-08 13:57:03 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
|
|
|
|
|
2023-02-27 11:43:39 -06:00
|
|
|
LL ~ Foo::B => {},
|
2022-09-02 22:01:35 -05:00
|
|
|
LL + Foo::C => todo!()
|
2022-03-08 13:57:03 -06:00
|
|
|
|
|
2021-10-01 09:21:56 -05:00
|
|
|
|
2023-10-14 11:25:10 -05:00
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
|
|
|
|
|
|
|
|
|
LL | #![deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:7:1
|
|
|
|
|
|
|
|
|
LL | #![allow(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19:5
|
|
|
|
|
|
|
|
|
LL | #[allow(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
warning: unknown lint: `non_exhaustive_omitted_patterns`
|
|
|
|
--> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31:5
|
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the `non_exhaustive_omitted_patterns` lint is unstable
|
|
|
|
= note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
|
|
|
|
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
error: aborting due to previous error; 16 warnings emitted
|
2022-02-28 14:29:06 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0004`.
|