-
Notifications
You must be signed in to change notification settings - Fork 264
Check for symbols with default visibility in symbol-check #1073
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
base: main
Are you sure you want to change the base?
Conversation
|
Lots of red on the CI, but that means the patch is working :-) It's flagging the outline atomics targeted by the Rust-side PR. Also
|
|
Looking through the failures, all the naked functions fail as expected. But it seems like |
|
Oh sorry, you mentioned that in a comment already and I missed it :) Is that something that could also be fixed in rust-lang/rust#151998? |
|
Yes, I've updated that PR. |
|
I recently added some tests for symcheck, would you be able to add one to compiler-builtins/crates/symbol-check/tests/all.rs Lines 65 to 76 in a7b1d8e
|
Hmm, those tests don't play well with my visibility check :-) The main issue is that the test is building things which are not compiler-builtins, such as executables and rust libraries, and those will have plenty of visible symbols. I can avoid some of it by ignoring executables in my check, but for example the (I tried adding |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
2efc335 to
82e6780
Compare
|
I added a |
to ensure that compiler-builtins doesn't expose any symbols with default visibility. See discussion on rust-lang/rust#151998