diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-26 16:12:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-26 16:12:32 +0200 |
| commit | fbf68324fc737a984120c16e16b7e5f4bf39f7a1 (patch) | |
| tree | b7cc95a2d94236ff88dc7f768b6dd8c8d4269ed4 | |
| parent | 98492a13fee92a14f8942b13cbb012da874d713a (diff) | |
| parent | 1ec3e626c2a0c1635d06cc9f8721d97a05e61433 (diff) | |
| download | rust-fbf68324fc737a984120c16e16b7e5f4bf39f7a1.tar.gz rust-fbf68324fc737a984120c16e16b7e5f4bf39f7a1.zip | |
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 https://github.com/rust-lang/rust/pull/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
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/check.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/check.rs b/compiler/rustc_hir_analysis/src/check/check.rs index 4f338c6a19e..f92b2aea160 100644 --- a/compiler/rustc_hir_analysis/src/check/check.rs +++ b/compiler/rustc_hir_analysis/src/check/check.rs @@ -730,7 +730,6 @@ pub(crate) fn check_item_type(tcx: TyCtxt<'_>, def_id: LocalDefId) { .is_ok() { check_impl_items_against_trait(tcx, def_id, impl_trait_header); - check_on_unimplemented(tcx, def_id); } } } |
