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

Fix warning in Struct sync::Mutex example #18136

Closed
wants to merge 1 commit into from

Conversation

mprobinson
Copy link
Contributor

let mut value = mutex.lock();
warning: variable does not need to be mutable

let mut value = mutex.lock();
warning: variable does not need to be mutable
bors added a commit that referenced this pull request Oct 19, 2014
let mut value = mutex.lock();
warning: variable does not need to be mutable
@bors bors closed this Oct 19, 2014
lnicola pushed a commit to lnicola/rust that referenced this pull request Sep 25, 2024
Don't lint names of #[no_mangle] extern fns

[Rust doesn't run the `non_snake_case_name` lint on `extern fn`s with the `#[no_mangle]` attribute](rust-lang#44966).

The conditions are:
- The function must be `extern` and have a `#[no_mangle]` attribute.
- The function's ABI must not be explicitly set to "Rust".

This PR replicates that logic here.
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.

3 participants