mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-12 23:13:15 +00:00
Change layouterr deprecation message
This commit is contained in:
parent
0266c134a7
commit
8ff0c14dc5
@ -395,7 +395,7 @@ impl Layout {
|
|||||||
#[stable(feature = "alloc_layout", since = "1.28.0")]
|
#[stable(feature = "alloc_layout", since = "1.28.0")]
|
||||||
#[rustc_deprecated(
|
#[rustc_deprecated(
|
||||||
since = "1.51.0",
|
since = "1.51.0",
|
||||||
reason = "use LayoutError instead",
|
reason = "Name does not follow std convention, use LayoutError",
|
||||||
suggestion = "LayoutError"
|
suggestion = "LayoutError"
|
||||||
)]
|
)]
|
||||||
pub type LayoutErr = LayoutError;
|
pub type LayoutErr = LayoutError;
|
||||||
|
@ -12,7 +12,7 @@ pub use self::layout::Layout;
|
|||||||
#[stable(feature = "alloc_layout", since = "1.28.0")]
|
#[stable(feature = "alloc_layout", since = "1.28.0")]
|
||||||
#[rustc_deprecated(
|
#[rustc_deprecated(
|
||||||
since = "1.51.0",
|
since = "1.51.0",
|
||||||
reason = "use LayoutError instead",
|
reason = "Name does not follow std convention, use LayoutError",
|
||||||
suggestion = "LayoutError"
|
suggestion = "LayoutError"
|
||||||
)]
|
)]
|
||||||
#[allow(deprecated, deprecated_in_future)]
|
#[allow(deprecated, deprecated_in_future)]
|
||||||
|
Loading…
Reference in New Issue
Block a user