We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c74f397 commit a99ba11Copy full SHA for a99ba11
src/librustc/middle/typeck/check/regionck.rs
@@ -460,6 +460,10 @@ fn constrain_call(rcx: @mut Rcx,
460
debug!("constrain_call(call_expr=%s, implicitly_ref_args=%?)",
461
call_expr.repr(tcx), implicitly_ref_args);
462
let callee_ty = rcx.resolve_node_type(callee_id);
463
+ if ty::type_is_error(callee_ty) {
464
+ // Bail, as function type is unknown
465
+ return;
466
+ }
467
let fn_sig = ty::ty_fn_sig(callee_ty);
468
469
// `callee_region` is the scope representing the time in which the
0 commit comments