diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-03-03 20:45:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-03 20:45:00 +0100 |
| commit | 041f6668b5d9aacd742e6d501401ca0ab899ac1c (patch) | |
| tree | 0716b52325a61a318a08d103a58796f6997017b1 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | 188ed14ca31899f241799f47cf5e640eb6e921ce (diff) | |
| parent | a2baba09a2d86db7915b899ea631c427bfe8c4e8 (diff) | |
| download | rust-041f6668b5d9aacd742e6d501401ca0ab899ac1c.tar.gz rust-041f6668b5d9aacd742e6d501401ca0ab899ac1c.zip | |
Rollup merge of #108540 - WaffleLapkin:atomic_thingy_from_thingy_pointer, r=m-ou-se
Add `Atomic*::from_ptr`
This PR adds functions in the following form to all atomic types:
```rust
impl AtomicT {
pub const unsafe fn from_ptr<'a>(ptr: *mut T) -> &'a AtomicT;
}
```
r? `@m-ou-se` (we've talked about it before)
I'm not sure about docs & safety requirements, I'd appreciate some feedback on them.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
