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

source trait is inaccessible ... module is private #14

Closed
jansegre opened this issue Oct 28, 2014 · 1 comment
Closed

source trait is inaccessible ... module is private #14

jansegre opened this issue Oct 28, 2014 · 1 comment

Comments

@jansegre
Copy link
Contributor

This is actually a bug on rust. I'm opening this issue to track a workaround while the bug is there.

As with rustc 0.13.0-nightly (f03745244 2014-10-26 16:42:33 +0000) the following happens a lot:

src/detection/activation_manager.rs:130:28: 130:50 error: source trait is inaccessible
src/detection/activation_manager.rs:130                     match (bis.borrow().anchor1().body.as_ref(), bis.borrow().anchor2().body.as_ref()) {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~
src/detection/activation_manager.rs:130:28: 130:50 note: module `joint` is private
src/detection/activation_manager.rs:130                     match (bis.borrow().anchor1().body.as_ref(), bis.borrow().anchor2().body.as_ref()) {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~

As a workaround the module can be pub'd.
I'm also opening a pull request with this workaround to be merged if it makes sense.

jansegre added a commit to jansegre/nphysics that referenced this issue Oct 28, 2014
@sebcrozet
Copy link
Member

Closing this as this was fixed by #15 .

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

No branches or pull requests

2 participants