-
Notifications
You must be signed in to change notification settings - Fork 13.5k
tests: cover more exported_private_dependencies
cases
#144082
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: master
Are you sure you want to change the base?
Conversation
rustbot has assigned @petrochenkov. Use |
pub OtherType, | ||
//~^ ERROR type `OtherType` from private dependency 'priv_dep' in public interface [exported_private_dependencies] | ||
OtherType, | ||
PubType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for symmetry with the struct, should this field be pub
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, fixed.
f8cf216
to
2390abe
Compare
This would conflict with #144098 which will most likely break the tests of RPITIT again. So I'll convert this to a draft so that this doesn't add work there if it's merged first and once that is merged, I'll update this. It might also mean that the parent issue will still have to be kept open even after mergint this since the current fix in the linked PR breaks linting about using traits from private dependencies again. |
The job Click to see the possible cause of the failure (guessed by this bot)
|
This PR adds tests for all missing cases from #71043 and some on top of that. I believe with this, that issue can be closed.
Some of the lints can be improved, e.g.
provided_impl_trait
andimpl From<PublicWithStdImpl> for OtherType
lint twice.cc @epage in case you want to double check I didn't miss anything.