From: Oliver Schneider Date: Tue, 26 Apr 2016 15:06:08 +0000 (+0200) Subject: fallout X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=ba8653a8da189aaa629bd1e70c09146e23671328;p=rust.git fallout --- diff --git a/src/consts.rs b/src/consts.rs index 248b5bfe9e6..96956d1793b 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -164,6 +164,7 @@ fn partial_cmp(&self, other: &Constant) -> Option { } } (&Constant::Bool(ref l), &Constant::Bool(ref r)) => Some(l.cmp(r)), + (&Constant::Tuple(ref l), &Constant::Tuple(ref r)) | (&Constant::Vec(ref l), &Constant::Vec(ref r)) => l.partial_cmp(r), (&Constant::Repeat(ref lv, ref ls), &Constant::Repeat(ref rv, ref rs)) => { match lv.partial_cmp(rv) { @@ -171,7 +172,6 @@ fn partial_cmp(&self, other: &Constant) -> Option { x => x, } } - (&Constant::Tuple(ref l), &Constant::Tuple(ref r)) => l.partial_cmp(r), _ => None, //TODO: Are there any useful inter-type orderings? } }