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

rustc: Encode the visibility of foreign items #16740

Merged
merged 1 commit into from
Aug 25, 2014

Conversation

alexcrichton
Copy link
Member

Closes #16725

bors added a commit that referenced this pull request Aug 25, 2014
The privacy pass of the compiler was previously not taking into account the
privacy of foreign items, or bindings to external functions. This commit fixes
this oversight by encoding the visibility of foreign items into the metadata for
each crate.

Any code relying on this will start to fail to  compile and the bindings must be
marked with `pub` to indicate that they can be used externally.

Closes rust-lang#16725
[breaking-change]
bors added a commit that referenced this pull request Aug 25, 2014
@bors bors closed this Aug 25, 2014
@bors bors merged commit 1c76d55 into rust-lang:master Aug 25, 2014
@alexcrichton alexcrichton deleted the issue-16725 branch August 25, 2014 19:39
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 10, 2024
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.

Foreign function visible outside of crate.
2 participants