about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcsmoe <35686186+csmoe@users.noreply.github.com>2018-03-11 01:03:51 +0000
committercsmoe <35686186+csmoe@users.noreply.github.com>2018-03-16 14:52:16 +0800
commitc62d9eb729deec2437ad36220207cd4720452274 (patch)
treef90d52c95907a57e4f05309fe94e3e9b3c272170
parent0b111e677c6bd58cf046d925493c5413c05773fe (diff)
downloadrust-c62d9eb729deec2437ad36220207cd4720452274.tar.gz
rust-c62d9eb729deec2437ad36220207cd4720452274.zip
fix formatting
-rw-r--r--src/librustc_mir/util/borrowck_errors.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/librustc_mir/util/borrowck_errors.rs b/src/librustc_mir/util/borrowck_errors.rs
index 48575584530..bcd7a3e7cd3 100644
--- a/src/librustc_mir/util/borrowck_errors.rs
+++ b/src/librustc_mir/util/borrowck_errors.rs
@@ -54,16 +54,16 @@ impl Origin {
 
 pub trait BorrowckErrors<'cx> {
     fn struct_span_err_with_code<S: Into<MultiSpan>>(self,
-                                                         sp: S,
-                                                         msg: &str,
-                                                         code: DiagnosticId)
-                                                         -> DiagnosticBuilder<'cx>
+                                                     sp: S,
+                                                     msg: &str,
+                                                     code: DiagnosticId)
+                                                     -> DiagnosticBuilder<'cx>
         where Self: Sized + Copy;
 
     fn struct_span_err<S: Into<MultiSpan>>(self,
-                                               sp: S,
-                                               msg: &str)
-                                               -> DiagnosticBuilder<'cx>
+                                           sp: S,
+                                           msg: &str)
+                                           -> DiagnosticBuilder<'cx>
         where Self: Sized + Copy;
 
     /// Cancels the given error if we shouldn't emit errors for a given
@@ -72,9 +72,9 @@ pub trait BorrowckErrors<'cx> {
     /// Always make sure that the error gets passed through this function
     /// before you return it.
     fn cancel_if_wrong_origin(self,
-                                diag: DiagnosticBuilder<'cx>,
-                                o: Origin)
-                                -> DiagnosticBuilder<'cx>
+                              diag: DiagnosticBuilder<'cx>,
+                              o: Origin)
+                              -> DiagnosticBuilder<'cx>
         where Self: Sized + Copy;
 
     fn cannot_move_when_borrowed(self, span: Span, desc: &str, o: Origin)