[INFO] updating cached repository https://github.com/ghotiphud/rust-intro [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] c72640c3eb4a803d29bd3eb29798bcb85e9b4054 [INFO] checking ghotiphud/rust-intro against master#1557fb031b272b4c5bfcc7de5df7eddc7b36a584 for pr-73166 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fghotiphud%2Frust-intro" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] [stderr] Checking out files: 59% (79/133) Checking out files: 60% (80/133) Checking out files: 61% (82/133) Checking out files: 62% (83/133) Checking out files: 63% (84/133) Checking out files: 64% (86/133) Checking out files: 65% (87/133) Checking out files: 66% (88/133) Checking out files: 67% (90/133) Checking out files: 68% (91/133) Checking out files: 69% (92/133) Checking out files: 70% (94/133) Checking out files: 71% (95/133) Checking out files: 72% (96/133) Checking out files: 73% (98/133) Checking out files: 74% (99/133) Checking out files: 75% (100/133) Checking out files: 76% (102/133) Checking out files: 77% (103/133) Checking out files: 78% (104/133) Checking out files: 79% (106/133) Checking out files: 80% (107/133) Checking out files: 81% (108/133) Checking out files: 82% (110/133) Checking out files: 83% (111/133) Checking out files: 84% (112/133) Checking out files: 85% (114/133) Checking out files: 86% (115/133) Checking out files: 87% (116/133) Checking out files: 88% (118/133) Checking out files: 89% (119/133) Checking out files: 90% (120/133) Checking out files: 91% (122/133) Checking out files: 92% (123/133) Checking out files: 93% (124/133) Checking out files: 94% (126/133) Checking out files: 95% (127/133) Checking out files: 96% (128/133) Checking out files: 97% (130/133) Checking out files: 98% (131/133) Checking out files: 99% (132/133) Checking out files: 100% (133/133) Checking out files: 100% (133/133), done. [INFO] validating manifest of git repo https://github.com/ghotiphud/rust-intro on toolchain 1557fb031b272b4c5bfcc7de5df7eddc7b36a584 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ghotiphud/rust-intro [INFO] finished tweaking git repo https://github.com/ghotiphud/rust-intro [INFO] tweaked toml for git repo https://github.com/ghotiphud/rust-intro written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/ghotiphud/rust-intro already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a448a06d7add0ae7a5250b836f1c32b85c0ff62b08e2ac571e23d6776c89108 [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" "4a448a06d7add0ae7a5250b836f1c32b85c0ff62b08e2ac571e23d6776c89108", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a448a06d7add0ae7a5250b836f1c32b85c0ff62b08e2ac571e23d6776c89108", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a448a06d7add0ae7a5250b836f1c32b85c0ff62b08e2ac571e23d6776c89108", kill_on_drop: false }` [INFO] [stdout] 4a448a06d7add0ae7a5250b836f1c32b85c0ff62b08e2ac571e23d6776c89108 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f23dc4d1711c9262631b807f597cde5909cde95bcc1fa52d6165e2eb2ee538de [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" "f23dc4d1711c9262631b807f597cde5909cde95bcc1fa52d6165e2eb2ee538de", kill_on_drop: false }` [INFO] [stderr] Checking rust_intro v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let y = &x[0]; //Borrow(Reference) the first element of x [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `iterator` [INFO] [stdout] --> src/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn iterator() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_pos` [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn sum_pos(v: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let y = &x[0]; //Borrow(Reference) the first element of x [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `iterator` [INFO] [stdout] --> src/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn iterator() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_pos` [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn sum_pos(v: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/types.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut y = x as i64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/types.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/types.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | enum Options { None, One, Two, Three } [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Two` [INFO] [stdout] --> src/types.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | enum Options { None, One, Two, Three } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Three` [INFO] [stdout] --> src/types.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | enum Options { None, One, Two, Three } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/safety.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let y = &x[0]; //Borrow(Reference) the first element of x [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/safety.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut x = vec![10, 20]; //Create vec owned by x [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: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/safety.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let y = &x[0]; //Borrow(Reference) the first element of x [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/safety.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut x = vec![10, 20]; //Create vec owned by x [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/types.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut y = x as i64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/types.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/types.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | enum Options { None, One, Two, Three } [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Two` [INFO] [stdout] --> src/types.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | enum Options { None, One, Two, Three } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Three` [INFO] [stdout] --> src/types.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | enum Options { None, One, Two, Three } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::iter::Iterator::collect` that must be used [INFO] [stdout] --> src/concurrent.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | handles.into_iter().map(|h| h.join().unwrap()).collect::>(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::iter::Iterator::collect` that must be used [INFO] [stdout] --> src/concurrent.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | handles.into_iter().map(|h| h.join().unwrap()).collect::>(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.86s [INFO] running `Command { std: "docker" "inspect" "f23dc4d1711c9262631b807f597cde5909cde95bcc1fa52d6165e2eb2ee538de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f23dc4d1711c9262631b807f597cde5909cde95bcc1fa52d6165e2eb2ee538de", kill_on_drop: false }` [INFO] [stdout] f23dc4d1711c9262631b807f597cde5909cde95bcc1fa52d6165e2eb2ee538de