[INFO] fetching crate creche 0.2.1... [INFO] testing creche-0.2.1 against 1.90.0 for beta-1.91-3 [INFO] extracting crate creche 0.2.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate creche 0.2.1 [INFO] finished tweaking crates.io crate creche 0.2.1 [INFO] tweaked toml for crates.io crate creche 0.2.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate creche 0.2.1 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate creche 0.2.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f886dfcdaebde8e16deaa31da3c8d8bba3097c08955006d23ab25d7f01ef111 [INFO] running `Command { std: "docker" "start" "-a" "2f886dfcdaebde8e16deaa31da3c8d8bba3097c08955006d23ab25d7f01ef111", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f886dfcdaebde8e16deaa31da3c8d8bba3097c08955006d23ab25d7f01ef111", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f886dfcdaebde8e16deaa31da3c8d8bba3097c08955006d23ab25d7f01ef111", kill_on_drop: false }` [INFO] [stdout] 2f886dfcdaebde8e16deaa31da3c8d8bba3097c08955006d23ab25d7f01ef111 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2b737bca153c5bff89bc49b453183b9a7eef42f2af6741142ee74d722faa66e [INFO] running `Command { std: "docker" "start" "-a" "e2b737bca153c5bff89bc49b453183b9a7eef42f2af6741142ee74d722faa66e", kill_on_drop: false }` [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling creche v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.57s [INFO] running `Command { std: "docker" "inspect" "e2b737bca153c5bff89bc49b453183b9a7eef42f2af6741142ee74d722faa66e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2b737bca153c5bff89bc49b453183b9a7eef42f2af6741142ee74d722faa66e", kill_on_drop: false }` [INFO] [stdout] e2b737bca153c5bff89bc49b453183b9a7eef42f2af6741142ee74d722faa66e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d80f7c7154f7a069b5fa0ae361e0ba28cfc1ca1a08e57a00255f1da31fd0ca24 [INFO] running `Command { std: "docker" "start" "-a" "d80f7c7154f7a069b5fa0ae361e0ba28cfc1ca1a08e57a00255f1da31fd0ca24", kill_on_drop: false }` [INFO] [stderr] Compiling creche v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] running `Command { std: "docker" "inspect" "d80f7c7154f7a069b5fa0ae361e0ba28cfc1ca1a08e57a00255f1da31fd0ca24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d80f7c7154f7a069b5fa0ae361e0ba28cfc1ca1a08e57a00255f1da31fd0ca24", kill_on_drop: false }` [INFO] [stdout] d80f7c7154f7a069b5fa0ae361e0ba28cfc1ca1a08e57a00255f1da31fd0ca24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 42ebd2bff92def0b693cf622939f896f0798e0879825136930975a8cc6d2f10c [INFO] running `Command { std: "docker" "start" "-a" "42ebd2bff92def0b693cf622939f896f0798e0879825136930975a8cc6d2f10c", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/creche-605d9e7529359dc0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests creche [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/creche.rs - creche::ChildHandle (line 281) ... FAILED [INFO] [stdout] test src/ioconfig.rs - ioconfig::RedirectToFd (line 271) ... FAILED [INFO] [stdout] test src/ioconfig.rs - ioconfig::RedirectToFd (line 254) ... FAILED [INFO] [stdout] test src/pipeline.rs - pipeline::SimplePipelineBuilder (line 23) ... FAILED [INFO] [stdout] test src/creche.rs - creche::ChildBuilder (line 35) ... FAILED [INFO] [stdout] test src/envconfig.rs - envconfig::EnvironmentBuilder (line 77) ... FAILED [INFO] [stdout] test src/creche.rs - creche::ChildBuilder (line 21) ... FAILED [INFO] [stdout] test src/ioconfig.rs - ioconfig::interprocess_pipe (line 172) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/creche.rs - creche::ChildHandle (line 281) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/creche.rs:283:15 [INFO] [stdout] | [INFO] [stdout] 4 | let mut cmd = ChildBuilder::new("sleep"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/creche.rs:292:1 [INFO] [stdout] | [INFO] [stdout] 13 | spawn( move || { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sleep` in this scope [INFO] [stdout] --> src/creche.rs:293:5 [INFO] [stdout] | [INFO] [stdout] 14 | sleep(Duration::from_secs(2)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use std::thread::sleep; [INFO] [stdout] | [INFO] [stdout] 2 + use nix::unistd::sleep; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/creche.rs:293:11 [INFO] [stdout] | [INFO] [stdout] 14 | sleep(Duration::from_secs(2)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ioconfig.rs - ioconfig::RedirectToFd (line 271) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/ioconfig.rs:277:15 [INFO] [stdout] | [INFO] [stdout] 8 | let mut cmd = ChildBuilder::new("cat"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ioconfig` [INFO] [stdout] --> src/ioconfig.rs:278:22 [INFO] [stdout] | [INFO] [stdout] 9 | let file_io_config = ioconfig::RedirectToFd::new(file, 0); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `ioconfig` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/ioconfig.rs, use `mod ioconfig` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod ioconfig; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ioconfig::RedirectToFd; [INFO] [stdout] | [INFO] [stdout] help: if you import `RedirectToFd`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 9 - let file_io_config = ioconfig::RedirectToFd::new(file, 0); [INFO] [stdout] 9 + let file_io_config = RedirectToFd::new(file, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ioconfig.rs:275:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ioconfig_rs_271_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 6 | let file = f_opts.open("logfile")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 2 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ioconfig_rs_271_0() -> Result<(), Box> { [INFO] [stdout] 3 | // set up the file to read from [INFO] [stdout] ... [INFO] [stdout] 13| println!("{:?}", child.wait()); [INFO] [stdout] 14+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ioconfig.rs - ioconfig::RedirectToFd (line 254) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/ioconfig.rs:261:15 [INFO] [stdout] | [INFO] [stdout] 9 | let mut cmd = ChildBuilder::new("cat"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ioconfig` [INFO] [stdout] --> src/ioconfig.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 11 | let logfile_io_config = ioconfig::RedirectToFd::new(file, 2); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `ioconfig` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/ioconfig.rs, use `mod ioconfig` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod ioconfig; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ioconfig::RedirectToFd; [INFO] [stdout] | [INFO] [stdout] help: if you import `RedirectToFd`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 11 - let logfile_io_config = ioconfig::RedirectToFd::new(file, 2); [INFO] [stdout] 11 + let logfile_io_config = RedirectToFd::new(file, 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ioconfig.rs:258:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ioconfig_rs_254_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 6 | let file = f_opts.open("logfile")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 2 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ioconfig_rs_254_0() -> Result<(), Box> { [INFO] [stdout] 3 | // set up log file [INFO] [stdout] ... [INFO] [stdout] 15| println!("{:?}", child.wait()); [INFO] [stdout] 16+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/pipeline.rs - pipeline::SimplePipelineBuilder (line 23) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/pipeline.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut ls_cmd = ChildBuilder::new("ls"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/pipeline.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 5 | let mut sort_cmd = ChildBuilder::new("sort"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/pipeline.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 7 | let mut tr_cmd = ChildBuilder::new("tr"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SimplePipelineBuilder` [INFO] [stdout] --> src/pipeline.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 11 | let mut pipeline = SimplePipelineBuilder::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `SimplePipelineBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::SimplePipelineBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/creche.rs - creche::ChildBuilder (line 35) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/creche.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 4 | let mut cmd = ChildBuilder::new("ls"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/creche.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_creche_rs_35_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 13 | let output = std::io::read_to_string(f)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 2 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_creche_rs_35_0() -> Result<(), Box> { [INFO] [stdout] 3 | // configure the child process [INFO] [stdout] ... [INFO] [stdout] 16 | println!("exit status: {:?}", child.wait()); [INFO] [stdout] 17 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/envconfig.rs - envconfig::EnvironmentBuilder (line 77) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `envconfig` [INFO] [stdout] --> src/envconfig.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 4 | let mut env = envconfig::EnvironmentBuilder::new(); [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `envconfig` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/envconfig.rs, use `mod envconfig` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod envconfig; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::envconfig::EnvironmentBuilder; [INFO] [stdout] | [INFO] [stdout] help: if you import `EnvironmentBuilder`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 4 - let mut env = envconfig::EnvironmentBuilder::new(); [INFO] [stdout] 4 + let mut env = EnvironmentBuilder::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/envconfig.rs:83:15 [INFO] [stdout] | [INFO] [stdout] 8 | let mut cmd = ChildBuilder::new("env"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/creche.rs - creche::ChildBuilder (line 21) stdout ---- [INFO] [stdout] error[E0599]: cannot write into `File` [INFO] [stdout] --> src/creche.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 12 | writeln!(f, "this is a test message"); [INFO] [stdout] | ^ [INFO] [stdout] --> /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:1950:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `File` here [INFO] [stdout] | [INFO] [stdout] note: must implement `io::Write`, `fmt::Write`, or have a `write_fmt` method [INFO] [stdout] --> src/creche.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 12 | writeln!(f, "this is a test message"); [INFO] [stdout] | ^ [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write_fmt` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ioconfig.rs - ioconfig::interprocess_pipe (line 172) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ioconfig` [INFO] [stdout] --> src/ioconfig.rs:175:22 [INFO] [stdout] | [INFO] [stdout] 5 | let (mut r, mut w) = ioconfig::interprocess_pipe(0, 1); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `ioconfig` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/ioconfig.rs, use `mod ioconfig` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod ioconfig; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ioconfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/ioconfig.rs:178:18 [INFO] [stdout] | [INFO] [stdout] 8 | let mut tr_cmd = ChildBuilder::new("tr"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChildBuilder` [INFO] [stdout] --> src/ioconfig.rs:181:20 [INFO] [stdout] | [INFO] [stdout] 11 | let mut sort_cmd = ChildBuilder::new("sort"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ChildBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use creche::ChildBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: cannot write into `File` [INFO] [stdout] --> src/ioconfig.rs:194:14 [INFO] [stdout] | [INFO] [stdout] 24 | writeln!(f, "{}", line); [INFO] [stdout] | ^ [INFO] [stdout] --> /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:1950:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `File` here [INFO] [stdout] | [INFO] [stdout] note: must implement `io::Write`, `fmt::Write`, or have a `write_fmt` method [INFO] [stdout] --> src/ioconfig.rs:194:14 [INFO] [stdout] | [INFO] [stdout] 24 | writeln!(f, "{}", line); [INFO] [stdout] | ^ [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write_fmt` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/creche.rs - creche::ChildBuilder (line 21) [INFO] [stdout] src/creche.rs - creche::ChildBuilder (line 35) [INFO] [stdout] src/creche.rs - creche::ChildHandle (line 281) [INFO] [stdout] src/envconfig.rs - envconfig::EnvironmentBuilder (line 77) [INFO] [stdout] src/ioconfig.rs - ioconfig::RedirectToFd (line 254) [INFO] [stdout] src/ioconfig.rs - ioconfig::RedirectToFd (line 271) [INFO] [stdout] src/ioconfig.rs - ioconfig::interprocess_pipe (line 172) [INFO] [stdout] src/pipeline.rs - pipeline::SimplePipelineBuilder (line 23) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "42ebd2bff92def0b693cf622939f896f0798e0879825136930975a8cc6d2f10c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42ebd2bff92def0b693cf622939f896f0798e0879825136930975a8cc6d2f10c", kill_on_drop: false }` [INFO] [stdout] 42ebd2bff92def0b693cf622939f896f0798e0879825136930975a8cc6d2f10c