about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Hughes <j@jacobhughes.me>2020-10-27 04:48:37 -0400
committerJacob Hughes <j@jacobhughes.me>2020-10-27 04:48:37 -0400
commit8ff0c14dc50483d0b231f9bad3d1eec8556c3750 (patch)
treef1ddd64757e2ff4eeb60cd913f85ad89e76e4f1e
parent0266c134a724626506a256da58a982ea8a6e3ec8 (diff)
downloadrust-8ff0c14dc50483d0b231f9bad3d1eec8556c3750.tar.gz
rust-8ff0c14dc50483d0b231f9bad3d1eec8556c3750.zip
Change layouterr deprecation message
-rw-r--r--library/core/src/alloc/layout.rs2
-rw-r--r--library/core/src/alloc/mod.rs2
2 files changed, 2 insertions, 2 deletions
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)]