@@ -1553,7 +1553,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1553
1553
1554
1554
if place != place_err {
1555
1555
if let Some ( name) = self . describe_place ( place_err) {
1556
- err. note ( & format ! ( "the value which is causing this path not to be mutable is...: `{}`" , name) ) ;
1556
+ err. note ( & format ! ( "the value which is causing this path not to be mutable \
1557
+ is...: `{}`", name) ) ;
1557
1558
}
1558
1559
}
1559
1560
@@ -1580,7 +1581,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1580
1581
} else {
1581
1582
self . get_main_error_message ( place)
1582
1583
} ;
1583
- err_info = Some ( ( self . mir . source_info ( locations[ 0 ] ) . span ,
1584
+ err_info = Some ( (
1585
+ self . mir . source_info ( locations[ 0 ] ) . span ,
1584
1586
"consider changing this to be a \
1585
1587
mutable reference: `&mut`", item_msg,
1586
1588
"cannot assign through `&`-reference" ) ) ;
@@ -1608,8 +1610,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1608
1610
err. span_label ( span, "cannot mutate" ) ;
1609
1611
if place != place_err {
1610
1612
if let Some ( name) = self . describe_place ( place_err) {
1611
- err. note ( & format ! ( "the value which is causing this path not to be mutable is...: `{}`" ,
1612
- name) ) ;
1613
+ err. note ( & format ! ( "the value which is causing this path not to be \
1614
+ mutable is...: `{}`" , name) ) ;
1613
1615
}
1614
1616
}
1615
1617
err. emit ( ) ;
0 commit comments