Skip to content

panic: overflow depth reached #5338

@olix0r

Description

@olix0r

rust-analyzer reliably panics when compiling linkerd2-proxy@main:

:; /home/ver/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux analysis-stats ./linkerd/service-profiles 
Database loaded 396.672681ms
Crates in this dir: 61
Total modules found: 257
Total declarations: 3295
Total functions: 1826
Item Collection: 18.686780996s, 0b allocated 0b resident
thread 'main' panicked at 'overflow depth reached', /home/runner/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/chalk-solve-0.15.0/src/recursive/stack.rs:51:13
stack backtrace:
   0: <unknown>
   1: core::fmt::write
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: std::panicking::rust_panic_with_hook
   6: <unknown>
   7: chalk_solve::recursive::stack::Stack::push
  ..: <unknown>
 100: <unknown>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

I also see intermittent assertion failures:

:; /home/ver/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux analysis-stats .                         
Database loaded 391.930197ms
Crates in this dir: 61
Total modules found: 257
Total declarations: 3295
Total functions: 1826
Item Collection: 18.588868086s, 0b allocated 0b resident
197/1826 10% processing: tests::first_datathread 'main' panicked at 'assertion failed: `(left == right)`
  left: `^1`,
 right: `^0`', /rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libstd/macros.rs:16:9
stack backtrace:
   0: <unknown>
   1: core::fmt::write
  ..: <unknown>
   5: std::panicking::rust_panic_with_hook
   6: rust_begin_unwind
   7: std::panicking::begin_panic_fmt
  ..: <unknown>
  37: ra_hir_ty::traits::trait_solve_query
  ..: <unknown>
  44: ra_hir_ty::autoderef::deref
  ..: <unknown>
  48: ra_hir_ty::method_resolution::iterate_method_candidates_impl
  ..: <unknown>
  64: ra_hir_ty::infer::infer_query
  ..: <unknown>
  70: rust_analyzer::cli::analysis_stats::analysis_stats
  ..: <unknown>
  73: std::rt::lang_start_internal
  74: <unknown>
  75: __libc_start_main
  76: <unknown>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
:; rustc --version       
rustc 1.44.1 (c7087fe00 2020-06-17)

Is there anything I can tune to try to get this working properly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tytype system / type inference / traits / method resolution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions