Skip to content

Commit 2fa456d

Browse files
committed
librustc: De-@mut the borrow check's loan_map
1 parent 2ae76e1 commit 2fa456d

File tree

1 file changed

+0
-4
lines changed
  • src/librustc/middle/borrowck

1 file changed

+0
-4
lines changed

src/librustc/middle/borrowck/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ pub fn check_crate(
8282
moved_variables_set: moved_variables_set,
8383
capture_map: capture_map,
8484
root_map: root_map(),
85-
loan_map: @mut HashMap::new(),
8685
write_guard_map: @mut HashSet::new(),
8786
stats: @mut BorrowStats {
8887
loaned_paths_same: 0,
@@ -173,7 +172,6 @@ pub struct BorrowckCtxt {
173172
moved_variables_set: moves::MovedVariablesSet,
174173
capture_map: moves::CaptureMap,
175174
root_map: root_map,
176-
loan_map: LoanMap,
177175
write_guard_map: write_guard_map,
178176

179177
// Statistics:
@@ -188,8 +186,6 @@ pub struct BorrowStats {
188186
guaranteed_paths: uint
189187
}
190188

191-
pub type LoanMap = @mut HashMap<ast::NodeId, @Loan>;
192-
193189
// The keys to the root map combine the `id` of the deref expression
194190
// with the number of types that it is *autodereferenced*. So, for
195191
// example, imagine I have a variable `x: @@@T` and an expression

0 commit comments

Comments
 (0)