Skip to content
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

Revert "Remove unnecessary trait accessibility check." #29325

Merged
merged 3 commits into from
Oct 27, 2015

Conversation

alexcrichton
Copy link
Member

These commits revert #28504 and add a regression test pointed out by @petrochenkov, it's not immediately clear with the regression that the accessibility check should be removed, so for now preserve the behavior on stable by default.

r? @nrc

fn main() {
<i32 as ::foo::Bar>::baz(); //~ERROR method `baz` is inaccessible
//~^NOTE: trait `Bar` is private
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to remove this test - it should still fail, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh true, this was just lumped in the git revert commands, but I'll throw it in regardless

@nrc
Copy link
Member

nrc commented Oct 26, 2015

r+ with or without test

@alexcrichton
Copy link
Member Author

@bors: r=nrc 31fa916

@bors
Copy link
Contributor

bors commented Oct 27, 2015

⌛ Testing commit 31fa916 with merge 95fb8d1...

bors added a commit that referenced this pull request Oct 27, 2015
These commits revert #28504 and add a regression test pointed out by @petrochenkov, it's not immediately clear with the regression that the accessibility check should be removed, so for now preserve the behavior on stable by default.

r? @nrc
@bors bors merged commit 31fa916 into rust-lang:master Oct 27, 2015
@alexcrichton alexcrichton deleted the revert-trait-accessibility branch October 28, 2015 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants