@@ -537,7 +537,7 @@ impl<'cx, 'gcx, 'tcx> DataflowResultsConsumer<'cx, 'tcx> for MirBorrowckCtxt<'cx
537
537
for i in borrows {
538
538
let borrow = & data[ i] ;
539
539
540
- if self . place_is_invalidated_at_exit ( & borrow. place ) {
540
+ if self . place_is_invalidated_at_exit ( & borrow. borrowed_place ) {
541
541
debug ! ( "borrow conflicts at exit {:?}" , borrow) ;
542
542
let borrow_span = self . mir . source_info ( borrow. location ) . span ;
543
543
// FIXME: should be talking about the region lifetime instead
@@ -546,7 +546,7 @@ impl<'cx, 'gcx, 'tcx> DataflowResultsConsumer<'cx, 'tcx> for MirBorrowckCtxt<'cx
546
546
547
547
self . report_borrowed_value_does_not_live_long_enough (
548
548
ContextKind :: StorageDead . new ( loc) ,
549
- ( & borrow. place , borrow_span) ,
549
+ ( & borrow. borrowed_place , borrow_span) ,
550
550
end_span,
551
551
)
552
552
}
@@ -1506,7 +1506,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1506
1506
// FIXME: Differs from AST-borrowck; includes drive-by fix
1507
1507
// to #38899. Will probably need back-compat mode flag.
1508
1508
for accessed_prefix in self . prefixes ( place, PrefixSet :: All ) {
1509
- if * accessed_prefix == borrowed. place {
1509
+ if * accessed_prefix == borrowed. borrowed_place {
1510
1510
// FIXME: pass in enum describing case we are in?
1511
1511
let ctrl = op ( self , i, borrowed, accessed_prefix) ;
1512
1512
if ctrl == Control :: Break {
@@ -1516,7 +1516,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1516
1516
}
1517
1517
1518
1518
// Is `place` a prefix (modulo access type) of the
1519
- // `borrowed.place `? If so, that's relevant.
1519
+ // `borrowed.borrowed_place `? If so, that's relevant.
1520
1520
1521
1521
let prefix_kind = match access {
1522
1522
Shallow ( Some ( ArtificialField :: Discriminant ) ) |
@@ -1533,7 +1533,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1533
1533
Deep => PrefixSet :: Supporting ,
1534
1534
} ;
1535
1535
1536
- for borrowed_prefix in self . prefixes ( & borrowed. place , prefix_kind) {
1536
+ for borrowed_prefix in self . prefixes ( & borrowed. borrowed_place , prefix_kind) {
1537
1537
if borrowed_prefix == place {
1538
1538
// FIXME: pass in enum describing case we are in?
1539
1539
let ctrl = op ( self , i, borrowed, borrowed_prefix) ;
@@ -1801,7 +1801,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1801
1801
Some ( name) => format ! ( "`{}`" , name) ,
1802
1802
None => "value" . to_owned ( ) ,
1803
1803
} ;
1804
- let borrow_msg = match self . describe_place ( & borrow. place ) {
1804
+ let borrow_msg = match self . describe_place ( & borrow. borrowed_place ) {
1805
1805
Some ( name) => format ! ( "`{}`" , name) ,
1806
1806
None => "value" . to_owned ( ) ,
1807
1807
} ;
@@ -1829,7 +1829,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1829
1829
span,
1830
1830
& self . describe_place ( place) . unwrap_or ( "_" . to_owned ( ) ) ,
1831
1831
self . retrieve_borrow_span ( borrow) ,
1832
- & self . describe_place ( & borrow. place ) . unwrap_or ( "_" . to_owned ( ) ) ,
1832
+ & self . describe_place ( & borrow. borrowed_place ) . unwrap_or ( "_" . to_owned ( ) ) ,
1833
1833
Origin :: Mir ,
1834
1834
) ;
1835
1835
@@ -1915,7 +1915,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1915
1915
use self :: prefixes:: IsPrefixOf ;
1916
1916
1917
1917
assert ! ( common_prefix. is_prefix_of( place) ) ;
1918
- assert ! ( common_prefix. is_prefix_of( & issued_borrow. place ) ) ;
1918
+ assert ! ( common_prefix. is_prefix_of( & issued_borrow. borrowed_place ) ) ;
1919
1919
1920
1920
let issued_span = self . retrieve_borrow_span ( issued_borrow) ;
1921
1921
0 commit comments