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

Cargo install bootimage fails #12

Closed
therishidesai opened this issue Jun 17, 2018 · 3 comments
Closed

Cargo install bootimage fails #12

therishidesai opened this issue Jun 17, 2018 · 3 comments

Comments

@therishidesai
Copy link

When I try to cargo install bootimage, I get the following error.

error[E0425]: cannot find function `read_to_string` in module `fs`
  --> src/test.rs:66:34
   |
66 |                 let output = fs::read_to_string(&output_file)
   |                                  ^^^^^^^^^^^^^^ did you mean `read_string`?

error: aborting due to previous error

error: failed to compile `bootimage v0.4.3`, intermediate artifacts can be found at `/tmp/cargo-install.bb6pN4pqkVxR`
@therishidesai
Copy link
Author

When I did rustup update stable it ran fine. I guess the current nightly build had issues.

@phil-opp
Copy link
Member

Seems like you just used an old compiler: The read_string function was renamed to read_to_string in rust-lang/rust#49522 and was stabilized in 1.26.

@phil-opp
Copy link
Member

I'm going to close this because I think it is solved. If you're still having this issue @apache8080 I'm happy to reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants