Skip to content

Commit 08542b5

Browse files
committed
rustup
1 parent b3eb0dd commit 08542b5

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

rust-src.diff

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +0,0 @@
1-
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs
2-
index 04033905728..ef37fef0455 100644
3-
--- a/library/alloc/src/boxed.rs
4-
+++ b/library/alloc/src/boxed.rs
5-
@@ -793,7 +793,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
6-
/// use std::alloc::{Allocator, Layout, System};
7-
///
8-
/// unsafe {
9-
- /// let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr();
10-
+ /// let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr() as *mut i32;
11-
/// // In general .write is required to avoid attempting to destruct
12-
/// // the (uninitialized) previous contents of `ptr`, though for this
13-
/// // simple example `*ptr = 5` would have worked as well.

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2021-04-11
1+
nightly-2021-04-12

0 commit comments

Comments
 (0)