Contaminate ErrorGuaranteed.
This commit is contained in:
parent
95b83f9cac
commit
9388824b9e
1 changed files with 2 additions and 2 deletions
|
|
@ -24,8 +24,8 @@ pub(crate) fn orphan_check_impl(
|
|||
impl_def_id: LocalDefId,
|
||||
) -> Result<(), ErrorGuaranteed> {
|
||||
let trait_ref = tcx.impl_trait_ref(impl_def_id).unwrap();
|
||||
if trait_ref.references_error() {
|
||||
return Ok(());
|
||||
if let Some(err) = trait_ref.error_reported() {
|
||||
return Err(err);
|
||||
}
|
||||
|
||||
let ret = do_orphan_check_impl(tcx, trait_ref, impl_def_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue