Skip to content

Commit

Permalink
Don't stabilize creation of TryReserveError instances
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Aug 21, 2021
1 parent b1928aa commit f1e8607
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/alloc/src/collections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ impl From<TryReserveErrorKind> for TryReserveError {
}
}

#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
impl From<LayoutError> for TryReserveError {
#[unstable(feature = "try_reserve_kind", reason = "new API", issue = "48043")]
impl From<LayoutError> for TryReserveErrorKind {
/// Always evaluates to [`TryReserveErrorKind::CapacityOverflow`].
#[inline]
fn from(_: LayoutError) -> Self {
TryReserveErrorKind::CapacityOverflow.into()
TryReserveErrorKind::CapacityOverflow
}
}

Expand Down

0 comments on commit f1e8607

Please sign in to comment.