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

Compiling error #16

Closed
fmarcosh opened this issue Jan 24, 2021 · 3 comments
Closed

Compiling error #16

fmarcosh opened this issue Jan 24, 2021 · 3 comments
Labels
question Further information is requested

Comments

@fmarcosh
Copy link

In a Ubuntu 20.04 LTS on Windows Subsystem Linux v2 I got the following error with cargo build:
Compiling nakamoto-p2p v0.2.0 (/home/paco/nakamoto/p2p)
error[E0658]: use of unstable library feature 'range_is_empty': recently added
--> p2p/src/protocol/spvmgr.rs:541:30
|
541 | debug_assert!(!range.is_empty());
| ^^^^^^^^
|
= note: see issue #48111 rust-lang/rust#48111 for more information

error[E0658]: use of unstable library feature 'range_is_empty': recently added
--> p2p/src/protocol/spvmgr.rs:543:18
|
543 | if range.is_empty() {
| ^^^^^^^^
|
= note: see issue #48111 rust-lang/rust#48111 for more information

error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0658.
error: could not compile nakamoto-p2p.

To learn more, run the command again with --verbose.

@cloudhead
Copy link
Owner

I'm guessing you're using an older version of rustc. Range::is_empty was added in 1.47

@cloudhead cloudhead added the question Further information is requested label Jan 24, 2021
@fmarcosh
Copy link
Author

fmarcosh commented Jan 24, 2021 via email

@fmarcosh
Copy link
Author

Sorry. I was using a rustc version 1.43.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants