about summary refs log tree commit diff
path: root/library/core/src/alloc
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-08-01 21:50:21 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-08-05 16:47:49 +0400
commit127b6c4c18998695edfafc195c682bf3f42e203e (patch)
treeb392b581fa91941caf441b81f00e2c3cb5547514 /library/core/src/alloc
parent1f5d8d49eb6111931091f700d07518cd2b80bc18 (diff)
downloadrust-127b6c4c18998695edfafc195c682bf3f42e203e.tar.gz
rust-127b6c4c18998695edfafc195c682bf3f42e203e.zip
cleanup code w/ pointers in std a little
Diffstat (limited to 'library/core/src/alloc')
-rw-r--r--library/core/src/alloc/global.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/alloc/global.rs b/library/core/src/alloc/global.rs
index 887246c6001..6756eecd0e0 100644
--- a/library/core/src/alloc/global.rs
+++ b/library/core/src/alloc/global.rs
@@ -74,7 +74,7 @@ use crate::ptr;
 ///         {
 ///             return null_mut();
 ///         };
-///         (self.arena.get() as *mut u8).add(allocated)
+///         self.arena.get().cast::<u8>().add(allocated)
 ///     }
 ///     unsafe fn dealloc(&self, _ptr: *mut u8, _layout: Layout) {}
 /// }