Do not consider associated type bounds for super_predicates_that_define_assoc_type
This commit is contained in:
parent
0bcfff48a5
commit
8ea71f264e
5 changed files with 94 additions and 16 deletions
|
@ -116,7 +116,7 @@ use rustc_trait_selection::traits::{self, ObligationCause, ObligationCauseCode,
|
|||
|
||||
use std::ops::Not;
|
||||
|
||||
use astconv::AstConv;
|
||||
use astconv::{AstConv, OnlySelfBounds};
|
||||
use bounds::Bounds;
|
||||
|
||||
fluent_messages! { "../messages.ftl" }
|
||||
|
@ -531,6 +531,7 @@ pub fn hir_trait_to_predicates<'tcx>(
|
|||
self_ty,
|
||||
&mut bounds,
|
||||
true,
|
||||
OnlySelfBounds(false),
|
||||
);
|
||||
|
||||
bounds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue