Skip to content

Commit

Permalink
Rollup merge of #86917 - notriddle:notriddle/from-try-reserve-error, …
Browse files Browse the repository at this point in the history
…r=JohnTitor

Add doc comment for `impl From<LayoutError> for TryReserveError`
  • Loading branch information
JohnTitor authored Jul 8, 2021
2 parents 165b520 + a151982 commit a57a2e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/alloc/src/collections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a57a2e9

Please sign in to comment.