about summary refs log tree commit diff
path: root/src/libstd/prelude
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2015-03-13 11:35:53 -0700
committerAaron Turon <aturon@mozilla.com>2015-03-13 14:45:13 -0700
commit1d5983aded687149239e8943debd51abdce5d27b (patch)
tree0ff9089b7e510e8d93c0c18e775ed315141d3b82 /src/libstd/prelude
parentee7696383f3423cdd17373ff9e75c01acd8e3417 (diff)
Deprecate range, range_step, count, distributions
This commit deprecates the `count`, `range` and `range_step` functions
in `iter`, in favor of range notation. To recover all existing
functionality, a new `step_by` adapter is provided directly on `ops::Range`
and `ops::RangeFrom`.

[breaking-change]
Diffstat (limited to 'src/libstd/prelude')
-rw-r--r--src/libstd/prelude/v1.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/prelude/v1.rs b/src/libstd/prelude/v1.rs
index 60e1354482c..31aac333859 100644
--- a/src/libstd/prelude/v1.rs
+++ b/src/libstd/prelude/v1.rs
@@ -57,6 +57,7 @@
 // NB: remove when I/O reform lands
 #[doc(no_inline)] pub use old_io::{Buffer, Writer, Reader, Seek, BufferPrelude};
 // NB: remove when range syntax lands
+#[allow(deprecated)]
 #[doc(no_inline)] pub use iter::range;
 
 #[doc(no_inline)] pub use num::wrapping::{Wrapping, WrappingOps};