Add polarity to TraitPredicate

This commit is contained in:
Santiago Pastorino
2021-10-11 18:10:35 -03:00
parent 72d66064e7
commit 6975afd141
15 changed files with 105 additions and 12 deletions

View File

@@ -825,6 +825,7 @@ impl Visitor<'tcx> for Checker<'mir, 'tcx> {
Binder::dummy(TraitPredicate {
trait_ref,
constness: ty::BoundConstness::ConstIfConst,
polarity: ty::ImplPolarity::Positive,
}),
);

View File

@@ -137,6 +137,7 @@ impl Qualif for NeedsNonConstDrop {
ty::Binder::dummy(ty::TraitPredicate {
trait_ref,
constness: ty::BoundConstness::ConstIfConst,
polarity: ty::ImplPolarity::Positive,
}),
);