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

Detect usage of invalid atomic ordering in memory fences #5028

Merged

Conversation

krishna-veerareddy
Copy link
Contributor

@krishna-veerareddy krishna-veerareddy commented Jan 9, 2020

Detect usage of core::sync::atomic::{fence, compiler_fence} with Ordering::Relaxed and suggest valid alternatives.

changelog: Extend invalid_atomic_ordering to lint memory fences

Fixes #5026

Detect usage of `core::sync::atomic::{fence, compiler_fence}`
with `Ordering::Relaxed` and suggest valid alternatives.
@flip1995 flip1995 added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 9, 2020
@phansch
Copy link
Member

phansch commented Jan 21, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Jan 21, 2020

📌 Commit 5e058f3 has been approved by phansch

@bors
Copy link
Contributor

bors commented Jan 21, 2020

⌛ Testing commit 5e058f3 with merge dd06c06...

bors added a commit that referenced this pull request Jan 21, 2020
…es, r=phansch

Detect usage of invalid atomic ordering in memory fences

Detect usage of `core::sync::atomic::{fence, compiler_fence}` with `Ordering::Relaxed` and suggest valid alternatives.

changelog: Extend `invalid_atomic_ordering` to lint memory fences

Fixes #5026
@bors
Copy link
Contributor

bors commented Jan 21, 2020

☀️ Test successful - checks-travis, status-appveyor
Approved by: phansch
Pushing dd06c06 to master...

@bors bors merged commit 5e058f3 into rust-lang:master Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend invalid_atomic_ordering lint to memory fence calls
4 participants