diff options
| author | lukaramu <lukaramu@gmail.com> | 2017-02-21 16:39:32 +0100 |
|---|---|---|
| committer | lukaramu <lukaramu@gmail.com> | 2017-02-21 16:39:32 +0100 |
| commit | 48331ef8a16be02278802731fe8fb9f989b26a6a (patch) | |
| tree | 2ed09dfdb6939ba6d6b6c280b5a43793eea4c990 /src/libstd/ffi | |
| parent | 6a10e63ca0c79d9976a8d31daba064979736edd4 (diff) | |
| download | rust-48331ef8a16be02278802731fe8fb9f989b26a6a.tar.gz rust-48331ef8a16be02278802731fe8fb9f989b26a6a.zip | |
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.
Diffstat (limited to 'src/libstd/ffi')
| -rw-r--r-- | src/libstd/ffi/c_str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index 2c18250b87e..bc678fcb838 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -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) |
