-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Rework and fix associated const visibility for impl items #6785
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
Conversation
CodSpeed Performance ReportMerging #6785 will not alter performanceComparing Summary
|
12cbb05
to
c5036b0
Compare
c5036b0
to
24d0b1b
Compare
24d0b1b
to
083fbce
Compare
083fbce
to
6b9e216
Compare
6b9e216
to
5f5564b
Compare
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'm still confused by what visibility_level
means.
It also took me a while to figure out what problem this PR is supposed to solve in the first place. The PR deccription just links to an issue, but that issue only consists of an example program with no description of what the compiler does incorrectly for that program.
5f5564b
to
49f5d7f
Compare
49f5d7f
to
153ba3c
Compare
Description
This PR fixes associated constant visiblity checking for impl items.
The behaviour is that consts declared in traits are always considered public, whereas if they are declared anywhere else they are private unless they have the pub modifier.
Fixes #6772.
Checklist
Breaking*
orNew Feature
labels where relevant.