diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-07-08 10:44:31 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-08 10:44:31 +0900 |
| commit | a57a2e991de784e8f6a932330c56aa30f2d0b063 (patch) | |
| tree | 73729ec442ee77ffe2f73d82945e2f41cb2c48bd /library/alloc | |
| parent | 165b520b89e9e2f27442a3af793c6d65e76e0981 (diff) | |
| parent | a151982af34047bcac2ec8e35b147c95a40706ae (diff) | |
| download | rust-a57a2e991de784e8f6a932330c56aa30f2d0b063.tar.gz rust-a57a2e991de784e8f6a932330c56aa30f2d0b063.zip | |
Rollup merge of #86917 - notriddle:notriddle/from-try-reserve-error, r=JohnTitor
Add doc comment for `impl From<LayoutError> for TryReserveError`
Diffstat (limited to 'library/alloc')
| -rw-r--r-- | library/alloc/src/collections/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/collections/mod.rs b/library/alloc/src/collections/mod.rs index b9b3d650ea2..97bfe2f3984 100644 --- a/library/alloc/src/collections/mod.rs +++ b/library/alloc/src/collections/mod.rs @@ -83,6 +83,7 @@ pub enum TryReserveError { #[unstable(feature = "try_reserve", reason = "new API", issue = "48043")] impl From<LayoutError> for TryReserveError { + /// Always evaluates to [`TryReserveError::CapacityOverflow`]. #[inline] fn from(_: LayoutError) -> Self { TryReserveError::CapacityOverflow |
