diff options
| author | Michael Howell <michael@notriddle.com> | 2021-07-06 14:44:18 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2021-07-06 14:44:18 -0700 |
| commit | a151982af34047bcac2ec8e35b147c95a40706ae (patch) | |
| tree | a967a3ef4fcf97818d64af78885933ada5f07784 | |
| parent | 8649737beefccbef2d6bc0113df4650dd05ad7f2 (diff) | |
| download | rust-a151982af34047bcac2ec8e35b147c95a40706ae.tar.gz rust-a151982af34047bcac2ec8e35b147c95a40706ae.zip | |
Add doc comment for `impl From<LayoutError> for TryReserveError`
| -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 |
