-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Private types publicly accessible. #38844
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
Comments
What's the problem? |
@durka But foo is not. I only noticed this when I released ddg it had a struct which contains types that have no documentation or links, this may be more of an error with rustdoc than rustc, also those types were ignored for a compiler flag |
As I understand it, |
This is the intended behavior, see #34537 for details. |
This may be some misunderstanding on my part, but this seems like a bug. If a private type is exposed through a public field in a struct, rustc will not error. The below example will compile as a lib.
Minimal Workable Example
Rust version
The text was updated successfully, but these errors were encountered: