Skip to content

Commit 3b1a7b5

Browse files
committed
librustc: Remove the unused reported table from the loan checking pass
1 parent 19ca9e1 commit 3b1a7b5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/librustc/middle/borrowck/check_loans.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
// 4. moves do not affect things loaned out in any way
1919

2020

21-
use std::hashmap::HashSet;
2221
use mc = middle::mem_categorization;
2322
use middle::borrowck::*;
2423
use middle::moves;
@@ -37,7 +36,6 @@ struct CheckLoanCtxt<'a> {
3736
dfcx_loans: &'a LoanDataFlow,
3837
move_data: @move_data::FlowedMoveData,
3938
all_loans: &'a [Loan],
40-
reported: @mut HashSet<ast::NodeId>,
4139
}
4240

4341
impl<'a> Visitor<()> for CheckLoanCtxt<'a> {
@@ -75,7 +73,6 @@ pub fn check_loans(bccx: &BorrowckCtxt,
7573
dfcx_loans: dfcx_loans,
7674
move_data: @move_data,
7775
all_loans: all_loans,
78-
reported: @mut HashSet::new(),
7976
};
8077

8178
clcx.visit_block(body, ());

0 commit comments

Comments
 (0)