File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -117,12 +117,12 @@ impl From<TryReserveErrorKind> for TryReserveError {
117
117
}
118
118
}
119
119
120
- #[ unstable( feature = "try_reserve " , reason = "new API" , issue = "48043" ) ]
121
- impl From < LayoutError > for TryReserveError {
120
+ #[ unstable( feature = "try_reserve_kind " , reason = "new API" , issue = "48043" ) ]
121
+ impl From < LayoutError > for TryReserveErrorKind {
122
122
/// Always evaluates to [`TryReserveErrorKind::CapacityOverflow`].
123
123
#[ inline]
124
124
fn from ( _: LayoutError ) -> Self {
125
- TryReserveErrorKind :: CapacityOverflow . into ( )
125
+ TryReserveErrorKind :: CapacityOverflow
126
126
}
127
127
}
128
128
Original file line number Diff line number Diff line change @@ -151,3 +151,17 @@ type_alias_no_nz! { "double.md", c_double = f64; }
151
151
#[ stable( feature = "raw_os" , since = "1.1.0" ) ]
152
152
#[ doc( no_inline) ]
153
153
pub use core:: ffi:: c_void;
154
+
155
+ /// Equivalent to C's `size_t` type, from `stddef.h` (or `cstddef` for C++).
156
+ ///
157
+ /// This type is currently always [`usize`], however in the future there may be
158
+ /// platforms where this is not the case.
159
+ #[ unstable( feature = "c_size_t" , issue = "88345" ) ]
160
+ pub type c_size_t = usize ;
161
+
162
+ /// Equivalent to C's `ssize_t` type, from `stddef.h` (or `cstddef` for C++).
163
+ ///
164
+ /// This type is currently always [`isize`], however in the future there may be
165
+ /// platforms where this is not the case.
166
+ #[ unstable( feature = "c_size_t" , issue = "88345" ) ]
167
+ pub type c_ssize_t = isize ;
You can’t perform that action at this time.
0 commit comments