diff options
| author | Eric Huss <eric@huss.org> | 2022-10-08 14:39:25 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2022-10-08 14:39:25 -0700 |
| commit | be1c7aad723126b2ea65543b4ceed54167b841a2 (patch) | |
| tree | 4ff67b3d208d4bca92cdd5706832e307d3766449 | |
| parent | c27948d255167d827421401950c6d723ba28de8f (diff) | |
| download | rust-be1c7aad723126b2ea65543b4ceed54167b841a2.tar.gz rust-be1c7aad723126b2ea65543b4ceed54167b841a2.zip | |
Show let-else suggestion on stable.
| -rw-r--r-- | compiler/rustc_mir_build/src/thir/pattern/check_match.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/thir/pattern/check_match.rs b/compiler/rustc_mir_build/src/thir/pattern/check_match.rs index 8fca94119c2..ec709a1db51 100644 --- a/compiler/rustc_mir_build/src/thir/pattern/check_match.rs +++ b/compiler/rustc_mir_build/src/thir/pattern/check_match.rs @@ -491,7 +491,7 @@ impl<'p, 'tcx> MatchVisitor<'_, 'p, 'tcx> { ], Applicability::HasPlaceholders, ); - if !bindings.is_empty() && cx.tcx.sess.is_nightly_build() { + if !bindings.is_empty() { err.span_suggestion_verbose( semi_span.shrink_to_lo(), &format!( |
