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

Does not compile with Rust nightly (ffc111889 2014-12-12) #19

Closed
apaleslimghost opened this issue Dec 14, 2014 · 1 comment
Closed

Does not compile with Rust nightly (ffc111889 2014-12-12) #19

apaleslimghost opened this issue Dec 14, 2014 · 1 comment

Comments

@apaleslimghost
Copy link

Installing as a dependency of kiss3d, I get the following compilation errors:

   Compiling ncollide v0.2.0 (https://github.com/sebcrozet/ncollide#faa3ad89)
src/broad_phase/dbvt_broad_phase.rs:189:35: 189:46 error: cannot move out of dereference of `&`-pointer
src/broad_phase/dbvt_broad_phase.rs:189                         Pair::new(*proxy_key1, *proxy_key2),
                                                                          ^~~~~~~~~~~
src/broad_phase/dbvt_broad_phase.rs:189:48: 189:59 error: cannot move out of dereference of `&`-pointer
src/broad_phase/dbvt_broad_phase.rs:189                         Pair::new(*proxy_key1, *proxy_key2),
                                                                                       ^~~~~~~~~~~
src/broad_phase/dbvt_broad_phase.rs:230:31: 230:35 error: cannot move out of dereference of `&`-pointer
src/broad_phase/dbvt_broad_phase.rs:230                     let ids = elts[id].key;
                                                                      ^~~~
src/broad_phase/dbvt_broad_phase.rs:230:25: 230:28 note: attempting to move value to here
src/broad_phase/dbvt_broad_phase.rs:230                     let ids = elts[id].key;
                                                                ^~~
src/broad_phase/dbvt_broad_phase.rs:230:25: 230:28 help: to prevent the move, use `ref ids` or `ref mut ids` to capture value by reference
src/broad_phase/dbvt_broad_phase.rs:230                     let ids = elts[id].key;
                                                                ^~~
src/utils/data/has_uid_map.rs:197:60: 197:68 error: use of moved value: `fast_key`
src/utils/data/has_uid_map.rs:197                         let old_value = self.values.insert(fast_key.uid(), (key, value));
                                                                                             ^~~~~~~~
src/utils/data/has_uid_map.rs:195:43: 195:51 note: `fast_key` moved here because it has type `utils::data::has_uid_map::FastKey`, which is non-copyable
src/utils/data/has_uid_map.rs:195                         let _ = entry.set(fast_key);
                                                                            ^~~~~~~~
src/utils/data/has_uid_map.rs:200:26: 200:34 error: use of moved value: `fast_key`
src/utils/data/has_uid_map.rs:200                         (fast_key, None)
                                                           ^~~~~~~~
src/utils/data/has_uid_map.rs:195:43: 195:51 note: `fast_key` moved here because it has type `utils::data::has_uid_map::FastKey`, which is non-copyable
src/utils/data/has_uid_map.rs:195                         let _ = entry.set(fast_key);
                                                                            ^~~~~~~~
src/world/collision_objects_dispatcher.rs:121:29: 121:33 error: cannot move out of dereference of `&`-pointer
src/world/collision_objects_dispatcher.rs:121         let key = Pair::new(*fk1, *fk2);
                                                                          ^~~~
src/world/collision_objects_dispatcher.rs:121:35: 121:39 error: cannot move out of dereference of `&`-pointer
src/world/collision_objects_dispatcher.rs:121         let key = Pair::new(*fk1, *fk2);
                                                                                ^~~~
error: aborting due to 7 previous errors
Could not compile `ncollide`.

Should I downgrade Rust to 0.12?

@apaleslimghost
Copy link
Author

Wrong repository.

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

1 participant