Rollup merge of #63327 - lzutao:fix-as_raw_stat-dep-msg, r=Mark-Simulacrum

doc: Reword deprecation message of MetadataExt::as_raw_stat

Closes #62711
r? @Mark-Simulacrum
This commit is contained in:
Mazdak Farrokhzad 2019-08-08 07:35:33 +02:00 committed by GitHub
commit ab9a95b91b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,9 +34,10 @@ pub trait MetadataExt {
/// } /// }
/// ``` /// ```
#[stable(feature = "metadata_ext", since = "1.1.0")] #[stable(feature = "metadata_ext", since = "1.1.0")]
#[rustc_deprecated(since = "1.8.0", #[rustc_deprecated(
reason = "deprecated in favor of the accessor \ since = "1.8.0",
methods of this trait")] reason = "other methods of this trait are now prefered"
)]
#[allow(deprecated)] #[allow(deprecated)]
fn as_raw_stat(&self) -> &raw::stat; fn as_raw_stat(&self) -> &raw::stat;