-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE: resolution failed during building vtable representation #90691
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
alexjg
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Nov 8, 2021
Can reproduce on the playground, but curiously adding |
jyn514
changed the title
Encountered error
ICE: resolution failed during building vtable representation
Nov 8, 2021
Unimplemented ...
during codegen
jyn514
added
the
requires-nightly
This issue requires a nightly compiler in some way.
label
Nov 8, 2021
Reduced to: #![feature(associated_type_bounds)]
trait TError: std::fmt::Debug {}
impl TError for () {}
trait SuperTrait {
type Error;
}
trait Trait: SuperTrait<Error: TError> {}
impl<T> Trait for T
where
T: SuperTrait,
<T as SuperTrait>::Error: TError,
{
}
struct SomeTrait<S>(S);
struct BoxedTrait(Box<dyn Trait<Error = ()>>);
impl<S: 'static> From<SomeTrait<S>> for BoxedTrait {
fn from(other: SomeTrait<S>) -> Self {
Self(Box::new(other))
}
}
impl<S> SuperTrait for SomeTrait<S> {
type Error = ();
}
impl From<()> for BoxedTrait {
fn from(c: ()) -> Self {
Self::from(SomeTrait(c))
}
}
fn main() {
let _: BoxedTrait = ().into();
} regressed commit: f9b95f9 |
kim
added a commit
to radicle-dev/radicle-keystore
that referenced
this issue
Dec 10, 2021
In practice, most errors need to satisfy: std::error::Error + Send + Sync + 'static and `Signer::Error` is no exception. By defining the bound on the trait here, some wild tricks involving associated type bounds can be removed from `link-crypto`. This lets us avoid a compiler bug in recent `rustc`s [0] without compromising errrrgonomics. [0]: rust-lang/rust#90691 Signed-off-by: Kim Altintop <kim@eagain.st>
jbearer
added a commit
to EspressoSystems/cape
that referenced
this issue
Jan 14, 2022
This will be important when we get to integration, as it allows us to use a mock backend for the API tests and a real one for the actual executable. Unfortunately, right now it crashes the gd Rust compiler. See rust-lang/rust#90691 for an apparently related issue.
Triage: This seems to be fixed since today's nightly. |
rustbot
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
May 3, 2023
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Mar 22, 2024
…ng vtable representation Fixes rust-lang#90691
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Mar 23, 2024
…xxx, r=fmease add some ice tests 5xxxx to 9xxxx Fixes rust-lang#98842 Fixes rust-lang#90691 Fixes rust-lang#88421 Fixes rust-lang#88212 Fixes rust-lang#83056 Fixes rust-lang#80125 Fixes rust-lang#64784 Fixes rust-lang#52334
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Mar 24, 2024
…xxx, r=fmease add some ice tests 5xxxx to 9xxxx Fixes rust-lang#98842 Fixes rust-lang#90691 Fixes rust-lang#88421 Fixes rust-lang#88212 Fixes rust-lang#83056 Fixes rust-lang#80125 Fixes rust-lang#64784 Fixes rust-lang#52334
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 24, 2024
…x, r=fmease add some ice tests 5xxxx to 9xxxx Fixes rust-lang#98842 Fixes rust-lang#90691 Fixes rust-lang#88421 Fixes rust-lang#88212 Fixes rust-lang#83056 Fixes rust-lang#80125 Fixes rust-lang#64784 Fixes rust-lang#52334
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
Mar 25, 2024
add some ice tests 5xxxx to 9xxxx Fixes rust-lang/rust#98842 Fixes rust-lang/rust#90691 Fixes rust-lang/rust#88421 Fixes rust-lang/rust#88212 Fixes rust-lang/rust#83056 Fixes rust-lang/rust#80125 Fixes rust-lang/rust#64784 Fixes rust-lang/rust#52334
RenjiSann
pushed a commit
to RenjiSann/rust
that referenced
this issue
Mar 25, 2024
…ng vtable representation Fixes rust-lang#90691
RenjiSann
pushed a commit
to RenjiSann/rust
that referenced
this issue
Mar 25, 2024
…x, r=fmease add some ice tests 5xxxx to 9xxxx Fixes rust-lang#98842 Fixes rust-lang#90691 Fixes rust-lang#88421 Fixes rust-lang#88212 Fixes rust-lang#83056 Fixes rust-lang#80125 Fixes rust-lang#64784 Fixes rust-lang#52334
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.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: