diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-17 15:39:11 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-21 20:36:35 +0000 |
| commit | 48ea298abfbab541c34c95481a0466ab91b08e55 (patch) | |
| tree | 5b66b1076205111b35b1a415398c41e0f24bf84f | |
| parent | 4d9451b1d1e334e90e6725d5577545eae4e28545 (diff) | |
| download | rust-48ea298abfbab541c34c95481a0466ab91b08e55.tar.gz rust-48ea298abfbab541c34c95481a0466ab91b08e55.zip | |
Remove a redundant assert
| -rw-r--r-- | compiler/rustc_trait_selection/src/infer.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_trait_selection/src/infer.rs b/compiler/rustc_trait_selection/src/infer.rs index 5be49996a0b..af17c86e1a5 100644 --- a/compiler/rustc_trait_selection/src/infer.rs +++ b/compiler/rustc_trait_selection/src/infer.rs @@ -119,12 +119,6 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> { ) -> traits::EvaluationResult { let trait_ref = self.tcx.mk_trait_ref(trait_def_id, self_ty, params); - debug_assert_eq!( - self.tcx.generics_of(trait_def_id).count() - 1, - params.len(), - "wrong number of generic parameters for {trait_def_id:?}, did you accidentally include the self-type in the params list?" - ); - let obligation = traits::Obligation { cause: traits::ObligationCause::dummy(), param_env, |
