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) {