Skip to content

Commit 2f42a18

Browse files
committed
Fix failing diagnostic test.
1 parent f518cf9 commit 2f42a18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_typeck/check/callee.rs

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
145145
}
146146

147147
self.try_overloaded_call_traits(call_expr, adjusted_ty, Some(arg_exprs))
148+
.or_else(|| self.try_overloaded_call_traits(call_expr, adjusted_ty, None))
148149
.map(|(autoref, method)| {
149150
let mut adjustments = autoderef.adjust_steps(self, Needs::None);
150151
adjustments.extend(autoref);

0 commit comments

Comments
 (0)