Files
rust/library/std/src/sys/sync
Mark Rousskov 26e35d93dc Add and use cfg(target_has_threads) to enforce no_thread impl usage
The standard library has fallback code for targets without threads
(e.g., using a Cell-based Mutex and similar). Today there's no
enforcement in std that those targets truly don't have threads which
makes that code potentially unsound. This will let us add a
static assertion that the target spec agrees that the target is
non-threaded.
2026-07-05 15:29:08 -04:00
..
…