Rollup merge of #58138 - ishitatsuyuki:stability-delay, r=estebank

Fix #58101
This commit is contained in:
kennytm 2019-02-06 00:29:08 +09:00 committed by GitHub
commit 3abb03fdb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,4 @@
fn main() {
let _ = std::thread::thread_info::current_thread();
//~^ERROR module `thread_info` is private
}

View file

@ -0,0 +1,9 @@
error[E0603]: module `thread_info` is private
--> $DIR/stability-in-private-module.rs:2:26
|
LL | let _ = std::thread::thread_info::current_thread();
| ^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0603`.