[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#0d162b25edd5bf0dba9a22e83b614f1113e90474 for pr-150681
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhongChan%2Fhead_first_rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-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-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ZhongChan/head_first_rust on toolchain 0d162b25edd5bf0dba9a22e83b614f1113e90474
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "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" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] fd98a5037465f89f9769206720ef1ad5b5f09651e76d38618c555eaeb3fb54ae
[INFO] running `Command { std: "docker" "start" "-a" "fd98a5037465f89f9769206720ef1ad5b5f09651e76d38618c555eaeb3fb54ae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fd98a5037465f89f9769206720ef1ad5b5f09651e76d38618c555eaeb3fb54ae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fd98a5037465f89f9769206720ef1ad5b5f09651e76d38618c555eaeb3fb54ae", kill_on_drop: false }`
[INFO] [stdout] fd98a5037465f89f9769206720ef1ad5b5f09651e76d38618c555eaeb3fb54ae
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7196b49e61b2652d209cd63ee356739712dc18c04975871bd8cede3722409b93
[INFO] running `Command { std: "docker" "start" "-a" "7196b49e61b2652d209cd63ee356739712dc18c04975871bd8cede3722409b93", 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 6.39s
[INFO] running `Command { std: "docker" "inspect" "7196b49e61b2652d209cd63ee356739712dc18c04975871bd8cede3722409b93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7196b49e61b2652d209cd63ee356739712dc18c04975871bd8cede3722409b93", kill_on_drop: false }`
[INFO] [stdout] 7196b49e61b2652d209cd63ee356739712dc18c04975871bd8cede3722409b93
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2e0d8d304536ef7ee34e3328cfe3edf8ef86fd5a66d6295325a1d76d433ebb85
[INFO] running `Command { std: "docker" "start" "-a" "2e0d8d304536ef7ee34e3328cfe3edf8ef86fd5a66d6295325a1d76d433ebb85", 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.70s
[INFO] running `Command { std: "docker" "inspect" "2e0d8d304536ef7ee34e3328cfe3edf8ef86fd5a66d6295325a1d76d433ebb85", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2e0d8d304536ef7ee34e3328cfe3edf8ef86fd5a66d6295325a1d76d433ebb85", kill_on_drop: false }`
[INFO] [stdout] 2e0d8d304536ef7ee34e3328cfe3edf8ef86fd5a66d6295325a1d76d433ebb85
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 9db4e560030b742f80d7b2236cd6acba7858fd3f70e456a4deb79123726046d3
[INFO] running `Command { std: "docker" "start" "-a" "9db4e560030b742f80d7b2236cd6acba7858fd3f70e456a4deb79123726046d3", 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.04s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/head_first_rust-5c292d02134534b2)
[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-bccab738bab53d0b)
[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-ef167111eb727fa8)
[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-eb46eb7f08c491e0)
[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-fb6eeb57b4f43e17)
[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-811bd4e3380699f1)
[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-5bdaf86dc5c0a264)
[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-613583cd47ca72b4)
[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-94bb095e0da1b897)
[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-88157bb5c5514ee4)
[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-737b18a271133bdb)
[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-647a6c71089ab2ca)
[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-d40b362e96614b6b)
[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-91fefdeef9be169d)
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/bin/4_5_array.rs (/opt/rustwide/target/debug/deps/ch2_4_5-fa2e0e0e5eaaa7ca)
[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_input.rs (/opt/rustwide/target/debug/deps/ch2_4_5_2-936bb4e63b871d90)
[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-a538e8c3e43257d3)
[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-bcdad7bca8465586)
[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/6_3_match_scene.rs (/opt/rustwide/target/debug/deps/ch2_6_3-8bcbdbe5443d5cf6)
[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-8717a161ac0723f5)
[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-84f0109b99f0e1c5)
[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-8b3b9452ab885dfd)
[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_3_trait_obj.rs (/opt/rustwide/target/debug/deps/ch2_8_3-2e36a7d9bf4f58b2)
[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/8_4_trait_enhance.rs (/opt/rustwide/target/debug/deps/ch2_8_4-b9dd394960e046fa)
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/bin/9_1_collection_vec.rs (/opt/rustwide/target/debug/deps/ch2_9_1-61fe3d016a8344ad)
[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-f4e92eac45dd2ebf)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests head_first_rust
[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 14 tests
[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_3_trait_obj.rs - ch2::trait_obj::trait_obj_def (line 145) ... 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::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_3_match_scene.rs - ch2::match_scene::basic (line 46) ... FAILED
[INFO] [stdout] test src/ch2/8_1_generics.rs - ch2::generics::enum_generics (line 97) ... 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_1_match_if_let.rs - ch2::match_if_let::match_demo (line 50) ... FAILED
[INFO] [stdout] test src/ch2/8_2_trait.rs - ch2::trait_mod::new_type (line 268) ... 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/8_2_trait.rs - ch2::trait_mod::notify (line 115) ... FAILED
[INFO] [stdout] test src/ch2/4_4_enum.rs - ch2::enumeration::enum_option (line 108) ... ok
[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::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] 75 |        let y = &x;
[INFO] [stdout]    |                -- `x` is borrowed here
[INFO] [stdout] 76 |        x += 1; // Error in Rust 2015
[INFO] [stdout]    |        ^^^^^^ `x` is assigned to here but it was already borrowed
[INFO] [stdout] 77 |        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_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] 146 | 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] 145 + 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/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] 38 | 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] 39 |     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] 40 |     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] 41 |     _ => 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::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] 107 | 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] 107 | 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] 107 - fn dangle() -> &String { //返回字符串的引用
[INFO] [stdout] 107 + 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] 30 | 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] 31 |      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] 32 |      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] 33 |      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_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] 47 | 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/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] 51 | 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] 52 |     模式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] 54 |         语句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] 55 |         语句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] 56 |         表达式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] 58 |     _ => 表达式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/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] 270 | 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] 268 + 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] 116 | 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] 115 + 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.52s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "9db4e560030b742f80d7b2236cd6acba7858fd3f70e456a4deb79123726046d3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9db4e560030b742f80d7b2236cd6acba7858fd3f70e456a4deb79123726046d3", kill_on_drop: false }`
[INFO] [stdout] 9db4e560030b742f80d7b2236cd6acba7858fd3f70e456a4deb79123726046d3
