Skip to content

Conversation

solson
Copy link
Contributor

@solson solson commented Dec 30, 2015

The previous version using PartialOrd::le was broken since it passed T arguments where &T was expected.

It makes sense to use primitive comparisons since range patterns can only be used with chars and numeric types.

r? @eddyb

The previous version using `PartialOrd::le` was broken since it passed `T`
arguments where `&T` was expected.

It makes sense to use primitive comparisons since range patterns can only be
used with chars and numeric types.
@eddyb
Copy link
Member

eddyb commented Dec 30, 2015

@bors r+

@bors
Copy link
Collaborator

bors commented Dec 30, 2015

📌 Commit 78526fc has been approved by eddyb

bors added a commit that referenced this pull request Dec 31, 2015
The previous version using `PartialOrd::le` was broken since it passed `T` arguments where `&T` was expected.

It makes sense to use primitive comparisons since range patterns can only be used with chars and numeric types.

r? @eddyb
@bors
Copy link
Collaborator

bors commented Dec 31, 2015

⌛ Testing commit 78526fc with merge 7f3201d...

@bors bors merged commit 78526fc into rust-lang:master Dec 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants