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 failure on recent nightly #266

Closed
michael-p opened this Issue Feb 21, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@michael-p
Copy link

michael-p commented Feb 21, 2019

Trying to compile a project that indirectly depends on ncollide 0.17.3 (through kiss3d) yields the following compilation failure on rustc 1.34.0-nightly (f66e4697a 2019-02-20) on macOS:

error[E0034]: multiple applicable items in scope
   --> /Users/michaelp/.cargo/registry/src/github.com-1ecc6299db9ec823/ncollide3d-0.17.3/src/shape/shape.rs:103:14
    |
103 |         self.type_id() == TypeId::of::<T>()
    |              ^^^^^^^ multiple `type_id` found
    |
note: candidate #1 is defined in the trait `shape::shape::GetTypeId`
   --> /Users/michaelp/.cargo/registry/src/github.com-1ecc6299db9ec823/ncollide3d-0.17.3/src/shape/shape.rs:158:5
    |
158 |     fn type_id(&self) -> TypeId;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: to disambiguate the method call, write `shape::shape::GetTypeId::type_id(&self)` instead
note: candidate #2 is defined in the trait `std::any::Any`
    = help: to disambiguate the method call, write `std::any::Any::type_id(&self)` instead

error: aborting due to previous error
@sebcrozet

This comment has been minimized.

Copy link
Member

sebcrozet commented Feb 21, 2019

Hi!

This issue is known to happen only on nightly. It has been fixed in ncollide 0.18 because a breaking change was necessary.

You should either switch to stable, or upgrade kiss3d (and thus ncollide indirectly) to its latest version.

Please reopen if the problem persists with the latest versions.

@sebcrozet sebcrozet closed this Feb 21, 2019

@michael-p

This comment has been minimized.

Copy link
Author

michael-p commented Feb 21, 2019

Upgrading did indeed fix everything, thank you very much for your fast reply! (and also for all your other amazing work!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.