@@ -73,8 +73,7 @@ crate use region_infer::RegionInferenceContext;
73
73
// FIXME(eddyb) perhaps move this somewhere more centrally.
74
74
#[ derive( Debug ) ]
75
75
crate struct Upvar < ' tcx > {
76
- // FIXME(project-rfc-2229#8): ty::CapturePlace should have a to_string(), or similar
77
- // then this should not be needed.
76
+ // FIXME(project-rfc_2229#36): print capture precisely here.
78
77
name : Symbol ,
79
78
80
79
place : CapturedPlace < ' tcx > ,
@@ -2156,6 +2155,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2156
2155
place : PlaceRef < ' tcx > ,
2157
2156
is_local_mutation_allowed : LocalMutationIsAllowed ,
2158
2157
) -> Result < RootPlace < ' tcx > , PlaceRef < ' tcx > > {
2158
+ debug ! ( "is_mutable: place={:?}, is_local...={:?}" , place, is_local_mutation_allowed) ;
2159
2159
match place. last_projection ( ) {
2160
2160
None => {
2161
2161
let local = & self . body . local_decls [ place. local ] ;
@@ -2237,9 +2237,9 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2237
2237
if let Some ( field) = upvar_field_projection {
2238
2238
let upvar = & self . upvars [ field. index ( ) ] ;
2239
2239
debug ! (
2240
- "upvar.mutability={:?} local_mutation_is_allowed={:?} \
2241
- place={:?}",
2242
- upvar, is_local_mutation_allowed, place
2240
+ "is_mutable: upvar.mutability={:?} local_mutation_is_allowed={:?} \
2241
+ place={:?}, place_base={:?} ",
2242
+ upvar, is_local_mutation_allowed, place, place_base
2243
2243
) ;
2244
2244
match ( upvar. place . mutability , is_local_mutation_allowed) {
2245
2245
(
0 commit comments