-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Compiler panic while building crate with tokio, rocket, and snafu #66787
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
cc @wesleywiser |
triage: P-high, removing nomination label. |
Minimal repro: pub enum ApiError {}
pub struct TokioError {
b: bool,
}
pub enum Error {
Api {
source: ApiError,
},
Ethereum,
Tokio {
source: TokioError,
},
}
struct Api;
impl IntoError<Error> for Api
{
type Source = ApiError;
fn into_error(self, error: Self::Source) -> Error {
Error::Api {
source: (|v| v)(error),
}
}
}
pub trait IntoError<E>
{
/// The underlying error
type Source;
/// Combine the information to produce the error
fn into_error(self, source: Self::Source) -> E;
} |
wesleywiser
added a commit
to wesleywiser/rust
that referenced
this issue
Nov 29, 2019
Centril
added a commit
to Centril/rust
that referenced
this issue
Dec 3, 2019
…obk,RalfJung [const-prop] Fix ICE calculating enum discriminant Fixes rust-lang#66787 Different approach than rust-lang#66857 r? @oli-obk cc @RalfJung @eddyb
Centril
added a commit
to Centril/rust
that referenced
this issue
Dec 3, 2019
…obk,RalfJung [const-prop] Fix ICE calculating enum discriminant Fixes rust-lang#66787 Different approach than rust-lang#66857 r? @oli-obk cc @RalfJung @eddyb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Summary
I'm trying to build my crate on nightly, and I'm getting a compiler panic.
I bisected several nightly builds to try and narrow down when the problem started.
The last known good nightly was
nightly-2019-11-10-x86_64-unknown-linux-gnu
, and the first failing wasnightly-2019-11-11-x86_64-unknown-linux-gnu
The panic also occurs in
nightly-2019-11-26-x86_64-unknown-linux-gnu
.The crates causing the panic are available here: https://github.com/quilt/simulation/tree/bug-report
Build Output
The text was updated successfully, but these errors were encountered: