Skip to content

Commit ce9c34f

Browse files
committed
Revert an erroneous change
1 parent fdc2e4f commit ce9c34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
300300
err.multipart_suggestion(
301301
"store this in the heap by calling `Box::new`",
302302
vec![
303-
(expr.span.shrink_to_lo(), "box (".to_string()),
303+
(expr.span.shrink_to_lo(), "Box::new(".to_string()),
304304
(expr.span.shrink_to_hi(), ")".to_string()),
305305
],
306306
Applicability::MachineApplicable,

0 commit comments

Comments
 (0)