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

Build failed, please help me #1

Open
ivothgle opened this issue Sep 6, 2024 · 0 comments
Open

Build failed, please help me #1

ivothgle opened this issue Sep 6, 2024 · 0 comments

Comments

@ivothgle
Copy link

ivothgle commented Sep 6, 2024

cargo build --release --bin latency
warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
warning: private item shadows public glob re-export
 --> non-persist-trie/src/lib.rs:5:30
  |
5 | use utils::{types::{AddrKey, Digestible, bytes_hash}, ROCKSDB_COL_ID};
  |                              ^^^^^^^^^^
  |
note: the name `Digestible` in the type namespace is supposed to be publicly re-exported here
 --> non-persist-trie/src/lib.rs:1:9
  |
1 | pub use patricia_trie::prelude::*;
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^
note: but the private item here shadows it
 --> non-persist-trie/src/lib.rs:5:30
  |
5 | use utils::{types::{AddrKey, Digestible, bytes_hash}, ROCKSDB_COL_ID};
  |                              ^^^^^^^^^^
  = note: `#[warn(hidden_glob_reexports)]` on by default

warning: `non-persist-trie` (lib) generated 1 warning
   Compiling eth-execution-engine v0.1.0 (/root/workspace/cole/eth-execution-engine)
error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
  --> eth-execution-engine/src/cole_backend.rs:27:13
   |
26 |             let mut_ptr = const_ptr as *mut Cole;
   |                           ---------------------- casting happend here
27 |             &mut *mut_ptr
   |             ^^^^^^^^^^^^^
   |
   = note: for more information, visit <https://doc.rust-lang.org/book/ch15-05-interior-mutability.html>
   = note: `#[deny(invalid_reference_casting)]` on by default

error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
  --> eth-execution-engine/src/cole_star_backend.rs:27:13
   |
26 |             let mut_ptr = const_ptr as *mut ColeStar;
   |                           -------------------------- casting happend here
27 |             &mut *mut_ptr
   |             ^^^^^^^^^^^^^
   |
   = note: for more information, visit <https://doc.rust-lang.org/book/ch15-05-interior-mutability.html>

error: could not compile `eth-execution-engine` (lib) due to 2 previous errors

env:
rustc --version
rustc 1.80.1 (3f5fd8dd4 2024-08-06)

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