Don't require specifying unrelated assoc types when trait alias is in dyn type
This commit is contained in:
parent
7d3702e472
commit
850cc34da2
4 changed files with 55 additions and 50 deletions
|
@ -127,7 +127,7 @@ impl<'tcx> TraitAliasExpander<'tcx> {
|
|||
}
|
||||
|
||||
// Get components of trait alias.
|
||||
let predicates = tcx.implied_predicates_of(trait_ref.def_id());
|
||||
let predicates = tcx.super_predicates_of(trait_ref.def_id());
|
||||
debug!(?predicates);
|
||||
|
||||
let items = predicates.predicates.iter().rev().filter_map(|(pred, span)| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue