diff --git a/library/core/src/alloc/layout.rs b/library/core/src/alloc/layout.rs index 87f0fc4abe2..2258d9614d5 100644 --- a/library/core/src/alloc/layout.rs +++ b/library/core/src/alloc/layout.rs @@ -395,7 +395,7 @@ impl Layout { #[stable(feature = "alloc_layout", since = "1.28.0")] #[rustc_deprecated( since = "1.51.0", - reason = "use LayoutError instead", + reason = "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 bd928423fec..2606a7160c5 100644 --- a/library/core/src/alloc/mod.rs +++ b/library/core/src/alloc/mod.rs @@ -12,7 +12,7 @@ pub use self::layout::Layout; #[stable(feature = "alloc_layout", since = "1.28.0")] #[rustc_deprecated( since = "1.51.0", - reason = "use LayoutError instead", + reason = "Name does not follow std convention, use LayoutError", suggestion = "LayoutError" )] #[allow(deprecated, deprecated_in_future)]