Skip to content

Commit 733e0ee

Browse files
committed
std_misc not required on 1.0.0-beta
1 parent 11449c7 commit 733e0ee

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/doc/trpl/concurrency.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ When `guard` goes out of scope, it will block execution until the thread is
8888
finished. If we didn't want this behaviour, we could use `thread::spawn()`:
8989

9090
```
91-
# #![feature(std_misc)]
9291
use std::thread;
9392
9493
fn main() {
@@ -145,7 +144,6 @@ As an example, here is a Rust program that would have a data race in many
145144
languages. It will not compile:
146145

147146
```ignore
148-
# #![feature(std_misc)]
149147
use std::thread;
150148
151149
fn main() {
@@ -183,7 +181,6 @@ only one person at a time can mutate what's inside. For that, we can use the
183181
but for a different reason:
184182

185183
```ignore
186-
# #![feature(std_misc)]
187184
use std::thread;
188185
use std::sync::Mutex;
189186
@@ -226,7 +223,6 @@ guard across thread boundaries, which gives us our error.
226223
We can use `Arc<T>` to fix this. Here's the working version:
227224

228225
```
229-
# #![feature(std_misc)]
230226
use std::sync::{Arc, Mutex};
231227
use std::thread;
232228
@@ -250,7 +246,6 @@ handle is then moved into the new thread. Let's examine the body of the
250246
thread more closely:
251247

252248
```
253-
# #![feature(std_misc)]
254249
# use std::sync::{Arc, Mutex};
255250
# use std::thread;
256251
# fn main() {

0 commit comments

Comments
 (0)