Skip to content

Commit

Permalink
Fix the regression
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Dec 18, 2017
1 parent dbffc42 commit 55b0f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/expr_use_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx> {
ty::TyError => { }
_ => {
let type_dependent_defs = self.mc.tables.type_dependent_defs();
if !type_dependent_defs.contains_key(call.hir_id) {
if type_dependent_defs.contains_key(call.hir_id) {
let def_id = type_dependent_defs[call.hir_id].def_id();
let call_scope = region::Scope::Node(call.hir_id.local_id);
match OverloadedCallType::from_method_id(self.tcx(), def_id) {
Expand All @@ -577,7 +577,7 @@ impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx> {
ty::ImmBorrow,
ClosureInvocation);
}
FnOnceOverloadedCall => {self.consume_expr(callee)},
FnOnceOverloadedCall => self.consume_expr(callee),
}
}
}
Expand Down

0 comments on commit 55b0f14

Please sign in to comment.