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

WASM compilation error #291

Open
dr-orlovsky opened this issue Aug 10, 2024 · 0 comments
Open

WASM compilation error #291

dr-orlovsky opened this issue Aug 10, 2024 · 0 comments

Comments

@dr-orlovsky
Copy link

dr-orlovsky commented Aug 10, 2024

On all platforms except UNIX and Windows (for instance with cargo build --target wasm32-unknown-unknown):

   Compiling compiletest_rs v0.11.0
error[E0596]: cannot borrow `out_pipe` as mutable, as it is not declared as mutable
  --> /Users/orlovsky/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compiletest_rs-0.11.0/src/read2.rs:27:9
   |
27 |         out_pipe.read_to_end(&mut buffer)?;
   |         ^^^^^^^^ cannot borrow as mutable
   |
help: consider changing this to be mutable
   |
22 |         mut out_pipe: ChildStdout,
   |         +++

error[E0596]: cannot borrow `err_pipe` as mutable, as it is not declared as mutable
  --> /Users/orlovsky/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compiletest_rs-0.11.0/src/read2.rs:30:9
   |
30 |         err_pipe.read_to_end(&mut buffer)?;
   |         ^^^^^^^^ cannot borrow as mutable
   |
help: consider changing this to be mutable
   |
23 |         mut err_pipe: ChildStderr,
   |         +++

error: aborting due to 2 previous errors
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

1 participant