Skip to content

alias analysis does not recognize mutable object fields as unsafe roots #1055

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

Closed
marijnh opened this issue Oct 21, 2011 · 0 comments
Closed

Comments

@marijnh
Copy link
Contributor

marijnh commented Oct 21, 2011

It is possible to cause corruption by passing a value rooted in a mutable object field to a closure that goes through the object to mutate that field. Object fields should not be treated like regular local variables—they have bigger scope.

@ghost ghost assigned marijnh Oct 21, 2011
@marijnh marijnh removed their assignment Jun 16, 2014
bors pushed a commit to rust-lang-ci/rust that referenced this issue Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant