diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-07-20 15:46:46 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-07-25 07:09:31 -0700 |
| commit | 3fae48107f62af7d2a6b0cf269dbda7b88f34f35 (patch) | |
| tree | cdd40cb6f773882d4d615c03b4d1c2ae67b45e6d | |
| parent | cbfce40e1cf5e619091fb9b5efd06ed29fa915cd (diff) | |
| download | rust-3fae48107f62af7d2a6b0cf269dbda7b88f34f35.tar.gz rust-3fae48107f62af7d2a6b0cf269dbda7b88f34f35.zip | |
std: Stabilize `utf8_error_error_len` feature
Stabilizes: * `Utf8Error::error_len` Closes #40494
| -rw-r--r-- | src/liballoc/tests/lib.rs | 1 | ||||
| -rw-r--r-- | src/libcore/str/mod.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs index 75ff7811137..27b23d14059 100644 --- a/src/liballoc/tests/lib.rs +++ b/src/liballoc/tests/lib.rs @@ -28,7 +28,6 @@ #![feature(test)] #![feature(unboxed_closures)] #![feature(unicode)] -#![feature(utf8_error_error_len)] extern crate alloc; extern crate test; diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 0bbbf2352b4..78d2a526e02 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -207,7 +207,7 @@ impl Utf8Error { /// that starts at the index given by `valid_up_to()`. /// Decoding should resume after that sequence /// (after inserting a U+FFFD REPLACEMENT CHARACTER) in case of lossy decoding. - #[unstable(feature = "utf8_error_error_len", reason ="new", issue = "40494")] + #[stable(feature = "utf8_error_error_len", since = "1.20.0")] pub fn error_len(&self) -> Option<usize> { self.error_len.map(|len| len as usize) } |
