rust/library/core
Matthias Krüger 85d15d292d
Rollup merge of #129653 - RalfJung:addr-of-read-only, r=scottmcm
clarify that addr_of creates read-only pointers

Stacked Borrows does make this UB, but Tree Borrows does not. This is tied up with https://github.com/rust-lang/rust/issues/56604 and other UCG discussions. Also see [this collection of links](https://github.com/Rust-for-Linux/linux/pull/950#discussion_r1104759431) where rustc treats `addr_of!` as a "non-mutating use".

So, let's better be careful for now.
2024-09-05 19:43:47 +02:00
..
benches Improve isqrt tests and add benchmarks 2024-08-28 23:06:54 -04:00
src Rollup merge of #129653 - RalfJung:addr-of-read-only, r=scottmcm 2024-09-05 19:43:47 +02:00
tests Stabilize waker_getters 2024-09-02 18:51:59 -06:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00