File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,11 @@ impl Layout {
393393}
394394
395395#[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
396+ #[ rustc_deprecated(
397+ since = "1.51.0" ,
398+ reason = "use LayoutError instead" ,
399+ suggestion = "LayoutError"
400+ ) ]
396401pub type LayoutErr = LayoutError ;
397402
398403/// The parameters given to `Layout::from_size_align`
Original file line number Diff line number Diff line change @@ -8,7 +8,15 @@ mod layout;
88#[ stable( feature = "global_alloc" , since = "1.28.0" ) ]
99pub use self :: global:: GlobalAlloc ;
1010#[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
11- pub use self :: layout:: { Layout , LayoutErr } ;
11+ pub use self :: layout:: Layout ;
12+ #[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
13+ #[ rustc_deprecated(
14+ since = "1.51.0" ,
15+ reason = "use LayoutError instead" ,
16+ suggestion = "LayoutError"
17+ ) ]
18+ #[ allow( deprecated, deprecated_in_future) ]
19+ pub use self :: layout:: LayoutErr ;
1220
1321#[ stable( feature = "alloc_layout_error" , since = "1.49.0" ) ]
1422pub use self :: layout:: LayoutError ;
You can’t perform that action at this time.
0 commit comments