-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Update E0425, E0446, E0449 #36761
Update E0425, E0446, E0449 #36761
Conversation
@bors: r+ |
📌 Commit 2fa91b2 has been approved by |
"private type in public interface"); | ||
err.span_label(ty.span, &format!("private type can't be public")); |
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.
Pretty strange tautological wording for the label.
Something like "can't leak private type" or "private type can't escape" maybe?
Or at least "private type can't become public"?
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.
@petrochenkov - yeah, those could also work. That reminds me that we need to start putting together a Rust error styleguide for future errors as well.
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.
I like @petrochenkov 's suggestion of "can't leak private type"
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.
The two votes have it :) I'll update
@bors r=nrc |
📌 Commit c0f29fd has been approved by |
This addresses #35343, #35923, and #35924. Part of #35233
Specifically, this adds labels to these error messages following the suggestions in the attached bugs.
r? @nrc