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

Add [extern_without_abi] lint #13404

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CBSpeir
Copy link
Contributor

@CBSpeir CBSpeir commented Sep 16, 2024

Fixes #13372

The [extern_without_abi] lint emits when extern is not followed by an ABI. For example:

// EMIT
extern fn foo() {}

// EMIT
extern {
    fn bar();
}

// NO EMIT
extern "C" fn baz() {}

// NO EMIT
extern "C" {
    fn foo_bar();
}

changelog: Add [extern_without_abi] lint

@rustbot
Copy link
Collaborator

rustbot commented Sep 16, 2024

r? @Centri3

rustbot has assigned @Centri3.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 16, 2024
Copy link
Member

@Centri3 Centri3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me 👍

clippy_lints/src/extern_without_abi.rs Outdated Show resolved Hide resolved
clippy_lints/src/extern_without_abi.rs Outdated Show resolved Hide resolved
clippy_lints/src/extern_without_abi.rs Outdated Show resolved Hide resolved
clippy_lints/src/extern_without_abi.rs Outdated Show resolved Hide resolved
tests/ui/extern_without_abi.rs Outdated Show resolved Hide resolved
@bors
Copy link
Collaborator

bors commented Sep 22, 2024

☔ The latest upstream changes (presumably #13322) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Collaborator

bors commented Sep 22, 2024

☔ The latest upstream changes (presumably #13440) made this pull request unmergeable. Please resolve the merge conflicts.

@CBSpeir
Copy link
Contributor Author

CBSpeir commented Sep 23, 2024

Thank you for reviewing the PR. It should include the changes you requested. I went ahead and squashed and merged the changes with the latest from master.

@bors
Copy link
Collaborator

bors commented Oct 13, 2024

☔ The latest upstream changes (presumably #13334) made this pull request unmergeable. Please resolve the merge conflicts.

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.

Force explicit abi
4 participants