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 6edc6a1 commit ba8653aCopy full SHA for ba8653a
src/consts.rs
@@ -164,14 +164,14 @@ impl PartialOrd for Constant {
164
}
165
166
(&Constant::Bool(ref l), &Constant::Bool(ref r)) => Some(l.cmp(r)),
167
+ (&Constant::Tuple(ref l), &Constant::Tuple(ref r)) |
168
(&Constant::Vec(ref l), &Constant::Vec(ref r)) => l.partial_cmp(r),
169
(&Constant::Repeat(ref lv, ref ls), &Constant::Repeat(ref rv, ref rs)) => {
170
match lv.partial_cmp(rv) {
171
Some(Equal) => Some(ls.cmp(rs)),
172
x => x,
173
174
- (&Constant::Tuple(ref l), &Constant::Tuple(ref r)) => l.partial_cmp(r),
175
_ => None, //TODO: Are there any useful inter-type orderings?
176
177
0 commit comments