[INFO] cloning repository https://github.com/marionebl/rust-by-example-exercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marionebl/rust-by-example-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarionebl%2Frust-by-example-exercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarionebl%2Frust-by-example-exercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b22ea9a4d0448f54fdbc20b0d014f13f44ae816e [INFO] testing marionebl/rust-by-example-exercises against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarionebl%2Frust-by-example-exercises" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/marionebl/rust-by-example-exercises on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/marionebl/rust-by-example-exercises [INFO] finished tweaking git repo https://github.com/marionebl/rust-by-example-exercises [INFO] tweaked toml for git repo https://github.com/marionebl/rust-by-example-exercises written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/marionebl/rust-by-example-exercises already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ccac86df8e2615ad7167635bdb4175236d774e3f10cbd20a6958dd59e874ede [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" "8ccac86df8e2615ad7167635bdb4175236d774e3f10cbd20a6958dd59e874ede", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ccac86df8e2615ad7167635bdb4175236d774e3f10cbd20a6958dd59e874ede", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ccac86df8e2615ad7167635bdb4175236d774e3f10cbd20a6958dd59e874ede", kill_on_drop: false }` [INFO] [stdout] 8ccac86df8e2615ad7167635bdb4175236d774e3f10cbd20a6958dd59e874ede [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=forbid" "-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:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--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] a7350f1d78747cbfe2ebedb517c65926e6c468c2165bc76cca914319e8fbac4e [INFO] running `Command { std: "docker" "start" "-a" "a7350f1d78747cbfe2ebedb517c65926e6c468c2165bc76cca914319e8fbac4e", kill_on_drop: false }` [INFO] [stderr] Compiling rust-by-example-exercises v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/bin/9-2-2-closures-as-input-params.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/9-2-5-closures-as-output.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn create_fn() -> Box { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Fn()` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/9-2-5-closures-as-output.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | fn create_fnmut() -> Box { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn FnMut()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/9-2-2-closures-as-input-params.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut farewell = String::from("goodbye"); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/9-2-2-closures-as-input-params.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | fn apply(mut f: F) where F: FnOnce() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/bin/7-expressions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | 2 * x; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `unused_doc_comment` has been renamed to `unused_doc_comments` [INFO] [stdout] --> src/bin/3-2-1-enums.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #![allow(unused_doc_comment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use the new name: `unused_doc_comments` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bin/3-2-1-enums.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | /// "my_text".to_owned() ~= String::from("my_text"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 41 | let pasted = WebEvent::Paste("my text".to_owned()); [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bin/8-5-match.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | 13...19 => println!("This is 13...19"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RGB` [INFO] [stdout] --> src/bin/8-5-match.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | RGB(u8, u8, u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HSV` [INFO] [stdout] --> src/bin/8-5-match.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | HSV(u16, u8, u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HSL` [INFO] [stdout] --> src/bin/8-5-match.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | HSL(u16, u8, u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CMY` [INFO] [stdout] --> src/bin/8-5-match.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | CMY(u8, u8, u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CMYK` [INFO] [stdout] --> src/bin/8-5-match.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | CMYK(u8, u8, u8, u8) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `noisy_unused_function` [INFO] [stdout] --> src/bin/12-1-attributes-dead-code.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn noisy_unused_function() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/8-2-loop.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected item, found `36` [INFO] [stdout] --> src/bin/13-5-2-generic-bounds-multiple.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | 36 [INFO] [stdout] | ^^ expected item [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-by-example-exercises`. [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: unreachable statement [INFO] [stdout] --> src/bin/8-2-loop.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 32 | break 'outer; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 35 | println!("This point will never be reached"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "a7350f1d78747cbfe2ebedb517c65926e6c468c2165bc76cca914319e8fbac4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7350f1d78747cbfe2ebedb517c65926e6c468c2165bc76cca914319e8fbac4e", kill_on_drop: false }` [INFO] [stdout] a7350f1d78747cbfe2ebedb517c65926e6c468c2165bc76cca914319e8fbac4e