Replaces the free-standing functions in f32, &c.

The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16,
u32, u64, float, int, and uint are replaced with generic functions in
num instead.

If you were previously using any of those functions, just replace them
with the corresponding function with the same name in num.

Note: If you were using a function that corresponds to an operator, use
the operator instead.
This commit is contained in:
Jens Nockert
2013-07-08 18:05:17 +02:00
parent 44770ae3a8
commit 1aae28a57d
35 changed files with 161 additions and 353 deletions

View File

@@ -18,6 +18,7 @@ use visit;
use std::hashmap::HashMap;
use std::int;
use std::num;
use std::option;
use std::cast;
use std::local_data;
@@ -376,8 +377,8 @@ impl id_range {
}
pub fn add(&mut self, id: node_id) {
self.min = int::min(self.min, id);
self.max = int::max(self.max, id + 1);
self.min = num::min(self.min, id);
self.max = num::max(self.max, id + 1);
}
}