]> git.lizzy.rs Git - rust.git/commitdiff
Mark Error impl for LayoutErr as stable.
authorMara Bos <m-ou.se@m-ou.se>
Thu, 10 Sep 2020 07:40:40 +0000 (09:40 +0200)
committerMara Bos <m-ou.se@m-ou.se>
Fri, 11 Sep 2020 11:36:15 +0000 (13:36 +0200)
This impl was effectively stable. #[unstable] had no effect here,
since both Error and LayoutErr were already stable.

This effectively became stable as soon as LayoutErr became stable, which
was in 1.28.0.

library/std/src/error.rs

index 8da033439768e08b550b9607594e5bb459daaf56..ee25311d3b7ee96403c0eed8020efc6d5d1788e5 100644 (file)
@@ -389,11 +389,7 @@ impl Error for ! {}
 )]
 impl Error for AllocErr {}
 
-#[unstable(
-    feature = "allocator_api",
-    reason = "the precise API and guarantees it provides may be tweaked.",
-    issue = "32838"
-)]
+#[stable(feature = "alloc_layout", since = "1.28.0")]
 impl Error for LayoutErr {}
 
 #[stable(feature = "rust1", since = "1.0.0")]