[INFO] cloning repository https://github.com/Buzov/StudyOfRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Buzov/StudyOfRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBuzov%2FStudyOfRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBuzov%2FStudyOfRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b55ba1e41448c3170bc5e8968f1841e85d8daec8 [INFO] checking Buzov/StudyOfRust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBuzov%2FStudyOfRust" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Buzov/StudyOfRust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Buzov/StudyOfRust [INFO] finished tweaking git repo https://github.com/Buzov/StudyOfRust [INFO] tweaked toml for git repo https://github.com/Buzov/StudyOfRust written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/Buzov/StudyOfRust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 334d3d09973df2ff729c36d93adc911aa48f1d33c182c925963b07a17723611e [INFO] running `Command { std: "docker" "start" "-a" "334d3d09973df2ff729c36d93adc911aa48f1d33c182c925963b07a17723611e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "334d3d09973df2ff729c36d93adc911aa48f1d33c182c925963b07a17723611e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "334d3d09973df2ff729c36d93adc911aa48f1d33c182c925963b07a17723611e", kill_on_drop: false }` [INFO] [stdout] 334d3d09973df2ff729c36d93adc911aa48f1d33c182c925963b07a17723611e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86aea6f0f28e90b02ae80cbc0094d461227d2b409c08537cfa1426bbf4697cb2 [INFO] running `Command { std: "docker" "start" "-a" "86aea6f0f28e90b02ae80cbc0094d461227d2b409c08537cfa1426bbf4697cb2", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking StudyOfRust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `StudyOfRust` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/structure.rs [INFO] [stderr] * src/types.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0425]: cannot find value `x` in this scope [INFO] [stderr] --> src/structure.rs:189:5 [INFO] [stderr] | [INFO] [stderr] 189 | x [INFO] [stderr] | ^ help: a local variable with a similar name exists: `_x` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `x` in this scope [INFO] [stderr] --> src/types.rs:227:5 [INFO] [stderr] | [INFO] [stderr] 227 | x [INFO] [stderr] | ^ help: a local variable with a similar name exists: `_x` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `x` in this scope [INFO] [stderr] --> src/types.rs:233:5 [INFO] [stderr] | [INFO] [stderr] 233 | x [INFO] [stderr] | ^ help: a local variable with a similar name exists: `_x` [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/structure.rs:189:5 [INFO] [stderr] | [INFO] [stderr] 187 | let _x = match void { [INFO] [stderr] | _______________- [INFO] [stderr] 188 | | }; [INFO] [stderr] | |_____- any code following this expression is unreachable [INFO] [stderr] 189 | x [INFO] [stderr] | ^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/types.rs:227:5 [INFO] [stderr] | [INFO] [stderr] 226 | let _x: i32 = exclamation_mark_1(); [INFO] [stderr] | -------------------- any code following this expression is unreachable [INFO] [stderr] 227 | x [INFO] [stderr] | ^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/types.rs:233:5 [INFO] [stderr] | [INFO] [stderr] 232 | let _x = exclamation_mark_2(); [INFO] [stderr] | -------------------- any code following this expression is unreachable [INFO] [stderr] 233 | x [INFO] [stderr] | ^ unreachable expression [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0425`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:267:19 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> (f64,f64)` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:267:19 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> (f64,f64)` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/structure.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ______________- [INFO] [stdout] 188 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 189 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/structure.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ______________- [INFO] [stdout] 188 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 189 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 227 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 233 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/structure.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let t = Zero; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 227 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 233 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d1` [INFO] [stdout] --> src/structure.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let d1: Distance = Distance { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/structure.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let d2: Distance = Distance { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/structure.rs:128:14 [INFO] [stdout] | [INFO] [stdout] 128 | Some(value) => println!("Some"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/structure.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bottom_left` [INFO] [stdout] --> src/structure.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | Shape::Square { bottom_left, top_right } => { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `bottom_left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_right` [INFO] [stdout] --> src/structure.rs:93:42 [INFO] [stdout] | [INFO] [stdout] 93 | Shape::Square { bottom_left, top_right } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `top_right: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/types.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut buf = [0u8; 1024]; // буфер из 1024 элементов, заполненный нулями [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut x: i32 = 92; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let x: Box = Box::new(92); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/types.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn bar(b: &i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let x: () = while false {}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/types.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let x2: () = if true { 92; }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounded` [INFO] [stdout] --> src/types.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let bounded: std::ops::Range = 0..10; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/types.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let from = 0..; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/types.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let to = ..10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `full` [INFO] [stdout] --> src/types.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let full = ..; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inclusive` [INFO] [stdout] --> src/types.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let inclusive = 0..=9; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inclusive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/types.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let s = if x > 0 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/types.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let i: i32 = { 1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/types.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let i: () = { 1; }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> src/types.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | let one: (f32,) = (0.0,); // кортеж из одного элемента, нужна запятая [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/structure.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let t = Zero; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d1` [INFO] [stdout] --> src/structure.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let d1: Distance = Distance { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/structure.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let d2: Distance = Distance { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/structure.rs:128:14 [INFO] [stdout] | [INFO] [stdout] 128 | Some(value) => println!("Some"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/structure.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bottom_left` [INFO] [stdout] --> src/structure.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | Shape::Square { bottom_left, top_right } => { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `bottom_left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_right` [INFO] [stdout] --> src/structure.rs:93:42 [INFO] [stdout] | [INFO] [stdout] 93 | Shape::Square { bottom_left, top_right } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `top_right: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/types.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut buf = [0u8; 1024]; // буфер из 1024 элементов, заполненный нулями [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut x: i32 = 92; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let x: Box = Box::new(92); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/types.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn bar(b: &i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let x: () = while false {}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/types.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let x2: () = if true { 92; }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounded` [INFO] [stdout] --> src/types.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let bounded: std::ops::Range = 0..10; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/types.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let from = 0..; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/types.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let to = ..10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `full` [INFO] [stdout] --> src/types.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let full = ..; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_full` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inclusive` [INFO] [stdout] --> src/types.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let inclusive = 0..=9; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inclusive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/types.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let s = if x > 0 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/types.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let i: i32 = { 1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/types.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let i: () = { 1; }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/types.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> src/types.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | let one: (f32,) = (0.0,); // кортеж из одного элемента, нужна запятая [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut buf = [0u8; 1024]; // буфер из 1024 элементов, заполненный нулями [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut x: i32 = 92; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut buf = [0u8; 1024]; // буфер из 1024 элементов, заполненный нулями [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut x: i32 = 92; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dist` [INFO] [stdout] --> src/structure.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn dist(self, other: StructTuple) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Kilometers` [INFO] [stdout] --> src/structure.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Kilometers; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Miles` [INFO] [stdout] --> src/structure.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct Miles; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Distance` [INFO] [stdout] --> src/structure.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Distance { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_types_struct` [INFO] [stdout] --> src/structure.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn test_types_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Shape` [INFO] [stdout] --> src/structure.rs:73:6 [INFO] [stdout] | [INFO] [stdout] 73 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `circle` [INFO] [stdout] --> src/structure.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn circle(center: Point, radius: f64) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/structure.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr` [INFO] [stdout] --> src/structure.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 100 | enum Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `binary_search` [INFO] [stdout] --> src/structure.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn binary_search(xs: &[i32], x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo2` [INFO] [stdout] --> src/structure.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn foo2(xs: &[i32]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr1` [INFO] [stdout] --> src/structure.rs:148:6 [INFO] [stdout] | [INFO] [stdout] 148 | enum Expr1 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr2` [INFO] [stdout] --> src/structure.rs:161:6 [INFO] [stdout] | [INFO] [stdout] 161 | enum Expr2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BinOp` [INFO] [stdout] --> src/structure.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | struct BinOp { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `If` [INFO] [stdout] --> src/structure.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | struct If { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Op` [INFO] [stdout] --> src/structure.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | struct Op { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Void` [INFO] [stdout] --> src/structure.rs:184:6 [INFO] [stdout] | [INFO] [stdout] 184 | enum Void {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_enum_void` [INFO] [stdout] --> src/structure.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn test_enum_void(void: Void) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `array` [INFO] [stdout] --> src/types.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn array() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_test` [INFO] [stdout] --> src/types.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub(super)fn box_test() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/types.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn foo() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bar` [INFO] [stdout] --> src/types.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn bar(b: &i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_vec` [INFO] [stdout] --> src/types.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | pub(super)fn test_vec() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_ranges` [INFO] [stdout] --> src/types.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | pub(super)fn test_ranges() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop` [INFO] [stdout] --> src/types.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | pub(super)fn test_loop() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop_2` [INFO] [stdout] --> src/types.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | pub(super)fn test_loop_2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop_3` [INFO] [stdout] --> src/types.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | pub(super)fn test_loop_3() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_expression` [INFO] [stdout] --> src/types.rs:155:14 [INFO] [stdout] | [INFO] [stdout] 155 | pub(super)fn test_expression() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_fn_like_parameter` [INFO] [stdout] --> src/types.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | pub(super)fn test_fn_like_parameter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fn_like_parameter` [INFO] [stdout] --> src/types.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn fn_like_parameter(func: fn(i32) -> i32, i: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `block` [INFO] [stdout] --> src/types.rs:220:4 [INFO] [stdout] | [INFO] [stdout] 220 | fn block() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_0` [INFO] [stdout] --> src/types.rs:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn exclamation_mark_0() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dist` [INFO] [stdout] --> src/structure.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn dist(self, other: StructTuple) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_1` [INFO] [stdout] --> src/types.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn exclamation_mark_1() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_2` [INFO] [stdout] --> src/types.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn exclamation_mark_2() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuple_fn` [INFO] [stdout] --> src/types.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_slice` [INFO] [stdout] --> src/types.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn print_slice(xs: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `StudyOfRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `study_of_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Kilometers` [INFO] [stdout] --> src/structure.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Kilometers; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Miles` [INFO] [stdout] --> src/structure.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct Miles; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Distance` [INFO] [stdout] --> src/structure.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Distance { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_types_struct` [INFO] [stdout] --> src/structure.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn test_types_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Shape` [INFO] [stdout] --> src/structure.rs:73:6 [INFO] [stdout] | [INFO] [stdout] 73 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `circle` [INFO] [stdout] --> src/structure.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn circle(center: Point, radius: f64) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/structure.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr` [INFO] [stdout] --> src/structure.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 100 | enum Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `binary_search` [INFO] [stdout] --> src/structure.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn binary_search(xs: &[i32], x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo2` [INFO] [stdout] --> src/structure.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn foo2(xs: &[i32]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr1` [INFO] [stdout] --> src/structure.rs:148:6 [INFO] [stdout] | [INFO] [stdout] 148 | enum Expr1 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Expr2` [INFO] [stdout] --> src/structure.rs:161:6 [INFO] [stdout] | [INFO] [stdout] 161 | enum Expr2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BinOp` [INFO] [stdout] --> src/structure.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | struct BinOp { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `If` [INFO] [stdout] --> src/structure.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | struct If { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Op` [INFO] [stdout] --> src/structure.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | struct Op { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Void` [INFO] [stdout] --> src/structure.rs:184:6 [INFO] [stdout] | [INFO] [stdout] 184 | enum Void {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_enum_void` [INFO] [stdout] --> src/structure.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn test_enum_void(void: Void) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `array` [INFO] [stdout] --> src/types.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn array() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_test` [INFO] [stdout] --> src/types.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub(super)fn box_test() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/types.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn foo() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bar` [INFO] [stdout] --> src/types.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn bar(b: &i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_vec` [INFO] [stdout] --> src/types.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | pub(super)fn test_vec() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_ranges` [INFO] [stdout] --> src/types.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | pub(super)fn test_ranges() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop` [INFO] [stdout] --> src/types.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | pub(super)fn test_loop() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop_2` [INFO] [stdout] --> src/types.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | pub(super)fn test_loop_2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_loop_3` [INFO] [stdout] --> src/types.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | pub(super)fn test_loop_3() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_expression` [INFO] [stdout] --> src/types.rs:155:14 [INFO] [stdout] | [INFO] [stdout] 155 | pub(super)fn test_expression() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_fn_like_parameter` [INFO] [stdout] --> src/types.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | pub(super)fn test_fn_like_parameter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fn_like_parameter` [INFO] [stdout] --> src/types.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn fn_like_parameter(func: fn(i32) -> i32, i: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `block` [INFO] [stdout] --> src/types.rs:220:4 [INFO] [stdout] | [INFO] [stdout] 220 | fn block() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_0` [INFO] [stdout] --> src/types.rs:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn exclamation_mark_0() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_1` [INFO] [stdout] --> src/types.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn exclamation_mark_1() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exclamation_mark_2` [INFO] [stdout] --> src/types.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn exclamation_mark_2() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuple_fn` [INFO] [stdout] --> src/types.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_slice` [INFO] [stdout] --> src/types.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn print_slice(xs: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `StudyOfRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `study_of_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 67 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 67 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.75s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking StudyOfRust v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/types.rs:267:19 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &dyn Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/types.rs:267:19 [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 267 | fn tuple_fn(fun: &dyn Fn() -> (f64,f64)) -> (f64,f64) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/structure.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ______________- [INFO] [stdout] 188 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 189 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/structure.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 187 | let x = match void { [INFO] [stdout] | ______________- [INFO] [stdout] 188 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 189 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 227 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 233 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0782`. [INFO] [stdout] [INFO] [stderr] error: could not compile `StudyOfRust` due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 226 | let x: i32 = exclamation_mark_1(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 227 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 232 | let x = exclamation_mark_2(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 233 | x [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0782`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "86aea6f0f28e90b02ae80cbc0094d461227d2b409c08537cfa1426bbf4697cb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86aea6f0f28e90b02ae80cbc0094d461227d2b409c08537cfa1426bbf4697cb2", kill_on_drop: false }` [INFO] [stdout] 86aea6f0f28e90b02ae80cbc0094d461227d2b409c08537cfa1426bbf4697cb2