Skip to content

Skip needlessly setting the default visibility on functions - #734

Merged
antoyo merged 1 commit into
rust-lang:masterfrom
FractalFir:remove_needless_attr
Jul 9, 2025
Merged

antoyo merged 1 commit into
rust-lang:masterfrom
FractalFir:remove_needless_attr

Conversation

@FractalFir

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Fixed some formatting issues.

@antoyo
antoyo merged commit 35bdf8b into rust-lang:master Jul 9, 2025
@antoyo

antoyo commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

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