[INFO] cloning repository https://github.com/waleedsamy/hello_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/waleedsamy/hello_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwaleedsamy%2Fhello_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwaleedsamy%2Fhello_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 20ecb9ed2b7ef2587959e4b7f27fb9b624c2992b [INFO] checking waleedsamy/hello_rust against master#31ee872db5aae4750e3da1ca4ed1523c4356947f for pr-78461 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwaleedsamy%2Fhello_rust" "/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/waleedsamy/hello_rust on toolchain 31ee872db5aae4750e3da1ca4ed1523c4356947f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+31ee872db5aae4750e3da1ca4ed1523c4356947f" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/waleedsamy/hello_rust [INFO] finished tweaking git repo https://github.com/waleedsamy/hello_rust [INFO] tweaked toml for git repo https://github.com/waleedsamy/hello_rust written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/waleedsamy/hello_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+31ee872db5aae4750e3da1ca4ed1523c4356947f" "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" "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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+31ee872db5aae4750e3da1ca4ed1523c4356947f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f1e065d9e0a51b0e5263509aefcac42894f069035d3c433b47038443e6a1402e [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" "f1e065d9e0a51b0e5263509aefcac42894f069035d3c433b47038443e6a1402e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1e065d9e0a51b0e5263509aefcac42894f069035d3c433b47038443e6a1402e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1e065d9e0a51b0e5263509aefcac42894f069035d3c433b47038443e6a1402e", kill_on_drop: false }` [INFO] [stdout] f1e065d9e0a51b0e5263509aefcac42894f069035d3c433b47038443e6a1402e [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" "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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+31ee872db5aae4750e3da1ca4ed1523c4356947f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd01cdd97aa54f2f2c091324152c6a61d3e4a636981a2c803bd67d0dfbb05f0e [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" "bd01cdd97aa54f2f2c091324152c6a61d3e4a636981a2c803bd67d0dfbb05f0e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking hello_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/lib.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn new(i: i32) -> Guess { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `maybe_new` [INFO] [stdout] --> src/lib.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn maybe_new(i: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Summary`, `Tweet` [INFO] [stdout] --> src/bin/learn_traits.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 137 | use crate::{Summary, Tweet}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/learn_traits.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let p = Pair { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/learn_traits.rs:119:53 [INFO] [stdout] | [INFO] [stdout] 119 | fn some_fun_1(t: T, u: U) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/learn_traits.rs:119:59 [INFO] [stdout] | [INFO] [stdout] 119 | fn some_fun_1(t: T, u: U) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/learn_traits.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | fn som_fun_2(t: T, u: U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/learn_traits.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | fn som_fun_2(t: T, u: U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/learn_traits.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | fn returns_summarizable(b: bool) -> impl Summary { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/main1.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let x = 1..5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/bin/main1.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let home: IPAddrKind = IPAddrKind::V4(172, 0, 0, 1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/bin/main1.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let loopback = IPAddrKind::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/main1.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let x = Message::Quit; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/main1.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let x = Message::Move { x: 10, y: 11 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/main1.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let x = Message::Write(String::from("abc")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/main1.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let x = Message::ChangeColur(1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/learn_traits.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | fn new(x: T, y: T) -> Pair { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `some_fun_1` [INFO] [stdout] --> src/bin/learn_traits.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn some_fun_1(t: T, u: U) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `som_fun_2` [INFO] [stdout] --> src/bin/learn_traits.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn som_fun_2(t: T, u: U) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `returns_summarizable` [INFO] [stdout] --> src/bin/learn_traits.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn returns_summarizable(b: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cent` [INFO] [stdout] --> src/bin/main1.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Cent, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dime` [INFO] [stdout] --> src/bin/main1.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `email` [INFO] [stdout] --> src/bin/main1.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | email: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `active` [INFO] [stdout] --> src/bin/main1.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | active: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sign_in_count` [INFO] [stdout] --> src/bin/main1.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | sign_in_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/bin/main1.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/bin/main1.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/bin/main1.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | fn call(&self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inc` [INFO] [stdout] --> src/bin/main1.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn inc(x: usize) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inc_ref` [INFO] [stdout] --> src/bin/main1.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn inc_ref(x: &usize) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/learn_traits.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let p = Pair { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/learn_traits.rs:119:53 [INFO] [stdout] | [INFO] [stdout] 119 | fn some_fun_1(t: T, u: U) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/learn_traits.rs:119:59 [INFO] [stdout] | [INFO] [stdout] 119 | fn some_fun_1(t: T, u: U) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/learn_traits.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | fn som_fun_2(t: T, u: U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/learn_traits.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | fn som_fun_2(t: T, u: U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/learn_traits.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | fn returns_summarizable(b: bool) -> impl Summary { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/learn_traits.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | fn new(x: T, y: T) -> Pair { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `some_fun_1` [INFO] [stdout] --> src/bin/learn_traits.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn some_fun_1(t: T, u: U) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `som_fun_2` [INFO] [stdout] --> src/bin/learn_traits.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn som_fun_2(t: T, u: U) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `returns_summarizable` [INFO] [stdout] --> src/bin/learn_traits.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn returns_summarizable(b: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::max` [INFO] [stdout] --> src/bin/guess.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{cmp::max, cmp::min}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.21s [INFO] running `Command { std: "docker" "inspect" "bd01cdd97aa54f2f2c091324152c6a61d3e4a636981a2c803bd67d0dfbb05f0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd01cdd97aa54f2f2c091324152c6a61d3e4a636981a2c803bd67d0dfbb05f0e", kill_on_drop: false }` [INFO] [stdout] bd01cdd97aa54f2f2c091324152c6a61d3e4a636981a2c803bd67d0dfbb05f0e