Skip to content
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

consider using RAII for RcMut instead of closures #9811

Closed
thestinger opened this issue Oct 11, 2013 · 2 comments
Closed

consider using RAII for RcMut instead of closures #9811

thestinger opened this issue Oct 11, 2013 · 2 comments

Comments

@thestinger
Copy link
Contributor

Closures actually make this simpler, because they enforce stack discipline. Switching to RAII will involve using a counter instead of just pushing/popping one layer of state so we'll need to take a close look at the performance.

@thestinger
Copy link
Contributor Author

Note that it isn't possible to drop this in favour of a Mut<T> type until #9509 is dealt with.

@thestinger
Copy link
Contributor Author

RcMut is now gone.

flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 21, 2022
Fix `explicit_auto_deref` fp

fixes rust-lang#9763
fixes rust-lang#9811

changelog: `explicit_auto_deref`: Don't lint when the target type is a projection with generic arguments
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