mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Rollup merge of #86917 - notriddle:notriddle/from-try-reserve-error, r=JohnTitor
Add doc comment for `impl From<LayoutError> for TryReserveError`
This commit is contained in:
commit
a57a2e991d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user