Skip to content

Commit 208fe9f

Browse files
committed
Add #[inline] to the wrapper
1 parent 168bac1 commit 208fe9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ pub use intrinsics::copy;
152152
/// assert_eq!(*v, 42);
153153
/// ```
154154
#[stable(feature = "rust1", since = "1.0.0")]
155+
#[inline]
155156
pub unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize) {
156157
intrinsics::write_bytes(dst, val, count);
157158
}

0 commit comments

Comments
 (0)