]> git.lizzy.rs Git - rust.git/commitdiff
changed stability annotations
authorlukaramu <lukaramu@gmail.com>
Tue, 21 Feb 2017 15:39:32 +0000 (16:39 +0100)
committerlukaramu <lukaramu@gmail.com>
Tue, 21 Feb 2017 15:39:32 +0000 (16:39 +0100)
Changed stability annotations for the new Error and Display impls
for std::ffi::FromBytesWithNulError as they aren't subject to
stability the same way.

src/libstd/ffi/c_str.rs

index 2c18250b87eb0325c6941e63fe86086963ff4a6e..bc678fcb8385b0a9a640afdc285fe8de2eebf8e3 100644 (file)
@@ -455,14 +455,14 @@ fn from(_: NulError) -> io::Error {
     }
 }
 
-#[unstable(feature = "frombyteswithnulerror_impls", reason = "recently added", issue = "39925")]
+#[stable(feature = "frombyteswithnulerror_impls", since = "1.17.0")]
 impl Error for FromBytesWithNulError {
     fn description(&self) -> &str {
         "data provided is not null terminated or contains an interior nul byte"
     }
 }
 
-#[unstable(feature = "frombyteswithnulerror_impls", reason = "recently added", issue = "39925")]
+#[stable(feature = "frombyteswithnulerror_impls", since = "1.17.0")]
 impl fmt::Display for FromBytesWithNulError {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         self.description().fmt(f)