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

Compilation error with bevy and bevy_rapier3d #586

Closed
wentao opened this issue Feb 1, 2024 · 2 comments
Closed

Compilation error with bevy and bevy_rapier3d #586

wentao opened this issue Feb 1, 2024 · 2 comments

Comments

@wentao
Copy link

wentao commented Feb 1, 2024

I'm upgrading to bevy 0.12 and bevy_rapier3d 0.24 (which depends on rapier 0.18) from bevy 0.11 and bevy_rapier3d 0.22 on Mac.

After upgrading I'm seeing the following error when running cargo build. It seems to be an issue with rapier 0.18 source. So post it here to see if that is the case. This error is just one of the many leaked crate private type.

error[E0446]: crate-private type `SolverConstraintsSet<contact_constraints_set::ContactConstraintTypes>` in public interface
  --> /Users/wentao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rapier3d-0.18.0/src/dynamics/solver/contact_constraint/contact_constraints_set.rs:87:1
   |
87 | pub type ContactConstraintsSet = SolverConstraintsSet<ContactConstraintTypes>;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type
   |
  ::: /Users/wentao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rapier3d-0.18.0/src/dynamics/solver/solver_constraints_set.rs:39:1
   |
39 | pub(crate) struct SolverConstraintsSet<Constraints: ConstraintTypes> {
   | -------------------------------------------------------------------- `SolverConstraintsSet<contact_constraints_set::ContactConstraintTypes>` declared as crate-private
@Ashwagandhae
Copy link

I just updated rust with rustup update which fixed it!

@sebcrozet
Copy link
Member

Looks like updating the compiler does the trick. Closing this issue.

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

3 participants