Skip to content

Conversation

@alexcrichton
Copy link
Member

Loading methods from external crates was erroneously using the type's privacy
for each method instead of each method's privacy. This commit fixes that.

Closes #21202

This commit also moves privacy to its own crate because I thought that was where the bug was. Turns out it wasn't, but it helped me iterate at least!

@rust-highfive
Copy link
Contributor

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

r+ modulo nit

@huonw
Copy link
Contributor

huonw commented Jan 15, 2015

(Needs a rebase)

Loading methods from external crates was erroneously using the type's privacy
for each method instead of each method's privacy. This commit fixes that.

Closes rust-lang#21202
bors added a commit that referenced this pull request Jan 17, 2015
Loading methods from external crates was erroneously using the type's privacy
for each method instead of each method's privacy. This commit fixes that.

Closes #21202

This commit also moves privacy to its own crate because I thought that was where the bug was. Turns out it wasn't, but it helped me iterate at least!
@bors bors merged commit 8115222 into rust-lang:master Jan 17, 2015
@alexcrichton alexcrichton deleted the issue-21202 branch January 20, 2015 06:48
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.

UFCS form bypasses privacy checks in cross-crate scenario

5 participants