diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-06-21 10:14:16 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-06-23 14:08:11 -0700 |
| commit | c3e8c178abe08c3427046490242ddb9eb3704b03 (patch) | |
| tree | 078736308106998fd9baacab0a9113fb6c5b73d1 /src/libcore/str | |
| parent | fe96928d7de991e527a7ed7b88bb30aa965c8a08 (diff) | |
std: Fix up stabilization discrepancies
* Remove the deprecated `CharRange` type which was forgotten to be removed awhile back. * Stabilize the `os::$platform::raw::pthread_t` type which was intended to be stabilized as part of #32804
Diffstat (limited to 'src/libcore/str')
| -rw-r--r-- | src/libcore/str/mod.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 5fc15fae519..56d1a396165 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -1292,22 +1292,6 @@ static UTF8_CHAR_WIDTH: [u8; 256] = [ 4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0, // 0xFF ]; -/// Struct that contains a `char` and the index of the first byte of -/// the next `char` in a string. This can be used as a data structure -/// for iterating over the UTF-8 bytes of a string. -#[derive(Copy, Clone, Debug)] -#[unstable(feature = "str_char", - reason = "existence of this struct is uncertain as it is frequently \ - able to be replaced with char.len_utf8() and/or \ - char/char_indices iterators", - issue = "27754")] -pub struct CharRange { - /// Current `char` - pub ch: char, - /// Index of the first byte of the next `char` - pub next: usize, -} - /// Mask of the value bits of a continuation byte const CONT_MASK: u8 = 0b0011_1111; /// Value of the tag bits (tag mask is !CONT_MASK) of a continuation byte |
