This commit is contained in:
Aaron Hill 2020-06-11 20:16:41 -04:00
parent 5902b2f6e5
commit 4646e2da2d
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -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 {