Change layouterr deprecation message

This commit is contained in:
Jacob Hughes 2020-10-27 04:48:37 -04:00
parent 0266c134a7
commit 8ff0c14dc5
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)]