about summary refs log tree commit diff
path: root/library/core/src/alloc
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2022-04-07 21:20:32 -0400
committerJacob Pratt <jacob@jhpratt.dev>2022-04-14 01:33:13 -0400
commit4fbe73e0b79afb9e2b352438bac743104f0d2ba6 (patch)
tree84f8597c04edc4113e8b26f9974ee7d9b5566639 /library/core/src/alloc
parent8ff5e3cf99f93f80b7d0c1cf2a6cf859a8dda563 (diff)
downloadrust-4fbe73e0b79afb9e2b352438bac743104f0d2ba6.tar.gz
rust-4fbe73e0b79afb9e2b352438bac743104f0d2ba6.zip
Remove use of `#[rustc_deprecated]`
Diffstat (limited to 'library/core/src/alloc')
-rw-r--r--library/core/src/alloc/layout.rs4
-rw-r--r--library/core/src/alloc/mod.rs4
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)]