HashMap with Path key crashes rustc #23036
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Hello,
Lately I've been experimenting with Rust, and it seems I accidentally managed to crash
rustc
. Trying to compile following snippet:... causes an assertion fail:
Specifying an explicit variable type prevents crashing. Such code:
... produces an compile-time error as expected:
The
[u8]
in the error message is quite surprising, though - it's not entirely clear what's really going on without looking at thelibstd
code. I would rather expect to see aPath
there.Meta
Both snippets were tested on 64-bit Ubuntu 14.04 and compiled with two versions of
rustc
(the behavior is exactly the same for both):The text was updated successfully, but these errors were encountered: