Make functional record update/struct update syntax works inside closures when feature capture_disjoint_fields is enabled
This commit is contained in:
parent
180fdffa17
commit
e94cf57c3e
4 changed files with 51 additions and 5 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue