1
Fork 0

Fix may not to appropriate might not or must not

This commit is contained in:
Ali Malik 2021-07-23 19:14:28 -04:00
parent 85237886df
commit e43254aad1
50 changed files with 100 additions and 96 deletions

View file

@ -2526,7 +2526,7 @@ unsafe fn data_offset<T: ?Sized>(ptr: *const T) -> isize {
// SAFETY: since the only unsized types possible are slices, trait objects,
// and extern types, the input safety requirement is currently enough to
// satisfy the requirements of align_of_val_raw; this is an implementation
// detail of the language that may not be relied upon outside of std.
// detail of the language that must not be relied upon outside of std.
unsafe { data_offset_align(align_of_val_raw(ptr)) }
}