[INFO] cloning repository https://github.com/ZhongChan/head_first_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZhongChan/head_first_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhongChan%2Fhead_first_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhongChan%2Fhead_first_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a6a55e1289bc369e951b18969628a1dbe52adcb7
[INFO] testing ZhongChan/head_first_rust against master#1ef7943ee607160a564655b6596f83670ef95df5 for pr-146098-6
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhongChan%2Fhead_first_rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ZhongChan/head_first_rust
[INFO] finished tweaking git repo https://github.com/ZhongChan/head_first_rust
[INFO] tweaked toml for git repo https://github.com/ZhongChan/head_first_rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ZhongChan/head_first_rust on toolchain 1ef7943ee607160a564655b6596f83670ef95df5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ZhongChan/head_first_rust 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" "+1ef7943ee607160a564655b6596f83670ef95df5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded num v0.4.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f70abbcbfef5d2370fb4674dfa7d8e1e0b384ad4b6a491de10f6c4918ab345d4
[INFO] running `Command { std: "docker" "start" "-a" "f70abbcbfef5d2370fb4674dfa7d8e1e0b384ad4b6a491de10f6c4918ab345d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f70abbcbfef5d2370fb4674dfa7d8e1e0b384ad4b6a491de10f6c4918ab345d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f70abbcbfef5d2370fb4674dfa7d8e1e0b384ad4b6a491de10f6c4918ab345d4", kill_on_drop: false }`
[INFO] [stdout] f70abbcbfef5d2370fb4674dfa7d8e1e0b384ad4b6a491de10f6c4918ab345d4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d2500a7f764cded4e74ab8d29bc7d5fe4c2d09a0211f92217ba9ea0eb5ffffb2
[INFO] running `Command { std: "docker" "start" "-a" "d2500a7f764cded4e74ab8d29bc7d5fe4c2d09a0211f92217ba9ea0eb5ffffb2", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling num-complex v0.4.6
[INFO] [stderr]    Compiling num-bigint v0.4.5
[INFO] [stderr]    Compiling num-iter v0.1.45
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling num v0.4.3
[INFO] [stderr]    Compiling head_first_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]    --> src/ch2/8_2_trait.rs:241:7
[INFO] [stdout]     |
[INFO] [stdout] 241 | #[cfg(feature = "example")]
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]   --> src/ch2/8_3_trait_obj.rs:20:7
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[cfg(feature = "example")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `multi_borrow`
[INFO] [stdout]   --> src/ch2/9_1_collection_vec.rs:53:7
[INFO] [stdout]    |
[INFO] [stdout] 53 | #[cfg(feature = "multi_borrow")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `multi_borrow` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.31s
[INFO] running `Command { std: "docker" "inspect" "d2500a7f764cded4e74ab8d29bc7d5fe4c2d09a0211f92217ba9ea0eb5ffffb2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d2500a7f764cded4e74ab8d29bc7d5fe4c2d09a0211f92217ba9ea0eb5ffffb2", kill_on_drop: false }`
[INFO] [stdout] d2500a7f764cded4e74ab8d29bc7d5fe4c2d09a0211f92217ba9ea0eb5ffffb2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8c5daf17a509357533f0a99830e008def23cc26927fd6cf68526e57c50eb5407
[INFO] running `Command { std: "docker" "start" "-a" "8c5daf17a509357533f0a99830e008def23cc26927fd6cf68526e57c50eb5407", kill_on_drop: false }`
[INFO] [stderr]    Compiling head_first_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]    --> src/ch2/8_2_trait.rs:241:7
[INFO] [stdout]     |
[INFO] [stdout] 241 | #[cfg(feature = "example")]
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]   --> src/ch2/8_3_trait_obj.rs:20:7
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[cfg(feature = "example")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `multi_borrow`
[INFO] [stdout]   --> src/ch2/9_1_collection_vec.rs:53:7
[INFO] [stdout]    |
[INFO] [stdout] 53 | #[cfg(feature = "multi_borrow")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `multi_borrow` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]    --> src/ch2/8_2_trait.rs:241:7
[INFO] [stdout]     |
[INFO] [stdout] 241 | #[cfg(feature = "example")]
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]   --> src/ch2/8_3_trait_obj.rs:20:7
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[cfg(feature = "example")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `multi_borrow`
[INFO] [stdout]   --> src/ch2/9_1_collection_vec.rs:53:7
[INFO] [stdout]    |
[INFO] [stdout] 53 | #[cfg(feature = "multi_borrow")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `multi_borrow` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.11s
[INFO] running `Command { std: "docker" "inspect" "8c5daf17a509357533f0a99830e008def23cc26927fd6cf68526e57c50eb5407", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8c5daf17a509357533f0a99830e008def23cc26927fd6cf68526e57c50eb5407", kill_on_drop: false }`
[INFO] [stdout] 8c5daf17a509357533f0a99830e008def23cc26927fd6cf68526e57c50eb5407
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] ab90b8f67cd84904c45b3e79612cb9968db1ed092ed803a236fd9be9031a4826
[INFO] running `Command { std: "docker" "start" "-a" "ab90b8f67cd84904c45b3e79612cb9968db1ed092ed803a236fd9be9031a4826", kill_on_drop: false }`
[INFO] [stderr] warning: unexpected `cfg` condition value: `example`
[INFO] [stderr]    --> src/ch2/8_2_trait.rs:241:7
[INFO] [stderr]     |
[INFO] [stderr] 241 | #[cfg(feature = "example")]
[INFO] [stderr]     |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]     |
[INFO] [stderr]     = note: no expected values for `feature`
[INFO] [stderr]     = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stderr]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `example`
[INFO] [stderr]   --> src/ch2/8_3_trait_obj.rs:20:7
[INFO] [stderr]    |
[INFO] [stderr] 20 | #[cfg(feature = "example")]
[INFO] [stderr]    |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `multi_borrow`
[INFO] [stderr]   --> src/ch2/9_1_collection_vec.rs:53:7
[INFO] [stderr]    |
[INFO] [stderr] 53 | #[cfg(feature = "multi_borrow")]
[INFO] [stderr]    |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `multi_borrow` as a feature in `Cargo.toml`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: `head_first_rust` (lib) generated 3 warnings
[INFO] [stderr] warning: `head_first_rust` (lib test) generated 3 warnings (3 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/head_first_rust-302bb89d430d4d4e)
[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/bin/1_0_variable.rs (/opt/rustwide/target/debug/deps/ch2_1-0c3424f68ef78bb9)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stderr]      Running unittests src/bin/10_0_lifetime.rs (/opt/rustwide/target/debug/deps/ch2_10_0-cc05fc2a9f302e3f)
[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 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/bin/2_0_basic_type.rs (/opt/rustwide/target/debug/deps/ch2_2-1456cf2e3a262ab2)
[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] [stderr]      Running unittests src/bin/2_1_number.rs (/opt/rustwide/target/debug/deps/ch2_2_1-970c00c18980d8b6)
[INFO] [stdout] 
[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/bin/2_2_char_bool_unit.rs (/opt/rustwide/target/debug/deps/ch2_2_2-64a12282fda291c2)
[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/bin/2_3_expression.rs (/opt/rustwide/target/debug/deps/ch2_2_3-138bb9aa6b735d0f)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stderr]      Running unittests src/bin/2_4_function.rs (/opt/rustwide/target/debug/deps/ch2_2_4-836b7bf5a09b567f)
[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 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/bin/3_1_ownership.rs (/opt/rustwide/target/debug/deps/ch2_3_1-66a1af324ff74a2a)
[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/bin/3_2_ref_or_borrow.rs (/opt/rustwide/target/debug/deps/ch2_3_2-4cbffe9def563e36)
[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/bin/4_1_string_slice.rs (/opt/rustwide/target/debug/deps/ch2_4_1-681b2c6f8aa861a5)
[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/bin/4_2_tuple.rs (/opt/rustwide/target/debug/deps/ch2_4_2-de28bb299ed9918d)
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/bin/4_3_struct.rs (/opt/rustwide/target/debug/deps/ch2_4_3-5ea4e078e0c25d60)
[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 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/bin/4_4_enum.rs (/opt/rustwide/target/debug/deps/ch2_4_4-0592350615a91c8f)
[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/bin/4_5_array.rs (/opt/rustwide/target/debug/deps/ch2_4_5-dab96e97c42d2cd8)
[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/bin/4_5_array_input.rs (/opt/rustwide/target/debug/deps/ch2_4_5_2-6e808a8f99ac2225)
[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/bin/5_0_flow_ctl.rs (/opt/rustwide/target/debug/deps/ch2_5_0-8f7a1a99590da898)
[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/bin/6_1_match_if_let.rs (/opt/rustwide/target/debug/deps/ch2_6_1-300cecb87451bdf0)
[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/bin/6_3_match_scene.rs (/opt/rustwide/target/debug/deps/ch2_6_3-ffcf20dc1ad660e9)
[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/bin/7_0_method.rs (/opt/rustwide/target/debug/deps/ch2_7_0-b008c05134cb6bda)
[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/bin/8_1_generics.rs (/opt/rustwide/target/debug/deps/ch2_8_1-52cd2ce9fdb4cc6f)
[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/bin/8_2_trait.rs (/opt/rustwide/target/debug/deps/ch2_8_2-26e2bd8640c1b692)
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/bin/8_3_trait_obj.rs (/opt/rustwide/target/debug/deps/ch2_8_3-8136ea1008f62e53)
[INFO] [stdout] running 0 tests
[INFO] [stderr]      Running unittests src/bin/8_4_trait_enhance.rs (/opt/rustwide/target/debug/deps/ch2_8_4-03affc76e321e305)
[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 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/bin/9_1_collection_vec.rs (/opt/rustwide/target/debug/deps/ch2_9_1-1dd539e78344567f)
[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 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/bin/9_2_collection_hashmap.rs (/opt/rustwide/target/debug/deps/ch2_9_2-5751000cbda23c5f)
[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 head_first_rust
[INFO] [stdout] 
[INFO] [stdout] running 14 tests
[INFO] [stdout] test src/ch2/3_2_ref_or_borrow.rs - ch2::ref_or_borrow::dangle_ref (line 106) ... FAILED
[INFO] [stdout] test src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 29) ... FAILED
[INFO] [stdout] test src/ch2/6_1_match_if_let.rs - ch2::match_if_let::match_demo (line 50) ... FAILED
[INFO] [stdout] test src/ch2/4_4_enum.rs - ch2::enumeration::enum_option (line 108) ... ok
[INFO] [stdout] test src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 37) ... FAILED
[INFO] [stdout] test src/ch2/3_2_ref_or_borrow.rs - ch2::ref_or_borrow::nll (line 72) ... FAILED
[INFO] [stdout] test src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 46) ... FAILED
[INFO] [stdout] test src/ch2/8_3_trait_obj.rs - ch2::trait_obj::trait_obj_def (line 145) ... FAILED
[INFO] [stdout] test src/ch2/8_1_generics.rs - ch2::generics::enum_generics (line 97) ... ok
[INFO] [stdout] test src/ch2/8_2_trait.rs - ch2::trait_mod::new_type (line 268) ... FAILED
[INFO] [stdout] test src/ch2/6_3_match_scene.rs - ch2::match_scene::func_args (line 91) ... ok
[INFO] [stdout] test src/ch2/8_2_trait.rs - ch2::trait_mod::notify (line 115) ... FAILED
[INFO] [stdout] test src/ch2/2_2_char_bool_unit.rs - ch2::char_bool_unit::unit_type (line 54) ... ok
[INFO] [stdout] test src/ch2/6_1_match_if_let.rs - ch2::match_if_let::matches_macro (line 219) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/ch2/3_2_ref_or_borrow.rs - ch2::ref_or_borrow::dangle_ref (line 106) stdout ----
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]  --> src/ch2/3_2_ref_or_borrow.rs:107:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn dangle() -> &String { //返回字符串的引用
[INFO] [stdout]   |                ^ expected named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout]   = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
[INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn dangle() -> &'static String { //返回字符串的引用
[INFO] [stdout]   |                 +++++++
[INFO] [stdout] help: instead, you are more likely to want to return an owned value
[INFO] [stdout]   |
[INFO] [stdout] 3 - fn dangle() -> &String { //返回字符串的引用
[INFO] [stdout] 3 + fn dangle() -> String { //返回字符串的引用
[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 E0106`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 29) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `VALUE` in this scope
[INFO] [stdout]  --> src/ch2/6_3_match_scene.rs:30:7
[INFO] [stdout]   |
[INFO] [stdout] 3 | match VALUE {
[INFO] [stdout]   |       ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EXPRESSION` in this scope
[INFO] [stdout]  --> src/ch2/6_3_match_scene.rs:31:17
[INFO] [stdout]   |
[INFO] [stdout] 4 |      PATTERN => EXPRESSION,
[INFO] [stdout]   |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EXPRESSION` in this scope
[INFO] [stdout]  --> src/ch2/6_3_match_scene.rs:32:17
[INFO] [stdout]   |
[INFO] [stdout] 5 |      PATTERN => EXPRESSION,
[INFO] [stdout]   |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EXPRESSION` in this scope
[INFO] [stdout]  --> src/ch2/6_3_match_scene.rs:33:17
[INFO] [stdout]   |
[INFO] [stdout] 6 |      PATTERN => EXPRESSION,
[INFO] [stdout]   |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/ch2/6_1_match_if_let.rs - ch2::match_if_let::match_demo (line 50) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `target` in this scope
[INFO] [stdout]  --> src/ch2/6_1_match_if_let.rs:51:7
[INFO] [stdout]   |
[INFO] [stdout] 3 | match target {
[INFO] [stdout]   |       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `表达式1` in this scope
[INFO] [stdout]  --> src/ch2/6_1_match_if_let.rs:52:12
[INFO] [stdout]   |
[INFO] [stdout] 4 |     模式1 => 表达式1,
[INFO] [stdout]   |              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `语句1` in this scope
[INFO] [stdout]  --> src/ch2/6_1_match_if_let.rs:54:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         语句1;
[INFO] [stdout]   |         ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `语句2` in this scope
[INFO] [stdout]  --> src/ch2/6_1_match_if_let.rs:55:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |         语句2;
[INFO] [stdout]   |         ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `表达式2` in this scope
[INFO] [stdout]  --> src/ch2/6_1_match_if_let.rs:56:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |         表达式2
[INFO] [stdout]   |         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `表达式3` in this scope
[INFO] [stdout]   --> src/ch2/6_1_match_if_let.rs:58:10
[INFO] [stdout]    |
[INFO] [stdout] 10 |     _ => 表达式3
[INFO] [stdout]    |          ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 37) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `VALUE` in this scope
[INFO] [stdout]  --> src/ch2/6_3_match_scene.rs:38:7
[INFO] [stdout]   |
[INFO] [stdout] 3 | match VALUE {
[INFO] [stdout]   |       ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EXPRESSION` in this scope
[INFO] [stdout]  --> src/ch2/6_3_match_scene.rs:39:16
[INFO] [stdout]   |
[INFO] [stdout] 4 |     PATTERN => EXPRESSION,
[INFO] [stdout]   |                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EXPRESSION` in this scope
[INFO] [stdout]  --> src/ch2/6_3_match_scene.rs:40:16
[INFO] [stdout]   |
[INFO] [stdout] 5 |     PATTERN => EXPRESSION,
[INFO] [stdout]   |                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EXPRESSION` in this scope
[INFO] [stdout]  --> src/ch2/6_3_match_scene.rs:41:10
[INFO] [stdout]   |
[INFO] [stdout] 6 |     _ => EXPRESSION,
[INFO] [stdout]   |          ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/ch2/3_2_ref_or_borrow.rs - ch2::ref_or_borrow::nll (line 72) stdout ----
[INFO] [stdout] error[E0506]: cannot assign to `x` because it is borrowed
[INFO] [stdout]  --> src/ch2/3_2_ref_or_borrow.rs:76:8
[INFO] [stdout]   |
[INFO] [stdout] 4 |        let y = &x;
[INFO] [stdout]   |                -- `x` is borrowed here
[INFO] [stdout] 5 |        x += 1; // Error in Rust 2015
[INFO] [stdout]   |        ^^^^^^ `x` is assigned to here but it was already borrowed
[INFO] [stdout] 6 |        println!("{}", y);
[INFO] [stdout]   |                       - borrow later used here
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0506`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 46) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `SOME_VALUE` in this scope
[INFO] [stdout]  --> src/ch2/6_3_match_scene.rs:47:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | if let PATTERN = SOME_VALUE {
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/ch2/8_3_trait_obj.rs - ch2::trait_obj::trait_obj_def (line 145) stdout ----
[INFO] [stdout] error[E0405]: cannot find trait `Draw` in this scope
[INFO] [stdout]  --> src/ch2/8_3_trait_obj.rs:146:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn draw3(x: dyn Draw) {
[INFO] [stdout]   |                 ^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this trait
[INFO] [stdout]   |
[INFO] [stdout] 2 + use head_first_rust::ch2::trait_obj::Draw;
[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 E0405`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/ch2/8_2_trait.rs - ch2::trait_mod::new_type (line 268) stdout ----
[INFO] [stdout] error[E0405]: cannot find trait `Display` in this scope
[INFO] [stdout]  --> src/ch2/8_2_trait.rs:270:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | impl<T> Display for Vec<T> {
[INFO] [stdout]   |         ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this trait
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::fmt::Display;
[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 E0405`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/ch2/8_2_trait.rs - ch2::trait_mod::notify (line 115) stdout ----
[INFO] [stdout] error[E0405]: cannot find trait `Summary` in this scope
[INFO] [stdout]  --> src/ch2/8_2_trait.rs:116:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn notify<T: Summary>(item: &T) {
[INFO] [stdout]   |                  ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this trait
[INFO] [stdout]   |
[INFO] [stdout] 2 + use head_first_rust::ch2::trait_mod::Summary;
[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 E0405`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/ch2/3_2_ref_or_borrow.rs - ch2::ref_or_borrow::dangle_ref (line 106)
[INFO] [stdout]     src/ch2/3_2_ref_or_borrow.rs - ch2::ref_or_borrow::nll (line 72)
[INFO] [stdout]     src/ch2/6_1_match_if_let.rs - ch2::match_if_let::match_demo (line 50)
[INFO] [stdout]     src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 29)
[INFO] [stdout]     src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 37)
[INFO] [stdout]     src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 46)
[INFO] [stdout]     src/ch2/8_2_trait.rs - ch2::trait_mod::new_type (line 268)
[INFO] [stdout]     src/ch2/8_2_trait.rs - ch2::trait_mod::notify (line 115)
[INFO] [stdout]     src/ch2/8_3_trait_obj.rs - ch2::trait_obj::trait_obj_def (line 145)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 5 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.33s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "ab90b8f67cd84904c45b3e79612cb9968db1ed092ed803a236fd9be9031a4826", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ab90b8f67cd84904c45b3e79612cb9968db1ed092ed803a236fd9be9031a4826", kill_on_drop: false }`
[INFO] [stdout] ab90b8f67cd84904c45b3e79612cb9968db1ed092ed803a236fd9be9031a4826
