1
Fork 0

Show let-else suggestion on stable.

This commit is contained in:
Eric Huss 2022-10-08 14:39:25 -07:00
parent c27948d255
commit be1c7aad72

View file

@ -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!(