about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-17 08:49:02 -0400
committerGitHub <noreply@github.com>2017-03-17 08:49:02 -0400
commitd7a09d4e655871671a6c94c05a506ae3626ce528 (patch)
tree919699b2faad4565554047dce25bcfee522346b6 /src/rustllvm/RustWrapper.cpp
parent5aab3b97af7691636928b35350a46b393f0d6d5a (diff)
parent1545f4e2a323eb869b13f36bd05cc91ff21d5161 (diff)
downloadrust-d7a09d4e655871671a6c94c05a506ae3626ce528.tar.gz
rust-d7a09d4e655871671a6c94c05a506ae3626ce528.zip
Rollup merge of #40503 - swgillespie:thread-hack-removal, r=sfackler
std: remove a workaround for privacy limitations

`std::thread::Thread` implements a non-exported `NewThread` trait to allow for internal-only use of `Thread::new`. Nowadays we have `pub(crate)`, which accomplishes the same thing but much more idiomatically.

Rustdoc handles this correctly (I checked and I didn't see `Thread::new` on the rustdoc entry for `Thread` with this change), and the stage1 `rustc` emits the correct error still (I'm assuming that the stage1 compiler uses my `libstd`?):

```
$ ./build/x86_64-apple-darwin/stage1/bin/rustc test.rs
error: method `new` is private
 --> test.rs:4:18
  |
4 |     let thread = thread::Thread::new(None);
  |                  ^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error
```
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions