[INFO] cloning repository https://github.com/kanishkd4/Rust-by-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kanishkd4/Rust-by-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkanishkd4%2FRust-by-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkanishkd4%2FRust-by-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a2b88db631e7cfa65de6b348419da65cb5c3b8c7 [INFO] checking kanishkd4/Rust-by-example against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkanishkd4%2FRust-by-example" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kanishkd4/Rust-by-example 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/kanishkd4/Rust-by-example [INFO] finished tweaking git repo https://github.com/kanishkd4/Rust-by-example [INFO] tweaked toml for git repo https://github.com/kanishkd4/Rust-by-example written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/kanishkd4/Rust-by-example 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] 5ada91181111299e7d5d61a9bc38c068640bde408125c0334090ccb7c98acb18 [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" "5ada91181111299e7d5d61a9bc38c068640bde408125c0334090ccb7c98acb18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ada91181111299e7d5d61a9bc38c068640bde408125c0334090ccb7c98acb18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ada91181111299e7d5d61a9bc38c068640bde408125c0334090ccb7c98acb18", kill_on_drop: false }` [INFO] [stdout] 5ada91181111299e7d5d61a9bc38c068640bde408125c0334090ccb7c98acb18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] c13ac8829d1ca1f4a4f9dbd17c54842b763cda1b9d37045badd25efd6f350563 [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" "c13ac8829d1ca1f4a4f9dbd17c54842b763cda1b9d37045badd25efd6f350563", kill_on_drop: false }` [INFO] [stderr] Checking rust-by-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `web_event` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum web_event { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `WebEvent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `page_load` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | page_load, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `PageLoad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `page_unload` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | page_unload, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `PageUnload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `key_press` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | key_press(char), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `KeyPress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `paste` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | paste(String), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Paste` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `click` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | click { x: i64, y: i64 }, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Click` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn foo(_arg: T) {} // becuase T has been specified as a generic type parameter using , [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct S(A); // concrete type S that takes concrete type A defined above // commented for struct S below [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SGen` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct SGen(T); // Generic type SGen [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reg_fn` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn reg_fn(_s: S) {} // a regular function that takes an argument of type S - not a generic function [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gen_spec_t` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn gen_spec_t(_s: SGen) {} // this is also not a generic as SGen has been given the type A [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gen_spec_i32` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn gen_spec_i32(_s: SGen) {} // this is also not a generic [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn generic(_s: SGen) {} // a generic function [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S1` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct S1; // concrete type S [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `GenericVal` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct GenericVal(T, ); // Generic type GenericVal [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `p1` [INFO] [stdout] --> src/bin/c3_custom_types_structs.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | p1: Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `p2` [INFO] [stdout] --> src/bin/c3_custom_types_structs.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | p2: Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/bin/c9_higher_order_diverging_functions.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn foo() -> ! { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Deep` [INFO] [stdout] --> src/bin/c1_formatted_print.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Deep(Structure); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/c8_flow_control_ifelse_loops.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `u64_t` should have an upper camel case name [INFO] [stdout] --> src/bin/c5_types.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | type u64_t = u64; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `U64T` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `p1` [INFO] [stdout] --> src/bin/c3_custom_types_structs.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | p1: Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `p2` [INFO] [stdout] --> src/bin/c3_custom_types_structs.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | p2: Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `u64_t` [INFO] [stdout] --> src/bin/c5_types.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | type u64_t = u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `s` should have an upper camel case name [INFO] [stdout] --> src/bin/c14_generics_bounds_where.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct s(T); // S can only be a type that implements the Display trait - so no vectors [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `S` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Deep` [INFO] [stdout] --> src/bin/c1_formatted_print.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Deep(Structure); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `printer` [INFO] [stdout] --> src/bin/c14_generics_bounds_where.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn printer(t: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `s` [INFO] [stdout] --> src/bin/c14_generics_bounds_where.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct s(T); // S can only be a type that implements the Display trait - so no vectors [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/bin/c9_higher_order_diverging_functions.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn foo() -> ! { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/c8_flow_control_ifelse_loops.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Food` should have a snake case name [INFO] [stdout] --> src/bin/c18_error_option_unwrap.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | Some(Peeled(Food)) => Some(Chopped(Food)), [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `food` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Food` should have a snake case name [INFO] [stdout] --> src/bin/c18_error_option_unwrap.rs:87:26 [INFO] [stdout] | [INFO] [stdout] 87 | chopped.map(|Chopped(Food)| Cooked(Food)) [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `food` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `web_event` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum web_event { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `WebEvent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `page_load` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | page_load, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `PageLoad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `page_unload` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | page_unload, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `PageUnload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `key_press` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | key_press(char), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `KeyPress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `paste` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | paste(String), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Paste` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `click` should have an upper camel case name [INFO] [stdout] --> src/bin/c3_custom_types_enums1.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | click { x: i64, y: i64 }, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Click` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `u64_t` should have an upper camel case name [INFO] [stdout] --> src/bin/c5_types.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | type u64_t = u64; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `U64T` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/c17_macro_dry_dsl_variadics.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bin/c8_flow_control_match.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | 13...19 => println!("A teen"), // match an inclusive range. I've only seen the pattern ... in a match. ..= also works [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bin/c8_flow_control_match.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | n @ 1...12 => println!("A child of {:?}", n), // again `...` instead of `..=` in match. Just stick to ..= in your own code [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bin/c8_flow_control_match.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | n @ 13...19 => println!("A child of age {:?}", n), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `u64_t` [INFO] [stdout] --> src/bin/c5_types.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | type u64_t = u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_assign` [INFO] [stdout] --> src/bin/c17_macro_dry_dsl_variadics.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | fn $func + Copy>(xs: &mut Vec, ys: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | op!(add_assign, Add, +=, add); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_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: function is never used: `mul_assign` [INFO] [stdout] --> src/bin/c17_macro_dry_dsl_variadics.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | fn $func + Copy>(xs: &mut Vec, ys: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | op!(mul_assign, Mul, *=, mul); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [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: function is never used: `sub_assign` [INFO] [stdout] --> src/bin/c17_macro_dry_dsl_variadics.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | fn $func + Copy>(xs: &mut Vec, ys: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | op!(sub_assign, Sub, -=, sub); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `s` should have an upper camel case name [INFO] [stdout] --> src/bin/c14_generics_bounds_where.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct s(T); // S can only be a type that implements the Display trait - so no vectors [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `S` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bin/c8_flow_control_match.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | 13...19 => println!("A teen"), // match an inclusive range. I've only seen the pattern ... in a match. ..= also works [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bin/c8_flow_control_match.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | n @ 1...12 => println!("A child of {:?}", n), // again `...` instead of `..=` in match. Just stick to ..= in your own code [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bin/c8_flow_control_match.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | n @ 13...19 => println!("A child of age {:?}", n), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn foo(_arg: T) {} // becuase T has been specified as a generic type parameter using , [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct S(A); // concrete type S that takes concrete type A defined above // commented for struct S below [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SGen` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct SGen(T); // Generic type SGen [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reg_fn` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn reg_fn(_s: S) {} // a regular function that takes an argument of type S - not a generic function [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gen_spec_t` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn gen_spec_t(_s: SGen) {} // this is also not a generic as SGen has been given the type A [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gen_spec_i32` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn gen_spec_i32(_s: SGen) {} // this is also not a generic [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn generic(_s: SGen) {} // a generic function [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S1` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct S1; // concrete type S [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `GenericVal` [INFO] [stdout] --> src/bin/c14_generics_functions_impl_traits.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct GenericVal(T, ); // Generic type GenericVal [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `printer` [INFO] [stdout] --> src/bin/c14_generics_bounds_where.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn printer(t: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `s` [INFO] [stdout] --> src/bin/c14_generics_bounds_where.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct s(T); // S can only be a type that implements the Display trait - so no vectors [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Food` should have a snake case name [INFO] [stdout] --> src/bin/c18_error_option_unwrap.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | Some(Peeled(Food)) => Some(Chopped(Food)), [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `food` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Food` should have a snake case name [INFO] [stdout] --> src/bin/c18_error_option_unwrap.rs:87:26 [INFO] [stdout] | [INFO] [stdout] 87 | chopped.map(|Chopped(Food)| Cooked(Food)) [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `food` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.47s [INFO] running `Command { std: "docker" "inspect" "c13ac8829d1ca1f4a4f9dbd17c54842b763cda1b9d37045badd25efd6f350563", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c13ac8829d1ca1f4a4f9dbd17c54842b763cda1b9d37045badd25efd6f350563", kill_on_drop: false }` [INFO] [stdout] c13ac8829d1ca1f4a4f9dbd17c54842b763cda1b9d37045badd25efd6f350563