Fix tests from rebase
This commit is contained in:
parent
1db284ecb0
commit
022c148fcd
100 changed files with 584 additions and 480 deletions
|
@ -1513,7 +1513,9 @@ impl<'tcx> ExistentialProjection<'tcx> {
|
|||
/// then this function would return a `exists T. T: Iterator` existential trait
|
||||
/// reference.
|
||||
pub fn trait_ref(&self, tcx: TyCtxt<'_>) -> ty::ExistentialTraitRef<'tcx> {
|
||||
// FIXME(generic_associated_types): truncate substs to have the right length.
|
||||
// FIXME(generic_associated_types): substs is the substs of the
|
||||
// associated type, which should be truncated to get the correct substs
|
||||
// for the trait.
|
||||
let def_id = tcx.associated_item(self.item_def_id).container.id();
|
||||
ty::ExistentialTraitRef { def_id, substs: self.substs }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue