[INFO] crate cmd_lib 0.7.8 is already in cache [INFO] testing cmd_lib-0.7.8 against 1.44.0 for beta-1.45-1 [INFO] extracting crate cmd_lib 0.7.8 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate cmd_lib 0.7.8 on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate cmd_lib 0.7.8 [INFO] finished tweaking crates.io crate cmd_lib 0.7.8 [INFO] tweaked toml for crates.io crate cmd_lib 0.7.8 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 655f7927d8a9fb4d1a6624895587dfdf9437be69f3baec202ec52c176ff3d42d [INFO] running `"docker" "start" "-a" "655f7927d8a9fb4d1a6624895587dfdf9437be69f3baec202ec52c176ff3d42d"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling cmd_lib v0.7.8 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.55s [INFO] running `"docker" "inspect" "655f7927d8a9fb4d1a6624895587dfdf9437be69f3baec202ec52c176ff3d42d"` [INFO] running `"docker" "rm" "-f" "655f7927d8a9fb4d1a6624895587dfdf9437be69f3baec202ec52c176ff3d42d"` [INFO] [stdout] 655f7927d8a9fb4d1a6624895587dfdf9437be69f3baec202ec52c176ff3d42d [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 7b4b572003d005f524a21dc0d9845588a89f75e439e6da15fe0fe46c95edfaee [INFO] running `"docker" "start" "-a" "7b4b572003d005f524a21dc0d9845588a89f75e439e6da15fe0fe46c95edfaee"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling cmd_lib v0.7.8 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.95s [INFO] running `"docker" "inspect" "7b4b572003d005f524a21dc0d9845588a89f75e439e6da15fe0fe46c95edfaee"` [INFO] running `"docker" "rm" "-f" "7b4b572003d005f524a21dc0d9845588a89f75e439e6da15fe0fe46c95edfaee"` [INFO] [stdout] 7b4b572003d005f524a21dc0d9845588a89f75e439e6da15fe0fe46c95edfaee [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f1d553aa63148b53994c4c342c3ad3b7c28d323e06a45abb43e6da232e550e02 [INFO] running `"docker" "start" "-a" "f1d553aa63148b53994c4c342c3ad3b7c28d323e06a45abb43e6da232e550e02"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/cmd_lib-4cd8adf763d10da4 [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 [INFO] [stdout] [INFO] [stderr] Doc-tests cmd_lib [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - warn (line 21) ... FAILED [INFO] [stdout] test src/lib.rs - info (line 10) ... FAILED [INFO] [stdout] test src/lib.rs - output (line 56) ... FAILED [INFO] [stdout] test src/lib.rs - die (line 43) ... FAILED [INFO] [stdout] test src/lib.rs - err (line 32) ... FAILED [INFO] [stdout] test src/lib.rs - Process (line 216) ... FAILED [INFO] [stdout] test src/lib.rs - run_fun (line 142) ... FAILED [INFO] [stdout] test src/lib.rs - run_cmd (line 165) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - warn (line 21) stdout ---- [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 3 | warn!("Running command failed"); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - info (line 10) stdout ---- [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 3 | info!("Running command xxx ..."); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - output (line 56) stdout ---- [INFO] [stdout] error: expected `;` or `{`, found `...` [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 4 | ... [INFO] [stdout] | ^^^ expected `;` or `{` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - die (line 43) stdout ---- [INFO] [stdout] error: cannot find macro `die` in this scope [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 3 | die!("command failed: {}", reason); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - err (line 32) stdout ---- [INFO] [stdout] error: cannot find macro `err` in this scope [INFO] [stdout] --> src/lib.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 3 | err!("Copying file failed"); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Process (line 216) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Process` [INFO] [stdout] --> src/lib.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 3 | Process::new("du -ah .") [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `Process` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CmdResult` in this scope [INFO] [stdout] --> src/lib.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 6 | .wait::()? [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 6 | .wait::()? [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: possible candidate is found in another module, you can import it into scope [INFO] [stdout] | [INFO] [stdout] 2 | use cmd_lib::CmdResult; [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | Process::new("du -ah .") [INFO] [stdout] | |_^ [INFO] [stdout] 4 | || .pipe("sort -hr") [INFO] [stdout] 5 | || .pipe("head -n 5") [INFO] [stdout] 6 | || .wait::()? [INFO] [stdout] | ||_________________________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - run_fun (line 142) stdout ---- [INFO] [stdout] error: cannot find macro `run_fun` in this scope [INFO] [stdout] --> src/lib.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 11 | let files = run_fun!(du -ah . | sort -hr | head -n 10)?; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/lib.rs:148:1 [INFO] [stdout] | [INFO] [stdout] 8 | info!("There are {} words in above sentence", n); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `run_fun` in this scope [INFO] [stdout] --> src/lib.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 7 | let n = run_fun!("echo the quick brown fox jumped over the lazy dog | wc -w")?; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/lib.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 4 | info!("Your rust version is {}", version); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `run_fun` in this scope [INFO] [stdout] --> src/lib.rs:143:15 [INFO] [stdout] | [INFO] [stdout] 3 | let version = run_fun!("rustc --version")?; [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:143:15 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let version = run_fun!("rustc --version")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | info!("Your rust version is {}", version); [INFO] [stdout] 5 | | [INFO] [stdout] ... | [INFO] [stdout] 11 | | let files = run_fun!(du -ah . | sort -hr | head -n 10)?; [INFO] [stdout] 12 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let version = run_fun!("rustc --version")?; [INFO] [stdout] 4 | | info!("Your rust version is {}", version); [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // with pipes [INFO] [stdout] 7 | | let n = run_fun!("echo the quick brown fox jumped over the lazy dog | wc -w")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 11 | | let files = run_fun!(du -ah . | sort -hr | head -n 10)?; [INFO] [stdout] 12 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let version = run_fun!("rustc --version")?; [INFO] [stdout] 4 | | info!("Your rust version is {}", version); [INFO] [stdout] 5 | | [INFO] [stdout] ... | [INFO] [stdout] 11 | | let files = run_fun!(du -ah . | sort -hr | head -n 10)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - run_cmd (line 165) stdout ---- [INFO] [stdout] error: cannot find macro `run_cmd` in this scope [INFO] [stdout] --> src/lib.rs:177:1 [INFO] [stdout] | [INFO] [stdout] 14 | run_cmd!{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `run_cmd` in this scope [INFO] [stdout] --> src/lib.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 10 | run_cmd!(du -ah . | sort -hr | head -n 10); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `run_cmd` in this scope [INFO] [stdout] --> src/lib.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 7 | run_cmd!("du -ah . | sort -hr | head -n 10"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `run_cmd` in this scope [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 4 | run_cmd!("echo hello, {}", name); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Process (line 216) [INFO] [stdout] src/lib.rs - die (line 43) [INFO] [stdout] src/lib.rs - err (line 32) [INFO] [stdout] src/lib.rs - info (line 10) [INFO] [stdout] src/lib.rs - output (line 56) [INFO] [stdout] src/lib.rs - run_cmd (line 165) [INFO] [stdout] src/lib.rs - run_fun (line 142) [INFO] [stdout] src/lib.rs - warn (line 21) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "f1d553aa63148b53994c4c342c3ad3b7c28d323e06a45abb43e6da232e550e02"` [INFO] running `"docker" "rm" "-f" "f1d553aa63148b53994c4c342c3ad3b7c28d323e06a45abb43e6da232e550e02"` [INFO] [stdout] f1d553aa63148b53994c4c342c3ad3b7c28d323e06a45abb43e6da232e550e02