[INFO] cloning repository https://github.com/Tester-JasonWang/rust_demo
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tester-JasonWang/rust_demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTester-JasonWang%2Frust_demo", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTester-JasonWang%2Frust_demo'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a73073b465107fc28da3ae9c1e9a6407d1378929
[INFO] testing Tester-JasonWang/rust_demo against 1.97.0-beta.6+cargoflags=--release for beta-1.98-release-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTester-JasonWang%2Frust_demo" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Tester-JasonWang/rust_demo
[INFO] finished tweaking git repo https://github.com/Tester-JasonWang/rust_demo
[INFO] tweaked toml for git repo https://github.com/Tester-JasonWang/rust_demo written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Tester-JasonWang/rust_demo on toolchain 1.97.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Tester-JasonWang/rust_demo 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.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded windows_macros v0.9.1
[INFO] [stderr]   Downloaded windows v0.9.1
[INFO] [stderr]   Downloaded quote v1.0.32
[INFO] [stderr]   Downloaded unicode-ident v1.0.8
[INFO] [stderr]   Downloaded autocfg v1.1.0
[INFO] [stderr]   Downloaded ferris-says v0.2.1
[INFO] [stderr]   Downloaded linked-hash-map v0.5.6
[INFO] [stderr]   Downloaded num-rational v0.4.1
[INFO] [stderr]   Downloaded strsim v0.10.0
[INFO] [stderr]   Downloaded num v0.4.0
[INFO] [stderr]   Downloaded hermit-abi v0.1.19
[INFO] [stderr]   Downloaded smawk v0.3.1
[INFO] [stderr]   Downloaded clap_lex v0.2.4
[INFO] [stderr]   Downloaded bitflags v1.3.2
[INFO] [stderr]   Downloaded termcolor v1.2.0
[INFO] [stderr]   Downloaded num-iter v0.1.43
[INFO] [stderr]   Downloaded smallvec v0.4.5
[INFO] [stderr]   Downloaded winapi-util v0.1.5
[INFO] [stderr]   Downloaded atty v0.2.14
[INFO] [stderr]   Downloaded const-sha1 v0.2.0
[INFO] [stderr]   Downloaded serde_yaml v0.8.26
[INFO] [stderr]   Downloaded num-complex v0.4.3
[INFO] [stderr]   Downloaded os_str_bytes v6.5.1
[INFO] [stderr]   Downloaded unicode-width v0.1.10
[INFO] [stderr]   Downloaded yaml-rust v0.4.5
[INFO] [stderr]   Downloaded num-integer v0.1.45
[INFO] [stderr]   Downloaded indexmap v1.9.3
[INFO] [stderr]   Downloaded num-traits v0.2.15
[INFO] [stderr]   Downloaded proc-macro2 v1.0.66
[INFO] [stderr]   Downloaded ryu v1.0.15
[INFO] [stderr]   Downloaded textwrap v0.13.4
[INFO] [stderr]   Downloaded textwrap v0.16.0
[INFO] [stderr]   Downloaded serde v1.0.177
[INFO] [stderr]   Downloaded hashbrown v0.12.3
[INFO] [stderr]   Downloaded num-bigint v0.4.3
[INFO] [stderr]   Downloaded clap v3.2.25
[INFO] [stderr]   Downloaded syn v2.0.27
[INFO] [stderr]   Downloaded serde_derive v1.0.177
[INFO] [stderr]   Downloaded libc v0.2.147
[INFO] [stderr]   Downloaded winapi v0.3.9
[INFO] [stderr]   Downloaded winapi-i686-pc-windows-gnu v0.4.0
[INFO] [stderr]   Downloaded winapi-x86_64-pc-windows-gnu v0.4.0
[INFO] [stderr]   Downloaded windows_gen v0.9.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69
[INFO] running `Command { std: "docker" "start" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.66
[INFO] [stderr]    Compiling unicode-ident v1.0.8
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]    Compiling hashbrown v0.12.3
[INFO] [stderr]    Compiling serde v1.0.177
[INFO] [stderr]    Compiling os_str_bytes v6.5.1
[INFO] [stderr]    Compiling serde_derive v1.0.177
[INFO] [stderr]    Compiling unicode-width v0.1.10
[INFO] [stderr]    Compiling smawk v0.3.1
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling textwrap v0.13.4
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling num-bigint v0.4.3
[INFO] [stderr]    Compiling quote v1.0.32
[INFO] [stderr]    Compiling num-rational v0.4.1
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling yaml-rust v0.4.5
[INFO] [stderr]    Compiling clap_lex v0.2.4
[INFO] [stderr]    Compiling num-complex v0.4.3
[INFO] [stderr]    Compiling const-sha1 v0.2.0
[INFO] [stderr]    Compiling windows_gen v0.9.1
[INFO] [stderr]    Compiling termcolor v1.2.0
[INFO] [stderr]    Compiling ryu v1.0.15
[INFO] [stderr]    Compiling textwrap v0.16.0
[INFO] [stderr]    Compiling strsim v0.10.0
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling smallvec v0.4.5
[INFO] [stderr]    Compiling serde_yaml v0.8.26
[INFO] [stderr]    Compiling num v0.4.0
[INFO] [stderr]    Compiling ferris-says v0.2.1
[INFO] [stderr]    Compiling clap v3.2.25
[INFO] [stderr]    Compiling windows_macros v0.9.1
[INFO] [stderr]    Compiling windows v0.9.1
[INFO] [stderr]    Compiling rust_demo v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: struct `MySpecialFormatter` is never constructed
[INFO] [stdout]   --> src/lib.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 | struct MySpecialFormatter;
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_four` is never used
[INFO] [stdout]   --> src/lib.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub fn add_four(x: i32) -> Option<i32> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `div` is never used
[INFO] [stdout]   --> src/demo.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub fn div(a: i32, b: i32) -> i32 {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `try_div` is never used
[INFO] [stdout]   --> src/demo.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn try_div(a: i32, b: i32) -> Result<i32, String> {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 1m 22s
[INFO] running `Command { std: "docker" "inspect" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust_demo v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: struct `MySpecialFormatter` is never constructed
[INFO] [stdout]   --> src/lib.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 | struct MySpecialFormatter;
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_four` is never used
[INFO] [stdout]   --> src/lib.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub fn add_four(x: i32) -> Option<i32> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MySpecialFormatter` is never constructed
[INFO] [stdout]   --> src/lib.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 | struct MySpecialFormatter;
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_four` is never used
[INFO] [stdout]   --> src/lib.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub fn add_four(x: i32) -> Option<i32> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `div` is never used
[INFO] [stdout]   --> src/demo.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub fn div(a: i32, b: i32) -> i32 {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `try_div` is never used
[INFO] [stdout]   --> src/demo.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn try_div(a: i32, b: i32) -> Result<i32, String> {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.42s
[INFO] running `Command { std: "docker" "inspect" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--release", kill_on_drop: false }`
[INFO] [stderr] warning: struct `MySpecialFormatter` is never constructed
[INFO] [stderr]   --> src/lib.rs:48:8
[INFO] [stderr]    |
[INFO] [stderr] 48 | struct MySpecialFormatter;
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `add_four` is never used
[INFO] [stderr]   --> src/lib.rs:43:12
[INFO] [stderr]    |
[INFO] [stderr] 43 |     pub fn add_four(x: i32) -> Option<i32> {
[INFO] [stderr]    |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `rust_demo` (lib) generated 2 warnings
[INFO] [stderr] warning: `rust_demo` (lib test) generated 2 warnings (2 duplicates)
[INFO] [stderr] warning: function `div` is never used
[INFO] [stderr]   --> src/demo.rs:13:8
[INFO] [stderr]    |
[INFO] [stderr] 13 | pub fn div(a: i32, b: i32) -> i32 {
[INFO] [stderr]    |        ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `try_div` is never used
[INFO] [stderr]   --> src/demo.rs:31:8
[INFO] [stderr]    |
[INFO] [stderr] 31 | pub fn try_div(a: i32, b: i32) -> Result<i32, String> {
[INFO] [stderr]    |        ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `rust_demo` (bin "rust_demo" test) generated 2 warnings
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.09s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/release/deps/rust_demo-7f07a936ac467b8c)
[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]      Running unittests src/main.rs (/opt/rustwide/target/release/deps/rust_demo-0086fd2d7c4fe000)
[INFO] [stderr]    Doc-tests rust_demo
[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] [stdout] 
[INFO] [stdout] running 4 tests
[INFO] [stdout] test src/demo.rs - demo::div (line 9) ... FAILED
[INFO] [stdout] test src/demo.rs - demo::try_div (line 21) ... FAILED
[INFO] [stdout] test src/lib.rs - add_two (line 24) ... ok
[INFO] [stdout] test src/lib.rs - add_one (line 11) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/demo.rs - demo::div (line 9) stdout ----
[INFO] [stdout] error[E0433]: cannot find `compute` in `rust_demo`
[INFO] [stdout]   --> src/demo.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | rust_demo::compute::div(10, 0);
[INFO] [stdout]    |            ^^^^^^^ could not find `compute` in `rust_demo`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/demo.rs - demo::try_div (line 21) stdout ----
[INFO] [stdout] error[E0433]: cannot find `compute` in `rust_demo`
[INFO] [stdout]   --> src/demo.rs:24:22
[INFO] [stdout]    |
[INFO] [stdout] 24 | let res = rust_demo::compute::try_div(10, 0)?;
[INFO] [stdout]    |                      ^^^^^^^ could not find `compute` in `rust_demo`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/demo.rs - demo::div (line 9)
[INFO] [stdout]     src/demo.rs - demo::try_div (line 21)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 2 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69", kill_on_drop: false }`
[INFO] [stdout] dd4d9ea8fec7114b7e9f2e8c467aab2cf9e238c3f96dd7f4023c1a4b3de6bc69
