File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ impl fmt::Display for CannotReallocInPlace {
420
420
/// }
421
421
/// ```
422
422
///
423
- /// # Unsafety
423
+ /// # Safety
424
424
///
425
425
/// The `GlobalAlloc` trait is an `unsafe` trait for a number of reasons, and
426
426
/// implementors must ensure that they adhere to these contracts:
@@ -643,7 +643,7 @@ pub unsafe trait GlobalAlloc {
643
643
/// currently allocated via an allocator `a`, then it is legal to
644
644
/// use that layout to deallocate it, i.e., `a.dealloc(ptr, k);`.
645
645
///
646
- /// # Unsafety
646
+ /// # Safety
647
647
///
648
648
/// The `Alloc` trait is an `unsafe` trait for a number of reasons, and
649
649
/// implementors must ensure that they adhere to these contracts:
Original file line number Diff line number Diff line change @@ -1173,7 +1173,7 @@ impl<T> MaybeUninit<T> {
1173
1173
/// to ensure that the data will get dropped, because the resulting `T` is
1174
1174
/// subject to the usual drop handling.
1175
1175
///
1176
- /// # Unsafety
1176
+ /// # Safety
1177
1177
///
1178
1178
/// It is up to the caller to guarantee that the `MaybeUninit` really is in an initialized
1179
1179
/// state. Calling this when the content is not yet fully initialized causes undefined
@@ -1187,7 +1187,7 @@ impl<T> MaybeUninit<T> {
1187
1187
1188
1188
/// Gets a reference to the contained value.
1189
1189
///
1190
- /// # Unsafety
1190
+ /// # Safety
1191
1191
///
1192
1192
/// It is up to the caller to guarantee that the `MaybeUninit` really is in an initialized
1193
1193
/// state. Calling this when the content is not yet fully initialized causes undefined
@@ -1200,7 +1200,7 @@ impl<T> MaybeUninit<T> {
1200
1200
1201
1201
/// Gets a mutable reference to the contained value.
1202
1202
///
1203
- /// # Unsafety
1203
+ /// # Safety
1204
1204
///
1205
1205
/// It is up to the caller to guarantee that the `MaybeUninit` really is in an initialized
1206
1206
/// state. Calling this when the content is not yet fully initialized causes undefined
Original file line number Diff line number Diff line change @@ -2158,7 +2158,7 @@ impl<T> [T] {
2158
2158
/// This method has no purpose when either input element `T` or output element `U` are
2159
2159
/// zero-sized and will return the original slice without splitting anything.
2160
2160
///
2161
- /// # Unsafety
2161
+ /// # Safety
2162
2162
///
2163
2163
/// This method is essentially a `transmute` with respect to the elements in the returned
2164
2164
/// middle slice, so all the usual caveats pertaining to `transmute::<T, U>` also apply here.
@@ -2211,7 +2211,7 @@ impl<T> [T] {
2211
2211
/// This method has no purpose when either input element `T` or output element `U` are
2212
2212
/// zero-sized and will return the original slice without splitting anything.
2213
2213
///
2214
- /// # Unsafety
2214
+ /// # Safety
2215
2215
///
2216
2216
/// This method is essentially a `transmute` with respect to the elements in the returned
2217
2217
/// middle slice, so all the usual caveats pertaining to `transmute::<T, U>` also apply here.
You can’t perform that action at this time.
0 commit comments