diff options
| author | Falco Hirschenberger <falco.hirschenberger@gmail.com> | 2014-07-09 09:45:32 +0200 |
|---|---|---|
| committer | Falco Hirschenberger <falco.hirschenberger@gmail.com> | 2014-07-10 09:38:15 +0200 |
| commit | f8bc571df70a0832890bbed82ff80d4c9921b6ac (patch) | |
| tree | f08aab58bc32828f17fb92b42747de6d1ca3b6ec /src/libcore | |
| parent | 6372915a78a12adfbc327aba87225988ae03e7f9 (diff) | |
| download | rust-f8bc571df70a0832890bbed82ff80d4c9921b6ac.tar.gz rust-f8bc571df70a0832890bbed82ff80d4c9921b6ac.zip | |
Add range lint for float literals, fixing #10934
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/num/f32.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/f64.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs index cadc874891d..82745663e0c 100644 --- a/src/libcore/num/f32.rs +++ b/src/libcore/num/f32.rs @@ -11,6 +11,8 @@ //! Operations and constants for 32-bits floats (`f32` type) #![doc(primitive = "f32")] +// FIXME: MIN_VALUE and MAX_VALUE literals are parsed as -inf and inf #14353 +#![allow(type_overflow)] use intrinsics; use mem; diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs index 5e19015dd02..a3a82aeec5e 100644 --- a/src/libcore/num/f64.rs +++ b/src/libcore/num/f64.rs @@ -11,6 +11,8 @@ //! Operations and constants for 64-bits floats (`f64` type) #![doc(primitive = "f64")] +// FIXME: MIN_VALUE and MAX_VALUE literals are parsed as -inf and inf #14353 +#![allow(type_overflow)] use intrinsics; use mem; |
