mirror of https://github.com/rust-lang/rust.git
Rollup merge of #58138 - ishitatsuyuki:stability-delay, r=estebank
Fix #58101
This commit is contained in:
commit
3abb03fdb3
|
@ -765,7 +765,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
|
|||
}
|
||||
}
|
||||
EvalResult::Unmarked => {
|
||||
span_bug!(span, "encountered unmarked API: {:?}", def_id);
|
||||
// The API could be uncallable for other reasons, for example when a private module
|
||||
// was referenced.
|
||||
self.sess.delay_span_bug(span, &format!("encountered unmarked API: {:?}", def_id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
fn main() {
|
||||
let _ = std::thread::thread_info::current_thread();
|
||||
//~^ERROR module `thread_info` is private
|
||||
}
|
|
@ -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`.
|
Loading…
Reference in New Issue