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

error[E0599]: no method named write_all found for struct File in the current scope #118862

Closed
psumbera opened this issue Dec 12, 2023 · 2 comments · Fixed by #118894
Closed

error[E0599]: no method named write_all found for struct File in the current scope #118862

psumbera opened this issue Dec 12, 2023 · 2 comments · Fixed by #118894
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@psumbera
Copy link
Contributor

While building latest Rust it fails like this:

error[E0599]: no method named `write_all` found for struct `File` in the current scope
   --> src/bin/main.rs:134:21
    |
134 |             t!(file.write_all(lines.join("\n").as_bytes()));
    |                     ^^^^^^^^^ method not found in `File`
   --> /builds2/psumbera/rust-lang-build/library/std/src/io/mod.rs:1620:8
    |
    = note: the method is available for `File` here
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
8   + use std::io::Write;
    |

For more information about this error, try `rustc --explain E0599`.
error: could not compile `bootstrap` (bin "bootstrap") due to previous error
warning: build failed, waiting for other jobs to finish...

419b269 is the first bad commit
commit 419b269
Author: David Tolnay dtolnay@gmail.com
Date: Wed Nov 29 23:02:05 2023 -0800

Add if_let_guard and let_chains pretty printer tests

tests/ui/macros/stringify.rs | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Dec 12, 2023
@psumbera
Copy link
Contributor Author

@dtolnay do you have any idea about this? Thank you!

@dtolnay
Copy link
Member

dtolnay commented Dec 12, 2023

I am skeptical about that bisect. That commit is only adding tests. I do not see any way that it could cause bootstrap to fail to build.

@dtolnay dtolnay added regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Dec 12, 2023
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Dec 12, 2023
@apiraino apiraino removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Dec 13, 2023
@bors bors closed this as completed in 7176b8b Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants