Skip to content

Commit 8256241

Browse files
author
Jorge Aparicio
committed
impl f{32,64}
1 parent 3ab26f8 commit 8256241

File tree

6 files changed

+2472
-1
lines changed

6 files changed

+2472
-1
lines changed

src/librustc/middle/check_match.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use middle::ty;
2727
use std::cmp::Ordering;
2828
use std::fmt;
2929
use std::iter::{range_inclusive, AdditiveIterator, FromIterator, IntoIterator, repeat};
30+
#[cfg(stage0)]
3031
use std::num::Float;
3132
use std::slice;
3233
use syntax::ast::{self, DUMMY_NODE_ID, NodeId, Pat};

src/libserialize/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ use std::io::prelude::*;
204204
use std::io;
205205
use std::mem::{swap};
206206
use std::num::FpCategory as Fp;
207+
#[cfg(stage0)]
207208
use std::num::{Float, Int};
208209
use std::ops::Index;
209210
use std::str::FromStr;
@@ -2622,7 +2623,6 @@ mod tests {
26222623
StackElement, Stack, Decoder, Encoder, EncoderError};
26232624
use std::{i64, u64, f32, f64};
26242625
use std::collections::BTreeMap;
2625-
use std::num::Float;
26262626
use std::string;
26272627

26282628
#[derive(RustcDecodable, Eq, PartialEq, Debug)]

0 commit comments

Comments
 (0)