diff options
| author | bors <bors@rust-lang.org> | 2019-11-27 00:32:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-11-27 00:32:30 +0000 |
| commit | 809e180a76ce97340bf4354ff357bc59e3ca40b2 (patch) | |
| tree | 7c8e0aaf9f4345352e07818cb99d9b99d78ad81e /src/libcore | |
| parent | a7d791b4503a86c1b16b4393ba7998ef8b561a27 (diff) | |
| parent | 8547ea32db4a6f2c5b27827b30f372859de22fbb (diff) | |
| download | rust-809e180a76ce97340bf4354ff357bc59e3ca40b2.tar.gz rust-809e180a76ce97340bf4354ff357bc59e3ca40b2.zip | |
Auto merge of #66794 - tmandry:rollup-99qrpr0, r=tmandry
Rollup of 14 pull requests Successful merges: - #66128 (alloc: Add new_zeroed() versions like new_uninit().) - #66661 (Add riscv64gc-unknown-linux-gnu target) - #66663 (Miri: print leak report even without tracing) - #66711 (Add hardware floating point features to aarch64-pc-windows-msvc) - #66713 (introduce a target to build the kernel of the unikernel HermitCore) - #66717 (tidy: Accommodate rustfmt's preferred layout of stability attributes) - #66719 (Store pointer width as u32 on Config) - #66720 (Move ErrorReported to rustc_errors) - #66737 (Error codes cleanup) - #66754 (Various tweaks to diagnostic output) - #66763 (Minor edit for documentation-tests.md that increases clarity) - #66779 (follow the same function order in the trait) - #66786 (Add wildcard test for const_if_match) - #66788 (Allow `Unreachable` terminators through `min_const_fn` checks) Failed merges: r? @ghost
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cmp.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index eb5121dd0e0..eea3dc39d34 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -464,9 +464,9 @@ impl<T: PartialOrd> PartialOrd for Reverse<T> { #[inline] fn le(&self, other: &Self) -> bool { other.0 <= self.0 } #[inline] - fn ge(&self, other: &Self) -> bool { other.0 >= self.0 } - #[inline] fn gt(&self, other: &Self) -> bool { other.0 > self.0 } + #[inline] + fn ge(&self, other: &Self) -> bool { other.0 >= self.0 } } #[stable(feature = "reverse_cmp_key", since = "1.19.0")] @@ -1176,9 +1176,9 @@ mod impls { #[inline] fn le(&self, other: & &B) -> bool { PartialOrd::le(*self, *other) } #[inline] - fn ge(&self, other: & &B) -> bool { PartialOrd::ge(*self, *other) } - #[inline] fn gt(&self, other: & &B) -> bool { PartialOrd::gt(*self, *other) } + #[inline] + fn ge(&self, other: & &B) -> bool { PartialOrd::ge(*self, *other) } } #[stable(feature = "rust1", since = "1.0.0")] impl<A: ?Sized> Ord for &A where A: Ord { @@ -1208,9 +1208,9 @@ mod impls { #[inline] fn le(&self, other: &&mut B) -> bool { PartialOrd::le(*self, *other) } #[inline] - fn ge(&self, other: &&mut B) -> bool { PartialOrd::ge(*self, *other) } - #[inline] fn gt(&self, other: &&mut B) -> bool { PartialOrd::gt(*self, *other) } + #[inline] + fn ge(&self, other: &&mut B) -> bool { PartialOrd::ge(*self, *other) } } #[stable(feature = "rust1", since = "1.0.0")] impl<A: ?Sized> Ord for &mut A where A: Ord { |
