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.
028b6d152e/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;
|
```
This commit is contained in:
commit
7176b8babd
@ -5,7 +5,6 @@
|
||||
//! parent directory, and otherwise documentation can be found throughout the `build`
|
||||
//! directory in each respective module.
|
||||
|
||||
#[cfg(all(any(unix, windows), not(target_os = "solaris")))]
|
||||
use std::io::Write;
|
||||
#[cfg(all(any(unix, windows), not(target_os = "solaris")))]
|
||||
use std::process;
|
||||
|
Loading…
Reference in New Issue
Block a user