1
Fork 0

Make functional record update/struct update syntax works inside closures when feature capture_disjoint_fields is enabled

This commit is contained in:
Dhruv Jauhar 2021-01-22 21:24:54 -05:00
parent 180fdffa17
commit e94cf57c3e
4 changed files with 51 additions and 5 deletions

View file

@ -303,7 +303,7 @@ impl<'tcx> PlaceBuilder<'tcx> {
self.base
}
fn field(self, f: Field, ty: Ty<'tcx>) -> Self {
crate fn field(self, f: Field, ty: Ty<'tcx>) -> Self {
self.project(PlaceElem::Field(f, ty))
}