Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

ICE type checking incorrect impl decl #2330

Closed

Description

@brson
enum chan { }

iface channel<T> {
    fn send(v: T);
}

// `chan` is not an iface, it's an enum
impl of chan for int {
    fn send(v: int) { fail }
}

fn main() {
}
rust: upcall fail 'non-exhaustive match failure', /home/banderson/Dev/rust3/src/rustc/middle/typeck.rs:1507
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: upcall fail 'explicit failure', /home/banderson/Dev/rust3/src/rustc/driver/rustc.rs:232
rust: domain main @0x2615f10 root task failed
rust: upcall fail 'killed', /home/banderson/Dev/rust3/src/libcore/task.rs:454

Activity

  1. ghost assigned on May 3, 2012
  2. catamorphism commented on May 3, 2012

    @catamorphism
    Contributor

    I think this may have been accidentally fixed by code I recently committed. I'll take a look.

  3. added a commit that references this issue on Mar 6, 2021
  4. added a commit that references this issue on Mar 6, 2021
  5. added a commit that references this issue on Mar 7, 2021
  6. added a commit that references this issue on Sep 22, 2022
  7. added a commit that references this issue on Apr 19, 2025
  8. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemI-crash

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions