1
Fork 0

Bump to latest beta compiler

This commit is contained in:
Mark Rousskov 2023-05-30 08:00:10 -04:00
parent 4f9b394c8a
commit 42e757192d
12 changed files with 418 additions and 478 deletions

View file

@ -916,16 +916,8 @@ impl<T: ?Sized> *const T {
where
T: Sized,
{
#[cfg(bootstrap)]
// SAFETY: the caller must uphold the safety contract for `offset`.
unsafe {
self.offset(count as isize)
}
#[cfg(not(bootstrap))]
// SAFETY: the caller must uphold the safety contract for `offset`.
unsafe {
intrinsics::offset(self, count)
}
unsafe { intrinsics::offset(self, count) }
}
/// Calculates the offset from a pointer in bytes (convenience for `.byte_offset(count as isize)`).