]> git.lizzy.rs Git - rust.git/commit
Remove inherent `ascii_ctype` methods from `str` and `[u8]`
authorLukas Kalbertodt <lukas.kalbertodt@gmail.com>
Thu, 9 Nov 2017 10:05:28 +0000 (11:05 +0100)
committerLukas Kalbertodt <lukas.kalbertodt@gmail.com>
Sat, 18 Nov 2017 16:30:12 +0000 (17:30 +0100)
commit667f83d46baa1c42a170cfae5afbff52a85cd95d
tree9d8a27f1b32a633155dedcd3f6388f135d89cfe2
parent18250b0349848fbfca53153cf121724c773dd508
Remove inherent `ascii_ctype` methods from `str` and `[u8]`

This has been discussed in #39658. It's a bit ambiguous how those
methods work for a sequence of ascii values. We prefer users writing
`s.iter().all(|b| b.is_ascii_...())` explicitly.

The AsciiExt methods still exist and are implemented for `str`
and `[u8]`. We will deprecated or remove those later.
src/liballoc/slice.rs
src/liballoc/str.rs
src/libstd/ascii.rs