Repository: rust
Issue: error: internal compiler error: ...: opaque types got hidden types registered from within subtype predicate
Labels: I-ICE,T-compiler,A-inference,C-bug,E-needs-mcve

While compiling the [Turbo](https://github.com/vercel/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](https://github.com/rust-lang/rust/files/15408168/rustc-ice-2024-05-22T20_01_35-83864.txt)