about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2014-05-20 20:27:34 -0700
committerKevin Ballard <kevin@sb.org>2014-05-20 20:27:34 -0700
commitc7454853d21e8ae3b5b4e3c8ee7f02f7a7f6487f (patch)
tree70f603ff03e67a1f5ad76c44f30100048cbaf8cd /src/libcore
parente546452727379f701f2104eb826141a29d4b39fd (diff)
downloadrust-c7454853d21e8ae3b5b4e3c8ee7f02f7a7f6487f.tar.gz
rust-c7454853d21e8ae3b5b4e3c8ee7f02f7a7f6487f.zip
Remove useless ToPrimitive bound on range_inclusive()
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index 9fc16b55631..da1462a7047 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -2016,7 +2016,7 @@ pub struct RangeInclusive<A> {
 
 /// Return an iterator over the range [start, stop]
 #[inline]
-pub fn range_inclusive<A: Add<A, A> + Ord + Clone + One + ToPrimitive>(start: A, stop: A)
+pub fn range_inclusive<A: Add<A, A> + Ord + Clone + One>(start: A, stop: A)
     -> RangeInclusive<A> {
     RangeInclusive{range: range(start, stop), done: false}
 }