Skip to content

error: internal compiler error: ...: opaque types got hidden types registered from within subtype predicate #125422

@yurivict

Description

@yurivict

While compiling the Turbo version 1.13.4-canary.5 project with rust-nightly-1.80.0.20240507 this failure occurs:

     Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=num_format CARGO_MANIFEST_DIR=/usr/ports/devel/turbo/work/turbo-1.13.4-canary.5/cargo-crates/num-format-0.4.4 CARGO_PKG_AUTHORS='Brian Myers <brian.carl.myers@gmail.com>' CARGO_PKG_DESCRIPTION='A Rust crate for producing string-representations of numbers, formatted according to international standards' CARGO_PKG_HOMEPAGE='https://github.com/bcmyers/num-format' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=num-format CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/bcmyers/num-format' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.4 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' CARGO_RUSTC_CURRENT_DIR=/usr/ports/devel/turbo/work/turbo-1.13.4-canary.5/cargo-crates/num-format-0.4.4 CARGO_WORKSPACE_DIR=/usr/ports/devel/turbo/work/turbo-1.13.4-canary.5/ LD_LIBRARY_PATH=/usr/ports/devel/turbo/work/target/release/deps TURBO_PNPM_WORKSPACE_DIR=/usr/ports/devel/turbo/work/turbo-1.13.4-canary.5/ /usr/local/bin/rustc --crate-name num_format --edition=2021 /usr/ports/devel/turbo/work/turbo-1.13.4-canary.5/cargo-crates/num-format-0.4.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=189 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C lto=off -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("cfg-if", "default", "encoding_rs", "lazy_static", "libc", "num-bigint", "num-format-windows", "serde", "std", "widestring", "winapi", "with-num-bigint", "with-serde", "with-system-locale"))' -C metadata=0ee6294688a0c406 -C extra-filename=-0ee6294688a0c406 --out-dir /usr/ports/devel/turbo/work/target/x86_64-unknown-freebsd/release/deps --target x86_64-unknown-freebsd -C linker=cc -C strip=debuginfo -L dependency=/usr/ports/devel/turbo/work/target/x86_64-unknown-freebsd/release/deps -L dependency=/usr/ports/devel/turbo/work/target/release/deps --extern arrayvec=/usr/ports/devel/turbo/work/target/x86_64-unknown-freebsd/release/deps/libarrayvec-bb645e339aef43ca.rmeta --extern itoa=/usr/ports/devel/turbo/work/target/x86_64-unknown-freebsd/release/deps/libitoa-09004c120437aecf.rmeta --cap-lints warn -C link-arg=-fstack-protector-strong`
error: internal compiler error: compiler/rustc_infer/src/infer/mod.rs:957:17: opaque types got hidden types registered from within subtype predicate: Alias(Opaque, AliasTy { args: ['?101, '?96], def_id: DefId(0:2238 ~ turbopack_trace_server[50a5]::span_ref::{impl#0}::children::{opaque#0}) }) vs Alias(Opaque, AliasTy { args: ['?99, '?96], def_id: DefId(0:2238 ~ turbopack_trace_server[50a5]::span_ref::{impl#0}::children::{opaque#0}) })
  --> crates/turbopack-trace-server/src/bottom_up.rs:52:36
   |
52 |             current_iterators.push(iter);
   |                                    ^^^^

thread 'rustc' panicked at compiler/rustc_infer/src/infer/mod.rs:957:17:
Box<dyn Any>
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

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: please make sure that you have updated to the latest nightly

note: please attach the file at `/usr/ports/devel/turbo/work/turbo-1.13.4-canary.5/rustc-ice-2024-05-22T20_01_35-83864.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C lto=off -C embed-bitcode=no -C linker=cc -C strip=debuginfo -C link-arg=-fstack-protector-strong

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

query stack during panic:
#0 [typeck] type-checking `bottom_up::build_bottom_up_graph`
#1 [analysis] running analysis passes on this crate
end of query stack

rustc-ice-2024-05-22T20_01_35-83864.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inferenceArea: Type inferenceC-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant 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