maciejhirsz / tiny-bip39

A Rust implementation of BIP-0039
Apache License 2.0
65 stars 37 forks source link

Many E0658 errors #13

Closed mrbianchi closed 4 years ago

mrbianchi commented 4 years ago

  --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:35:1
   |
35 | pub extern crate alloc;
   | ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(alloc)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
  --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:49:5
   |
49 | use core::mem::MaybeUninit;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:294:12
    |
294 |     Inline(MaybeUninit<A>),
    |            ^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:315:28
    |
315 |     fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> {
    |                            ^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:319:36
    |
319 |     unsafe fn into_inline(self) -> MaybeUninit<A> {
    |                                    ^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:394:45
    |
394 |             data: SmallVecData::from_inline(MaybeUninit::uninit()),
    |                                             ^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:434:63
    |
434 |                 let mut data = SmallVecData::<A>::from_inline(MaybeUninit::uninit());
    |                                                               ^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:470:45
    |
470 |             data: SmallVecData::from_inline(MaybeUninit::new(buf)),
    |                                             ^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:489:55
    |
489 |         unsafe { SmallVec::from_buf_and_len_unchecked(MaybeUninit::new(buf), len) }
    |                                                       ^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:508:51
    |
508 |     pub unsafe fn from_buf_and_len_unchecked(buf: MaybeUninit<A>, len: usize) -> SmallVec<A> {
    |                                                   ^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:670:55
    |
670 |                 self.data = SmallVecData::from_inline(MaybeUninit::uninit());
    |                                                       ^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:737:55
    |
737 |                 self.data = SmallVecData::from_inline(MaybeUninit::uninit());
    |                                                       ^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
    --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:1078:52
     |
1078 |                     let mut data: MaybeUninit<A> = MaybeUninit::uninit();
     |                                                    ^^^^^^^^^^^^^^^^^^^
     |
     = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
    --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:1078:35
     |
1078 |                     let mut data: MaybeUninit<A> = MaybeUninit::uninit();
     |                                   ^^^^^^^^^^^^^^
     |
     = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:303:42
    |
303 |             SmallVecData::Inline(a) => a.as_ptr() as *const A::Item,
    |                                          ^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:310:42
    |
310 |             SmallVecData::Inline(a) => a.as_mut_ptr() as *mut A::Item,
    |                                          ^^^^^^^^^^
    |
    = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:394:58
    |
394 |             data: SmallVecData::from_inline(MaybeUninit::uninit()),
    |                                             -------------^^^^^^
    |                                             |
    |                                             function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:434:76
    |
434 |                 let mut data = SmallVecData::<A>::from_inline(MaybeUninit::uninit());
    |                                                               -------------^^^^^^
    |                                                               |
    |                                                               function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:670:68
    |
670 |                 self.data = SmallVecData::from_inline(MaybeUninit::uninit());
    |                                                       -------------^^^^^^
    |                                                       |
    |                                                       function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\rustc-hash-1.1.0\src\lib.rs:31:5
   |
31 | use core::convert::TryInto;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(try_from)] to the crate attributes to enable

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:737:68
    |
737 |                 self.data = SmallVecData::from_inline(MaybeUninit::uninit());
    |                                                       -------------^^^^^^
    |                                                       |
    |                                                       function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0599]: no method named `assume_init` found for type `core::mem::MaybeUninit<A>` in the current scope
   --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:916:39
    |
916 |                 Ok(data.into_inline().assume_init())
    |                                       ^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> C:\Users\m\.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());
   |                                                                       ^^^^^^^^
   |
   = help: add #![feature(try_from)] to the crate attributes to enable

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
    --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:1078:65
     |
1078 |                     let mut data: MaybeUninit<A> = MaybeUninit::uninit();
     |                                                    -------------^^^^^^
     |                                                    |
     |                                                    function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
    --> C:\Users\m\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.2.0\lib.rs:1081:30
     |
1081 |                         data.as_mut_ptr() as *mut A::Item,
     |                              ^^^^^^^^^^
     |
     = help: add #![feature(maybe_uninit)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> C:\Users\m\.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);
   |                                                            ^^^^^^^^
   |
   = help: add #![feature(try_from)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> C:\Users\m\.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);
    |                                                            ^^^^^^^^
    |
    = help: add #![feature(try_from)] to the crate attributes to enable

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0658`.
error: aborting due to 23 previous errors

Some errors occurred: E0599, E0658.
For more information about an error, try `rustc --explain E0599`.
error: Could not compile `smallvec`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `rustc-hash`.
warning: build failed, waiting for other jobs to finish...
error: build failed```
wigy-opensource-developer commented 4 years ago

I have tried building the current master with rust 1.40, rust 1.41 and rust 1.43 nightly on Linux, and have not seen the error messages you mention. As I see you are using Windows, which rust version do you have?

mrbianchi commented 4 years ago

rustc 1.33.0-nightly (19f8958f8 2019-01-23)

I should close this issue?

wigy-opensource-developer commented 4 years ago

Well, I cannot close it :smile: