We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
utf8_error_error_len
1 parent cbfce40 commit 3fae481Copy full SHA for 3fae481
src/liballoc/tests/lib.rs
@@ -28,7 +28,6 @@
28
#![feature(test)]
29
#![feature(unboxed_closures)]
30
#![feature(unicode)]
31
-#![feature(utf8_error_error_len)]
32
33
extern crate alloc;
34
extern crate test;
src/libcore/str/mod.rs
@@ -207,7 +207,7 @@ impl Utf8Error {
207
/// that starts at the index given by `valid_up_to()`.
208
/// Decoding should resume after that sequence
209
/// (after inserting a U+FFFD REPLACEMENT CHARACTER) in case of lossy decoding.
210
- #[unstable(feature = "utf8_error_error_len", reason ="new", issue = "40494")]
+ #[stable(feature = "utf8_error_error_len", since = "1.20.0")]
211
pub fn error_len(&self) -> Option<usize> {
212
self.error_len.map(|len| len as usize)
213
}
0 commit comments