@@ -58,11 +58,6 @@ pub struct Borrows<'a, 'gcx: 'tcx, 'tcx: 'a> {
58
58
/// corresponding `BorrowIndex`.
59
59
location_map : FxHashMap < Location , BorrowIndex > ,
60
60
61
- /// Every borrow in MIR is immediately stored into a place via an
62
- /// assignment statement. This maps each such assigned place back
63
- /// to its borrow-indexes.
64
- assigned_map : FxHashMap < Place < ' tcx > , FxHashSet < BorrowIndex > > ,
65
-
66
61
/// Locations which activate borrows.
67
62
activation_map : FxHashMap < Location , FxHashSet < BorrowIndex > > ,
68
63
@@ -144,7 +139,6 @@ impl<'a, 'gcx, 'tcx> Borrows<'a, 'gcx, 'tcx> {
144
139
mir,
145
140
idx_vec : IndexVec :: new ( ) ,
146
141
location_map : FxHashMap ( ) ,
147
- assigned_map : FxHashMap ( ) ,
148
142
activation_map : FxHashMap ( ) ,
149
143
region_map : FxHashMap ( ) ,
150
144
local_map : FxHashMap ( ) ,
@@ -158,7 +152,6 @@ impl<'a, 'gcx, 'tcx> Borrows<'a, 'gcx, 'tcx> {
158
152
scope_tree,
159
153
root_scope,
160
154
location_map : visitor. location_map ,
161
- assigned_map : visitor. assigned_map ,
162
155
activation_map : visitor. activation_map ,
163
156
region_map : visitor. region_map ,
164
157
local_map : visitor. local_map ,
@@ -170,7 +163,6 @@ impl<'a, 'gcx, 'tcx> Borrows<'a, 'gcx, 'tcx> {
170
163
mir : & ' a Mir < ' tcx > ,
171
164
idx_vec : IndexVec < BorrowIndex , BorrowData < ' tcx > > ,
172
165
location_map : FxHashMap < Location , BorrowIndex > ,
173
- assigned_map : FxHashMap < Place < ' tcx > , FxHashSet < BorrowIndex > > ,
174
166
activation_map : FxHashMap < Location , FxHashSet < BorrowIndex > > ,
175
167
region_map : FxHashMap < Region < ' tcx > , FxHashSet < BorrowIndex > > ,
176
168
local_map : FxHashMap < mir:: Local , FxHashSet < BorrowIndex > > ,
@@ -209,7 +201,6 @@ impl<'a, 'gcx, 'tcx> Borrows<'a, 'gcx, 'tcx> {
209
201
self . location_map . insert ( location, idx) ;
210
202
211
203
insert ( & mut self . activation_map , & activate_location, idx) ;
212
- insert ( & mut self . assigned_map , assigned_place, idx) ;
213
204
insert ( & mut self . region_map , & region, idx) ;
214
205
if let Some ( local) = root_local ( borrowed_place) {
215
206
insert ( & mut self . local_map , & local, idx) ;
0 commit comments