Skip to content

ICE in empty-0.0.4, Rust 1.16, unreachable for-loop pattern #38969

Closed
@brson

Description

@brson

https://github.com/notriddle/rust-empty 434e1cd22b20b498ecbb00c0b19314617862cb2a

Not on stable/beta.

rustc 1.16.0-nightly (47c8d9fdc 2017-01-08)
binary: rustc
commit-hash: 47c8d9fdcf2e6502cf4ca7d7f059fdc1a2810afa
commit-date: 2017-01-08
host: x86_64-unknown-linux-gnu
release: 1.16.0-nightly
LLVM version: 3.9
brian@ip-10-145-43-250:~/dev/rust-empty⟫ cargo +nightly test
   Compiling void v1.0.2
   Compiling empty v0.0.4 (file:///mnt2/dev/rust-empty)
error: internal compiler error: /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_const_eval/check_match.rs:314: unreachable for-loop pattern
   --> src/lib.rs:191:9
    |
191 |           for i in super::List {
    |  _________^ starting here...
192 | |             void::unreachable(i);
193 | |         }
    | |_________^ ...ending here

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

thread 'rustc' panicked at 'Box<Any>', /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_errors/lib.rs:382
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Build failed, waiting for other jobs to finish...
error: Could not compile `empty`.

To learn more, run the command again with --verbose.

cc @notriddle

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions