Skip to content

ICE: no def-map entry for trait #16888

Closed
@ftxqxd

Description

@ftxqxd
type Foo<Sized? T> = T;

fn main() {}

Backtrace:

   1:     0x7fb9fb0a6120 - rt::backtrace::imp::write::h3c0523c13636656fOLq
   2:     0x7fb9fb0a9310 - failure::on_fail::h9a355b0a53be785cw7q
   3:     0x7fb9fb891740 - unwind::begin_unwind_inner::h0ab5484e74ee0101rje
   4:     0x7fb9fb8913e0 - unwind::begin_unwind_fmt::hfda1a89a48c878d4Rge
   5:     0x7fb9fb8913a0 - rust_begin_unwind
   6:     0x7fb9fb8d7c30 - failure::begin_unwind::hd8d2f38831211f93iAk
   7:     0x7fb9fbf615e0 - middle::ty::trait_ref_to_def_id::h44d513c19d031015hbI
   8:     0x7fb9fc3dd940 - middle::typeck::collect::compute_bounds::h64fde3dd088352c3KTi
   9:     0x7fb9fc40c0c0 - middle::typeck::collect::ty_generics::h5b74fcd54eff64ffFKi
  10:     0x7fb9fc3619f0 - middle::typeck::collect::ty_of_item::h4427c98324eb7589dwi
  11:     0x7fb9fc35e4c0 - middle::typeck::collect::convert::hb34d428c697202adF2h
  12:     0x7fb9fc3576a0 - middle::typeck::collect::collect_item_types::he364286a0d63522dZwh
  13:     0x7fb9fbc72260 - util::common::time::h14172350515681977473
  14:     0x7fb9fc46ae80 - middle::typeck::check_crate::hbe9ce24801a7cbd7vSm
  15:     0x7fb9fc52c500 - driver::driver::phase_3_run_analysis_passes::hc7abcc76bf622eafiyB
  16:     0x7fb9fc527bf0 - driver::driver::compile_input::ha48623fcead7bd7e5jB
  17:     0x7fb9fc5bb890 - driver::run_compiler::h0b258b9c360b66ddjRE
  18:     0x7fb9fc5bb7a0 - driver::main_args::closure.141085
  19:     0x7fb9fc5cfdc0 - task::TaskBuilder<S>::try_future::closure.142270
  20:     0x7fb9fc5cfbc0 - task::TaskBuilder<S>::spawn_internal::closure.142247
  21:     0x7fb9fd03a0b0 - task::spawn_opts::closure.8370
  22:     0x7fb9fb8ea490 - rust_try_inner
  23:     0x7fb9fb8ea480 - rust_try
  24:     0x7fb9fb88ecf0 - unwind::try::hea1640d217ab7457H7d
  25:     0x7fb9fb88ea90 - task::Task::run::hb52aad40b24ebf23Ndd
  26:     0x7fb9fd039e10 - task::spawn_opts::closure.8316
  27:     0x7fb9fb890930 - thread::thread_start::h741158bbfb282555MCd
  28:     0x7fb9fab3a0c0 - start_thread
  29:     0x7fb9fb558359 - __clone
  30:                0x0 - <unknown>

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-DSTsArea: Dynamically-sized types (DSTs)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions