You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to see this happen: cannot move out of borrowed content for the let item = self.0; line..
Instead, this happened:
thread 'main' panicked at 'assertion failed: !impl_self_ty.has_infer_types()', librustc_mir/borrow_check/nll/type_check/mod.rs:1033:21
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: internal compiler error: unexpected panic
I also tried CARGO_INCREMENTAL=0 but it didn't affect the build (apart from the -C incremental argument to disappear).
I see there are a couple of probably related issues (at least seems to be MIR-related), but I'm not quite sure and, and since they don't provide a minimal example I've decided to file an issue :)
Centril
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Oct 22, 2018
Worth noting that this is happening on the 2015 edition without #![feature(nll)]. (Do we need a separate tag to distinguish bugs that are presumably caused by MIR-typeck ?
pnkfelix
changed the title
ICE: 'assertion failed: !impl_self_ty.has_infer_types()' in MIR
ICE: '!impl_self_ty.has_infer_types()' in MIR from const underneath impl<T> { ... }Oct 23, 2018
I tried this code:
I expected to see this happen:
cannot move out of borrowed content
for thelet item = self.0;
line..Instead, this happened:
I also tried
CARGO_INCREMENTAL=0
but it didn't affect the build (apart from the-C incremental
argument to disappear).My rust version:
Here's a run with backtrace enabled:
Here's a playground link with the examples:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2015&gist=3a4690e53464d2c8f0a4824b9f31d31d
The text was updated successfully, but these errors were encountered: