about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgaurikholkar <f2013002@goa.bits-pilani.ac.in>2018-04-05 22:49:09 +0530
committergaurikholkar <f2013002@goa.bits-pilani.ac.in>2018-04-05 22:49:09 +0530
commit12d141561dcd33d3074e09351df46c7129ce46ce (patch)
tree788cd40695e6d618891008ef2ac701e79f46d1d1
parentc1192065ea02612989f71fe03808011323fd7378 (diff)
downloadrust-12d141561dcd33d3074e09351df46c7129ce46ce.tar.gz
rust-12d141561dcd33d3074e09351df46c7129ce46ce.zip
tidy fixes
-rw-r--r--src/librustc_mir/borrow_check/mod.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs
index 5f54b7b4d9d..636909d096e 100644
--- a/src/librustc_mir/borrow_check/mod.rs
+++ b/src/librustc_mir/borrow_check/mod.rs
@@ -1553,7 +1553,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
 
                 if place != place_err {
                     if let Some(name) = self.describe_place(place_err) {
-                        err.note(&format!("the value which is causing this path not to be mutable is...: `{}`", name));
+                        err.note(&format!("the value which is causing this path not to be mutable \
+                                           is...: `{}`", name));
                     }
                 }
 
@@ -1580,7 +1581,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
                                                 } else {
                                                     self.get_main_error_message(place)
                                                 };
-                                                err_info = Some((self.mir.source_info(locations[0]).span,
+                                                err_info = Some((
+                                                    self.mir.source_info(locations[0]).span,
                                                       "consider changing this to be a \
                                                        mutable reference: `&mut`", item_msg,
                                                        "cannot assign through `&`-reference"));
@@ -1608,8 +1610,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
                         err.span_label(span, "cannot mutate");
                         if place != place_err {
                             if let Some(name) = self.describe_place(place_err) {
-                                err.note(&format!("the value which is causing this path not to be mutable is...: `{}`",
-                                                  name));
+                                err.note(&format!("the value which is causing this path not to be \
+                                                   mutable is...: `{}`", name));
                             }
                         }
                         err.emit();