Skip to content

Commit a833f42

Browse files
chenyukangestebank
andauthored
Update compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs
Co-authored-by: Esteban Kuber <[email protected]>
1 parent e3a7cc3 commit a833f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
789789
}
790790
}
791791
ExprKind::Path(..) | ExprKind::Lit(_) if parent_is_closure => {
792-
err.span_suggestion(
792+
err.span_suggestion_verbose(
793793
expression.span.shrink_to_lo(),
794794
"consider ignoring the value",
795795
"_ = ",

0 commit comments

Comments
 (0)