[INFO] updating cached repository https://github.com/steshaw/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 06b46229ca0dd5b5fb874746d6ace8665151b11f [INFO] testing steshaw/rustlings against beta-2020-07-24 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteshaw%2Frustlings" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/steshaw/rustlings on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "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-8/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" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9259b95dedcb5ea4e4403f7e4adc1350711ac25618f9c305d6592a821be8166e [INFO] running `Command { std: "docker" "start" "-a" "9259b95dedcb5ea4e4403f7e4adc1350711ac25618f9c305d6592a821be8166e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9259b95dedcb5ea4e4403f7e4adc1350711ac25618f9c305d6592a821be8166e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9259b95dedcb5ea4e4403f7e4adc1350711ac25618f9c305d6592a821be8166e", kill_on_drop: false }` [INFO] [stdout] 9259b95dedcb5ea4e4403f7e4adc1350711ac25618f9c305d6592a821be8166e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2cacae0a03f07e7fee17a4d819e6e0919cb97e5143bf6501fb0abdb9d55150f4 [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" "2cacae0a03f07e7fee17a4d819e6e0919cb97e5143bf6501fb0abdb9d55150f4", kill_on_drop: false }` [INFO] [stderr] Compiling syn v0.15.34 [INFO] [stderr] Compiling termios v0.3.1 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling clicolors-control v1.0.0 [INFO] [stderr] Compiling inotify-sys v0.1.3 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling filetime v0.2.5 [INFO] [stderr] Compiling clicolors-control v0.2.0 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling inotify v0.6.1 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling console v0.7.5 [INFO] [stderr] Compiling console v0.6.2 [INFO] [stderr] Compiling mio-extras v2.0.5 [INFO] [stderr] Compiling notify v4.0.12 [INFO] [stderr] Compiling indicatif v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.92 [INFO] [stderr] Compiling serde v1.0.92 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling rustlings v2.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 05s [INFO] running `Command { std: "docker" "inspect" "2cacae0a03f07e7fee17a4d819e6e0919cb97e5143bf6501fb0abdb9d55150f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cacae0a03f07e7fee17a4d819e6e0919cb97e5143bf6501fb0abdb9d55150f4", kill_on_drop: false }` [INFO] [stdout] 2cacae0a03f07e7fee17a4d819e6e0919cb97e5143bf6501fb0abdb9d55150f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c7fdc8aabb504190b675c65acf8b7b25f3c5a7f6eec06185919c30e2d5570c9c [INFO] running `Command { std: "docker" "start" "-a" "c7fdc8aabb504190b675c65acf8b7b25f3c5a7f6eec06185919c30e2d5570c9c", kill_on_drop: false }` [INFO] [stderr] Compiling escargot v0.4.0 [INFO] [stderr] Compiling predicates-core v1.0.0 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling normalize-line-endings v0.2.2 [INFO] [stderr] Compiling treeline v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling serde_json v1.0.39 [INFO] [stderr] Compiling predicates-tree v1.0.0 [INFO] [stderr] Compiling float-cmp v0.4.0 [INFO] [stderr] Compiling predicates v1.0.1 [INFO] [stderr] Compiling assert_cmd v0.11.1 [INFO] [stderr] Compiling rustlings v2.1.0 (/opt/rustwide/workdir) [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] [stdout] warning: enum is never used: `Message` [INFO] [stdout] --> examples/enums3.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustlings`. [INFO] [stdout] warning: struct is never constructed: `State` [INFO] [stdout] --> examples/enums3.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [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] warning: associated function is never used: `change_color` [INFO] [stdout] --> examples/enums3.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn change_color(&mut self, color: (u8, u8, u8)) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quit` [INFO] [stdout] --> examples/enums3.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn quit(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `echo` [INFO] [stdout] --> examples/enums3.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn echo(&self, s: String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_position` [INFO] [stdout] --> examples/enums3.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn move_position(&mut self, p: Point) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process` [INFO] [stdout] --> examples/enums3.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn process(&mut self, message: Message) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fact_recursive` [INFO] [stdout] --> examples/iterators4.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn fact_recursive(n: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fact_fold` [INFO] [stdout] --> examples/iterators4.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn fact_fold(n: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string() [INFO] [stdout] --> examples/errorsn.rs:113:49 [INFO] [stdout] | [INFO] [stdout] 113 | f.write_str((self as &dyn error::Error).description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "c7fdc8aabb504190b675c65acf8b7b25f3c5a7f6eec06185919c30e2d5570c9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7fdc8aabb504190b675c65acf8b7b25f3c5a7f6eec06185919c30e2d5570c9c", kill_on_drop: false }` [INFO] [stdout] c7fdc8aabb504190b675c65acf8b7b25f3c5a7f6eec06185919c30e2d5570c9c