Show let-else suggestion on stable.
This commit is contained in:
parent
c27948d255
commit
be1c7aad72
1 changed files with 1 additions and 1 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue