Skip to content

Skip needlessly setting the default visibility on functions #734

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

Merged
merged 1 commit into from
Jul 9, 2025

Conversation

FractalFir
Copy link
Contributor

The default visibility of a function is __attribute__((visibility(default))), so explicitly setting that attribute just wastes RAM and CPU cycles.

@FractalFir FractalFir force-pushed the remove_needless_attr branch from 6f8f0a9 to 6388524 Compare July 9, 2025 18:32
@FractalFir
Copy link
Contributor Author

Fixed some formatting issues.

@antoyo antoyo merged commit 35bdf8b into rust-lang:master Jul 9, 2025
38 checks passed
@antoyo
Copy link
Contributor

antoyo commented Jul 9, 2025

Nice find and thanks a lot for this PR!

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.

2 participants