diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-06-11 20:16:41 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-06-11 20:16:41 -0400 |
| commit | 4646e2da2d0d3b24d1f38c9904bdb7950a658d84 (patch) | |
| tree | 31e4c71fd720eed57c4fb6b5e37ec431ed209794 | |
| parent | 5902b2f6e5922068d01af2b7438044dbaee5ace6 (diff) | |
| download | rust-4646e2da2d0d3b24d1f38c9904bdb7950a658d84.tar.gz rust-4646e2da2d0d3b24d1f38c9904bdb7950a658d84.zip | |
Run fmt
| -rw-r--r-- | src/librustc_mir/borrow_check/diagnostics/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/librustc_mir/borrow_check/diagnostics/mod.rs b/src/librustc_mir/borrow_check/diagnostics/mod.rs index ca8c77bcd69..04f48cd6582 100644 --- a/src/librustc_mir/borrow_check/diagnostics/mod.rs +++ b/src/librustc_mir/borrow_check/diagnostics/mod.rs @@ -794,10 +794,8 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> { debug!("move_spans: target_temp = {:?}", target_temp); - if let Some(Terminator { - kind: TerminatorKind::Call { func, args, fn_span, .. }, - .. - }) = &self.body[location.block].terminator + if let Some(Terminator { kind: TerminatorKind::Call { func, args, fn_span, .. }, .. }) = + &self.body[location.block].terminator { let mut method_did = None; if let Operand::Constant(box Constant { literal: ty::Const { ty, .. }, .. }) = func { |
