We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 075b3ce commit fee9e9bCopy full SHA for fee9e9b
compiler/rustc_typeck/src/check/inherited.rs
@@ -105,10 +105,13 @@ impl<'tcx> Inherited<'_, 'tcx> {
105
let mut fulfillment_ctxt = FulfillmentContext::new_in_snapshot();
106
fulfillment_ctxt.register_predicate_obligations(infcx, obligations);
107
if fulfillment_ctxt.select_all_or_error(infcx).is_empty() {
108
- infcx.resolve_vars_if_possible(normalized_fn_sig)
109
- } else {
110
- fn_sig
+ let normalized_fn_sig =
+ infcx.resolve_vars_if_possible(normalized_fn_sig);
+ if !normalized_fn_sig.needs_infer() {
111
+ return normalized_fn_sig;
112
+ }
113
}
114
+ fn_sig
115
})
116
})),
117
def_id,
0 commit comments