Don't stabilize creation of TryReserveError instances
This commit is contained in:
parent
b1928aa3b4
commit
f1e860757e
1 changed files with 3 additions and 3 deletions
|
@ -117,12 +117,12 @@ impl From<TryReserveErrorKind> for TryReserveError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
|
#[unstable(feature = "try_reserve_kind", reason = "new API", issue = "48043")]
|
||||||
impl From<LayoutError> for TryReserveError {
|
impl From<LayoutError> for TryReserveErrorKind {
|
||||||
/// Always evaluates to [`TryReserveErrorKind::CapacityOverflow`].
|
/// Always evaluates to [`TryReserveErrorKind::CapacityOverflow`].
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from(_: LayoutError) -> Self {
|
fn from(_: LayoutError) -> Self {
|
||||||
TryReserveErrorKind::CapacityOverflow.into()
|
TryReserveErrorKind::CapacityOverflow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue