rust/src/libstd
Corey Farwell d7a09d4e65 Rollup merge of #40503 - swgillespie:thread-hack-removal, r=sfackler
std: remove a workaround for privacy limitations

`std:🧵: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
```
2017-03-17 08:49:02 -04:00
..
collections Implement placement-in protocol for HashMap 2017-03-11 21:08:18 +08:00
ffi Merge branch 'master' into frewsxcv-osstr 2017-03-16 21:56:52 -04:00
io Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
net Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
os Update usages of 'OSX' (and other old names) to 'macOS'. 2017-03-12 14:59:04 -04:00
prelude Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
rand Update usages of 'OSX' (and other old names) to 'macOS'. 2017-03-12 14:59:04 -04:00
sync Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
sys Rollup merge of #40457 - frewsxcv:frewsxcv-macos, r=steveklabnik 2017-03-17 08:48:52 -04:00
sys_common Rollup merge of #40503 - swgillespie:thread-hack-removal, r=sfackler 2017-03-17 08:49:02 -04:00
thread Rollup merge of #40503 - swgillespie:thread-hack-removal, r=sfackler 2017-03-17 08:49:02 -04:00
time std: Stabilize APIs for the 1.16.0 release 2017-01-25 16:43:01 -08:00
ascii.rs Add feature annotations to the doctests for ascii_ctype. 2017-02-13 18:44:43 -05:00
build.rs Automate timestamp creation and build skipping for native libraries 2017-03-04 21:38:26 +03:00
Cargo.toml cleanup: remove the *san Cargo features from std 2017-03-05 14:25:47 -05:00
env.rs clarify docs for Args and ArgsOs 2017-03-05 16:39:26 -05:00
error.rs Follow our own recommendations in the examples 2016-11-25 17:59:04 +01:00
f32.rs Get linkchecker clean 2017-02-21 14:02:12 -05:00
f64.rs Get linkchecker clean 2017-02-21 14:02:12 -05:00
fs.rs Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
lib.rs Rollup merge of #40456 - frewsxcv:frewsxcv-docs-function-parens, r=GuillaumeGomez 2017-03-17 08:48:51 -04:00
macros.rs Get linkchecker clean 2017-02-21 14:02:12 -05:00
memchr.rs std: Move platform specific memchr code into sys 2016-10-01 19:33:02 +00:00
num.rs travis: Get an emscripten builder online 2017-01-19 13:54:19 -08:00
panic.rs std: Relax UnwindSafe impl for Unique 2017-02-21 14:36:24 -08:00
panicking.rs Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
path.rs Rollup merge of #40456 - frewsxcv:frewsxcv-docs-function-parens, r=GuillaumeGomez 2017-03-17 08:48:51 -04:00
primitive_docs.rs Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
process.rs Example for how to provide stdin using std::process::Command 2017-02-27 17:04:18 +11:00
rt.rs std: remove a workaround for privacy limitations that isn't necessary anymore 2017-03-13 18:42:23 -07:00