diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-06-23 15:52:28 +0200 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-06-25 14:51:56 +0200 |
| commit | 15eae851de9e27d57daded0d116a6ad2878009e7 (patch) | |
| tree | 3342888d2a3375df7c241b8d64f84c2fe57e69e3 /compiler | |
| parent | 5ef071ee42dc0c63cdf9e8a36cc2f71d4249c847 (diff) | |
| download | rust-15eae851de9e27d57daded0d116a6ad2878009e7.tar.gz rust-15eae851de9e27d57daded0d116a6ad2878009e7.zip | |
Fix new lints
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index cd5ebf76a4d..4136398adb5 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -3211,7 +3211,7 @@ declare_lint! { "detects usage of old versions of or-patterns", @future_incompatible = FutureIncompatibleInfo { reference: "issue #84869 <https://github.com/rust-lang/rust/issues/84869>", - edition: Some(Edition::Edition2021), + reason: FutureIncompatibilityReason::EditionError(Edition::Edition2021), }; } @@ -3260,6 +3260,6 @@ declare_lint! { prelude in future editions", @future_incompatible = FutureIncompatibleInfo { reference: "issue #85684 <https://github.com/rust-lang/rust/issues/85684>", - edition: Some(Edition::Edition2021), + reason: FutureIncompatibilityReason::EditionError(Edition::Edition2021), }; } |
