From 3b1a7b5ca9406c2cedf24f6b14c21720e2b3b470 Mon Sep 17 00:00:00 2001
From: Patrick Walton <pcwalton@mimiga.net>
Date: Sat, 21 Dec 2013 15:35:46 -0800
Subject: [PATCH] librustc: Remove the unused `reported` table from the loan
 checking pass

---
 src/librustc/middle/borrowck/check_loans.rs | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/librustc/middle/borrowck/check_loans.rs b/src/librustc/middle/borrowck/check_loans.rs
index 7ed7735db45..78a97d761af 100644
--- a/src/librustc/middle/borrowck/check_loans.rs
+++ b/src/librustc/middle/borrowck/check_loans.rs
@@ -18,7 +18,6 @@
 // 4. moves do not affect things loaned out in any way
 
 
-use std::hashmap::HashSet;
 use mc = middle::mem_categorization;
 use middle::borrowck::*;
 use middle::moves;
@@ -37,7 +36,6 @@ struct CheckLoanCtxt<'a> {
     dfcx_loans: &'a LoanDataFlow,
     move_data: @move_data::FlowedMoveData,
     all_loans: &'a [Loan],
-    reported: @mut HashSet<ast::NodeId>,
 }
 
 impl<'a> Visitor<()> for CheckLoanCtxt<'a> {
@@ -75,7 +73,6 @@ pub fn check_loans(bccx: &BorrowckCtxt,
         dfcx_loans: dfcx_loans,
         move_data: @move_data,
         all_loans: all_loans,
-        reported: @mut HashSet::new(),
     };
 
     clcx.visit_block(body, ());