diff options
| author | Ralf Jung <post@ralfj.de> | 2025-05-18 14:40:49 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-05-31 22:49:14 +0200 |
| commit | f388c987cf5bab0b4beea85ba2e326c525f07034 (patch) | |
| tree | 10f76498ca6023b5638441ad71fe284dc46e7d35 /tests/ui | |
| parent | 852f15c0f146fc292c9b20f2a8f44c1f671d7845 (diff) | |
| download | rust-f388c987cf5bab0b4beea85ba2e326c525f07034.tar.gz rust-f388c987cf5bab0b4beea85ba2e326c525f07034.zip | |
terminology: allocated object → allocation
Diffstat (limited to 'tests/ui')
| -rw-r--r-- | tests/ui/const-ptr/allowed_slices.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/const-ptr/allowed_slices.rs b/tests/ui/const-ptr/allowed_slices.rs index e5b9966c609..23f63ff5feb 100644 --- a/tests/ui/const-ptr/allowed_slices.rs +++ b/tests/ui/const-ptr/allowed_slices.rs @@ -26,7 +26,7 @@ pub static S5: &[MaybeUninit<u8>] = unsafe { from_raw_parts((&D1) as *const _ as // is valid as [bool; 4], so this is not UB (it's basically a transmute) pub static S6: &[bool] = unsafe { from_raw_parts((&D0) as *const _ as _, 4) }; -// Structs are considered single allocated objects, +// Structs are considered single allocations, // as long as you don't reinterpret padding as initialized // data everything is ok. pub static S7: &[u16] = unsafe { |
