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

compilation fails with rustc 1.70.0 #12

Closed
dreher-in opened this issue Jul 3, 2023 · 1 comment
Closed

compilation fails with rustc 1.70.0 #12

dreher-in opened this issue Jul 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dreher-in
Copy link

rustc --version
rustc 1.70.0 (90c541806 2023-05-31)

cargo build:

   Compiling tobaru v0.7.1 (/root/tobaru)
error[E0432]: unresolved import `std::lazy`
 --> src/rustls_util.rs:1:10
  |
1 | use std::lazy::SyncOnceCell;
  |          ^^^^ could not find `lazy` in `std`

error[E0432]: unresolved import `std::lazy`
 --> src/tcp.rs:4:10
  |
4 | use std::lazy::SyncOnceCell;
  |          ^^^^ could not find `lazy` in `std`

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:1:12
  |
1 | #![feature(build_hasher_simple_hash_one)]
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:2:12
  |
2 | #![feature(once_cell)]
  |            ^^^^^^^^^

warning: the feature `once_cell` has been stable since 1.70.0 and no longer requires an attribute to enable
 --> src/main.rs:2:12
  |
2 | #![feature(once_cell)]
  |            ^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

warning: unused import: `BuildHasher`
 --> src/tcp.rs:3:17
  |
3 | use std::hash::{BuildHasher, Hash};
  |                 ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Some errors have detailed explanations: E0432, E0554.
For more information about an error, try `rustc --explain E0432`.
warning: `tobaru` (bin "tobaru") generated 2 warnings
error: could not compile `tobaru` (bin "tobaru") due to 4 previous errors; 2 warnings emitted
@cfal cfal added the bug Something isn't working label Jul 12, 2023
@cfal
Copy link
Owner

cfal commented Aug 23, 2023

Fixed at v0.9.0

@cfal cfal closed this as completed Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants