diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-06-29 16:39:19 +0200 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-07-06 20:11:45 +0200 |
| commit | 1d49658f5c7adc403311b815c9ec8d23e4551de2 (patch) | |
| tree | 67a25eecc2004c2f4eec49d07e4e93a9544cb1b8 /compiler/rustc_lint/src | |
| parent | df71a99a0ea8d89cb1ec9281a6a24a8710c37c9d (diff) | |
Change or_patterns_back_compat lint to rust_2021_incompatible_or_patterns
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lib.rs b/compiler/rustc_lint/src/lib.rs index b3b759a466a..2e5ef8daf14 100644 --- a/compiler/rustc_lint/src/lib.rs +++ b/compiler/rustc_lint/src/lib.rs @@ -326,6 +326,7 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) { store.register_renamed("overlapping_patterns", "overlapping_range_endpoints"); store.register_renamed("safe_packed_borrows", "unaligned_references"); store.register_renamed("disjoint_capture_migration", "rust_2021_incompatible_closure_captures"); + store.register_renamed("or_patterns_back_compat", "rust_2021_incompatible_or_patterns"); // These were moved to tool lints, but rustc still sees them when compiling normally, before // tool lints are registered, so `check_tool_name_for_backwards_compat` doesn't work. Use |
