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

Don't lint names of #[no_mangle] extern fns #18136

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

valadaptive
Copy link
Contributor

Rust doesn't run the non_snake_case_name lint on extern fns with the #[no_mangle] attribute.

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.

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

Veykril commented Sep 18, 2024

Thanks!
@bors r+

@bors
Copy link
Collaborator

bors commented Sep 18, 2024

📌 Commit 893f792 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 18, 2024

⌛ Testing commit 893f792 with merge 5b7c812...

@bors
Copy link
Collaborator

bors commented Sep 18, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 5b7c812 to master...

@bors bors merged commit 5b7c812 into rust-lang:master Sep 18, 2024
11 checks passed
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.

4 participants