changed stability annotations

Changed stability annotations for the new Error and Display impls
for std::ffi::FromBytesWithNulError as they aren't subject to
stability the same way.
This commit is contained in:
lukaramu 2017-02-21 16:39:32 +01:00
parent 6a10e63ca0
commit 48331ef8a1

View file

@ -455,14 +455,14 @@ impl From<NulError> for 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)