]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/alloc/layout.rs
Rollup merge of #82570 - WaffleLapkin:split_whitespace_as_str, r=m-ou-se
[rust.git] / library / core / src / alloc / layout.rs
index c572c66ce328b5b8637d82574d7a303928313cbe..8b95b70396bbd8f99d7fa430cf15fc29f1607642 100644 (file)
@@ -164,7 +164,6 @@ pub fn for_value<T: ?Sized>(t: &T) -> Self {
     ///       [`Layout::for_value`] on a reference to an extern type tail.
     ///     - otherwise, it is conservatively not allowed to call this function.
     ///
-    /// [slice]: ../../std/primitive.slice.html
     /// [trait object]: ../../book/ch17-02-trait-objects.html
     /// [extern type]: ../../unstable-book/language-features/extern-types.html
     #[unstable(feature = "layout_for_ptr", issue = "69835")]
@@ -400,7 +399,7 @@ pub fn array<T>(n: usize) -> Result<Self, LayoutError> {
 
 #[stable(feature = "alloc_layout", since = "1.28.0")]
 #[rustc_deprecated(
-    since = "1.51.0",
+    since = "1.52.0",
     reason = "Name does not follow std convention, use LayoutError",
     suggestion = "LayoutError"
 )]
@@ -409,7 +408,7 @@ pub fn array<T>(n: usize) -> Result<Self, LayoutError> {
 /// The parameters given to `Layout::from_size_align`
 /// or some other `Layout` constructor
 /// do not satisfy its documented constraints.
-#[stable(feature = "alloc_layout_error", since = "1.49.0")]
+#[stable(feature = "alloc_layout_error", since = "1.50.0")]
 #[derive(Clone, PartialEq, Eq, Debug)]
 pub struct LayoutError {
     private: (),