Skip to content

Commit 29d8ef4

Browse files
authored
Merge pull request #84 from Bobo1239/master
Remove `unique` feature which doesn't exist anymore
2 parents 4b3335d + 94964de commit 29d8ef4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/destructors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ this is totally fine.
2626
For instance, a custom implementation of `Box` might write `Drop` like this:
2727

2828
```rust
29-
#![feature(ptr_internals, allocator_api, unique)]
29+
#![feature(ptr_internals, allocator_api)]
3030

3131
use std::alloc::{Alloc, Global, GlobalAlloc, Layout};
3232
use std::mem;
@@ -53,7 +53,7 @@ use-after-free the `ptr` because when drop exits, it becomes inaccessible.
5353
However this wouldn't work:
5454

5555
```rust
56-
#![feature(allocator_api, ptr_internals, unique)]
56+
#![feature(allocator_api, ptr_internals)]
5757

5858
use std::alloc::{Alloc, Global, GlobalAlloc, Layout};
5959
use std::ptr::{drop_in_place, Unique, NonNull};
@@ -126,7 +126,7 @@ The classic safe solution to overriding recursive drop and allowing moving out
126126
of Self during `drop` is to use an Option:
127127

128128
```rust
129-
#![feature(allocator_api, ptr_internals, unique)]
129+
#![feature(allocator_api, ptr_internals)]
130130

131131
use std::alloc::{Alloc, GlobalAlloc, Global, Layout};
132132
use std::ptr::{drop_in_place, Unique, NonNull};

src/vec-final.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
```rust
44
#![feature(ptr_internals)]
55
#![feature(allocator_api)]
6-
#![feature(unique)]
76

87
use std::ptr::{Unique, NonNull, self};
98
use std::mem;

src/vec-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ take the hit and use std's Unique:
7171

7272

7373
```rust
74-
#![feature(ptr_internals, unique)]
74+
#![feature(ptr_internals)]
7575

7676
use std::ptr::{Unique, self};
7777

0 commit comments

Comments
 (0)