rust/src/librustc/lint
bors 692077b643 auto merge of #15777 : SimonSapin/rust/pub-ascii-maps, r=alexcrichton
When dealing with HTTP request or responses, many tokens are case-insensitive in the ASCII range but the bytes from the network are not necessarily valid UTF-8.

**[breaking-change]** Rather than adding new very similar traits, this re-uses the `std::ascii::OwnedStrAsciiExt` and `std::ascii::StrAsciiExt` traits, but rename to remove `Str` since that does not apply for bytes.

This PR also makes `std::ascii::ASCII_UPPER_MAP` and `std::ascii::ASCII_LOWER_MAP`, the lookup table all these methods are based on, public. In case there is something else related to ASCII case we haven’t thought of yet, that can be implemented outside of libstd without duplicating the tables.

Although this is a breaking change, I thought this could do without an RFC since the relevant traits are not in the prelude.

r? @alexcrichton
2014-07-30 10:31:11 +00:00
..
builtin.rs lint: Improve ffi-unsafe enum lint warning 2014-07-29 15:43:21 -07:00
context.rs lint: add method to get level of a specific lint. 2014-07-17 20:07:43 +10:00
mod.rs Rename the std::ascii::{Owned,}StrAsciiExt traits to {Owned,}AsciiExt 2014-07-29 23:59:19 +01:00