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

Error while building rand_core #70

Closed
jedahan opened this issue Jan 9, 2019 · 1 comment
Closed

Error while building rand_core #70

jedahan opened this issue Jan 9, 2019 · 1 comment

Comments

@jedahan
Copy link

jedahan commented Jan 9, 2019

Copy-pasted an example but it doesnt get to my code yet. Is there a way to override curve25519-dalek to a working version? Thanks!

△ cargo +nightly run 
   Compiling rand v0.5.5
   Compiling digest v0.8.0
   Compiling curve25519-dalek v1.0.1
error[E0277]: the trait bound `rngs::jitter::TimerError: std::error::Error` is not satisfied
   --> /Volumes/data/tmp/cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.5.5/src/rngs/jitter.rs:269:9
    |
269 |         Error::with_cause(ErrorKind::Unavailable,
    |         ^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `rngs::jitter::TimerError`
    |
    = note: required because of the requirements on the impl of `core::convert::From<rngs::jitter::TimerError>` for `alloc::boxed::Box<(dyn std::error::Error + core::marker::Send + core::marker::Sync + 'static)>`
    = note: required because of the requirements on the impl of `core::convert::Into<alloc::boxed::Box<(dyn std::error::Error + core::marker::Send + core::marker::Sync + 'static)>>` for `rngs::jitter::TimerError`
    = note: required by `rand_core::Error::with_cause`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `rand`.
warning: build failed, waiting for other jobs to finish...
error: build failed
aep added a commit to aep/ed25519-dalek that referenced this issue Jan 10, 2019
@aep aep mentioned this issue Jan 10, 2019
@newpavlov
Copy link
Contributor

This bug is already fixed see rust-random/rand#688. Also see #68.

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

Successfully merging a pull request may close this issue.

3 participants