diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-20 16:11:20 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-20 16:11:20 +0300 |
| commit | a613059e3fcfb751f7664f67a4a6c99faf436483 (patch) | |
| tree | bf18260a765345837e95ddeb80f0e91f04a4a131 /src/libstd/ffi | |
| parent | 2228bacd62ca8970a7a59401e78d0c5a34fc0f87 (diff) | |
| download | rust-a613059e3fcfb751f7664f67a4a6c99faf436483.tar.gz rust-a613059e3fcfb751f7664f67a4a6c99faf436483.zip | |
Rename #[deprecated] to #[rustc_deprecated]
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 42fd2321f01..40fb450bea1 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -213,7 +213,7 @@ impl CString { /// using the pointer. #[unstable(feature = "cstr_memory2", reason = "recently added", issue = "27769")] - #[deprecated(since = "1.4.0", reason = "renamed to from_raw")] + #[rustc_deprecated(since = "1.4.0", reason = "renamed to from_raw")] pub unsafe fn from_ptr(ptr: *const c_char) -> CString { CString::from_raw(ptr as *mut _) } @@ -240,7 +240,7 @@ impl CString { /// Failure to call `from_raw` will lead to a memory leak. #[unstable(feature = "cstr_memory2", reason = "recently added", issue = "27769")] - #[deprecated(since = "1.4.0", reason = "renamed to into_raw")] + #[rustc_deprecated(since = "1.4.0", reason = "renamed to into_raw")] pub fn into_ptr(self) -> *const c_char { self.into_raw() as *const _ } |
