-
Notifications
You must be signed in to change notification settings - Fork 14k
invalid_atomic_ordering: also lint update & try_update
#148601
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
base: master
Are you sure you want to change the base?
invalid_atomic_ordering: also lint update & try_update
#148601
Conversation
|
rustbot has assigned @JonathanBrouwer. Use |
a97e2d3 to
fbac049
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just adds update and try_update checks the same way it was for fetch_update
One small nit:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update test name, since its now not only fetch_update test or create another test for this feature
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to not separate this into separate files, because it would make it more difficult to keep the tests in sync.
I tried to maybe use revisions approach, but it would still lead to each error message being written 3 times, and wouldn't really simplify the code that much.
I decided to just rename it from "fetch-update" to simply "update" as it is the word that all 3 methods have in common.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's fine, let's wait on CI green
fbac049 to
bd23d55
Compare
|
@bors r+ |
Split from #148590
Tracking issue for
updateandtry_update: #135894