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 a3c427a commit 5a164e9Copy full SHA for 5a164e9
crates/formality-types/src/grammar/formulas.rs
@@ -150,17 +150,6 @@ pub enum Relation {
150
}
151
152
impl Relation {
153
- /// Capture a few trivial cases; we screen these out to cleanup the results
154
- /// from queries.
155
- pub fn is_trivially_true(&self) -> bool {
156
- match self {
157
- Relation::Equals(a, b) => a == b,
158
- Relation::Sub(a, b) => a == b,
159
- Relation::Outlives(a, b) => a == b,
160
- Relation::WellFormed(_) => false,
161
- }
162
163
-
164
pub fn eq(p1: impl Upcast<Parameter>, p2: impl Upcast<Parameter>) -> Self {
165
Self::Equals(p1.upcast(), p2.upcast())
166
0 commit comments