Skip to content

Commit df6b42a

Browse files
authored
Unrolled build for rust-lang#140317
Rollup merge of rust-lang#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 rust-lang#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 5ae50d3 + 1ec3e62 commit df6b42a

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)