1
Fork 0

Remove in_band_lifetimes from borrowck

This commit is contained in:
Dániel Buga 2021-12-15 08:38:12 +01:00
parent 195e931b02
commit e837101890
15 changed files with 32 additions and 33 deletions

View file

@ -141,7 +141,7 @@ pub(super) fn borrow_of_local_data(place: Place<'_>) -> bool {
/// then returns the index of the field being projected. Note that this closure will always
/// be `self` in the current MIR, because that is the only time we directly access the fields
/// of a closure type.
pub(crate) fn is_upvar_field_projection(
pub(crate) fn is_upvar_field_projection<'tcx>(
tcx: TyCtxt<'tcx>,
upvars: &[Upvar<'tcx>],
place_ref: PlaceRef<'tcx>,