Skip to content

Commit 55b0f14

Browse files
committed
Fix the regression
1 parent dbffc42 commit 55b0f14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/librustc/middle/expr_use_visitor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx> {
559559
ty::TyError => { }
560560
_ => {
561561
let type_dependent_defs = self.mc.tables.type_dependent_defs();
562-
if !type_dependent_defs.contains_key(call.hir_id) {
562+
if type_dependent_defs.contains_key(call.hir_id) {
563563
let def_id = type_dependent_defs[call.hir_id].def_id();
564564
let call_scope = region::Scope::Node(call.hir_id.local_id);
565565
match OverloadedCallType::from_method_id(self.tcx(), def_id) {
@@ -577,7 +577,7 @@ impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx> {
577577
ty::ImmBorrow,
578578
ClosureInvocation);
579579
}
580-
FnOnceOverloadedCall => {self.consume_expr(callee)},
580+
FnOnceOverloadedCall => self.consume_expr(callee),
581581
}
582582
}
583583
}

0 commit comments

Comments
 (0)