File: feature-gate-non_exhaustive_omitted_patterns_lint.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (93 lines) | stat: -rw-r--r-- 4,539 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
warning: unknown lint: `non_exhaustive_omitted_patterns`
  --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:9
   |
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: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
   = note: `#[warn(unknown_lints)]` on by default

warning: unknown lint: `non_exhaustive_omitted_patterns`
  --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:5:10
   |
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: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

warning: unknown lint: `non_exhaustive_omitted_patterns`
  --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:13
   |
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: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

warning: unknown lint: `non_exhaustive_omitted_patterns`
  --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:13
   |
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: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
   = 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:24:12
   |
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: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

warning: unknown lint: `non_exhaustive_omitted_patterns`
  --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:24:12
   |
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: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error[E0004]: non-exhaustive patterns: `Foo::C` not covered
  --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:18:11
   |
LL |     match Foo::A {
   |           ^^^^^^ pattern `Foo::C` not covered
   |
note: `Foo` defined here
  --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:9:10
   |
LL |     enum Foo {
   |          ^^^
...
LL |         C,
   |         - not covered
   = note: the matched value is of type `Foo`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
   |
LL ~         Foo::B => {},
LL +         Foo::C => todo!()
   |

error: aborting due to 1 previous error; 6 warnings emitted

For more information about this error, try `rustc --explain E0004`.