Skip to content

Commit 320d0c5

Browse files
committed
Fix CI
1 parent 3110ba9 commit 320d0c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/raw_rc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ impl<T, A> RawRc<[T], A> {
17321732
impl<T> Drop for Guard<T> {
17331733
fn drop(&mut self) {
17341734
unsafe {
1735-
let length = self.tail.sub_ptr(self.head);
1735+
let length = self.tail.offset_from_unsigned(self.head);
17361736

17371737
NonNull::<[T]>::slice_from_raw_parts(self.head, length).drop_in_place();
17381738
}

0 commit comments

Comments
 (0)