[INFO] fetching crate creche 0.2.1... [INFO] testing creche-0.2.1 against beta-2025-09-21 for beta-1.91-3 [INFO] extracting crate creche 0.2.1 into /workspace/builds/worker-3-tc2/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-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate creche 0.2.1 on toolchain beta-2025-09-21 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-09-21" "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" "+beta-2025-09-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+beta-2025-09-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9f2d095cb2e1b35c8efa4e243f6a08b9ba73a208614289f577e78766de8d04c5 [INFO] running `Command { std: "docker" "start" "-a" "9f2d095cb2e1b35c8efa4e243f6a08b9ba73a208614289f577e78766de8d04c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f2d095cb2e1b35c8efa4e243f6a08b9ba73a208614289f577e78766de8d04c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f2d095cb2e1b35c8efa4e243f6a08b9ba73a208614289f577e78766de8d04c5", kill_on_drop: false }` [INFO] [stdout] 9f2d095cb2e1b35c8efa4e243f6a08b9ba73a208614289f577e78766de8d04c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+beta-2025-09-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 321d701c9dcbd1360fb7b89e699250535a9e5b0a0fd512bedbb579ada4a982dd [INFO] running `Command { std: "docker" "start" "-a" "321d701c9dcbd1360fb7b89e699250535a9e5b0a0fd512bedbb579ada4a982dd", kill_on_drop: false }` [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.23s [INFO] running `Command { std: "docker" "inspect" "321d701c9dcbd1360fb7b89e699250535a9e5b0a0fd512bedbb579ada4a982dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "321d701c9dcbd1360fb7b89e699250535a9e5b0a0fd512bedbb579ada4a982dd", kill_on_drop: false }` [INFO] [stdout] 321d701c9dcbd1360fb7b89e699250535a9e5b0a0fd512bedbb579ada4a982dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+beta-2025-09-21" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac8bb551c620a3fcb918c65300dbdaf90bcc9d792d6f7542201ba87a048a14e4 [INFO] running `Command { std: "docker" "start" "-a" "ac8bb551c620a3fcb918c65300dbdaf90bcc9d792d6f7542201ba87a048a14e4", 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.35s [INFO] running `Command { std: "docker" "inspect" "ac8bb551c620a3fcb918c65300dbdaf90bcc9d792d6f7542201ba87a048a14e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac8bb551c620a3fcb918c65300dbdaf90bcc9d792d6f7542201ba87a048a14e4", kill_on_drop: false }` [INFO] [stdout] ac8bb551c620a3fcb918c65300dbdaf90bcc9d792d6f7542201ba87a048a14e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+beta-2025-09-21" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] acb519b8b6edb25295213fd989864e5d6bd2c9dfa0074dd46a9e9242e3ae8431 [INFO] running `Command { std: "docker" "start" "-a" "acb519b8b6edb25295213fd989864e5d6bd2c9dfa0074dd46a9e9242e3ae8431", 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-4ddbe770d59fe1ae) [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/envconfig.rs - envconfig::EnvironmentBuilder (line 77) ... FAILED [INFO] [stdout] test src/creche.rs - creche::ChildBuilder (line 21) ... FAILED [INFO] [stdout] test src/creche.rs - creche::ChildHandle (line 281) ... FAILED [INFO] [stdout] test src/pipeline.rs - pipeline::SimplePipelineBuilder (line 23) ... 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/creche.rs - creche::ChildBuilder (line 35) ... FAILED [INFO] [stdout] test src/ioconfig.rs - ioconfig::interprocess_pipe (line 172) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] | [INFO] [stdout] --> /rustc/bb624dcb4c8ab987e10c0808d92d76f3b84dd117/library/std/src/io/mod.rs:1950:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `File` here [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/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/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/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/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/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] | [INFO] [stdout] --> /rustc/bb624dcb4c8ab987e10c0808d92d76f3b84dd117/library/std/src/io/mod.rs:1950:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `File` here [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.09s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "acb519b8b6edb25295213fd989864e5d6bd2c9dfa0074dd46a9e9242e3ae8431", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acb519b8b6edb25295213fd989864e5d6bd2c9dfa0074dd46a9e9242e3ae8431", kill_on_drop: false }` [INFO] [stdout] acb519b8b6edb25295213fd989864e5d6bd2c9dfa0074dd46a9e9242e3ae8431