Skip to content

Commit 8ff0c14

Browse files
author
Jacob Hughes
committed
Change layouterr deprecation message
1 parent 0266c13 commit 8ff0c14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/alloc/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl Layout {
395395
#[stable(feature = "alloc_layout", since = "1.28.0")]
396396
#[rustc_deprecated(
397397
since = "1.51.0",
398-
reason = "use LayoutError instead",
398+
reason = "Name does not follow std convention, use LayoutError",
399399
suggestion = "LayoutError"
400400
)]
401401
pub type LayoutErr = LayoutError;

library/core/src/alloc/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub use self::layout::Layout;
1212
#[stable(feature = "alloc_layout", since = "1.28.0")]
1313
#[rustc_deprecated(
1414
since = "1.51.0",
15-
reason = "use LayoutError instead",
15+
reason = "Name does not follow std convention, use LayoutError",
1616
suggestion = "LayoutError"
1717
)]
1818
#[allow(deprecated, deprecated_in_future)]

0 commit comments

Comments
 (0)