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

Broken MIR in DefId(0:345 ~ tower[bb9c]::balance::pool::{impl#3}::build) #102145

Closed
simonsan opened this issue Sep 22, 2022 · 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

@simonsan
Copy link

Meta

Stable works.

rustc --version --verbose:

rustc 1.65.0-nightly (750bd1a7f 2022-09-14)
binary: rustc
commit-hash: 750bd1a7ff3e010611b97ee75d30b7cbf5f3a03c
commit-date: 2022-09-14
host: x86_64-pc-windows-msvc
release: 1.65.0-nightly
LLVM version: 15.0.0

compiler flags:

--crate-type lib -C opt-level=3 -C embed-bitcode=no -C linker=rust-lld.exe

Error output

While building latest tokio-console v0.1.7:

   Compiling tower-http v0.3.4
error: internal compiler error: no errors encountered even though `delay_span_bug` issued

error: internal compiler error: broken MIR in DefId(0:345 ~ tower[bb9c]::balance::pool::{impl#3}::build) (CanonicalUserTypeAnnotation { user_ty: Canonical { max_universe: U0, variables: [CanonicalVarInfo { kind: Ty(General(U0)) }, CanonicalVarInfo { kind: Ty(General(U0)) }, CanonicalVarInfo { kind: Ty(General(U0)) }, CanonicalVarInfo { kind: Ty(General(U0)) }], value: TypeOf(DefId(0:232 ~ tower[bb9c]::balance::p2c::service::{impl#1}::new), UserSubsts { substs: [^0, ^1], user_self_ty: Some(UserSelfTy { impl_def_id: DefId(0:229 ~ tower[bb9c]::balance::p2c::service::{impl#1}), self_ty: balance::p2c::service::Balance<^2, ^3> }) }) }, span: C:\Users\dailyuse\.cargo\registry\src\github.com-1ecc6299db9ec823\tower-0.4.13\src\balance\pool\mod.rs:293:22: 293:34 (#0), inferred_ty: fn(std::pin::Pin<std::boxed::Box<balance::pool::PoolDiscoverer<MS, Target, Request>>>) -> balance::p2c::service::Balance<std::pin::Pin<std::boxed::Box<balance::pool::PoolDiscoverer<MS, Target, Request>>>, Request> {balance::p2c::service::Balance::<std::pin::Pin<std::boxed::Box<balance::pool::PoolDiscoverer<MS, Target, Request>>>, Request>::new} }): bad user type AscribeUserType(fn(std::pin::Pin<std::boxed::Box<balance::pool::PoolDiscoverer<MS, Target, Request>>>) -> balance::p2c::service::Balance<std::pin::Pin<std::boxed::Box<balance::pool::PoolDiscoverer<MS, Target, Request>>>, Request> {balance::p2c::service::Balance::<std::pin::Pin<std::boxed::Box<balance::pool::PoolDiscoverer<MS, Target, Request>>>, Request>::new}, DefId(0:232 ~ tower[bb9c]::balance::p2c::service::{impl#1}::new) UserSubsts { substs: [_, _], user_self_ty: Some(UserSelfTy { impl_def_id: DefId(0:229 ~ tower[bb9c]::balance::p2c::service::{impl#1}), self_ty: balance::p2c::service::Balance<_, _> }) }, type_of=fn(D) -> balance::p2c::service::Balance<D, Req> {balance::p2c::service::Balance::<D, Req>::new}): NoSolution
  |
  = note: delayed at compiler\rustc_borrowck\src\type_check\mod.rs:1087:25

thread 'rustc' panicked at 'Box<dyn Any>', compiler\rustc_errors\src\lib.rs:1492:13
Backtrace

   0:     0x7ffa55698fb2 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h62c8014c54436acb
   1:     0x7ffa556d425b - core::fmt::write::h44af67931433e644
   2:     0x7ffa5568b89a - <std::io::IoSlice as core::fmt::Debug>::fmt::hbdd8828ce8198188
   3:     0x7ffa5569c5b4 - std::panicking::default_hook::h165f7fa62393fd72
   4:     0x7ffa5569c1ea - std::panicking::default_hook::h165f7fa62393fd72
   5:     0x7ffa5ada379b - rustc_driver[135a73f48f5dfa02]::describe_lints
   6:     0x7ffa5569cfb2 - std::panicking::rust_panic_with_hook::hd10d69c628ae58b3
   7:     0x7ffa5d168763 - <rustc_errors[d68b46d92fd09d9b]::emitter::DisplaySuggestion as core[4f21d6070cbe0187]::fmt::Debug>::fmt
   8:     0x7ffa5d168229 - <rustc_errors[d68b46d92fd09d9b]::emitter::DisplaySuggestion as core[4f21d6070cbe0187]::fmt::Debug>::fmt
   9:     0x7ffa5d1681e9 - <rustc_errors[d68b46d92fd09d9b]::emitter::DisplaySuggestion as core[4f21d6070cbe0187]::fmt::Debug>::fmt
  10:     0x7ffa5d15cb59 - <rustc_feature[bef4a4b374d25508]::builtin_attrs::AttributeType as core[4f21d6070cbe0187]::fmt::Debug>::fmt
  11:     0x7ffa59589fd9 - <rustc_errors[d68b46d92fd09d9b]::HandlerInner as core[4f21d6070cbe0187]::ops::drop::Drop>::drop
  12:     0x7ffa586ca6b9 - rustc_driver[135a73f48f5dfa02]::main
  13:     0x7ffa586ccf31 - rustc_driver[135a73f48f5dfa02]::main
  14:     0x7ffa586de2ad - rustc_driver[135a73f48f5dfa02]::args::arg_expand_all
  15:     0x7ffa586dd78a - rustc_driver[135a73f48f5dfa02]::args::arg_expand_all
  16:     0x7ffa586c5eb0 - rustc_driver[135a73f48f5dfa02]::main
  17:     0x7ffa586de0e7 - rustc_driver[135a73f48f5dfa02]::args::arg_expand_all
  18:     0x7ffa586ce5f9 - rustc_driver[135a73f48f5dfa02]::main
  19:     0x7ffa586cea5d - rustc_driver[135a73f48f5dfa02]::main
  20:     0x7ffa556ad7cc - std::sys::windows::thread::Thread::new::h49097702d33d1e6a
  21:     0x7ffaf6407034 - BaseThreadInitThunk
  22:     0x7ffaf73026a1 - RtlUserThreadStart

@simonsan simonsan 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 Sep 22, 2022
@matthiaskrgr
Copy link
Member

This has been fixed already #101844
should go away if you update your nightly

@simonsan
Copy link
Author

@matthiaskrgr Ah thanks! :) Saw my nightly didn't (auto-)update due to missing miri in those.

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

2 participants