Skip to content

Compiler panic, partial_cmp #114056

Open
Open

Description

Code

https://github.com/RichoDemus/luna/tree/compiler_crash

Meta

bug is also in nightly edit: no it's not, I invoked the nightly flag incorrectly

rustc --version --verbose:

❯ rustc --version --verbose
rustc 1.71.0 (8ede3aae2 2023-07-12)
binary: rustc
commit-hash: 8ede3aae28fe6e4d52b38157d7bfe0d3bceef225
commit-date: 2023-07-12
host: x86_64-pc-windows-msvc
release: 1.71.0
LLVM version: 16.0.5

Error output

<output>
Backtrace

thread 'rustc' panicked at 'index out of bounds: the len is 162 but the index is 167', C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ena-0.14.2\src\snapshot_vec.rs:199:10
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.71.0 (8ede3aae2 2023-07-12) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type bin -C opt-level=3 -C embed-bitcode=no

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [typeck] type-checking `train_loop`
#1 [used_trait_imports] finding used_trait_imports `train_loop`
#2 [analysis] running analysis passes on this crate
end of query stack
warning: `luna` (bin "luna") generated 6 warnings (run `cargo fix --bin "luna"` to apply 6 suggestions)
error: could not compile `luna` (bin "luna"); 6 warnings emitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions