-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
[ICE] With closure on mutable ref #81700
Labels
A-closures
Area: Closures (`|…| { … }`)
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
This was caused by 74500b9 edit:
|
Assigning |
Looks likely that #81158 is the cause. cc @Aaron1011 |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Feb 3, 2021
Fix panic when emitting diagnostic for closure mutable binding error Fixes rust-lang#81700 The upvar borrow kind may be `ty::BorrowKind::UniqueImmBorrow`, which is still a mutable borrow for the purposes of this diagnostic code.
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-closures
Area: Closures (`|…| { … }`)
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Compiled with
rustc bug2.rs
gives:The text was updated successfully, but these errors were encountered: