Skip to content

ICE: adt::represent_type called on non-ADT type #15913

Closed
@csoren

Description

@csoren

I'm exploring Rust for the first time and having a play with the FFI on Win32 in particular. I've hit an internal compiler error however. I have tried to isolate the offending lines in order to provide a minimal example, but when I do that, the problem goes away.

It seems to be related to my definition of DefWindowProc in src/win32/user32/native.rs, if I delete the uMsg:u32 parameter, compilation completes (obviously the code now has zero chance of working, but you get the idea).

I'm using the latest nightly (rustc 0.12.0-pre-nightly (aa0e35b 2014-07-22 00:26:21 +0000)) as of submitting this report on Windows 8.1

The problem can be recreated with:

hg clone ssh://hg@bitbucket.org/csoren/rust-win32 rust-ice
cd rust-ice
hg update rust-ice
cargo build

This will produce:

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\build\src\libsyntax\ast_util.rs:784

Running with RUST_BACKTRACE doesn't seem very helpful:

stack backtrace:
   1: 0x6a17dd74
   2: 0x61f8889c
   3:   0x66910e
   4:   0x669aac
   5: 0x70f18f76
   6: 0x712e7899
   7: 0x71309679
   8: 0x712fda17
   9: 0x71300afc
  10: 0x71312910
  11: 0x71310f8d
  12: 0x712d4711
  13: 0x7131ce69
  14: 0x71311294
  15: 0x712d329e
  16: 0x713b02c3
  17: 0x713b00be
  18: 0x7137e662
  19: 0x712d26c4
  20: 0x712d1d67
  21: 0x712d357b
  22: 0x7138556f
  23: 0x712c6f90
  24: 0x712c2534
  25: 0x712bd37b
  26: 0x71300ef5
  27: 0x712fd67a
  28: 0x71300afc
  29: 0x71312910
  30: 0x712d31f9
  31: 0x712d3664
  32: 0x7138556f
  33: 0x712c6f90
  34: 0x712c2534
  35: 0x712bd37b
  36: 0x71300ef5
  37: 0x712fd67a
  38: 0x71300afc
  39: 0x71312910
  40: 0x712d31f9
  41: 0x712d3664
  42: 0x71312487
  43: 0x712d31f9
  44: 0x712d3e18
  45: 0x7131231f
  46: 0x712d31f9
  47: 0x712d3664
  48: 0x7138556f
  49: 0x712c6f90
  50: 0x712c2534
  51: 0x712bd37b
  52: 0x712f777c
  53: 0x71303958
  54: 0x712fd67a
  55: 0x712db22d
  56: 0x7132bc76
  57: 0x7131b7ff
  58: 0x7131c60d
  59: 0x71311273
  60: 0x712d4711
  61: 0x7130a75e
  62: 0x712fe79d
  63: 0x71300afc
  64: 0x71312910
  65: 0x712d31f9
  66: 0x712d3664
  67: 0x7138556f
  68: 0x712c6f90
  69: 0x712c88db
  70: 0x712f828d
  71: 0x712f3db6
  72: 0x713015cf
  73: 0x712fd67a
  74: 0x71300afc
  75: 0x71312910
  76: 0x712d31f9
  77: 0x71324e52
  78: 0x713123af
  79: 0x712d31f9
  80: 0x712d3664
  81: 0x7138556f
  82: 0x712c6f90
  83: 0x712c2534

Metadata

Metadata

Assignees

No one assigned

    Labels

    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