]> git.lizzy.rs Git - rust.git/commit
Auto merge of #30641 - tsion:match-range, r=eddyb
authorbors <bors@rust-lang.org>
Thu, 31 Dec 2015 09:40:02 +0000 (09:40 +0000)
committerbors <bors@rust-lang.org>
Thu, 31 Dec 2015 09:40:02 +0000 (09:40 +0000)
commit7f3201d13108f411cf574a77b732f422245e3fe0
tree2046794916b3d4eeb68bc877282040902b714002
parentf73c0a82ecd28feab1c7328d8659f6d75bd60679
parent78526fcfd18ed65cc61af21fc2687174563aec8b
Auto merge of #30641 - tsion:match-range, 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.

r? @eddyb