Skip to content

Commit

Permalink
Remove useless ToPrimitive bound on range_inclusive()
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball committed May 21, 2014
1 parent e546452 commit c745485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/iter.rs
Expand Up @@ -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}
}
Expand Down

5 comments on commit c745485

@bors
Copy link
Contributor

@bors bors commented on c745485 May 21, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at lilyball@c745485

@bors
Copy link
Contributor

@bors bors commented on c745485 May 21, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging kballard/rust/range_inclusive_no_toprimitive = c745485 into auto

@bors
Copy link
Contributor

@bors bors commented on c745485 May 21, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kballard/rust/range_inclusive_no_toprimitive = c745485 merged ok, testing candidate = 082075d

@bors
Copy link
Contributor

@bors bors commented on c745485 May 21, 2014

@bors
Copy link
Contributor

@bors bors commented on c745485 May 21, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 082075d

Please sign in to comment.