Skip to content

ICE in trans with guarded match arms #3257

Closed
@brson

Description

@brson
fn main() {
    match some(true) {
      some(false) => {
      }
      whatever if false => {
      }
      some(true) => {
      }
      none => ()
    }
}
rust: task failed at 'Assertion m.len() > 0u || is_some(chk) failed', /home/banderson/Dev/rust3/src/rustc/middle/trans/alt.rs:451

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions