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

Track more mut locations #123

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jonhoo
Copy link
Contributor

@jonhoo jonhoo commented Apr 9, 2020

No description provided.

@jonhoo jonhoo requested a review from carllerche April 9, 2020 16:54
@jonhoo jonhoo force-pushed the track-more-mut-locations branch 2 times, most recently from 2a073bf to c0cef54 Compare April 9, 2020 16:55
src/rt/atomic.rs Outdated Show resolved Hide resolved
Rust only allows macros to be used strictly after they have been
defined. It's weird, and not needed for this PR, but it will avoid later
developers running into the issues I did while developing this.
This doesn't _really_ add any information, since the mut location is the
same as the "crated" location. However, when presented with an error
with no `mut` location, the user may erroneously believe that there's
some mutation they haven't been told about, when the race is really
on the construction of the item.
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

Successfully merging this pull request may close these issues.

2 participants