fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: unknown lint: `non_exhaustive_omitted_patterns` 2 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1 3 | 4LL | #![deny(non_exhaustive_omitted_patterns)] 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: the `non_exhaustive_omitted_patterns` lint is unstable 8 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 9 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 10 = note: `#[warn(unknown_lints)]` on by default 11 12warning: unknown lint: `non_exhaustive_omitted_patterns` 13 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1 14 | 15LL | #![allow(non_exhaustive_omitted_patterns)] 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 | 18 = note: the `non_exhaustive_omitted_patterns` lint is unstable 19 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 20 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 21 22warning: unknown lint: `non_exhaustive_omitted_patterns` 23 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5 24 | 25LL | #[allow(non_exhaustive_omitted_patterns)] 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 27 | 28 = note: the `non_exhaustive_omitted_patterns` lint is unstable 29 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 30 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 31 32warning: unknown lint: `non_exhaustive_omitted_patterns` 33 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5 34 | 35LL | #[allow(non_exhaustive_omitted_patterns)] 36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 37 | 38 = note: the `non_exhaustive_omitted_patterns` lint is unstable 39 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 40 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 41 42warning: unknown lint: `non_exhaustive_omitted_patterns` 43 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9 44 | 45LL | #[warn(non_exhaustive_omitted_patterns)] 46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 47 | 48 = note: the `non_exhaustive_omitted_patterns` lint is unstable 49 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 50 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 51 52warning: unknown lint: `non_exhaustive_omitted_patterns` 53 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1 54 | 55LL | #![deny(non_exhaustive_omitted_patterns)] 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 57 | 58 = note: the `non_exhaustive_omitted_patterns` lint is unstable 59 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 60 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 61 62warning: unknown lint: `non_exhaustive_omitted_patterns` 63 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1 64 | 65LL | #![allow(non_exhaustive_omitted_patterns)] 66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 67 | 68 = note: the `non_exhaustive_omitted_patterns` lint is unstable 69 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 70 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 71 72warning: unknown lint: `non_exhaustive_omitted_patterns` 73 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5 74 | 75LL | #[allow(non_exhaustive_omitted_patterns)] 76 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 77 | 78 = note: the `non_exhaustive_omitted_patterns` lint is unstable 79 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 80 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 81 82warning: unknown lint: `non_exhaustive_omitted_patterns` 83 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5 84 | 85LL | #[allow(non_exhaustive_omitted_patterns)] 86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 87 | 88 = note: the `non_exhaustive_omitted_patterns` lint is unstable 89 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 90 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 91 92warning: unknown lint: `non_exhaustive_omitted_patterns` 93 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9 94 | 95LL | #[warn(non_exhaustive_omitted_patterns)] 96 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 97 | 98 = note: the `non_exhaustive_omitted_patterns` lint is unstable 99 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information 100 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable 101 102error[E0004]: non-exhaustive patterns: `Foo::C` not covered 103 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:20:11 104 | 105LL | match Foo::A { 106 | ^^^^^^ pattern `Foo::C` not covered 107 | 108note: `Foo` defined here 109 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:12:15 110 | 111LL | enum Foo { 112 | --- 113LL | A, B, C, 114 | ^ not covered 115 = note: the matched value is of type `Foo` 116help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 117 | 118LL ~ Foo::B => {}, 119LL + Foo::C => todo!() 120 | 121 122error: aborting due to previous error; 10 warnings emitted 123 124For more information about this error, try `rustc --explain E0004`.