From 2fa456d4f4980eba1d8efa23e7290dcefb4346d4 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 20 Dec 2013 20:21:02 -0800 Subject: [PATCH] librustc: De-`@mut` the borrow check's `loan_map` --- src/librustc/middle/borrowck/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/librustc/middle/borrowck/mod.rs b/src/librustc/middle/borrowck/mod.rs index 8a9ea843592..dc3dff0046e 100644 --- a/src/librustc/middle/borrowck/mod.rs +++ b/src/librustc/middle/borrowck/mod.rs @@ -82,7 +82,6 @@ pub fn check_crate( moved_variables_set: moved_variables_set, capture_map: capture_map, root_map: root_map(), - loan_map: @mut HashMap::new(), write_guard_map: @mut HashSet::new(), stats: @mut BorrowStats { loaned_paths_same: 0, @@ -173,7 +172,6 @@ pub struct BorrowckCtxt { moved_variables_set: moves::MovedVariablesSet, capture_map: moves::CaptureMap, root_map: root_map, - loan_map: LoanMap, write_guard_map: write_guard_map, // Statistics: @@ -188,8 +186,6 @@ pub struct BorrowStats { guaranteed_paths: uint } -pub type LoanMap = @mut HashMap; - // The keys to the root map combine the `id` of the deref expression // with the number of types that it is *autodereferenced*. So, for // example, imagine I have a variable `x: @@@T` and an expression