Files
rust/compiler/rustc_middle/src
Aman Arora 3488082582 Compute mutability of closure captures
When `capture_disjoint_fields` is not enabled, checking if the root variable
binding is mutable would suffice.

However with the feature enabled, the captured place might be mutable
because it dereferences a mutable reference.

This PR computes the mutability of each capture after capture analysis
in rustc_typeck. We store this in `ty::CapturedPlace` and then use
`ty::CapturedPlace::mutability` in mir_build and borrow_check.
2021-01-29 15:37:40 -05:00
..
2021-01-23 15:41:17 -05:00
2021-01-29 15:37:40 -05:00
2020-12-03 09:50:10 -08:00
2020-12-19 23:32:51 -08:00
2020-08-30 18:45:07 +03:00