Skip to content

internal compiler error: adt::represent_type called on non-ADT type: ! #18110

Closed
@Zoxc

Description

@Zoxc

I get an ICE when compiling the following file: https://gist.github.com/Zoxc/072b96fe2069fff40f98#file-assembly-rs-L237 (relevant line highlighted)

assembly.rs:238:17: 238:41 warning: unreachable expression, #[warn(unreachable_code)] on by default
assembly.rs:238                 OutputIdx(outputs.len())
                                ^~~~~~~~~~~~~~~~~~~~~~~~
error: internal compiler error: adt::represent_type called on non-ADT type: !
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', C:\bot\slave\nightly-win-64\build\src\libsyntax\diagnostic.rs:169

stack backtrace:
   1:         0x66be4ab8 - ZN2rt9backtrace3imp5write20h8b43ffd92fc3414dO9qE
   2:         0x66be851c - ZN2rt4init20h0652c1b2b1c39b6fknrE
   3:         0x668463ed - ZN6unwind18begin_unwind_inner20h179e3595a6894013OhdE
   4:         0x6a676316 - ZN10diagnostic11SpanHandler8span_bug20hcbaae1b94c636cbefLFE
   5:         0x6a676937 - ZN10diagnostic7Handler3bug20h1e12d6a2d7422fc8hRFE
   6:         0x6d6d2d11 - ZN6middle5trans3adt14represent_type20h0c0ac1f4439628cbaPtE
   7:         0x6d715919 - ZN6middle5trans4expr9trans_adt20ha9cb973b5c7ef782Xo5E
   8:         0x6d702b5b - ZN6middle2ty9expr_kind20hcc5a093c4d2d575f35GE
   9:         0x6d701589 - ZN6middle2ty9expr_kind20hcc5a093c4d2d575f35GE
  10:         0x6d6c627a - ZN6middle5trans4expr5trans20h9ad574ecb756d9efmw3E
  11:         0x6d6fa174 - ZN6middle5trans6callee10trans_args20h454130bc88a762a4i32E
  12:         0x6d6cd628 - ZN6middle5trans6callee16trans_call_inner20h3cd2486ebebf693faI2E
  13:         0x6d6f40ff - ZN6middle5trans6callee17trans_method_call20h0d54b44c2e999715DD2E
  14:         0x6d70294f - ZN6middle2ty9expr_kind20hcc5a093c4d2d575f35GE
  15:         0x6d6c4fe4 - ZN6middle5trans4expr10trans_into20he9530743b27d201bss3E
  16:         0x6d6c4380 - ZN6middle5trans11controlflow15trans_stmt_semi20h0acc3de243025e32KEZE
  17:         0x6d6c3a76 - ZN6middle5trans11controlflow10trans_stmt20h80be86ea0c9562a1xAZE
  18:         0x6d6c5229 - ZN6middle5trans11controlflow11trans_block20haceb9fae20a5e044DFZE
  19:         0x6d703091 - ZN6middle2ty9expr_kind20hcc5a093c4d2d575f35GE
  20:         0x6d6c4fe4 - ZN6middle5trans4expr10trans_into20he9530743b27d201bss3E
  21:         0x6d714d58 - ZN6middle5trans6_match11trans_match20h0c0c3a740bad7faaTLiE
  22:         0x6d70301f - ZN6middle2ty9expr_kind20hcc5a093c4d2d575f35GE
  23:         0x6d6c4fe4 - ZN6middle5trans4expr10trans_into20he9530743b27d201bss3E
  24:         0x6d705226 - ZN6middle2ty9expr_kind20hcc5a093c4d2d575f35GE
  25:         0x6d6c50e9 - ZN6middle5trans4expr10trans_into20he9530743b27d201bss3E
  26:         0x6d6c5318 - ZN6middle5trans11controlflow11trans_block20haceb9fae20a5e044DFZE
  27:         0x6d6c9e02 - ZN6middle5trans11controlflow9trans_for20hae3cc94d5cd2b3202RZE
  28:         0x6d704d4d - ZN6middle2ty9expr_kind20hcc5a093c4d2d575f35GE
  29:         0x6d6c50e9 - ZN6middle5trans4expr10trans_into20he9530743b27d201bss3E
  30:         0x6d6c4380 - ZN6middle5trans11controlflow15trans_stmt_semi20h0acc3de243025e32KEZE
  31:         0x6d6c3a76 - ZN6middle5trans11controlflow10trans_stmt20h80be86ea0c9562a1xAZE
  32:         0x6d6c5229 - ZN6middle5trans11controlflow11trans_block20haceb9fae20a5e044DFZE
  33:         0x6d76fc40 - ZN6middle5trans4base13trans_closure20h89f07cf629bedf2coBfE
  34:         0x6d6b741d - ZN6middle5trans4base8trans_fn20h21be404295af088bMMfE
  35:         0x6d6b4b41 - ZN6middle5trans4base10trans_item20hb6929d95cf58e43155fE
  36:         0x6d7795a9 - ZN6middle5trans4base11trans_crate20h4da3d643db54970aB4gE
  37:         0x6dbbe8b9 - ZN6driver6driver25phase_4_translate_to_llvm20h69214abe29522897NDxE
  38:         0x6dbb61f3 - ZN6driver6driver13compile_input20hd3784fefcc633941IaxE
  39:         0x6dc3c7b1 - ZN6driver7monitor20h8da1b58086cb64cfoNBE
  40:         0x6dc3aad0 - ZN6driver7monitor20h8da1b58086cb64cfoNBE
  41:         0x6d33dbb5 - ZN6driver6driver35OutputFilenames...std..clone..Clone5clone20hdba80f9a75c89415a0xE
  42:         0x6d33dae7 - ZN6driver6driver35OutputFilenames...std..clone..Clone5clone20hdba80f9a75c89415a0xE
  43:         0x7072a50c - ZN4task10spawn_opts20h7e5f7c9c3d25d48aJteE
  44:         0x668ab64f - rust_try
  45:         0x668ab629 - rust_try
  46:         0x6684439e - ZN6unwind3try20h1c20c11879bf01d2S4cE
  47:         0x668441d9 - ZN4task4Task3run20he4d7a274f6588b36izcE
  48:         0x7072a346 - ZN4task10spawn_opts20h7e5f7c9c3d25d48aJteE
  49:         0x668459b7 - ZN4task11BlockedTask14cast_from_uint20hae3c8f07961c6d9eVRcE
  50:     0x7ffbe8e616ad - BaseThreadInitThunk

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.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