Skip to content

Commit

Permalink
Merge pull request #84 from Bobo1239/master
Browse files Browse the repository at this point in the history
Remove `unique` feature which doesn't exist anymore
  • Loading branch information
steveklabnik authored Aug 13, 2018
2 parents 4b3335d + 94964de commit 29d8ef4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/destructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ this is totally fine.
For instance, a custom implementation of `Box` might write `Drop` like this:

```rust
#![feature(ptr_internals, allocator_api, unique)]
#![feature(ptr_internals, allocator_api)]

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

```rust
#![feature(allocator_api, ptr_internals, unique)]
#![feature(allocator_api, ptr_internals)]

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

```rust
#![feature(allocator_api, ptr_internals, unique)]
#![feature(allocator_api, ptr_internals)]

use std::alloc::{Alloc, GlobalAlloc, Global, Layout};
use std::ptr::{drop_in_place, Unique, NonNull};
Expand Down
1 change: 0 additions & 1 deletion src/vec-final.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
```rust
#![feature(ptr_internals)]
#![feature(allocator_api)]
#![feature(unique)]

use std::ptr::{Unique, NonNull, self};
use std::mem;
Expand Down
2 changes: 1 addition & 1 deletion src/vec-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ take the hit and use std's Unique:


```rust
#![feature(ptr_internals, unique)]
#![feature(ptr_internals)]

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

Expand Down

0 comments on commit 29d8ef4

Please sign in to comment.