From 3fae48107f62af7d2a6b0cf269dbda7b88f34f35 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 20 Jul 2017 15:46:46 -0700 Subject: std: Stabilize `utf8_error_error_len` feature Stabilizes: * `Utf8Error::error_len` Closes #40494 --- src/liballoc/tests/lib.rs | 1 - src/libcore/str/mod.rs | 2 +- 2 files changed, 1 insertion(+), 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 { self.error_len.map(|len| len as usize) } -- cgit 1.4.1-3-g733a5