tiby312 / broccoli-project

MIT License
79 stars 2 forks source link

Fails to compile when used with bevy + bevy_crossterm #132

Closed ghost closed 3 years ago

ghost commented 3 years ago

When compiling the example from bevy_crossterm using rustc 1.51.0-nightly (a62a76047 2021-01-13) I get the following errors:

error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
  --> /home/odd/.cargo/registry/src/github.com-1ecc6299db9ec823/broccoli-0.7.5/src/tree/container/inner.rs:69:73
   |
69 |     let inner: compt::dfs_order::CompleteTreeContainer<NodePtr<T>, _> = inner.inner.inner.convert();
   |                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
   |
   = note: consult the function's documentation for information on how to avoid undefined behavior

error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
  --> /home/odd/.cargo/registry/src/github.com-1ecc6299db9ec823/broccoli-0.7.5/src/tree/container/inner.rs:83:73
   |
83 |     let inner: compt::dfs_order::CompleteTreeContainer<NodePtr<T>, _> = inner.inner.inner.convert();
   |                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
   |
   = note: consult the function's documentation for information on how to avoid undefined behavior

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0133`.
error: could not compile `broccoli`

Is there a way to bypass this error?

ghost commented 3 years ago

Nevermind, this is an error on bevy_crossterm's side as they're using broccoli = 0.7.