Skip to content

Commit 48ea298

Browse files
committed
Remove a redundant assert
1 parent 4d9451b commit 48ea298

File tree

1 file changed

+0
-6
lines changed
  • compiler/rustc_trait_selection/src

1 file changed

+0
-6
lines changed

compiler/rustc_trait_selection/src/infer.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> {
119119
) -> traits::EvaluationResult {
120120
let trait_ref = self.tcx.mk_trait_ref(trait_def_id, self_ty, params);
121121

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-
128122
let obligation = traits::Obligation {
129123
cause: traits::ObligationCause::dummy(),
130124
param_env,

0 commit comments

Comments
 (0)