-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️NLL-soundWorking towards the "invalid code does not compile" goalWorking towards the "invalid code does not compile" goal
Milestone
Description
The code in https://github.com/simonvandel/fcbf/tree/nll-ice produces the following ICE:
error: internal compiler error: unexpected region for local data ReFree(DefId(0/0:13 ~ fcbf[25b8]::x[0]), BrNamed(crate0:DefIndex(1:12), 'x))
--> src/main.rs:23:8
|
23 | f(&f_y);
| ^^^
When compiled with:
cargo +nightly check
NLL is enabled in the top of main.rs with #![feature(nll)]
. Without NLL, a normal borrow check error is presented.
Meta
rustc --version --verbose
:
rustc 1.27.0-nightly (91db9dc 2018-05-04)
binary: rustc
commit-hash: 91db9dc
commit-date: 2018-05-04
host: x86_64-unknown-linux-gnu
release: 1.27.0-nightly
LLVM version: 6.0
Metadata
Metadata
Assignees
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️NLL-soundWorking towards the "invalid code does not compile" goalWorking towards the "invalid code does not compile" goal