about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorPyry Kontio <pyry.kontio@drasa.eu>2020-05-26 02:48:56 +0900
committerPyry Kontio <pyry.kontio@drasa.eu>2020-05-26 05:07:00 +0900
commitbd68de89b55d7f7d7adc41fdcd0a5bac1f805692 (patch)
tree9e706cb639047a847667fee19073b7cb0b3e9019 /src/libcore/num
parentd6650e0d2b1027de341ba7f48937eab499fca3ee (diff)
remove unneeded and unidiomatic must_use
Diffstat (limited to 'src/libcore/num')
-rw-r--r--src/libcore/num/f32.rs1
-rw-r--r--src/libcore/num/f64.rs1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs
index 813e3077c3b..36b70587385 100644
--- a/src/libcore/num/f32.rs
+++ b/src/libcore/num/f32.rs
@@ -851,7 +851,6 @@ impl f32 {
     /// #     .zip([-5.0, 0.1, 10.0, 99.0, f32::INFINITY, f32::NAN].iter())
     /// #     .all(|(a, b)| a.to_bits() == b.to_bits()))
     /// ```
-    #[must_use = "method returns a new number and does not mutate the original value"]
     #[unstable(feature = "total_cmp", issue = "none")]
     #[inline]
     pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {
diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs
index 9c021808380..61711df3c65 100644
--- a/src/libcore/num/f64.rs
+++ b/src/libcore/num/f64.rs
@@ -865,7 +865,6 @@ impl f64 {
     /// #     .zip([-5.0, 0.1, 10.0, 99.0, f64::INFINITY, f64::NAN].iter())
     /// #     .all(|(a, b)| a.to_bits() == b.to_bits()))
     /// ```
-    #[must_use = "method returns a new number and does not mutate the original value"]
     #[unstable(feature = "total_cmp", issue = "none")]
     #[inline]
     pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {