1
Fork 0

Consider polarity in new solver

This commit is contained in:
Michael Goulet 2023-04-22 03:54:33 +00:00
parent b72460fe46
commit 794cb890de
2 changed files with 74 additions and 3 deletions

View file

@ -861,6 +861,11 @@ impl<'tcx> PolyTraitPredicate<'tcx> {
pub fn is_const_if_const(self) -> bool {
self.skip_binder().is_const_if_const()
}
#[inline]
pub fn polarity(self) -> ImplPolarity {
self.skip_binder().polarity
}
}
/// `A: B`