1
Fork 0

Do not consider associated type bounds for super_predicates_that_define_assoc_type

This commit is contained in:
Michael Goulet 2023-04-18 23:55:05 +00:00
parent 0bcfff48a5
commit 8ea71f264e
5 changed files with 94 additions and 16 deletions

View file

@ -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