Skip to content

Commit fbf6832

Browse files
authored
Rollup merge of #140317 - mejrs:check_on_uni, r=compiler-errors
Remove redundant check We still check for `rustc_on_unimplemented` on implementations, but this functionality was removed in #139091, since then it always returns `Ok` when called with a non-trait defid. https://github.com/rust-lang/rust/blob/b4c8b0c3f0533bb342a4873ff59bdad3883ab8e3/compiler/rustc_trait_selection/src/error_reporting/traits/on_unimplemented.rs#L557-L564
2 parents 98492a1 + 1ec3e62 commit fbf6832

File tree

1 file changed

+0
-1
lines changed
  • compiler/rustc_hir_analysis/src/check

1 file changed

+0
-1
lines changed

compiler/rustc_hir_analysis/src/check/check.rs

-1
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,6 @@ pub(crate) fn check_item_type(tcx: TyCtxt<'_>, def_id: LocalDefId) {
730730
.is_ok()
731731
{
732732
check_impl_items_against_trait(tcx, def_id, impl_trait_header);
733-
check_on_unimplemented(tcx, def_id);
734733
}
735734
}
736735
}

0 commit comments

Comments
 (0)