From 4bf3d8d0905e1b78dafa4067e2913ff5a267bbf9 Mon Sep 17 00:00:00 2001 From: Dimitris Iliopoulos Date: Tue, 20 Feb 2024 10:31:00 -0800 Subject: [PATCH] Update platform010 & platform010-aarch64 symlinks Summary: `1.76.0` release with fixes addressing the following: * Release notes ([link](https://releases.rs/docs/1.76.0/)) * Most notable is [#118054](https://github.com/rust-lang/rust/pull/118054/) manifesting as: ``` error: unused implementer of `futures::Future` that must be used --> fbcode/mlx/metalearner/housekeeper/housekeeper.rs:213:13 | 213 | self.ping_oncall(&oncall, usecases); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: futures do nothing unless you `.await` or poll them = note: requested on the command line with `-D unused-must-use` ``` * Changes in `search_index.js` spec for `rustdoc` ([link](https://github.com/rust-lang/rust/pull/118910/files#diff-3ac57789ddcd2856a3b4f0c444f2813315179bdbe55bb945fe64fcb27b53fee5L491)) * Split of `#![feature(exposed_provenance)]` ([link](https://github.com/rust-lang/rust/pull/118487)) from [#95228](https://github.com/rust-lang/rust/issues/95228) * `buck2` OSS toolchain bump to `nightly-2023-12-11` just before [#11878](https://github.com/rust-lang/rust-clippy/pull/11878) and a bunch of other clippy lint renames. Reviewed By: dtolnay Differential Revision: D53776867 fbshipit-source-id: 78db83d8cdd6b0abae2b94ed1075e67b501fcd73 --- experimental/reverie-sabre/src/slot_map.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/experimental/reverie-sabre/src/slot_map.rs b/experimental/reverie-sabre/src/slot_map.rs index 7c0022b..20da7e6 100644 --- a/experimental/reverie-sabre/src/slot_map.rs +++ b/experimental/reverie-sabre/src/slot_map.rs @@ -6,6 +6,8 @@ * LICENSE file in the root directory of this source tree. */ +#![allow(invalid_reference_casting)] + use core::iter::repeat; use core::mem::MaybeUninit; use core::sync::atomic::AtomicU32; @@ -219,6 +221,9 @@ where // before dereferencing. // 3. We are inside a spin lock that ensures each entry in the // chunks array will only be written to once. + // + // TODO: remove #![allow(invalid_reference_casting)] and replace with + // UnsafeCell unsafe { let chunk_pointer_pointer = self.chunks.get_unchecked(chunk_count as usize) as *const ChunkPointer;