diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-05 19:43:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-05 19:43:47 +0200 |
| commit | 85d15d292d897c6ee618b697cdba73272bb50415 (patch) | |
| tree | 1abbbe79529fd68dd0aeff1c2fa386e098da9a5c /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 3daa015f825034c47f61d94eef7fbfe8837bfd0b (diff) | |
| parent | b5bd0fe48a0427a82804759a5acd795851c65e4b (diff) | |
| download | rust-85d15d292d897c6ee618b697cdba73272bb50415.tar.gz rust-85d15d292d897c6ee618b697cdba73272bb50415.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
