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 error on nightly rust #1042

Closed
TerminalWitchcraft opened this issue Jul 2, 2019 · 4 comments
Closed

Compilation error on nightly rust #1042

TerminalWitchcraft opened this issue Jul 2, 2019 · 4 comments
Labels
nightly breakage Breakage on the nightly channel only

Comments

@TerminalWitchcraft
Copy link

Rocket fails to compile on latest(as of writing this) version of nightly rust. The version of rust used is:

rustc 1.37.0-nightly (17e62f77f 2019-07-01)

Below is the error:

error[E0432]: unresolved import `std::boxed::FnBox`
 --> /home/[username]/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.1/src/fairing/ad_hoc.rs:2:5
  |
2 | use std::boxed::FnBox;
  |     ^^^^^^^^^^^^^^^^^ no `FnBox` in `boxed`

   Compiling reqwest v0.9.18
error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: Could not compile `rocket`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Any help would be appreciated.

@perlish
Copy link

perlish commented Jul 2, 2019

same issue after update with rustup

@doctorn
Copy link

doctorn commented Jul 2, 2019

Updating to 0.4.2 fixed this for me.

@SergioBenitez
Copy link
Member

Please update to Rocket 0.4.2. Running cargo update should do it for you.

@jebrosen jebrosen added the nightly breakage Breakage on the nightly channel only label Jul 2, 2019
@perlish
Copy link

perlish commented Jul 3, 2019

0.4.2 fixed this for me.

tylerlm added a commit to tylerlm/minibin that referenced this issue Nov 19, 2019
Fixes rocket failing to compile with "error[E0432]: unresolved import `std::boxed::FnBox`"

<rwf2/Rocket#1042>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nightly breakage Breakage on the nightly channel only
Projects
None yet
Development

No branches or pull requests

5 participants