[INFO] cloning repository https://github.com/abiriadev/generic.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/abiriadev/generic.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabiriadev%2Fgeneric.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabiriadev%2Fgeneric.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cffc03b27d0ff1c1f525aa085b8f7c1cd87e6a23 [INFO] checking abiriadev/generic.rs/cffc03b27d0ff1c1f525aa085b8f7c1cd87e6a23 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabiriadev%2Fgeneric.rs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/abiriadev/generic.rs on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/abiriadev/generic.rs [INFO] finished tweaking git repo https://github.com/abiriadev/generic.rs [INFO] tweaked toml for git repo https://github.com/abiriadev/generic.rs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/abiriadev/generic.rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e5e21c23ca0c98e3447c506d5506ef023282bd662732cc321e97489b0e906ad8 [INFO] running `Command { std: "docker" "start" "-a" "e5e21c23ca0c98e3447c506d5506ef023282bd662732cc321e97489b0e906ad8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e5e21c23ca0c98e3447c506d5506ef023282bd662732cc321e97489b0e906ad8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5e21c23ca0c98e3447c506d5506ef023282bd662732cc321e97489b0e906ad8", kill_on_drop: false }` [INFO] [stdout] e5e21c23ca0c98e3447c506d5506ef023282bd662732cc321e97489b0e906ad8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c3e5a84799324feffdeeb88aa3d61d22c5f7d72808bb26fea022f833d948dce [INFO] running `Command { std: "docker" "start" "-a" "6c3e5a84799324feffdeeb88aa3d61d22c5f7d72808bb26fea022f833d948dce", kill_on_drop: false }` [INFO] [stderr] Checking generic v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `stru` should have an upper camel case name [INFO] [stdout] --> src/generic_enum/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | stru(T), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Stru` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `asdf` should have an upper camel case name [INFO] [stdout] --> src/generic_enum/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | asdf, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Asdf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `stru` should have an upper camel case name [INFO] [stdout] --> src/generic_enum/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | stru(T), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Stru` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `asdf` should have an upper camel case name [INFO] [stdout] --> src/generic_enum/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | asdf, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Asdf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/pair/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let s: &'static str = "hello world"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/main.rs:83:46 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn notify(item: T, item2: T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> src/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let float: generic_struct::Point = generic_struct::Point { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tu` [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let tu: generic_struct::DPoint = generic_struct::DPoint { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dp1` [INFO] [stdout] --> src/main.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let dp1 = DPoint { x: 5, y: 10.423 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dp1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generic_struct/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct DPoint { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 20 | pub x: T, [INFO] [stdout] | ^ [INFO] [stdout] 21 | pub y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `DPoint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mixup` and `mixFirst` are never used [INFO] [stdout] --> src/generic_struct/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl DPoint { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 25 | pub fn mixup(self, other: DPoint) -> DPoint { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn mixFirst(self, other: DPoint) -> (DPoint, DPoint) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/pair/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pair/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 9 | fn new(x: T, y: T) -> Pair { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/pair/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 15 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToString2` is never used [INFO] [stdout] --> src/pair/mod.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | trait ToString2 {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> src/pair/mod.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 115 | fn level(&'a self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mixFirst` should have a snake case name [INFO] [stdout] --> src/generic_struct/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn mixFirst(self, other: DPoint) -> (DPoint, DPoint) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `mix_first` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `importantExcerpt` should have a snake case name [INFO] [stdout] --> src/pair/mod.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn importantExcerpt() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `important_excerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/pair/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let s: &'static str = "hello world"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/main.rs:83:46 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn notify(item: T, item2: T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> src/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let float: generic_struct::Point = generic_struct::Point { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tu` [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let tu: generic_struct::DPoint = generic_struct::DPoint { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dp1` [INFO] [stdout] --> src/main.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let dp1 = DPoint { x: 5, y: 10.423 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dp1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generic_struct/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct DPoint { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 20 | pub x: T, [INFO] [stdout] | ^ [INFO] [stdout] 21 | pub y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `DPoint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mixup` and `mixFirst` are never used [INFO] [stdout] --> src/generic_struct/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl DPoint { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 25 | pub fn mixup(self, other: DPoint) -> DPoint { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn mixFirst(self, other: DPoint) -> (DPoint, DPoint) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/pair/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pair/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 9 | fn new(x: T, y: T) -> Pair { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/pair/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 15 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToString2` is never used [INFO] [stdout] --> src/pair/mod.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | trait ToString2 {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> src/pair/mod.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 115 | fn level(&'a self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mixFirst` should have a snake case name [INFO] [stdout] --> src/generic_struct/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn mixFirst(self, other: DPoint) -> (DPoint, DPoint) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `mix_first` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `importantExcerpt` should have a snake case name [INFO] [stdout] --> src/pair/mod.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn importantExcerpt() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `important_excerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "6c3e5a84799324feffdeeb88aa3d61d22c5f7d72808bb26fea022f833d948dce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c3e5a84799324feffdeeb88aa3d61d22c5f7d72808bb26fea022f833d948dce", kill_on_drop: false }` [INFO] [stdout] 6c3e5a84799324feffdeeb88aa3d61d22c5f7d72808bb26fea022f833d948dce