about summary refs log tree commit diff
path: root/src/librustc/mir
diff options
context:
space:
mode:
authorjumbatm <jumbatm@gmail.com>2020-02-02 09:47:58 +1000
committerjumbatm <jumbatm@gmail.com>2020-02-11 19:49:01 +1000
commitd246385122ffd7dd6cc5c490b7e648f58c2ff7fd (patch)
treea5047dc08e4a896995c406d8fbeff527a38e8290 /src/librustc/mir
parent0634a5007306f3951ec28c0b9986452a91eebda8 (diff)
downloadrust-d246385122ffd7dd6cc5c490b7e648f58c2ff7fd.tar.gz
rust-d246385122ffd7dd6cc5c490b7e648f58c2ff7fd.zip
Run RustFmt
Diffstat (limited to 'src/librustc/mir')
-rw-r--r--src/librustc/mir/interpret/error.rs17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/librustc/mir/interpret/error.rs b/src/librustc/mir/interpret/error.rs
index bb84458cf7b..df3971a5ac3 100644
--- a/src/librustc/mir/interpret/error.rs
+++ b/src/librustc/mir/interpret/error.rs
@@ -120,19 +120,18 @@ impl<'tcx> ConstEvalErr<'tcx> {
                     }
                 }
                 lint.emit();
-            }
-        , Some(lint_root)) {
-            Ok(_) => {
-                ErrorHandled::Reported
-            }
+            },
+            Some(lint_root),
+        ) {
+            Ok(_) => ErrorHandled::Reported,
             Err(err) => err,
         }
     }
 
-   /// Sets the message passed in via `message`, then adds the span labels for you, before applying
-   /// further modifications in `emit`. It's up to you to call emit(), stash(..), etc. within the
-   /// `emit` method. If you don't need to do any additional processing, just use
-   /// struct_generic.
+    /// Sets the message passed in via `message`, then adds the span labels for you, before applying
+    /// further modifications in `emit`. It's up to you to call emit(), stash(..), etc. within the
+    /// `emit` method. If you don't need to do any additional processing, just use
+    /// struct_generic.
     fn struct_generic(
         &self,
         tcx: TyCtxtAt<'tcx>,