Remove span from UpvarCapture::ByValue
This span is unused and is superseded by capture_kind_expr_id in CaptureInfo
This commit is contained in:
parent
e012a191d7
commit
3698e03fb6
11 changed files with 28 additions and 45 deletions
|
@ -726,7 +726,7 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
|
|||
);
|
||||
self.acc(self.exit_ln, var, ACC_READ | ACC_USE);
|
||||
}
|
||||
ty::UpvarCapture::ByValue(_) => {}
|
||||
ty::UpvarCapture::ByValue => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1481,7 +1481,7 @@ impl<'tcx> Liveness<'_, 'tcx> {
|
|||
for (&var_hir_id, min_capture_list) in closure_min_captures {
|
||||
for captured_place in min_capture_list {
|
||||
match captured_place.info.capture_kind {
|
||||
ty::UpvarCapture::ByValue(_) => {}
|
||||
ty::UpvarCapture::ByValue => {}
|
||||
ty::UpvarCapture::ByRef(..) => continue,
|
||||
};
|
||||
let span = captured_place.get_capture_kind_span(self.ir.tcx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue