We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d9451b commit 48ea298Copy full SHA for 48ea298
compiler/rustc_trait_selection/src/infer.rs
@@ -119,12 +119,6 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> {
119
) -> traits::EvaluationResult {
120
let trait_ref = self.tcx.mk_trait_ref(trait_def_id, self_ty, params);
121
122
- debug_assert_eq!(
123
- self.tcx.generics_of(trait_def_id).count() - 1,
124
- params.len(),
125
- "wrong number of generic parameters for {trait_def_id:?}, did you accidentally include the self-type in the params list?"
126
- );
127
-
128
let obligation = traits::Obligation {
129
cause: traits::ObligationCause::dummy(),
130
param_env,
0 commit comments