[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#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhongChan%2Fhead_first_rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-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-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ZhongChan/head_first_rust on toolchain d98a5da813da67eb189387b8ccfb73cf481275d8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 760b5dd5d6d633bf02d0f7a58773680aed57e7c167561daabe2b933e1542e55d
[INFO] running `Command { std: "docker" "start" "-a" "760b5dd5d6d633bf02d0f7a58773680aed57e7c167561daabe2b933e1542e55d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "760b5dd5d6d633bf02d0f7a58773680aed57e7c167561daabe2b933e1542e55d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "760b5dd5d6d633bf02d0f7a58773680aed57e7c167561daabe2b933e1542e55d", kill_on_drop: false }`
[INFO] [stdout] 760b5dd5d6d633bf02d0f7a58773680aed57e7c167561daabe2b933e1542e55d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e3686baff171c3d00cf967efc07f5d0eb77bc1c951d0b34d9cabcf71f3010745
[INFO] running `Command { std: "docker" "start" "-a" "e3686baff171c3d00cf967efc07f5d0eb77bc1c951d0b34d9cabcf71f3010745", kill_on_drop: false }`
[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 12.28s
[INFO] running `Command { std: "docker" "inspect" "e3686baff171c3d00cf967efc07f5d0eb77bc1c951d0b34d9cabcf71f3010745", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e3686baff171c3d00cf967efc07f5d0eb77bc1c951d0b34d9cabcf71f3010745", kill_on_drop: false }`
[INFO] [stdout] e3686baff171c3d00cf967efc07f5d0eb77bc1c951d0b34d9cabcf71f3010745
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5cb08187be5a402f620a34fac9edb48ed68a34c6944315c620dcd6714101f4e6
[INFO] running `Command { std: "docker" "start" "-a" "5cb08187be5a402f620a34fac9edb48ed68a34c6944315c620dcd6714101f4e6", 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 2.41s
[INFO] running `Command { std: "docker" "inspect" "5cb08187be5a402f620a34fac9edb48ed68a34c6944315c620dcd6714101f4e6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5cb08187be5a402f620a34fac9edb48ed68a34c6944315c620dcd6714101f4e6", kill_on_drop: false }`
[INFO] [stdout] 5cb08187be5a402f620a34fac9edb48ed68a34c6944315c620dcd6714101f4e6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 6ea018cfa394aa8f4f799c768cd006fd718fc34a1ca899f60af113d6fd015822
[INFO] running `Command { std: "docker" "start" "-a" "6ea018cfa394aa8f4f799c768cd006fd718fc34a1ca899f60af113d6fd015822", 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.07s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/head_first_rust-6dcca6478b66bf16)
[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-dac00ae9436974b2)
[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/10_0_lifetime.rs (/opt/rustwide/target/debug/deps/ch2_10_0-04ff142752f48e3c)
[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-ef85f04d4eac664f)
[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_1_number.rs (/opt/rustwide/target/debug/deps/ch2_2_1-d7165347a6f8e7b2)
[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-75a0d953bbca8d32)
[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-3b395a0f11bbe796)
[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_4_function.rs (/opt/rustwide/target/debug/deps/ch2_2_4-7c7e6751f8f655c7)
[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-e334088d000ef719)
[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-09803325edc872f2)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stderr]      Running unittests src/bin/4_1_string_slice.rs (/opt/rustwide/target/debug/deps/ch2_4_1-21e4ca99e00136ad)
[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_2_tuple.rs (/opt/rustwide/target/debug/deps/ch2_4_2-81e82ed3284f9878)
[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_3_struct.rs (/opt/rustwide/target/debug/deps/ch2_4_3-1ae13f95705fd0ba)
[INFO] [stderr]      Running unittests src/bin/4_4_enum.rs (/opt/rustwide/target/debug/deps/ch2_4_4-ff309c45e459017b)
[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/4_5_array.rs (/opt/rustwide/target/debug/deps/ch2_4_5-e9bcdcf1cc958659)
[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-317d8229951f4cfd)
[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-2b53609da286edd9)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stderr]      Running unittests src/bin/6_1_match_if_let.rs (/opt/rustwide/target/debug/deps/ch2_6_1-2df6a11124854b73)
[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-4d0e57ba2b4c1d0e)
[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/7_0_method.rs (/opt/rustwide/target/debug/deps/ch2_7_0-6fe9f36737fd235e)
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/bin/8_1_generics.rs (/opt/rustwide/target/debug/deps/ch2_8_1-37b79e7792a0cb90)
[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-0a17312c8cd19dc3)
[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] [stderr]      Running unittests src/bin/8_3_trait_obj.rs (/opt/rustwide/target/debug/deps/ch2_8_3-19053198e92b1208)
[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/8_4_trait_enhance.rs (/opt/rustwide/target/debug/deps/ch2_8_4-26751cc75543e07f)
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/bin/9_1_collection_vec.rs (/opt/rustwide/target/debug/deps/ch2_9_1-b1c941db7f890433)
[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] [stderr]      Running unittests src/bin/9_2_collection_hashmap.rs (/opt/rustwide/target/debug/deps/ch2_9_2-ea6265f31d7cb201)
[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]    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 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_2_trait.rs - ch2::trait_mod::new_type (line 268) ... FAILED
[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/8_2_trait.rs - ch2::trait_mod::notify (line 115) ... FAILED
[INFO] [stdout] test src/ch2/6_1_match_if_let.rs - ch2::match_if_let::matches_macro (line 219) ... ok
[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/8_1_generics.rs - ch2::generics::enum_generics (line 97) ... ok
[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::func_args (line 91) ... ok
[INFO] [stdout] test src/ch2/6_3_match_scene.rs - ch2::match_scene::basic (line 29) ... FAILED
[INFO] [stdout] test src/ch2/2_2_char_bool_unit.rs - ch2::char_bool_unit::unit_type (line 54) ... 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 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/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/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] ---- 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 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] 
[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.53s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "6ea018cfa394aa8f4f799c768cd006fd718fc34a1ca899f60af113d6fd015822", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6ea018cfa394aa8f4f799c768cd006fd718fc34a1ca899f60af113d6fd015822", kill_on_drop: false }`
[INFO] [stdout] 6ea018cfa394aa8f4f799c768cd006fd718fc34a1ca899f60af113d6fd015822
