[INFO] cloning repository https://github.com/madeinfree/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/madeinfree/hello-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmadeinfree%2Fhello-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmadeinfree%2Fhello-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 14cf9473fa1db4844cb0a6768ec4b46b45801ae7 [INFO] checking madeinfree/hello-rust against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmadeinfree%2Fhello-rust" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/madeinfree/hello-rust on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/madeinfree/hello-rust [INFO] finished tweaking git repo https://github.com/madeinfree/hello-rust [INFO] tweaked toml for git repo https://github.com/madeinfree/hello-rust written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/madeinfree/hello-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand v0.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 62e38df0228df1639627fddfcb168074836a11a52e91bbcfd027198367d8d1d8 [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" "62e38df0228df1639627fddfcb168074836a11a52e91bbcfd027198367d8d1d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "62e38df0228df1639627fddfcb168074836a11a52e91bbcfd027198367d8d1d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62e38df0228df1639627fddfcb168074836a11a52e91bbcfd027198367d8d1d8", kill_on_drop: false }` [INFO] [stdout] 62e38df0228df1639627fddfcb168074836a11a52e91bbcfd027198367d8d1d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2ff731c456babb5ec06591758eb45b7c151b49ee96d6c709693a245c45b3986 [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" "e2ff731c456babb5ec06591758eb45b7c151b49ee96d6c709693a245c45b3986", kill_on_drop: false }` [INFO] [stderr] Checking rand v0.5.2 [INFO] [stderr] Checking hello v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:567:17 [INFO] [stdout] | [INFO] [stdout] 567 | for number in (1..5) { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:567:17 [INFO] [stdout] | [INFO] [stdout] 567 | for number in (1..5) { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:254:3 [INFO] [stdout] | [INFO] [stdout] 253 | panic!("crash and burn"); [INFO] [stdout] | ------------------------- any code following this expression is unreachable [INFO] [stdout] 254 | println!("{}", "Run here?"); // Not run [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:188:7 [INFO] [stdout] | [INFO] [stdout] 188 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/main.rs:301:7 [INFO] [stdout] | [INFO] [stdout] 301 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/main.rs:358:7 [INFO] [stdout] | [INFO] [stdout] 358 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/main.rs:359:7 [INFO] [stdout] | [INFO] [stdout] 359 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/main.rs:380:7 [INFO] [stdout] | [INFO] [stdout] 380 | let home = IpAddr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/main.rs:498:9 [INFO] [stdout] | [INFO] [stdout] 498 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/main.rs:500:7 [INFO] [stdout] | [INFO] [stdout] 500 | let r2 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/main.rs:53:6 [INFO] [stdout] | [INFO] [stdout] 53 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_impl_trait_type` [INFO] [stdout] --> src/main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn sample_impl_trait_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_generic_types` [INFO] [stdout] --> src/main.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn sample_generic_types() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_error_result` [INFO] [stdout] --> src/main.rs:177:4 [INFO] [stdout] | [INFO] [stdout] 177 | fn sample_error_result() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_error_panic` [INFO] [stdout] --> src/main.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn sample_error_panic() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_hash_map` [INFO] [stdout] --> src/main.rs:257:4 [INFO] [stdout] | [INFO] [stdout] 257 | fn sample_hash_map() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_vector` [INFO] [stdout] --> src/main.rs:285:4 [INFO] [stdout] | [INFO] [stdout] 285 | fn sample_vector() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_if_let` [INFO] [stdout] --> src/main.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn sample_if_let() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_match` [INFO] [stdout] --> src/main.rs:324:4 [INFO] [stdout] | [INFO] [stdout] 324 | fn sample_match() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_enum` [INFO] [stdout] --> src/main.rs:370:4 [INFO] [stdout] | [INFO] [stdout] 370 | fn sample_enum() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_method_syntax` [INFO] [stdout] --> src/main.rs:386:4 [INFO] [stdout] | [INFO] [stdout] 386 | fn sample_method_syntax() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_use_struct` [INFO] [stdout] --> src/main.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 407 | fn sample_use_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_defining_struct` [INFO] [stdout] --> src/main.rs:430:4 [INFO] [stdout] | [INFO] [stdout] 430 | fn sample_defining_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_string_slice` [INFO] [stdout] --> src/main.rs:453:4 [INFO] [stdout] | [INFO] [stdout] 453 | fn sample_string_slice() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_slice_type` [INFO] [stdout] --> src/main.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn sample_slice_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_ownership_multi_ref` [INFO] [stdout] --> src/main.rs:494:4 [INFO] [stdout] | [INFO] [stdout] 494 | fn sample_ownership_multi_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_ownership_ref` [INFO] [stdout] --> src/main.rs:507:4 [INFO] [stdout] | [INFO] [stdout] 507 | fn sample_ownership_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_ownership` [INFO] [stdout] --> src/main.rs:536:4 [INFO] [stdout] | [INFO] [stdout] 536 | fn sample_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_control_flow` [INFO] [stdout] --> src/main.rs:562:4 [INFO] [stdout] | [INFO] [stdout] 562 | fn sample_control_flow() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_function_call` [INFO] [stdout] --> src/main.rs:609:4 [INFO] [stdout] | [INFO] [stdout] 609 | fn sample_function_call() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_type` [INFO] [stdout] --> src/main.rs:635:4 [INFO] [stdout] | [INFO] [stdout] 635 | fn sample_type() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_len` [INFO] [stdout] --> src/main.rs:643:4 [INFO] [stdout] | [INFO] [stdout] 643 | fn sample_len() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_rang` [INFO] [stdout] --> src/main.rs:648:4 [INFO] [stdout] | [INFO] [stdout] 648 | fn sample_rang() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `summarizeD` should have a snake case name [INFO] [stdout] --> src/main.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn summarizeD(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `summarize_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:254:3 [INFO] [stdout] | [INFO] [stdout] 253 | panic!("crash and burn"); [INFO] [stdout] | ------------------------- any code following this expression is unreachable [INFO] [stdout] 254 | println!("{}", "Run here?"); // Not run [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | File::open("./src/hello.txt")?.read_to_string(&mut s2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `commonS` should have a snake case name [INFO] [stdout] --> src/main.rs:455:7 [INFO] [stdout] | [INFO] [stdout] 455 | let commonS = "Hello Common World"; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `common_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:188:7 [INFO] [stdout] | [INFO] [stdout] 188 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/main.rs:301:7 [INFO] [stdout] | [INFO] [stdout] 301 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/main.rs:358:7 [INFO] [stdout] | [INFO] [stdout] 358 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/main.rs:359:7 [INFO] [stdout] | [INFO] [stdout] 359 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/main.rs:380:7 [INFO] [stdout] | [INFO] [stdout] 380 | let home = IpAddr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/main.rs:498:9 [INFO] [stdout] | [INFO] [stdout] 498 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/main.rs:500:7 [INFO] [stdout] | [INFO] [stdout] 500 | let r2 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/main.rs:53:6 [INFO] [stdout] | [INFO] [stdout] 53 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_impl_trait_type` [INFO] [stdout] --> src/main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn sample_impl_trait_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_generic_types` [INFO] [stdout] --> src/main.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn sample_generic_types() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_error_result` [INFO] [stdout] --> src/main.rs:177:4 [INFO] [stdout] | [INFO] [stdout] 177 | fn sample_error_result() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_error_panic` [INFO] [stdout] --> src/main.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn sample_error_panic() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_hash_map` [INFO] [stdout] --> src/main.rs:257:4 [INFO] [stdout] | [INFO] [stdout] 257 | fn sample_hash_map() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_vector` [INFO] [stdout] --> src/main.rs:285:4 [INFO] [stdout] | [INFO] [stdout] 285 | fn sample_vector() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_if_let` [INFO] [stdout] --> src/main.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn sample_if_let() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_match` [INFO] [stdout] --> src/main.rs:324:4 [INFO] [stdout] | [INFO] [stdout] 324 | fn sample_match() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_enum` [INFO] [stdout] --> src/main.rs:370:4 [INFO] [stdout] | [INFO] [stdout] 370 | fn sample_enum() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_method_syntax` [INFO] [stdout] --> src/main.rs:386:4 [INFO] [stdout] | [INFO] [stdout] 386 | fn sample_method_syntax() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_use_struct` [INFO] [stdout] --> src/main.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 407 | fn sample_use_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_defining_struct` [INFO] [stdout] --> src/main.rs:430:4 [INFO] [stdout] | [INFO] [stdout] 430 | fn sample_defining_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_string_slice` [INFO] [stdout] --> src/main.rs:453:4 [INFO] [stdout] | [INFO] [stdout] 453 | fn sample_string_slice() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_slice_type` [INFO] [stdout] --> src/main.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn sample_slice_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_ownership_multi_ref` [INFO] [stdout] --> src/main.rs:494:4 [INFO] [stdout] | [INFO] [stdout] 494 | fn sample_ownership_multi_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_ownership_ref` [INFO] [stdout] --> src/main.rs:507:4 [INFO] [stdout] | [INFO] [stdout] 507 | fn sample_ownership_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_ownership` [INFO] [stdout] --> src/main.rs:536:4 [INFO] [stdout] | [INFO] [stdout] 536 | fn sample_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_control_flow` [INFO] [stdout] --> src/main.rs:562:4 [INFO] [stdout] | [INFO] [stdout] 562 | fn sample_control_flow() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_function_call` [INFO] [stdout] --> src/main.rs:609:4 [INFO] [stdout] | [INFO] [stdout] 609 | fn sample_function_call() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_type` [INFO] [stdout] --> src/main.rs:635:4 [INFO] [stdout] | [INFO] [stdout] 635 | fn sample_type() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_len` [INFO] [stdout] --> src/main.rs:643:4 [INFO] [stdout] | [INFO] [stdout] 643 | fn sample_len() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sample_rang` [INFO] [stdout] --> src/main.rs:648:4 [INFO] [stdout] | [INFO] [stdout] 648 | fn sample_rang() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `summarizeD` should have a snake case name [INFO] [stdout] --> src/main.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn summarizeD(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `summarize_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | File::open("./src/hello.txt")?.read_to_string(&mut s2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `commonS` should have a snake case name [INFO] [stdout] --> src/main.rs:455:7 [INFO] [stdout] | [INFO] [stdout] 455 | let commonS = "Hello Common World"; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `common_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.70s [INFO] running `Command { std: "docker" "inspect" "e2ff731c456babb5ec06591758eb45b7c151b49ee96d6c709693a245c45b3986", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2ff731c456babb5ec06591758eb45b7c151b49ee96d6c709693a245c45b3986", kill_on_drop: false }` [INFO] [stdout] e2ff731c456babb5ec06591758eb45b7c151b49ee96d6c709693a245c45b3986