]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #51609 - dscorbett:is_numeric, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 1 Aug 2018 17:44:25 +0000 (17:44 +0000)
committerbors <bors@rust-lang.org>
Wed, 1 Aug 2018 17:44:25 +0000 (17:44 +0000)
commitc4156768aa1f23117903e6954f3e9ba946f49295
treee22d966ac5200de4a095cd9e1bc50358903ffac2
parent11f812aa7d1df09724f94c2b095f6dbfd367da17
parent5150ff0c729b5af88da8f45f15bef1b95ba70c08
Auto merge of #51609 - dscorbett:is_numeric, r=alexcrichton

Treat gc=No characters as numeric

[`char::is_numeric`](https://doc.rust-lang.org/std/primitive.char.html#method.is_numeric) and [`char::is_alphanumeric`](https://doc.rust-lang.org/std/primitive.char.html#method.is_alphanumeric) are documented to be defined “in terms of the Unicode General Categories 'Nd', 'Nl', 'No'”, but unicode.py does not group 'No' with the other 'N' categories. These functions therefore currently return `false` for characters like ⟨¾⟩ and ⟨①⟩.
src/libcore/char/methods.rs
src/libcore/tests/char.rs