diff options
| author | jumbatm <jumbatm@gmail.com> | 2020-02-02 09:47:58 +1000 |
|---|---|---|
| committer | jumbatm <jumbatm@gmail.com> | 2020-02-11 19:49:01 +1000 |
| commit | d246385122ffd7dd6cc5c490b7e648f58c2ff7fd (patch) | |
| tree | a5047dc08e4a896995c406d8fbeff527a38e8290 /src/librustc/mir | |
| parent | 0634a5007306f3951ec28c0b9986452a91eebda8 (diff) | |
| download | rust-d246385122ffd7dd6cc5c490b7e648f58c2ff7fd.tar.gz rust-d246385122ffd7dd6cc5c490b7e648f58c2ff7fd.zip | |
Run RustFmt
Diffstat (limited to 'src/librustc/mir')
| -rw-r--r-- | src/librustc/mir/interpret/error.rs | 17 |
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>, |
