@@ -73,8 +73,7 @@ crate use region_infer::RegionInferenceContext;
7373// FIXME(eddyb) perhaps move this somewhere more centrally.
7474#[ derive( Debug ) ]
7575crate 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.
7877 name : Symbol ,
7978
8079 place : CapturedPlace < ' tcx > ,
@@ -2156,6 +2155,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
21562155 place : PlaceRef < ' tcx > ,
21572156 is_local_mutation_allowed : LocalMutationIsAllowed ,
21582157 ) -> Result < RootPlace < ' tcx > , PlaceRef < ' tcx > > {
2158+ debug ! ( "is_mutable: place={:?}, is_local...={:?}" , place, is_local_mutation_allowed) ;
21592159 match place. last_projection ( ) {
21602160 None => {
21612161 let local = & self . body . local_decls [ place. local ] ;
@@ -2237,9 +2237,9 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
22372237 if let Some ( field) = upvar_field_projection {
22382238 let upvar = & self . upvars [ field. index ( ) ] ;
22392239 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
22432243 ) ;
22442244 match ( upvar. place . mutability , is_local_mutation_allowed) {
22452245 (
0 commit comments