Add+Use mir::BinOp::Cmp
This commit is contained in:
parent
744c664ba2
commit
3da115a93b
35 changed files with 521 additions and 119 deletions
|
@ -329,6 +329,7 @@ pub enum BinOp {
|
|||
Ne,
|
||||
Ge,
|
||||
Gt,
|
||||
Cmp,
|
||||
Offset,
|
||||
}
|
||||
|
||||
|
@ -368,6 +369,9 @@ impl BinOp {
|
|||
assert!(lhs_kind.is_primitive() || lhs_kind.is_raw_ptr() || lhs_kind.is_fn_ptr());
|
||||
Ty::bool_ty()
|
||||
}
|
||||
BinOp::Cmp => {
|
||||
unimplemented!("Should cmp::Ordering be a RigidTy?");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue