diff options
| author | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2017-10-02 09:50:36 +0200 |
|---|---|---|
| committer | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2017-11-03 21:27:40 +0100 |
| commit | da57580736c6d30fec6c4e4442bc5376ac81f245 (patch) | |
| tree | d56aa1a4da1c032756e8c6ca48c9bb47d3f4114a /src/liballoc/vec.rs | |
| parent | 1916e3c4aad7b0e0de1cfd190819609f55520996 (diff) | |
| download | rust-da57580736c6d30fec6c4e4442bc5376ac81f245.tar.gz rust-da57580736c6d30fec6c4e4442bc5376ac81f245.zip | |
Remove unused AsciiExt imports and fix tests related to ascii methods
Many AsciiExt imports have become useless thanks to the inherent ascii methods added in the last commits. These were removed. In some places, I fully specified the ascii method being called to enforce usage of the AsciiExt trait. Note that some imports are not removed but tagged with a `#[cfg(stage0)]` attribute. This is necessary, because certain ascii methods are not yet available in stage0. All those imports will be removed later. Additionally, failing tests were fixed. The test suite should exit successfully now.
Diffstat (limited to 'src/liballoc/vec.rs')
| -rw-r--r-- | src/liballoc/vec.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index cf34e195dea..5aca199cf40 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -853,8 +853,6 @@ impl<T> Vec<T> { /// # Examples /// /// ``` - /// use std::ascii::AsciiExt; - /// /// let mut vec = vec!["foo", "bar", "Bar", "baz", "bar"]; /// /// vec.dedup_by(|a, b| a.eq_ignore_ascii_case(b)); |
