about summary refs log tree commit diff
path: root/src/librustc_apfloat
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2018-05-28 19:42:11 -0700
committerZack M. Davis <code@zackmdavis.net>2018-06-26 07:53:30 -0700
commit057715557b51af125847da6d19b2e016283c5ae7 (patch)
treedfe0cc5a807ac7ed47bb77893f1c69198be825f6 /src/librustc_apfloat
parent764232cb2a8407c72b9fea68835e686240e30ef3 (diff)
downloadrust-057715557b51af125847da6d19b2e016283c5ae7.tar.gz
rust-057715557b51af125847da6d19b2e016283c5ae7.zip
migrate codebase to `..=` inclusive range patterns
These were stabilized in March 2018's #47813, and are the Preferred Way
to Do It going forward (q.v. #51043).
Diffstat (limited to 'src/librustc_apfloat')
-rw-r--r--src/librustc_apfloat/ieee.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_apfloat/ieee.rs b/src/librustc_apfloat/ieee.rs
index 7abd02b6656..b21448df582 100644
--- a/src/librustc_apfloat/ieee.rs
+++ b/src/librustc_apfloat/ieee.rs
@@ -1753,9 +1753,9 @@ impl<S: Semantics> IeeeFloat<S> {
                     } else {
                         loss = Some(match hex_value {
                             0 => Loss::ExactlyZero,
-                            1...7 => Loss::LessThanHalf,
+                            1..=7 => Loss::LessThanHalf,
                             8 => Loss::ExactlyHalf,
-                            9...15 => Loss::MoreThanHalf,
+                            9..=15 => Loss::MoreThanHalf,
                             _ => unreachable!(),
                         });
                     }