report_mismatch did not actually report anymore
This commit is contained in:
@@ -478,7 +478,7 @@ fn sanity_check_found_hidden_type<'tcx>(
|
||||
} else {
|
||||
let span = tcx.def_span(key.def_id);
|
||||
let other = ty::OpaqueHiddenType { ty: hidden_ty, span };
|
||||
Err(ty.report_mismatch(&other, key.def_id, tcx)?.emit())
|
||||
Err(ty.build_mismatch_error(&other, key.def_id, tcx)?.emit())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user