]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/alloc/mod.rs
Rollup merge of #77691 - exrook:rename-layouterr, r=KodrAus
[rust.git] / library / core / src / alloc / mod.rs
index c61c19cc7d1d1a3c94f080f8d7038273c132dd45..bc874e2e522425c4d9fc01616a9e9bc904cdc6e6 100644 (file)
@@ -8,7 +8,18 @@
 #[stable(feature = "global_alloc", since = "1.28.0")]
 pub use self::global::GlobalAlloc;
 #[stable(feature = "alloc_layout", since = "1.28.0")]
-pub use self::layout::{Layout, LayoutErr};
+pub use self::layout::Layout;
+#[stable(feature = "alloc_layout", since = "1.28.0")]
+#[rustc_deprecated(
+    since = "1.51.0",
+    reason = "Name does not follow std convention, use LayoutError",
+    suggestion = "LayoutError"
+)]
+#[allow(deprecated, deprecated_in_future)]
+pub use self::layout::LayoutErr;
+
+#[stable(feature = "alloc_layout_error", since = "1.49.0")]
+pub use self::layout::LayoutError;
 
 use crate::fmt;
 use crate::ptr::{self, NonNull};