1
Fork 0

use impl substs in on_unimplemented

This commit is contained in:
Michael Goulet 2022-03-06 18:38:42 -08:00
parent 38a0b81b1c
commit e9ddb8f8fb
6 changed files with 70 additions and 14 deletions

View file

@ -977,7 +977,6 @@ impl<'tcx> TraitRef<'tcx> {
substs: SubstsRef<'tcx>,
) -> ty::TraitRef<'tcx> {
let defs = tcx.generics_of(trait_id);
ty::TraitRef { def_id: trait_id, substs: tcx.intern_substs(&substs[..defs.params.len()]) }
}
}