Closed
Description
#![feature(universal_impl_trait)]
pub fn ice(f: impl Fn()) {}
$ rustdoc src/lib.rs
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.24.0-nightly (250b49205 2017-12-21) running on x86_64-pc-windows-msvc
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 18446744073709551615', C:\projects\rust\src\liballoc\vec.rs:1549:10
stack backtrace:
0: <std::fs::DirBuilder as core::fmt::Debug>::fmt
1: <std::sync::condvar::Condvar as core::fmt::Debug>::fmt
2: std::panicking::Location::column
3: std::panicking::Location::column
4: std::panicking::rust_panic_with_hook
5: std::panicking::begin_panic_fmt
6: std::panicking::begin_panic_fmt
7: rust_begin_unwind
8: core::panicking::panic_fmt
9: core::panicking::panic_bounds_check
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: _rust_maybe_catch_panic
21: <unknown>
22: <std::sync::condvar::Condvar as core::fmt::Debug>::fmt
23: std::sys::windows::thread::Thread::new
24: BaseThreadInitThunk
According to my Travis logs, this is a regression between (last good)
$ rustc --version
rustc 1.24.0-nightly (7eb64b86c 2017-12-20)
$ rustup --version
rustup 1.8.0 (cb2d14862 2017-12-17)
$ cargo --version
cargo 0.25.0-nightly (930f9d949 2017-12-05)
and (first bad)
$ rustc --version
rustc 1.24.0-nightly (5165ee9e2 2017-12-22)
$ rustup --version
rustup 1.8.0 (cb2d14862 2017-12-17)
$ cargo --version
cargo 0.25.0-nightly (930f9d949 2017-12-05)
though complicated by the fact that my build broke on 46959 in the same interval. Actually, we're in luck, I had 1.24.0-nightly (250b49205 2017-12-21)
locally which also errors. So the interval is 7eb64b8...250b492 (probably).