Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7176b8b

Browse files
committedDec 13, 2023
Auto merge of #118894 - dtolnay:bootstrapwrite, r=onur-ozkan
Unbreak non-unix non-windows bootstrap Fixes #118862. #118647 added a new use of std::io::Write that is not conditional on any cfg. https://github.com/rust-lang/rust/blob/028b6d152e904bbc02dc3cd67e4cbdffcbd039e1/src/bootstrap/src/bin/main.rs#L134 ```console 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` | = 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; | ```
2 parents c3def26 + b30e94b commit 7176b8b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎src/bootstrap/src/bin/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//! parent directory, and otherwise documentation can be found throughout the `build`
66
//! directory in each respective module.
77
8-
#[cfg(all(any(unix, windows), not(target_os = "solaris")))]
98
use std::io::Write;
109
#[cfg(all(any(unix, windows), not(target_os = "solaris")))]
1110
use std::process;

0 commit comments

Comments
 (0)
Failed to load comments.