mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
ef4cff2ea3
core: make atomic primitives type aliases of `Atomic<T>` Tracking issue: https://github.com/rust-lang/rust/issues/130539 This makes `AtomicI32` and friends type aliases of `Atomic<T>` by encoding their alignment requirements via the use of an internal `Storage` associated type. This is also used to encode that `AtomicBool` store a `u8` internally. Modulo the `Send`/`Sync` implementations, this PR does not move any trait implementations, methods or associated functions – I'll leave that for another PR.
This directory contains some source code for the Rust project, including:
- The bootstrapping build system
- Various submodules for tools, like cargo, tidy, etc.
For more information on how various parts of the compiler work, see the rustc dev guide.