]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #77691 - exrook:rename-layouterr, r=KodrAus
authorMara Bos <m-ou.se@m-ou.se>
Mon, 16 Nov 2020 16:26:17 +0000 (17:26 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Nov 2020 16:26:17 +0000 (17:26 +0100)
commit5bbf75da78393343b155c8bfcf1ef9c0234d9ab1
tree4f16806e19dac4408029ca35ed628ef5a98a98f1
parentde0aa6169f0c7abbc8aa4d7e735f5da57a1e65ab
parent8ff0c14dc50483d0b231f9bad3d1eec8556c3750
Rollup merge of #77691 - exrook:rename-layouterr, r=KodrAus

Rename/Deprecate LayoutErr in favor of LayoutError

Implements rust-lang/wg-allocators#73.

This patch renames LayoutErr to LayoutError, and uses a type alias to support users using the old name.

The new name will be instantly stable in release 1.49 (current nightly), the type alias will become deprecated in release 1.51 (so that when the current nightly is 1.51, 1.49 will be stable).

This is the only error type in `std` that ends in `Err` rather than `Error`, if this PR lands all stdlib error types will end in `Error` :smiling_face_with_three_hearts:
library/alloc/src/raw_vec.rs
library/core/src/alloc/mod.rs