File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1139,11 +1139,7 @@ pub trait PartialOrd<Rhs: ?Sized = Self>: PartialEq<Rhs> {
1139
1139
#[ must_use]
1140
1140
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1141
1141
fn le ( & self , other : & Rhs ) -> bool {
1142
- // Pattern `Some(Less | Eq)` optimizes worse than negating `None | Some(Greater)`.
1143
- // FIXME: The root cause was fixed upstream in LLVM with:
1144
- // https://github.com/llvm/llvm-project/commit/9bad7de9a3fb844f1ca2965f35d0c2a3d1e11775
1145
- // Revert this workaround once support for LLVM 12 gets dropped.
1146
- !matches ! ( self . partial_cmp( other) , None | Some ( Greater ) )
1142
+ matches ! ( self . partial_cmp( other) , Some ( Less | Equal ) )
1147
1143
}
1148
1144
1149
1145
/// This method tests greater than (for `self` and `other`) and is used by the `>` operator.
You can’t perform that action at this time.
0 commit comments