[INFO] cloning repository https://github.com/steshaw/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/steshaw/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteshaw%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteshaw%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 06b46229ca0dd5b5fb874746d6ace8665151b11f [INFO] checking steshaw/rustlings against master#5e3f1b148db5bfa27fee52464ae1f5d34c49d77b for pr-75502 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteshaw%2Frustlings" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/steshaw/rustlings on toolchain 5e3f1b148db5bfa27fee52464ae1f5d34c49d77b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/steshaw/rustlings [INFO] finished tweaking git repo https://github.com/steshaw/rustlings [INFO] tweaked toml for git repo https://github.com/steshaw/rustlings written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/steshaw/rustlings already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:e18d859f9e32a1da89bc7b2d7d51e13b57342044d1295d9fc0dd0068c58eb3d1" "/opt/rustwide/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de3cbd6dfefe277b33666a2ccd12593a87bf76f309d5d6cf6c13ee0672896670 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "de3cbd6dfefe277b33666a2ccd12593a87bf76f309d5d6cf6c13ee0672896670", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de3cbd6dfefe277b33666a2ccd12593a87bf76f309d5d6cf6c13ee0672896670", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de3cbd6dfefe277b33666a2ccd12593a87bf76f309d5d6cf6c13ee0672896670", kill_on_drop: false }` [INFO] [stdout] de3cbd6dfefe277b33666a2ccd12593a87bf76f309d5d6cf6c13ee0672896670 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:e18d859f9e32a1da89bc7b2d7d51e13b57342044d1295d9fc0dd0068c58eb3d1" "/opt/rustwide/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8554804c5f27c8de3cf91498849379b57cc630ca4e3b02f2908d5763b60c65c6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8554804c5f27c8de3cf91498849379b57cc630ca4e3b02f2908d5763b60c65c6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Compiling syn v0.15.34 [INFO] [stderr] Compiling regex v1.1.6 [INFO] [stderr] Compiling serde v1.0.92 [INFO] [stderr] Compiling ryu v0.2.8 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Compiling escargot v0.4.0 [INFO] [stderr] Checking predicates-core v1.0.0 [INFO] [stderr] Checking normalize-line-endings v0.2.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking treeline v0.1.0 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking lock_api v0.2.0 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking regex-syntax v0.6.6 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking predicates-tree v1.0.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking aho-corasick v0.7.3 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking termios v0.3.1 [INFO] [stderr] Checking clicolors-control v1.0.0 [INFO] [stderr] Checking inotify-sys v0.1.3 [INFO] [stderr] Checking filetime v0.2.5 [INFO] [stderr] Checking clicolors-control v0.2.0 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking inotify v0.6.1 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking float-cmp v0.4.0 [INFO] [stderr] Checking mio-extras v2.0.5 [INFO] [stderr] Checking notify v4.0.12 [INFO] [stderr] Checking console v0.7.5 [INFO] [stderr] Checking predicates v1.0.1 [INFO] [stderr] Checking console v0.6.2 [INFO] [stderr] Checking indicatif v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.92 [INFO] [stderr] Checking serde_json v1.0.39 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking rustlings v2.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking assert_cmd v0.11.1 [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> examples/test1.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | let price_per_item = if (quantity > 40) { 1 } else { 2 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `test1` [INFO] [stdout] --> examples/test1.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / fn calculate_apple_price(quantity: i32) -> i32 { [INFO] [stdout] 12 | | let price_per_item = if (quantity > 40) { 1 } else { 2 }; [INFO] [stdout] 13 | | price_per_item * quantity [INFO] [stdout] 14 | | } [INFO] [stdout] ... | [INFO] [stdout] 27 | | assert_eq!(65, price2); [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `examples/test1.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustlings`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0601]: `main` function not found in crate `test3` [INFO] [stdout] --> examples/test3.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub fn times_two(num: i32) -> i32 { [INFO] [stdout] 11 | | num * 2 [INFO] [stdout] 12 | | } [INFO] [stdout] 13 | | [INFO] [stdout] ... | [INFO] [stdout] 26 | | } [INFO] [stdout] 27 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `examples/test3.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8554804c5f27c8de3cf91498849379b57cc630ca4e3b02f2908d5763b60c65c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8554804c5f27c8de3cf91498849379b57cc630ca4e3b02f2908d5763b60c65c6", kill_on_drop: false }` [INFO] [stdout] 8554804c5f27c8de3cf91498849379b57cc630ca4e3b02f2908d5763b60c65c6