diff options
| author | Jens Nockert <jens@nockert.se> | 2013-07-08 18:05:17 +0200 |
|---|---|---|
| committer | Jens Nockert <jens@nockert.se> | 2013-07-08 18:05:17 +0200 |
| commit | 1aae28a57d42bfd56e0838ddee0a44605922d655 (patch) | |
| tree | 24378e71ef2022a5f6a3021b765b8feba89aa253 /src/librustc/rustc.rs | |
| parent | 44770ae3a8001de38b33e449889c6444808941fc (diff) | |
| download | rust-1aae28a57d42bfd56e0838ddee0a44605922d655.tar.gz rust-1aae28a57d42bfd56e0838ddee0a44605922d655.zip | |
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.
Diffstat (limited to 'src/librustc/rustc.rs')
| -rw-r--r-- | src/librustc/rustc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/rustc.rs b/src/librustc/rustc.rs index 35375d025eb..4293a44d929 100644 --- a/src/librustc/rustc.rs +++ b/src/librustc/rustc.rs @@ -34,11 +34,11 @@ use driver::session; use middle::lint; use std::io; +use std::num; use std::os; use std::result; use std::str; use std::task; -use std::uint; use std::vec; use extra::getopts::{groups, opt_present}; use extra::getopts; @@ -153,7 +153,7 @@ Available lint options: let lint_dict = lint::get_lint_dict(); let mut max_key = 0; - for lint_dict.each_key |k| { max_key = uint::max(k.len(), max_key); } + for lint_dict.each_key |k| { max_key = num::max(k.len(), max_key); } fn padded(max: uint, s: &str) -> ~str { str::from_bytes(vec::from_elem(max - s.len(), ' ' as u8)) + s } |
