1
Fork 0

Don't store region in CapturedPlace

This commit is contained in:
Michael Goulet 2024-09-05 08:42:50 -04:00
parent eb33b43bab
commit e04ede46bb
2 changed files with 19 additions and 43 deletions

View file

@ -88,9 +88,6 @@ pub struct CapturedPlace<'tcx> {
/// Represents if `place` can be mutated or not.
pub mutability: hir::Mutability,
/// Region of the resulting reference if the upvar is captured by ref.
pub region: Option<ty::Region<'tcx>>,
}
impl<'tcx> CapturedPlace<'tcx> {