[INFO] cloning repository https://github.com/529124368/rust_learn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/529124368/rust_learn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F529124368%2Frust_learn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F529124368%2Frust_learn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ba42eb46217910d9577dd6e7d5e17fecbf09ad17 [INFO] checking 529124368/rust_learn/ba42eb46217910d9577dd6e7d5e17fecbf09ad17 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F529124368%2Frust_learn" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/529124368/rust_learn 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/529124368/rust_learn [INFO] finished tweaking git repo https://github.com/529124368/rust_learn [INFO] tweaked toml for git repo https://github.com/529124368/rust_learn written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/529124368/rust_learn 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded md-5 v0.10.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 1d7003f611caf68b17ad7a638048b1e19318ad959da2c6aa641ea68c5cf85d72 [INFO] running `Command { std: "docker" "start" "-a" "1d7003f611caf68b17ad7a638048b1e19318ad959da2c6aa641ea68c5cf85d72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d7003f611caf68b17ad7a638048b1e19318ad959da2c6aa641ea68c5cf85d72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d7003f611caf68b17ad7a638048b1e19318ad959da2c6aa641ea68c5cf85d72", kill_on_drop: false }` [INFO] [stdout] 1d7003f611caf68b17ad7a638048b1e19318ad959da2c6aa641ea68c5cf85d72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] a622757ae1337ef93a772ac383dce2e147fe9c118f3f866c638244867b34497c [INFO] running `Command { std: "docker" "start" "-a" "a622757ae1337ef93a772ac383dce2e147fe9c118f3f866c638244867b34497c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Checking bytes v1.2.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking md-5 v0.10.1 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling lsz_macro v0.1.0 (/opt/rustwide/workdir/lsz_macro) [INFO] [stdout] warning: unused import: `TypeParen` [INFO] [stdout] --> lsz_macro/src/lib.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 4 | use syn::{self, ext::IdentExt, parse_macro_input, DeriveInput, TypeParen}; [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] Checking greeting v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> examples/test8.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Man [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | name: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Man` has a derived impl for the trait `Default`, 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: static variable `state` should have an upper case name [INFO] [stdout] --> examples/test8.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | static state: AtomicIsize = AtomicIsize::new(0); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `STATE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getX` should have a snake case name [INFO] [stdout] --> examples/test9.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn getX(&self) -> &T { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Thread` [INFO] [stdout] --> examples/test10.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | thread::{self, Thread}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getY` should have a snake case name [INFO] [stdout] --> examples/test9.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn getY(&self) -> &T { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setX` should have a snake case name [INFO] [stdout] --> examples/test9.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | fn setX(&mut self, x: T) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setY` should have a snake case name [INFO] [stdout] --> examples/test9.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | fn setY(&mut self, y: T) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `set_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bb` [INFO] [stdout] --> examples/test10.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let bb = Rc::new(23); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bb` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sum` is never read [INFO] [stdout] --> examples/test10.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let mut sum = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, `self`, `thread`, and `time::Duration` [INFO] [stdout] --> examples/test11.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | sync::mpsc::{self, Receiver, Sender}, [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] 3 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Ip_address` should have an upper camel case name [INFO] [stdout] --> examples/test6.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | enum Ip_address { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `IpAddress` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `v4` should have an upper camel case name [INFO] [stdout] --> examples/test6.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | v4(String), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `V4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `v3` should have an upper camel case name [INFO] [stdout] --> examples/test6.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | v3(String), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `V3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vector3` should have an upper camel case name [INFO] [stdout] --> examples/test5.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct vector3(i32, i32); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vector3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/main.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn test(num: i32) -> (i32, String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `what` is never used [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn what(n: &mut String) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Aera` is never constructed [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Aera { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getarea` is never used [INFO] [stdout] --> src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Aera { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 29 | fn getarea(&self) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IPaddress` is never used [INFO] [stdout] --> src/main.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | enum IPaddress { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/main.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl IPaddress { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 41 | fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Name: T, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Sex` should have a snake case name [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | Sex: U, [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `sex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Age` should have a snake case name [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Age: V, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `varsion`, `name`, `camer`, and `controller` are never read [INFO] [stdout] --> examples/test5.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct Game<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 29 | varsion: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | camer: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | controller: &'a Controller, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` 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: fields `mouse` and `keyboard` are never read [INFO] [stdout] --> examples/test5.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct Controller { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 36 | mouse: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | keyboard: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Controller` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> examples/test5.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | struct vector3(i32, i32); [INFO] [stdout] | ------- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `vector3` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> examples/test3.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let c = b; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `text` should have an upper camel case name [INFO] [stdout] --> examples/test7.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | text(String), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Text` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `name` should have an upper camel case name [INFO] [stdout] --> examples/test7.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | name(String), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `typess` should have an upper camel case name [INFO] [stdout] --> examples/test7.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | typess(u8), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Typess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> examples/test3.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let b = aa; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sss` [INFO] [stdout] --> examples/test2.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let sss = Vec::::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sss` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> examples/test2.rs:109:32 [INFO] [stdout] | [INFO] [stdout] 109 | fn what<'a>(s: &'a mut String, b: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> examples/test2.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Student { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] 11 | age: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getMax` should have a snake case name [INFO] [stdout] --> examples/test2.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn getMax(a: T, b: T) -> T { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_max` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> examples/test3.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | drop(b); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&String` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 16 - drop(b); [INFO] [stdout] 16 + let _ = b; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/test6.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | v3(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ip_address` 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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 42 | v3(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `v4` is never constructed [INFO] [stdout] --> examples/test6.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | enum Ip_address { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 41 | v4(String), [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ip_address` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> examples/test11.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let sum = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/test7.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Std` 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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 | text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `name` and `typess` are never constructed [INFO] [stdout] --> examples/test7.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum Std { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 15 | text(String), [INFO] [stdout] 16 | name(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | typess(u8), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Std` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> examples/test7.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 21 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/test7.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | struct L(usize); [INFO] [stdout] | - ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `L` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bacjFile` should have a snake case name [INFO] [stdout] --> examples/test7.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn bacjFile() -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `bacj_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/main.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn test(num: i32) -> (i32, String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `what` is never used [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn what(n: &mut String) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Aera` is never constructed [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Aera { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getarea` is never used [INFO] [stdout] --> src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Aera { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 29 | fn getarea(&self) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IPaddress` is never used [INFO] [stdout] --> src/main.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | enum IPaddress { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/main.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl IPaddress { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 41 | fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Name: T, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Sex` should have a snake case name [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | Sex: U, [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `sex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Age` should have a snake case name [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Age: V, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.39s [INFO] running `Command { std: "docker" "inspect" "a622757ae1337ef93a772ac383dce2e147fe9c118f3f866c638244867b34497c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a622757ae1337ef93a772ac383dce2e147fe9c118f3f866c638244867b34497c", kill_on_drop: false }` [INFO] [stdout] a622757ae1337ef93a772ac383dce2e147fe9c118f3f866c638244867b34497c