diff options
| author | bors <bors@rust-lang.org> | 2024-09-26 08:12:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-26 08:12:02 +0000 |
| commit | f2becdff0496003217e7fc6fbfcaf2640e162775 (patch) | |
| tree | 8fd53c6239adce92e37e8fcafe2dd75d06d535ca /library/std/src/sys/pal/unix/os.rs | |
| parent | 76ed7a1fa40c3f54d3fd3f834e12bf9c932d0146 (diff) | |
| parent | f4d9d1a0eaf7e5de8c368ac5af500adf9e06f6e7 (diff) | |
| download | rust-f2becdff0496003217e7fc6fbfcaf2640e162775.tar.gz rust-f2becdff0496003217e7fc6fbfcaf2640e162775.zip | |
Auto merge of #130865 - cuviper:library-raw_ref_op, r=tgross35
Use `&raw` in the standard library Since the stabilization in #127679 has reached stage0, 1.82-beta, we can start using `&raw` freely, and even the soft-deprecated `ptr::addr_of!` and `ptr::addr_of_mut!` can stop allowing the unstable feature. I intentionally did not change any documentation or tests, but the rest of those macro uses are all now using `&raw const` or `&raw mut` in the standard library.
Diffstat (limited to 'library/std/src/sys/pal/unix/os.rs')
| -rw-r--r-- | library/std/src/sys/pal/unix/os.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/os.rs b/library/std/src/sys/pal/unix/os.rs index d99bde2f9a5..f983d174ed6 100644 --- a/library/std/src/sys/pal/unix/os.rs +++ b/library/std/src/sys/pal/unix/os.rs @@ -612,7 +612,7 @@ pub unsafe fn environ() -> *mut *const *const c_char { extern "C" { static mut environ: *const *const c_char; } - ptr::addr_of_mut!(environ) + &raw mut environ } static ENV_LOCK: RwLock<()> = RwLock::new(()); |
