We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0d21ba + f1e8607 commit b937bd4Copy full SHA for b937bd4
library/alloc/src/collections/mod.rs
@@ -117,12 +117,12 @@ impl From<TryReserveErrorKind> for TryReserveError {
117
}
118
119
120
-#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
121
-impl From<LayoutError> for TryReserveError {
+#[unstable(feature = "try_reserve_kind", reason = "new API", issue = "48043")]
+impl From<LayoutError> for TryReserveErrorKind {
122
/// Always evaluates to [`TryReserveErrorKind::CapacityOverflow`].
123
#[inline]
124
fn from(_: LayoutError) -> Self {
125
- TryReserveErrorKind::CapacityOverflow.into()
+ TryReserveErrorKind::CapacityOverflow
126
127
128
0 commit comments