Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c6156a6

Browse files
Uwu
1 parent 4454a72 commit c6156a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_hir_analysis/src/hir_ty_lowering/dyn_compatibility.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
103103
let guar = self.report_trait_object_with_no_traits_error(span, &trait_bounds);
104104
return Ty::new_error(tcx, guar);
105105
}
106+
// Uwu
107+
if let Err(guar) = trait_bounds.error_reported() {
108+
return Ty::new_error(tcx, guar);
109+
}
106110

107111
// Check that there are no gross dyn-compatibility violations;
108112
// most importantly, that the supertraits don't contain `Self`,

0 commit comments

Comments
 (0)