From 89aa638e05795be0ab86711d6e2ade2a8dbafcae Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Mon, 3 Mar 2025 13:22:53 -0500 Subject: [PATCH] aya: add TODO to remove once_cell --- aya/src/util.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aya/src/util.rs b/aya/src/util.rs index 8a5155e3..5c3b3967 100644 --- a/aya/src/util.rs +++ b/aya/src/util.rs @@ -201,6 +201,8 @@ pub fn nr_cpus() -> Result { static CACHE: once_cell::unsync::OnceCell = const { once_cell::unsync::OnceCell::new() }; } CACHE.with(|cell| { + // TODO(https://github.com/rust-lang/rust/issues/109737): Replace `once_cell` with + // `std::cell::OnceCell`. cell.get_or_try_init(|| { // error: unsupported operation: `open` not available when isolation is enabled if cfg!(miri) {