Crash on Implementing !Trait, Not Trait: thread 'rustc' panicked at 'called Option::unwrap()
on a None
value', src\libcore\option.rs:345:21
#58960
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
So this probably isn't valid Rust code but it did crash the compiler rather then sending me a warning so I thought I'd at least file a bug. I have a struct Wrapper<T> and a trait Releasable, I wanted to implement Releasable on Wrapper in the cases where T implemented Releasable, and in the case where T did not implement !Releasable. Im not sure if this is even valid rust code although I did notice things like RefCell not implementing !Sync so I thought I'd give it a try.
Meta
thread 'rustc' panicked at 'called
Option::unwrap()
on aNone
value', src\libcore\option.rs:345:21note: 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.35.0-nightly (87a4363 2019-03-03) running on x86_64-pc-windows-msvc
note: compiler flags: -C debuginfo=2 -C incremental --crate-type lib
note: some of the compiler flags provided by cargo are hidden
The text was updated successfully, but these errors were encountered: