-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc 1.33.0-nightly (b2b7a063a 2019-01-01) compiler unexpectedly panics #57264
Comments
I think this was caused by #56878, which seems to be causing some actually-reachable public functions to be identified as private (cc @petrochenkov). Specifically, the following code results in a warning "method is never used: pub mod pub_mod {
use crate:;priv_mod::PubButUndexposedType;
use std::marker::PhantomData;
pub struct PubStruct<T>(PhantomData<T>);
impl PubStruct<PubButUnexposedType> {
pub fn new() -> Self { PubStruct(PhantomData) }
}
}
mod priv_mod {
pub struct PubButUnexposedType;
} In a separate crate, it's possible to call Adding a visible top-level re-export of |
Discussed at the T-compiler meeting. Proactively assigning @petrochenkov although bisecting would make sense to be sure as to what exact cause really is. |
I'll look what happens. |
Bisecting just because it's easy to do. Will post the results. |
regression in nightly-2019-01-02 |
Fixed in #57344 |
2019-01-01 nightly toolchain fails to compile the following: https://github.com/jonimake/rust-settings-test
The problem is the
let _ = config::File::with_name("Settings");
line inmain.rs
. Below is the command line output.The text was updated successfully, but these errors were encountered: