[INFO] fetching crate shell-util 0.0.0... [INFO] testing shell-util-0.0.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate shell-util 0.0.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate shell-util 0.0.0 [INFO] finished tweaking crates.io crate shell-util 0.0.0 [INFO] tweaked toml for crates.io crate shell-util 0.0.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate shell-util 0.0.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate shell-util 0.0.0 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded os_pipe v1.2.1 [INFO] [stderr] Downloaded shared_child v1.0.1 [INFO] [stderr] Downloaded unicode-ident v1.0.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af7a87f6b4c5bf23bf958416987d3f0a361256c55fc3896c450b5c88a902336c [INFO] running `Command { std: "docker" "start" "-a" "af7a87f6b4c5bf23bf958416987d3f0a361256c55fc3896c450b5c88a902336c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af7a87f6b4c5bf23bf958416987d3f0a361256c55fc3896c450b5c88a902336c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af7a87f6b4c5bf23bf958416987d3f0a361256c55fc3896c450b5c88a902336c", kill_on_drop: false }` [INFO] [stdout] af7a87f6b4c5bf23bf958416987d3f0a361256c55fc3896c450b5c88a902336c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6635ec8c16f5ea0a78081b31d9601a3aaa155f220c5b0cefe42b94c32c61f8e4 [INFO] running `Command { std: "docker" "start" "-a" "6635ec8c16f5ea0a78081b31d9601a3aaa155f220c5b0cefe42b94c32c61f8e4", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling os_pipe v1.2.1 [INFO] [stderr] Compiling shared_child v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling shell-util v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `slice_internals` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(slice_internals)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.01s [INFO] running `Command { std: "docker" "inspect" "6635ec8c16f5ea0a78081b31d9601a3aaa155f220c5b0cefe42b94c32c61f8e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6635ec8c16f5ea0a78081b31d9601a3aaa155f220c5b0cefe42b94c32c61f8e4", kill_on_drop: false }` [INFO] [stdout] 6635ec8c16f5ea0a78081b31d9601a3aaa155f220c5b0cefe42b94c32c61f8e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 010eddd75952dc8e9efcfb5adbc174e10e286c250dd89fb73dcf8aa0ccef0dc1 [INFO] running `Command { std: "docker" "start" "-a" "010eddd75952dc8e9efcfb5adbc174e10e286c250dd89fb73dcf8aa0ccef0dc1", kill_on_drop: false }` [INFO] [stdout] warning: the feature `slice_internals` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(slice_internals)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling shell-util v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `slice_internals` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(slice_internals)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.35s [INFO] running `Command { std: "docker" "inspect" "010eddd75952dc8e9efcfb5adbc174e10e286c250dd89fb73dcf8aa0ccef0dc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "010eddd75952dc8e9efcfb5adbc174e10e286c250dd89fb73dcf8aa0ccef0dc1", kill_on_drop: false }` [INFO] [stdout] 010eddd75952dc8e9efcfb5adbc174e10e286c250dd89fb73dcf8aa0ccef0dc1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 49163c682170a8de725f53101257cc848ace29a780a06357d0e7cda4c1f93579 [INFO] running `Command { std: "docker" "start" "-a" "49163c682170a8de725f53101257cc848ace29a780a06357d0e7cda4c1f93579", kill_on_drop: false }` [INFO] [stderr] warning: the feature `slice_internals` is internal to the compiler or standard library [INFO] [stderr] --> src/lib.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(slice_internals)] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using it is strongly discouraged [INFO] [stderr] = note: `#[warn(internal_features)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `shell-util` (lib) generated 1 warning [INFO] [stderr] warning: `shell-util` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/shell_util-5942b045af9c6bf1) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test shell::tests::test_echo_command ... ok [INFO] [stdout] test shell::tests::test_command_failure ... ok [INFO] [stdout] test shell::tests::test_raw_output ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Doc-tests shell_util [INFO] [stderr] warning: the feature `slice_internals` is internal to the compiler or standard library [INFO] [stderr] --> src/lib.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(slice_internals)] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using it is strongly discouraged [INFO] [stderr] = note: `#[warn(internal_features)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/shell.rs - shell::Shell::exec (line 174) - compile ... FAILED [INFO] [stdout] test src/shell.rs - shell::Shell::spawn (line 257) - compile ... FAILED [INFO] [stdout] test src/shell.rs - shell::Shell::status (line 224) - compile ... FAILED [INFO] [stdout] test src/shell.rs - shell::Buffer::push (line 46) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/shell.rs - shell::Shell::exec (line 174) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/shell.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 175 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_shell_rs_174_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 179 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/shell.rs - shell::Shell::spawn (line 257) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `shell_util::CommandEvent` [INFO] [stdout] --> src/shell.rs:259:18 [INFO] [stdout] | [INFO] [stdout] 259 | use shell_util::{CommandEvent, Shell}; [INFO] [stdout] | ^^^^^^^^^^^^ no `CommandEvent` in the root [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `CommandOptions` in this scope [INFO] [stdout] --> src/shell.rs:260:37 [INFO] [stdout] | [INFO] [stdout] 260 | let child = Shell::spawn("yes", [], CommandOptions::default()) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `CommandOptions` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 256 + use shell_util::CommandOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/shell.rs:263:47 [INFO] [stdout] | [INFO] [stdout] 258 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_shell_rs_257_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 263 | while let Some(event) = child.events().recv().await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/shell.rs - shell::Shell::status (line 224) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/shell.rs:229:8 [INFO] [stdout] | [INFO] [stdout] 225 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_shell_rs_224_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 229 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: `CommandOptions` is not an iterator [INFO] [stdout] --> src/shell.rs:228:39 [INFO] [stdout] | [INFO] [stdout] 228 | Shell::status("echo", ["Hello!"], CommandOptions::default()) [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ `CommandOptions` is not an iterator [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `CommandOptions` [INFO] [stdout] = note: required for `CommandOptions` to implement `IntoIterator` [INFO] [stdout] note: required by a bound in `Shell::status` [INFO] [stdout] --> src/shell.rs:239:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub async fn status( [INFO] [stdout] | ------ required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 239 | I: IntoIterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Shell::status` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/shell.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | Shell::status("echo", ["Hello!"], CommandOptions::default()) [INFO] [stdout] | ^^^^^^^^^^^^^ ------ ---------- expected `&CommandOptions`, found `[&str; 1]` [INFO] [stdout] | | [INFO] [stdout] | argument #1 of type `&Shell` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/shell.rs:232:16 [INFO] [stdout] | [INFO] [stdout] 232 | pub async fn status( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 228 - Shell::status("echo", ["Hello!"], CommandOptions::default()) [INFO] [stdout] 228 + Shell::status(/* &Shell */, "echo", CommandOptions::default(), /* &CommandOptions */) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: `CommandOptions` is not an iterator [INFO] [stdout] --> src/shell.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | Shell::status("echo", ["Hello!"], CommandOptions::default()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `CommandOptions` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `CommandOptions` [INFO] [stdout] = note: required for `CommandOptions` to implement `IntoIterator` [INFO] [stdout] note: required by a bound in `Shell::status` [INFO] [stdout] --> src/shell.rs:239:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub async fn status( [INFO] [stdout] | ------ required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 239 | I: IntoIterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Shell::status` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/shell.rs - shell::Buffer::push (line 46) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::shell` [INFO] [stdout] --> src/shell.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | use crate::shell::Buffer; [INFO] [stdout] | ^^^^^ could not find `shell` in the crate root [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/shell.rs - shell::Buffer::push (line 46) [INFO] [stdout] src/shell.rs - shell::Shell::exec (line 174) [INFO] [stdout] src/shell.rs - shell::Shell::spawn (line 257) [INFO] [stdout] src/shell.rs - shell::Shell::status (line 224) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "49163c682170a8de725f53101257cc848ace29a780a06357d0e7cda4c1f93579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49163c682170a8de725f53101257cc848ace29a780a06357d0e7cda4c1f93579", kill_on_drop: false }` [INFO] [stdout] 49163c682170a8de725f53101257cc848ace29a780a06357d0e7cda4c1f93579