We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3797dc commit 7834648Copy full SHA for 7834648
compiler/rustc_middle/src/ty/mod.rs
@@ -748,6 +748,13 @@ pub struct TraitPredicate<'tcx> {
748
749
pub constness: BoundConstness,
750
751
+ /// If polarity is Positive: we are proving that the trait is implemented.
752
+ ///
753
+ /// If polarity is Negative: we are proving that a negative impl of this trait
754
+ /// exists. (Note that coherence also checks whether negative impls of supertraits
755
+ /// exist via a series of predicates.)
756
757
+ /// If polarity is Reserved: that's a bug.
758
pub polarity: ImplPolarity,
759
}
760
0 commit comments