Skip to content

Commit a57a2e9

Browse files
authored
Rollup merge of #86917 - notriddle:notriddle/from-try-reserve-error, r=JohnTitor
Add doc comment for `impl From<LayoutError> for TryReserveError`
2 parents 165b520 + a151982 commit a57a2e9

File tree

1 file changed

+1
-0
lines changed
  • library/alloc/src/collections

1 file changed

+1
-0
lines changed

Diff for: library/alloc/src/collections/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ pub enum TryReserveError {
8383

8484
#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
8585
impl From<LayoutError> for TryReserveError {
86+
/// Always evaluates to [`TryReserveError::CapacityOverflow`].
8687
#[inline]
8788
fn from(_: LayoutError) -> Self {
8889
TryReserveError::CapacityOverflow

0 commit comments

Comments
 (0)