diff options
| author | bors <bors@rust-lang.org> | 2015-03-21 05:25:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-21 05:25:21 +0000 |
| commit | ecf8c64e1b1b60f228f0c472c0b0dab4a5b5aa61 (patch) | |
| tree | 03752d10ba340b85b8720647c7919a97b21d694b /src/libstd/num | |
| parent | e2fa53e593a854a609ae9efe5a1bbe15265f0a6f (diff) | |
| parent | 212e03181e422f569b6426bc08b713a9efc0d0eb (diff) | |
| download | rust-ecf8c64e1b1b60f228f0c472c0b0dab4a5b5aa61.tar.gz rust-ecf8c64e1b1b60f228f0c472c0b0dab4a5b5aa61.zip | |
Auto merge of #23470 - alexcrichton:less-prelude, r=aturon
This commit removes the reexports of `old_io` traits as well as `old_path` types and traits from the prelude. This functionality is now all deprecated and needs to be removed to make way for other functionality like `Seek` in the `std::io` module (currently reexported as `NewSeek` in the io prelude). Closes #23377 Closes #23378
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/num/mod.rs b/src/libstd/num/mod.rs index 082dad613b5..562094a87f4 100644 --- a/src/libstd/num/mod.rs +++ b/src/libstd/num/mod.rs @@ -1650,7 +1650,7 @@ mod tests { #![test] assert_eq!((0 as $T).next_power_of_two(), 1); let mut next_power = 1; - for i in range::<$T>(1, 40) { + for i in 1 as $T..40 { assert_eq!(i.next_power_of_two(), next_power); if i == next_power { next_power *= 2 } } @@ -1673,7 +1673,7 @@ mod tests { assert_eq!(($T::MAX - 1).checked_next_power_of_two(), None); assert_eq!($T::MAX.checked_next_power_of_two(), None); let mut next_power = 1; - for i in range::<$T>(1, 40) { + for i in 1 as $T..40 { assert_eq!(i.checked_next_power_of_two(), Some(next_power)); if i == next_power { next_power *= 2 } } |
