Skip to content
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: Opaque types got hidden types registered from within subtype predicate #125516

Closed
msfjarvis opened this issue May 24, 2024 · 2 comments
Closed
Labels
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.

Comments

@msfjarvis
Copy link

Code

https://github.com/teloxide/teloxide/blob/bd98ba7e613e0fd7ec4fd1c210fc5edbb048f975/crates/teloxide-core/src/types/update.rs#L195

I wasn't able to create a minimal reproducer :(

Here's the source code of the project where the crash is triggered: https://github.com/msfjarvis/linkleaner/tree/1a327237a91f80fcead1826d4fc916704ed6a027

Meta

rustc --version --verbose:

rustc 1.80.0-nightly (867900499 2024-05-23)
binary: rustc
commit-hash: 8679004993f08807289911d9f400f4ac4391d2bc
commit-date: 2024-05-23
host: x86_64-unknown-linux-gnu
release: 1.80.0-nightly
LLVM version: 18.1.6

The last rustc build that this project was using is nightly-2024-01-09, where this crash does not happen.

Error output

error: internal compiler error: compiler/rustc_infer/src/infer/mod.rs:968:17: opaque types got hidden types registered from within subtype predicate: either::Either<either::Either<Alias(Opaque, AliasTy { args: ['?50], def_id: DefId(0:32657 ~ teloxide_core[4d4f]::types::poll::{impl#0}::mentioned_users::{opaque#0}) }), ?200t>, ?201t> vs either::Either<either::Either<Alias(Opaque, AliasTy { args: ['?50], def_id: DefId(0:32657 ~ teloxide_core[4d4f]::types::poll::{impl#0}::mentioned_users::{opaque#0}) }), ?204t>, ?205t>
   --> /home/msfjarvis/.cargo/git/checkouts/teloxide-cd43b5216a237e6a/bd98ba7e613e/crates/teloxide-core/src/types/update.rs:195:54
    |
195 |             UpdateKind::ChosenInlineResult(query) => i1(once(&query.from)),
    |                                                      ^^^^^^^^^^^^^^^^^^^^^

@msfjarvis msfjarvis 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 May 24, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 24, 2024
@msfjarvis msfjarvis changed the title Opaque types got hidden types registered from within subtype predicate ICE: Opaque types got hidden types registered from within subtype predicate May 24, 2024
@lqd
Copy link
Member

lqd commented May 24, 2024

Should be fixed by #125489 in tomorrow's nightly

@msfjarvis
Copy link
Author

Confirmed fixed.

@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 25, 2024
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) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants