diff options
Diffstat (limited to 'library/core/src/alloc')
| -rw-r--r-- | library/core/src/alloc/layout.rs | 4 | ||||
| -rw-r--r-- | library/core/src/alloc/mod.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/alloc/layout.rs b/library/core/src/alloc/layout.rs index 6ec178b7bd5..cf864039a23 100644 --- a/library/core/src/alloc/layout.rs +++ b/library/core/src/alloc/layout.rs @@ -419,9 +419,9 @@ impl Layout { } #[stable(feature = "alloc_layout", since = "1.28.0")] -#[rustc_deprecated( +#[deprecated( since = "1.52.0", - reason = "Name does not follow std convention, use LayoutError", + note = "Name does not follow std convention, use LayoutError", suggestion = "LayoutError" )] pub type LayoutErr = LayoutError; diff --git a/library/core/src/alloc/mod.rs b/library/core/src/alloc/mod.rs index 242725b96bd..a034562d13a 100644 --- a/library/core/src/alloc/mod.rs +++ b/library/core/src/alloc/mod.rs @@ -10,9 +10,9 @@ pub use self::global::GlobalAlloc; #[stable(feature = "alloc_layout", since = "1.28.0")] pub use self::layout::Layout; #[stable(feature = "alloc_layout", since = "1.28.0")] -#[rustc_deprecated( +#[deprecated( since = "1.52.0", - reason = "Name does not follow std convention, use LayoutError", + note = "Name does not follow std convention, use LayoutError", suggestion = "LayoutError" )] #[allow(deprecated, deprecated_in_future)] |
