Skip to content

Commit 3fae481

Browse files
committedJul 25, 2017
std: Stabilize utf8_error_error_len feature
Stabilizes: * `Utf8Error::error_len` Closes #40494
1 parent cbfce40 commit 3fae481

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

‎src/liballoc/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#![feature(test)]
2929
#![feature(unboxed_closures)]
3030
#![feature(unicode)]
31-
#![feature(utf8_error_error_len)]
3231

3332
extern crate alloc;
3433
extern crate test;

‎src/libcore/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl Utf8Error {
207207
/// that starts at the index given by `valid_up_to()`.
208208
/// Decoding should resume after that sequence
209209
/// (after inserting a U+FFFD REPLACEMENT CHARACTER) in case of lossy decoding.
210-
#[unstable(feature = "utf8_error_error_len", reason ="new", issue = "40494")]
210+
#[stable(feature = "utf8_error_error_len", since = "1.20.0")]
211211
pub fn error_len(&self) -> Option<usize> {
212212
self.error_len.map(|len| len as usize)
213213
}

0 commit comments

Comments
 (0)
Please sign in to comment.