Skip to content

Commit be1c7aa

Browse files
committed
Show let-else suggestion on stable.
1 parent c27948d commit be1c7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_build/src/thir/pattern/check_match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ impl<'p, 'tcx> MatchVisitor<'_, 'p, 'tcx> {
491491
],
492492
Applicability::HasPlaceholders,
493493
);
494-
if !bindings.is_empty() && cx.tcx.sess.is_nightly_build() {
494+
if !bindings.is_empty() {
495495
err.span_suggestion_verbose(
496496
semi_span.shrink_to_lo(),
497497
&format!(

0 commit comments

Comments
 (0)