-
Notifications
You must be signed in to change notification settings - Fork 13.5k
tests: add private RPITIT & exported_private_dependencies tests #144020
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
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
I converted this to a draft since I noticed that one of the errors is not a lint but a hard error, which I believe to be a mistake. So I think it would be better to figure that one out first and then pick this up again. @rustbot label +S-waiting-on-author -S-waiting-on-review |
This comment has been minimized.
This comment has been minimized.
@compiler-errors @petrochenkov the "bugfix" is accidental. As this causes a hard error, should we issue a warkaround to remove the error with a future-compat lint? |
We could crater this to see the extent of the error, and T-lang nominate it with the suggestion that if the fallout is small or nonexistent then we could just make it a hard error directly? |
I don't think this should produce a hard error. It doesn't error for RPIT outside traits, for required functions with RPITIT or provided functions with concrete private type. It might not have been clear from the changes to the tests here, but the merged PR made some lints work regarding private types in interface (which is great), but I don't think the new hard error should apply here. The error specifically talks only about associated types so it could be confusing to users as it seems to accidentally check the generated associated types which is just a compiler implementation detail and the message would probably be confusing to users. So if this is in fact desirable, it should probably have the message changed and it should be consistent with required functions in traits. |
3936e12
to
e78d086
Compare
☔ The latest upstream changes (presumably #144044) made this pull request unmergeable. Please resolve the merge conflicts. |
Private RPITIT used to not be linted (#143531), but it became linted and in some cases a hard error in #143357.
This PR just adds tests so that this behavior does not go away though there is work to be done:
private_bounds
, but provided methods also outputE0446
.{annon_assoc#0}
instead of the method itself