Skip to content

Point at immutable outer variable #45221

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 13, 2017
Merged

Conversation

estebank
Copy link
Contributor

When attempting to mutate an immutable outer variable from a closure,
point at the outer variable and suggest making it mutable.

Fix #41790.

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

📌 Commit 7dc6a90 has been approved by nikomatsakis

When attempting to mutate an immutable outer variable from a closure,
point at the outer variable and suggest making it mutable.
@estebank
Copy link
Contributor Author

Fixed typo

@bors r=nikomatsakis

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

📌 Commit fab6a10 has been approved by nikomatsakis

@Mark-Simulacrum
Copy link
Member

@bors rollup

kennytm added a commit to kennytm/rust that referenced this pull request Oct 13, 2017
Point at immutable outer variable

When attempting to mutate an immutable outer variable from a closure,
point at the outer variable and suggest making it mutable.

Fix rust-lang#41790.
bors added a commit that referenced this pull request Oct 13, 2017
Rollup of 14 pull requests

- Successful merges: #44855, #45110, #45122, #45133, #45173, #45178, #45189, #45203, #45209, #45221, #45236, #45240, #45245, #45253
- Failed merges:
@bors bors merged commit fab6a10 into rust-lang:master Oct 13, 2017
@estebank estebank deleted the issue-41790 branch November 9, 2023 05:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants