diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-13 08:48:44 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-30 08:45:43 +0000 |
| commit | 5940109a0403ec55e7b922256e6e6f82d0c100a2 (patch) | |
| tree | 69ba955f5193af86891e9838564db109c10d5692 /compiler/rustc_hir_analysis/src/check/wfcheck.rs | |
| parent | cb158c2119b44c3d2c61d8e2914d39aa02dfbb1f (diff) | |
| download | rust-5940109a0403ec55e7b922256e6e6f82d0c100a2.tar.gz rust-5940109a0403ec55e7b922256e6e6f82d0c100a2.zip | |
Merge `lower_trait_item` and `lower_impl_item` into `check_item_type`
Diffstat (limited to 'compiler/rustc_hir_analysis/src/check/wfcheck.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/wfcheck.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs index 792214355a9..f03b860ec78 100644 --- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs +++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs @@ -328,8 +328,6 @@ fn check_trait_item<'tcx>( ) -> Result<(), ErrorGuaranteed> { let def_id = trait_item.owner_id.def_id; - crate::collect::lower_trait_item(tcx, trait_item.trait_item_id()); - let (method_sig, span) = match trait_item.kind { hir::TraitItemKind::Fn(ref sig, _) => (Some(sig), trait_item.span), hir::TraitItemKind::Type(_bounds, Some(ty)) => (None, ty.span), @@ -831,8 +829,6 @@ fn check_impl_item<'tcx>( tcx: TyCtxt<'tcx>, impl_item: &'tcx hir::ImplItem<'tcx>, ) -> Result<(), ErrorGuaranteed> { - crate::collect::lower_impl_item(tcx, impl_item.impl_item_id()); - let (method_sig, span) = match impl_item.kind { hir::ImplItemKind::Fn(ref sig, _) => (Some(sig), impl_item.span), // Constrain binding and overflow error spans to `<Ty>` in `type foo = <Ty>`. |
