auto merge of #14316 : kballard/rust/range_inclusive_no_toprimitive, r=alexcrichton

This commit is contained in:
bors 2014-05-21 02:46:23 -07:00
commit 082075d050

View File

@ -2016,7 +2016,7 @@ pub struct RangeInclusive<A> {
/// Return an iterator over the range [start, stop] /// Return an iterator over the range [start, stop]
#[inline] #[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<A> {
RangeInclusive{range: range(start, stop), done: false} RangeInclusive{range: range(start, stop), done: false}
} }