Closed jfrimmel closed 5 years ago
Note that this is fixed in beta and nightly, but we must not have got to it in time before the beta to stable cutoff.
Try to build tide with nightly-2019-06-06, got an ICE seems same with this issue.
PS: cargo +nightly-2019-06-05 build
work fine.
@DCjanus Your issue looks like it has nothing to do with this issue, and is instead a separate issue. Could you please file a new issue?
@yodaldevoid I am very sorry, I am not very familiar with the compiler. I'd like to file a new issue
This can be closed now. The current stable is 1.37.0 and here there are tons of errors but no ICE.
The code above (compiler explorer link) produces ICEs in multiple Rust stable versions:
Rust 1.34.0 stable output
``` thread 'rustc' panicked at 'slice index starts at 1 but ends at 0', src/libcore/slice/mod.rs:2419:5 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. error: internal compiler error: unexpected panic 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 note: rustc 1.34.0 (91856ed52 2019-04-10) running on x86_64-unknown-linux-gnu note: compiler flags: -C debuginfo=1 -C llvm-args=--x86-asm-syntax=intel --crate-type rlib Compiler returned: 101 ```Rust 1.35.0 stable output
``` warning: the feature `const_generics` is incomplete and may cause the compiler to crash --> src/main.rs:1:12 | 1 | #![feature(const_generics)] | ^^^^^^^^^^^^^^ error[E0573]: expected type, found const parameter `T` --> src/main.rs:4:24 | 4 | implI know, that the code itself is broken and should not compile, but in fact, the compile should fail already at the
#![feature]
, since that is not allowed an stable. Either way, an ICE is always bad :-)