We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95b83f9 commit 9388824Copy full SHA for 9388824
compiler/rustc_typeck/src/coherence/orphan.rs
@@ -24,8 +24,8 @@ pub(crate) fn orphan_check_impl(
24
impl_def_id: LocalDefId,
25
) -> Result<(), ErrorGuaranteed> {
26
let trait_ref = tcx.impl_trait_ref(impl_def_id).unwrap();
27
- if trait_ref.references_error() {
28
- return Ok(());
+ if let Some(err) = trait_ref.error_reported() {
+ return Err(err);
29
}
30
31
let ret = do_orphan_check_impl(tcx, trait_ref, impl_def_id);
0 commit comments