[INFO] cloning repository https://github.com/felixfaisal/rust-code-gen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/felixfaisal/rust-code-gen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixfaisal%2Frust-code-gen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixfaisal%2Frust-code-gen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56a1f2dca355550e3e24a3e2501184c01db44e10 [INFO] checking felixfaisal/rust-code-gen/56a1f2dca355550e3e24a3e2501184c01db44e10 against master#db0e836148accac8a22532e3596ac612b63c2d8e for pr-139272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixfaisal%2Frust-code-gen" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/felixfaisal/rust-code-gen on toolchain db0e836148accac8a22532e3596ac612b63c2d8e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db0e836148accac8a22532e3596ac612b63c2d8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/felixfaisal/rust-code-gen [INFO] finished tweaking git repo https://github.com/felixfaisal/rust-code-gen [INFO] tweaked toml for git repo https://github.com/felixfaisal/rust-code-gen written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/felixfaisal/rust-code-gen 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" "+db0e836148accac8a22532e3596ac612b63c2d8e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+db0e836148accac8a22532e3596ac612b63c2d8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca049d3be48d74c70f5f20a077f365ebd8eec52875cb31f0eef6850a5910a069 [INFO] running `Command { std: "docker" "start" "-a" "ca049d3be48d74c70f5f20a077f365ebd8eec52875cb31f0eef6850a5910a069", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca049d3be48d74c70f5f20a077f365ebd8eec52875cb31f0eef6850a5910a069", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca049d3be48d74c70f5f20a077f365ebd8eec52875cb31f0eef6850a5910a069", kill_on_drop: false }` [INFO] [stdout] ca049d3be48d74c70f5f20a077f365ebd8eec52875cb31f0eef6850a5910a069 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+db0e836148accac8a22532e3596ac612b63c2d8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7478d50914e60db61bd04e974324df44e17a39c129c2e5c90f4875914a1065fb [INFO] running `Command { std: "docker" "start" "-a" "7478d50914e60db61bd04e974324df44e17a39c129c2e5c90f4875914a1065fb", kill_on_drop: false }` [INFO] [stderr] Checking rust-code-gen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::enum_test::Felix` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enum_test::Felix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `union` should have an upper camel case name [INFO] [stdout] --> src/union_test.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct union { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Union` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/enum_test.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | _ => println!("Protocol does not exist"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/enum_test.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 8 | Felix::ICMP => println!("ICMP"), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 9 | Felix::IGP => println!("IGP"), [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] 10 | _ => println!("Protocol does not exist"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/enum_test.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | _ => println!("Protocol does not exist"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/enum_test.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 15 | Felix::ICMP => println!("{}", Felix::ICMP as u32), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 16 | Felix::IGP => println!("{}", Felix::IGP as u32), [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] 17 | _ => println!("Protocol does not exist"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::enum_test::Felix` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enum_test::Felix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `union` should have an upper camel case name [INFO] [stdout] --> src/union_test.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct union { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Union` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Felix` is never used [INFO] [stdout] --> src/enum_test.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Felix { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `String`, `value`, and `new` are never used [INFO] [stdout] --> src/enum_test.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Felix { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 6 | pub fn String(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn value(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(u: u32) -> Felix { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_shell` is never used [INFO] [stdout] --> src/shell.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn run_shell() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write` and `update` are never used [INFO] [stdout] --> src/union_test.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl union { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn write(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `String` should have a snake case name [INFO] [stdout] --> src/enum_test.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn String(&self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `XXX_unionData` should have a snake case name [INFO] [stdout] --> src/union_test.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub XXX_unionData: [u8; 16], [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `xxx_union_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SetIP4` should have a snake case name [INFO] [stdout] --> src/union_test.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn SetIP4(&mut self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `set_ip4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetIP4` should have a snake case name [INFO] [stdout] --> src/union_test.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn GetIP4(&self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_ip4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SetIP6` should have a snake case name [INFO] [stdout] --> src/union_test.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn SetIP6(&mut self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `set_ip6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetIP6` should have a snake case name [INFO] [stdout] --> src/union_test.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn GetIP6(&self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_ip6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/enum_test.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | _ => println!("Protocol does not exist"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/enum_test.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 8 | Felix::ICMP => println!("ICMP"), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 9 | Felix::IGP => println!("IGP"), [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] 10 | _ => println!("Protocol does not exist"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/enum_test.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | _ => println!("Protocol does not exist"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/enum_test.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 15 | Felix::ICMP => println!("{}", Felix::ICMP as u32), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 16 | Felix::IGP => println!("{}", Felix::IGP as u32), [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] 17 | _ => println!("Protocol does not exist"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Felix` is never used [INFO] [stdout] --> src/enum_test.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Felix { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `String`, `value`, and `new` are never used [INFO] [stdout] --> src/enum_test.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Felix { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 6 | pub fn String(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn value(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(u: u32) -> Felix { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_shell` is never used [INFO] [stdout] --> src/shell.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn run_shell() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write` and `update` are never used [INFO] [stdout] --> src/union_test.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl union { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn write(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `String` should have a snake case name [INFO] [stdout] --> src/enum_test.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn String(&self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `XXX_unionData` should have a snake case name [INFO] [stdout] --> src/union_test.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub XXX_unionData: [u8; 16], [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `xxx_union_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SetIP4` should have a snake case name [INFO] [stdout] --> src/union_test.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn SetIP4(&mut self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `set_ip4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetIP4` should have a snake case name [INFO] [stdout] --> src/union_test.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn GetIP4(&self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_ip4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SetIP6` should have a snake case name [INFO] [stdout] --> src/union_test.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn SetIP6(&mut self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `set_ip6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetIP6` should have a snake case name [INFO] [stdout] --> src/union_test.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn GetIP6(&self) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_ip6` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "7478d50914e60db61bd04e974324df44e17a39c129c2e5c90f4875914a1065fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7478d50914e60db61bd04e974324df44e17a39c129c2e5c90f4875914a1065fb", kill_on_drop: false }` [INFO] [stdout] 7478d50914e60db61bd04e974324df44e17a39c129c2e5c90f4875914a1065fb