-
Notifications
You must be signed in to change notification settings - Fork 13.3k
#[no_override]
for default methods
#7649
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
This probably warrants some discussion on the mailing list or in a meeting. We need some kind of decision before we can take action here. |
Triage. Tagging RFC. |
I think the current situation needs some work, even if it only affects rustdoc output. We have some very common traits like I think there's probably cases where it would be appropriate to override things like |
Any update here? |
This issue has been moved to the RFCs repo: rust-lang/rfcs#291 |
Backport remerge This is to keep the backported commit in the repository before force pushing the new beta branch. r? `@ghost` changelog: none (literally none)
If there was a
#[no_override]
attribute that made it impossible to override a default method, there would be very little need for theFooUtil
traits (with this attribute default methods would have almost exactly the same properties as*Util
, except the seperate trait can be imported separately). i.e.This would provide a workaround for #5898 that is a proper solution in its own right.
The text was updated successfully, but these errors were encountered: