File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,11 @@ impl Layout {
393
393
}
394
394
395
395
#[ 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
+ ) ]
396
401
pub type LayoutErr = LayoutError ;
397
402
398
403
/// The parameters given to `Layout::from_size_align`
Original file line number Diff line number Diff line change @@ -8,7 +8,15 @@ mod layout;
8
8
#[ stable( feature = "global_alloc" , since = "1.28.0" ) ]
9
9
pub use self :: global:: GlobalAlloc ;
10
10
#[ 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 ;
12
20
13
21
#[ stable( feature = "alloc_layout_error" , since = "1.49.0" ) ]
14
22
pub use self :: layout:: LayoutError ;
You can’t perform that action at this time.
0 commit comments