Remove body_def_id from Inherited
This commit is contained in:
parent
5b99723439
commit
fd34549686
14 changed files with 55 additions and 84 deletions
|
@ -176,7 +176,7 @@ fn require_same_types<'tcx>(
|
|||
match &errors[..] {
|
||||
[] => true,
|
||||
errors => {
|
||||
infcx.err_ctxt().report_fulfillment_errors(errors, None);
|
||||
infcx.err_ctxt().report_fulfillment_errors(errors);
|
||||
false
|
||||
}
|
||||
}
|
||||
|
@ -309,7 +309,7 @@ fn check_main_fn_ty(tcx: TyCtxt<'_>, main_def_id: DefId) {
|
|||
ocx.register_bound(cause, param_env, norm_return_ty, term_did);
|
||||
let errors = ocx.select_all_or_error();
|
||||
if !errors.is_empty() {
|
||||
infcx.err_ctxt().report_fulfillment_errors(&errors, None);
|
||||
infcx.err_ctxt().report_fulfillment_errors(&errors);
|
||||
error = true;
|
||||
}
|
||||
// now we can take the return type of the given main function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue