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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with build failing after cargo install #741

Closed
AustinCorridor opened this issue Sep 27, 2019 · 2 comments
Closed

issue with build failing after cargo install #741

AustinCorridor opened this issue Sep 27, 2019 · 2 comments

Comments

@AustinCorridor
Copy link

@AustinCorridor AustinCorridor commented Sep 27, 2019

馃悰 Bug Report

Environment

  • operating system:
  • output of rustc -V: rustc 1.33.0 (2aa4c46cf 2019-02-28)
  • output of node -v: v10.16.3
  • output of wrangler -V: uninstalled

Steps to reproduce

I had Wrangler installed and attempted to update my version through cargo, which requires uninstall and then install.

When installing, I receive the following error:

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
 --> /Users/samrhea/.cargo/registry/src/github.com-1ecc6299db9ec823/miniz_oxide-0.3.2/src/deflate/core.rs:3:5
  |
3 | use std::convert::TryInto;
  |     ^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
 --> /Users/samrhea/.cargo/registry/src/github.com-1ecc6299db9ec823/miniz_oxide-0.3.2/src/inflate/core.rs:6:5
  |
6 | use std::convert::TryInto;
  |     ^^^^^^^^^^^^^^^^^^^^^

   Compiling yaml-rust v0.4.3
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
    --> /Users/samrhea/.cargo/registry/src/github.com-1ecc6299db9ec823/miniz_oxide-0.3.2/src/deflate/core.rs:1124:52
     |
1124 |         let bytes: [u8; 4] = self.b.dict[pos..end].try_into().unwrap();
     |                                                    ^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
    --> /Users/samrhea/.cargo/registry/src/github.com-1ecc6299db9ec823/miniz_oxide-0.3.2/src/deflate/core.rs:1133:56
     |
1133 |         let bytes: [u8; 8] = self.b.dict[pos..pos + 8].try_into().unwrap();
     |                                                        ^^^^^^^^

   Compiling textwrap v0.11.0
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /Users/samrhea/.cargo/registry/src/github.com-1ecc6299db9ec823/miniz_oxide-0.3.2/src/inflate/core.rs:342:44
    |
342 |         let two_bytes = iter.as_ref()[..2].try_into().unwrap();
    |                                            ^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /Users/samrhea/.cargo/registry/src/github.com-1ecc6299db9ec823/miniz_oxide-0.3.2/src/inflate/core.rs:357:54
    |
357 |         let four_bytes: [u8; 4] = iter.as_ref()[..4].try_into().unwrap();
    |                                                      ^^^^^^^^

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `miniz_oxide`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `wrangler v1.4.0`, intermediate artifacts can be found at `/var/folders/j7/_vypfcb179g8wbw84pkrrkx00000gn/T/cargo-installwLATWy`

Caused by:
  build failed

What did you expect to see?

Wrangler installed via Cargo

What did you see instead?

build failed

@EverlastingBugstopper

This comment has been minimized.

Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper commented Sep 27, 2019

From https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide

Requires at least rust 1.34.

If you run rustup update this should work!

@AustinCorridor

This comment has been minimized.

Copy link
Author

@AustinCorridor AustinCorridor commented Sep 27, 2019

Ah, closing this - I needed to update rustc.
Thanks @EverlastingBugstopper for the solve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can鈥檛 perform that action at this time.