Skip to content

Commit

Permalink
Show let-else suggestion on stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Oct 8, 2022
1 parent c27948d commit be1c7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir_build/src/thir/pattern/check_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit be1c7aa

Please sign in to comment.