diff options
| author | Eric Huss <eric@huss.org> | 2025-02-13 12:40:27 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2025-02-14 07:36:17 -0800 |
| commit | 4e36f46464d6473ca1f2c8612b7aed4ea0141bcf (patch) | |
| tree | 3ffedba35bea9d39d8a5c464925355b6dda74836 /library/core/src/alloc | |
| parent | d88ffcdb8bfc6f8b917574c1693eb9764a20eff5 (diff) | |
| download | rust-4e36f46464d6473ca1f2c8612b7aed4ea0141bcf.tar.gz rust-4e36f46464d6473ca1f2c8612b7aed4ea0141bcf.zip | |
core: Apply unsafe_op_in_unsafe_fn
Diffstat (limited to 'library/core/src/alloc')
| -rw-r--r-- | library/core/src/alloc/global.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/alloc/global.rs b/library/core/src/alloc/global.rs index 8f48af24557..5bf6f143b4f 100644 --- a/library/core/src/alloc/global.rs +++ b/library/core/src/alloc/global.rs @@ -70,7 +70,7 @@ use crate::{cmp, ptr}; /// { /// return null_mut(); /// }; -/// self.arena.get().cast::<u8>().add(allocated) +/// unsafe { self.arena.get().cast::<u8>().add(allocated) } /// } /// unsafe fn dealloc(&self, _ptr: *mut u8, _layout: Layout) {} /// } |
