Assert that various types have the right amount of generic args and fix the sites that used the wrong amount
This commit is contained in:
parent
d9a02b0fb7
commit
6f77c97b38
27 changed files with 153 additions and 144 deletions
|
@ -117,10 +117,7 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> {
|
|||
params: SubstsRef<'tcx>,
|
||||
param_env: ty::ParamEnv<'tcx>,
|
||||
) -> traits::EvaluationResult {
|
||||
let trait_ref = ty::TraitRef {
|
||||
def_id: trait_def_id,
|
||||
substs: self.tcx.mk_substs_trait(self_ty, params),
|
||||
};
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue