about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorScott Olson <scott@solson.me>2015-12-30 10:25:35 -0600
committerScott Olson <scott@solson.me>2015-12-30 10:25:41 -0600
commit8a834097cc179a4f5cd685230b92772d371c920f (patch)
treedcf9a3377f2b24fab310d07508559856b23c16d0 /src/libsyntax/errors
parent6e2a64b57a74f35bef215972adf1b803cff288bd (diff)
downloadrust-8a834097cc179a4f5cd685230b92772d371c920f.tar.gz
rust-8a834097cc179a4f5cd685230b92772d371c920f.zip
Use built-in comparisons for range matching in MIR.
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.
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions