[INFO] updating cached repository https://github.com/huangqian/rust-in-action [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/big/crater/work/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] f0233f0ce6a5479c8760f7df5e88f818c19d400f [INFO] testing huangqian/rust-in-action against beta-2019-09-28 for beta-1.39-1 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuangqian%2Frust-in-action" "work/builds/worker-2/source"` [INFO] [stderr] Cloning into 'work/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/huangqian/rust-in-action on toolchain beta-2019-09-28 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/huangqian/rust-in-action [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/huangqian/rust-in-action [INFO] tweaked toml for git repo https://github.com/huangqian/rust-in-action written to work/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/huangqian/rust-in-action already has a lockfile, it will not be regenerated [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2019-09-28" "build" "--frozen"` [INFO] [stdout] 5564f1e2c6efc9dda2cba04b2b3e9f5800234dc2686939e2e4e47658fc60673e [INFO] running `"docker" "start" "-a" "5564f1e2c6efc9dda2cba04b2b3e9f5800234dc2686939e2e4e47658fc60673e"` [INFO] [stderr] Compiling uuid v0.7.2 [INFO] [stderr] Compiling mysql v15.1.0 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling memchr v2.1.0 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling nix v0.12.0 [INFO] [stderr] Compiling bytes v0.4.10 [INFO] [stderr] Compiling atoi v0.3.1 [INFO] [stderr] Compiling miniz-sys v0.1.11 [INFO] [stderr] Compiling block-buffer v0.7.0 [INFO] [stderr] Compiling num-bigint v0.2.1 [INFO] [stderr] Compiling flate2 v1.0.4 [INFO] [stderr] Compiling sha2 v0.8.0 [INFO] [stderr] Compiling mio v0.6.16 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling combine v3.5.2 [INFO] [stderr] Compiling tokio-io v0.1.10 [INFO] [stderr] Compiling regex v1.0.6 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling twox-hash v1.1.1 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling tokio-reactor v0.1.6 [INFO] [stderr] Compiling mysql_common v0.15.0 [INFO] [stderr] Compiling tokio-tcp v0.1.2 [INFO] [stderr] Compiling redis v0.10.0 [INFO] [stderr] Compiling rust-in-action v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused variable: `user1` [INFO] [stderr] --> src/main.rs:63:9 [INFO] [stderr] | [INFO] [stderr] 63 | let user1 = User{ [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_user1` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `User` [INFO] [stderr] --> src/main.rs:55:1 [INFO] [stderr] | [INFO] [stderr] 55 | struct User{ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `struct_example` [INFO] [stderr] --> src/main.rs:62:1 [INFO] [stderr] | [INFO] [stderr] 62 | fn struct_example(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 22.69s [INFO] running `"docker" "inspect" "5564f1e2c6efc9dda2cba04b2b3e9f5800234dc2686939e2e4e47658fc60673e"` [INFO] running `"docker" "rm" "-f" "5564f1e2c6efc9dda2cba04b2b3e9f5800234dc2686939e2e4e47658fc60673e"` [INFO] [stdout] 5564f1e2c6efc9dda2cba04b2b3e9f5800234dc2686939e2e4e47658fc60673e [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2019-09-28" "test" "--frozen" "--no-run"` [INFO] [stdout] 95a348f4e3b879be26e03442a932bdc7c2c838fda98c5d6e9d8c4a0815cf5af2 [INFO] running `"docker" "start" "-a" "95a348f4e3b879be26e03442a932bdc7c2c838fda98c5d6e9d8c4a0815cf5af2"` [INFO] [stderr] Compiling rust-in-action v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0601]: `main` function not found in crate `borrow` [INFO] [stderr] --> examples/borrow.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | / #[cfg(test)] [INFO] [stderr] 16 | | mod borrow_reference_pointer_test { [INFO] [stderr] 17 | | [INFO] [stderr] 18 | | [INFO] [stderr] ... | [INFO] [stderr] 41 | | [INFO] [stderr] 42 | | } [INFO] [stderr] | |_^ consider adding a `main` function to `examples/borrow.rs` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0601`. [INFO] [stderr] error: could not compile `rust-in-action`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: function is never used: `while_case` [INFO] [stderr] --> examples/loop.rs:11:1 [INFO] [stderr] | [INFO] [stderr] 11 | fn while_case(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `while_demo_2` [INFO] [stderr] --> examples/loop.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | fn while_demo_2(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user1` [INFO] [stderr] --> src/main.rs:63:9 [INFO] [stderr] | [INFO] [stderr] 63 | let user1 = User{ [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_user1` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `User` [INFO] [stderr] --> src/main.rs:55:1 [INFO] [stderr] | [INFO] [stderr] 55 | struct User{ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `struct_example` [INFO] [stderr] --> src/main.rs:62:1 [INFO] [stderr] | [INFO] [stderr] 62 | fn struct_example(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `IpAddrKind` [INFO] [stderr] --> examples/enums.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | enum IpAddrKind{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `black` [INFO] [stderr] --> examples/structs.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | let black = Color(0, 0, 0); [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_black` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `origin` [INFO] [stderr] --> examples/structs.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | let origin = Point(0, 0, 0); [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_origin` [INFO] [stderr] [INFO] [stderr] warning: method is never used: `can_hold` [INFO] [stderr] --> examples/structs.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | fn can_hold(&self, other: &Rectangle) -> bool{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> examples/mysql.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `OptsBuilder`, `Opts`, `Pool`, `Value`, `from_value` [INFO] [stderr] --> examples/mysql.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | use mysql::{from_value, Opts, OptsBuilder, Pool, Value}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^ ^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0601]: `main` function not found in crate `mysql` [INFO] [stderr] --> examples/mysql.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / extern crate core; [INFO] [stderr] 2 | | #[macro_use] [INFO] [stderr] 3 | | extern crate mysql; [INFO] [stderr] 4 | | [INFO] [stderr] ... | [INFO] [stderr] 87 | | } [INFO] [stderr] 88 | | } [INFO] [stderr] | |_^ consider adding a `main` function to `examples/mysql.rs` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0601`. [INFO] [stderr] error: could not compile `rust-in-action`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "95a348f4e3b879be26e03442a932bdc7c2c838fda98c5d6e9d8c4a0815cf5af2"` [INFO] running `"docker" "rm" "-f" "95a348f4e3b879be26e03442a932bdc7c2c838fda98c5d6e9d8c4a0815cf5af2"` [INFO] [stdout] 95a348f4e3b879be26e03442a932bdc7c2c838fda98c5d6e9d8c4a0815cf5af2