-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NLL] ICE: unexpected region for local data with reference to closure #48697
Comments
This is a side-effect, I believe, of the hacky-ish way that we are enabling NLL while still running the old borrow check. In particular, this ICE originates from the old borrow check, I believe caused because we suppressed an error from the old region check (in favor of the new NLL check). We ought to be skipping the old borrow checker as well when NLL is enabled; but we can't do that until the |
Work is tracked on this PR: #48605. |
I have a simple fix for the ICE in the meantime. |
This compiles on the latest nightly. |
[nll] add tests for rust-lang#48697 and rust-lang#30104 Adds tests for the following issues: - rust-lang#48697 ``[NLL] ICE: unexpected region for local data with reference to closure`` - rust-lang#30104 ``Destructuring boxes into multiple mutable references seems broken`` r? @nikomatsakis
Rollup of 11 pull requests Successful merges: - #52858 (Implement Iterator::size_hint for Elaborator.) - #53321 (Fix usage of `wasm_target_feature`) - #53326 ([nll] add regression test for issue #27868) - #53347 (rustc_resolve: don't allow paths starting with `::crate`.) - #53349 ([nll] add tests for #48697 and #30104) - #53357 (Pretty print btreemap for GDB) - #53358 (`{to,from}_{ne,le,be}_bytes` for unsigned integer types) - #53406 (Do not suggest conversion method that is already there) - #53407 (make more ported compile fail tests more robust w.r.t. NLL) - #53413 (Warn that `#![feature(rust_2018_preview)]` is implied when the edition is set to Rust 2018.) - #53434 (wasm: Remove --strip-debug argument to LLD) Failed merges: r? @ghost
Looks like #53349 was merged, closing |
The following code gives an internal compiler error. It is a normal compiler error without NLL.
The text was updated successfully, but these errors were encountered: