diff options
| author | yukang <moorekang@gmail.com> | 2024-02-11 14:47:30 +0800 | 
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2024-02-12 09:51:35 +0800 | 
| commit | 2bcbc16caf17351ef3f8d5e9faee98b48387d589 (patch) | |
| tree | 81a82bbc409eaccb924493b2f76b4652d10d4aae /compiler/rustc_hir_analysis/src/impl_wf_check | |
| parent | 42752cbe095b9ad9941f20f22f80788d95f4ab06 (diff) | |
| download | rust-2bcbc16caf17351ef3f8d5e9faee98b48387d589.tar.gz rust-2bcbc16caf17351ef3f8d5e9faee98b48387d589.zip | |
remove a bunch of dead parameters in fn
Diffstat (limited to 'compiler/rustc_hir_analysis/src/impl_wf_check')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/impl_wf_check/min_specialization.rs | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/compiler/rustc_hir_analysis/src/impl_wf_check/min_specialization.rs b/compiler/rustc_hir_analysis/src/impl_wf_check/min_specialization.rs index 1b6a39d8162..ec8ea77b749 100644 --- a/compiler/rustc_hir_analysis/src/impl_wf_check/min_specialization.rs +++ b/compiler/rustc_hir_analysis/src/impl_wf_check/min_specialization.rs @@ -425,9 +425,7 @@ fn check_predicates<'tcx>( let mut res = Ok(()); for (clause, span) in impl1_predicates { - if !impl2_predicates - .iter() - .any(|pred2| trait_predicates_eq(tcx, clause.as_predicate(), *pred2, span)) + if !impl2_predicates.iter().any(|pred2| trait_predicates_eq(clause.as_predicate(), *pred2)) { res = res.and(check_specialization_on(tcx, clause, span)) } @@ -459,10 +457,8 @@ fn check_predicates<'tcx>( /// /// So we make that check in this function and try to raise a helpful error message. fn trait_predicates_eq<'tcx>( - _tcx: TyCtxt<'tcx>, predicate1: ty::Predicate<'tcx>, predicate2: ty::Predicate<'tcx>, - _span: Span, ) -> bool { // FIXME(effects) predicate1 == predicate2 | 
