betta-cyber / netease-music-tui

netease cloud music terminal client by rust :zap:
MIT License
420 stars 34 forks source link

cargo build failed #15

Closed wanyaoqi closed 4 years ago

wanyaoqi commented 4 years ago

cargo version:

cargo --version
cargo 1.32.0 (8610973aa 2019-01-02)

output

......
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /Users/yaoqiwan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-hash-1.1.0/src/lib.rs:31:5
   |
31 | use core::convert::TryInto;
   |     ^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /Users/yaoqiwan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-hash-1.1.0/src/lib.rs:89:71
   |
89 |         let read_usize = |bytes: &[u8]| u64::from_ne_bytes(bytes[..8].try_into().unwrap());
   |                                                                       ^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /Users/yaoqiwan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-hash-1.1.0/src/lib.rs:98:60
   |
98 |             hash.add_to_hash(u32::from_ne_bytes(bytes[..4].try_into().unwrap()) as usize);
   |                                                            ^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /Users/yaoqiwan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-hash-1.1.0/src/lib.rs:102:60
    |
102 |             hash.add_to_hash(u16::from_ne_bytes(bytes[..2].try_into().unwrap()) as usize);
    |                                                            ^^^^^^^^

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `rustc-hash`.
warning: build failed, waiting for other jobs to finish...
error: build failed
betta-cyber commented 4 years ago

Try update your rust version?

std::convert::TryInto support in 1.34.0

please check your rustc version

wanyaoqi commented 4 years ago

update rust version worked, thank you