diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index 96302acb8d9..1f5ef6be0bc 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -4375,95 +4375,6 @@ impl Iterator for StepBy> where
}
}
-/// An iterator over the range [start, stop]
-#[derive(Clone)]
-#[unstable(feature = "range_inclusive",
- reason = "likely to be replaced by range notation and adapters",
- issue = "27777")]
-#[rustc_deprecated(since = "1.5.0", reason = "replaced with ... syntax")]
-#[allow(deprecated)]
-pub struct RangeInclusive {
- range: ops::Range,
- done: bool,
-}
-
-/// Returns an iterator over the range [start, stop].
-#[inline]
-#[unstable(feature = "range_inclusive",
- reason = "likely to be replaced by range notation and adapters",
- issue = "27777")]
-#[rustc_deprecated(since = "1.5.0", reason = "replaced with ... syntax")]
-#[allow(deprecated)]
-pub fn range_inclusive(start: A, stop: A) -> RangeInclusive
- where A: Step + One + Clone
-{
- RangeInclusive {
- range: start..stop,
- done: false,
- }
-}
-
-#[unstable(feature = "range_inclusive",
- reason = "likely to be replaced by range notation and adapters",
- issue = "27777")]
-#[rustc_deprecated(since = "1.5.0", reason = "replaced with ... syntax")]
-#[allow(deprecated)]
-impl Iterator for RangeInclusive where
- A: PartialEq + Step + One + Clone,
- for<'a> &'a A: Add<&'a A, Output = A>
-{
- type Item = A;
-
- #[inline]
- fn next(&mut self) -> Option {
- self.range.next().or_else(|| {
- if !self.done && self.range.start == self.range.end {
- self.done = true;
- Some(self.range.end.clone())
- } else {
- None
- }
- })
- }
-
- #[inline]
- fn size_hint(&self) -> (usize, Option) {
- let (lo, hi) = self.range.size_hint();
- if self.done {
- (lo, hi)
- } else {
- let lo = lo.saturating_add(1);
- let hi = hi.and_then(|x| x.checked_add(1));
- (lo, hi)
- }
- }
-}
-
-#[unstable(feature = "range_inclusive",
- reason = "likely to be replaced by range notation and adapters",
- issue = "27777")]
-#[rustc_deprecated(since = "1.5.0", reason = "replaced with ... syntax")]
-#[allow(deprecated)]
-impl DoubleEndedIterator for RangeInclusive where
- A: PartialEq + Step + One + Clone,
- for<'a> &'a A: Add<&'a A, Output = A>,
- for<'a> &'a A: Sub