Consider polarity in new solver
This commit is contained in:
parent
b72460fe46
commit
794cb890de
2 changed files with 74 additions and 3 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue