Don't require specifying unrelated assoc types when trait alias is in dyn type
This commit is contained in:
@@ -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)| {
|
||||
|
||||
Reference in New Issue
Block a user