[INFO] cloning repository https://github.com/weiyinfu/learnRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/weiyinfu/learnRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweiyinfu%2FlearnRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweiyinfu%2FlearnRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b92f974f76c58bb7409cbe26d320d3d66d04aef [INFO] checking weiyinfu/learnRust against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweiyinfu%2FlearnRust" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/weiyinfu/learnRust 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/weiyinfu/learnRust [INFO] finished tweaking git repo https://github.com/weiyinfu/learnRust [INFO] tweaked toml for git repo https://github.com/weiyinfu/learnRust written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/weiyinfu/learnRust 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 ferris-says v0.1.2 [INFO] [stderr] Downloaded smallvec v0.4.5 [INFO] [stderr] Downloaded pin-project-internal v0.4.9 [INFO] [stderr] Downloaded pin-project v0.4.9 [INFO] [stderr] Downloaded tokio v0.2.20 [INFO] [stderr] Downloaded hyper v0.13.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] fafb9600b05ee6bdc8a25d080de39f2c073b8b955fbc6383d57f62c89e9c799e [INFO] running `Command { std: "docker" "start" "-a" "fafb9600b05ee6bdc8a25d080de39f2c073b8b955fbc6383d57f62c89e9c799e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fafb9600b05ee6bdc8a25d080de39f2c073b8b955fbc6383d57f62c89e9c799e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fafb9600b05ee6bdc8a25d080de39f2c073b8b955fbc6383d57f62c89e9c799e", kill_on_drop: false }` [INFO] [stdout] fafb9600b05ee6bdc8a25d080de39f2c073b8b955fbc6383d57f62c89e9c799e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] 3dcfee7448f1619d6d0a9ded7e9b5629bbee09a51c5f58e28a14bf7303b7c8b5 [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" "3dcfee7448f1619d6d0a9ded7e9b5629bbee09a51c5f58e28a14bf7303b7c8b5", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking smallvec v0.4.5 [INFO] [stderr] Compiling backtrace-sys v0.1.35 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Compiling quote v1.0.4 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Compiling syn v1.0.18 [INFO] [stderr] Checking tokio v0.2.20 [INFO] [stderr] Checking backtrace v0.3.46 [INFO] [stderr] Checking error-chain v0.10.0 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking ferris-says v0.1.2 [INFO] [stderr] Checking serde_json v1.0.52 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking h2 v0.2.4 [INFO] [stderr] Compiling pin-project-internal v0.4.9 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Checking pin-project v0.4.9 [INFO] [stderr] Checking hyper v0.13.5 [INFO] [stderr] Checking learnRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `b` [INFO] [stdout] --> src/cnTest.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn b() {} [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `haha` [INFO] [stdout] --> src/useFolder/one.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn haha() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `haha` [INFO] [stdout] --> src/useFolder/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn haha() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/afStruct.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | enum No {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> src/bin/40-手势密码的种数.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> src/bin/03-链表小练习-实现move_next.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::export::Formatter` [INFO] [stdout] --> src/bin/40-手势密码的种数.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::export::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/40-手势密码的种数.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | let mut c = get_patterns(&mut dp, j, i).clone().to_vec(); [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> src/bin/40-手势密码的种数.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::export::Formatter` [INFO] [stdout] --> src/bin/40-手势密码的种数.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::export::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/abPrint.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | write!(f, "["); [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] = 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/abPrint.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | write!(f, ","); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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/abPrint.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | write!(f, "{}", self.0[i]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `a[_][_]`, as `Fn` closures cannot mutate their captured variables [INFO] [stdout] --> src/bin/13-闭包递归八皇后.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | a[x][y] = 1; [INFO] [stdout] | ^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `a[_][_]`, as `Fn` closures cannot mutate their captured variables [INFO] [stdout] --> src/bin/13-闭包递归八皇后.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | a[x][y] = 0; [INFO] [stdout] | ^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `a[_][_]`, as `Fn` closures cannot mutate their captured variables [INFO] [stdout] --> src/bin/13-闭包递归八皇后.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | a[x][y] = 1; [INFO] [stdout] | ^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `a` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bin/13-闭包递归八皇后.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 12 | let canput = |x: &usize, y: &usize| { [INFO] [stdout] | ---------------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 21 | if a[xx as usize][yy as usize] != 0 { [INFO] [stdout] | - first borrow occurs due to use of `a` in closure [INFO] [stdout] ... [INFO] [stdout] 46 | go: &|g, x, y| { [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 55 | if canput(&x, &y) { [INFO] [stdout] | ------ immutable borrow later captured here by closure [INFO] [stdout] 56 | a[x][y] = 1; [INFO] [stdout] | - second borrow occurs due to use of `a` in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0594. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `a[_][_]`, as `Fn` closures cannot mutate their captured variables [INFO] [stdout] --> src/bin/13-闭包递归八皇后.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | a[x][y] = 0; [INFO] [stdout] | ^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `a` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bin/13-闭包递归八皇后.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 12 | let canput = |x: &usize, y: &usize| { [INFO] [stdout] | ---------------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 21 | if a[xx as usize][yy as usize] != 0 { [INFO] [stdout] | - first borrow occurs due to use of `a` in closure [INFO] [stdout] ... [INFO] [stdout] 46 | go: &|g, x, y| { [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 55 | if canput(&x, &y) { [INFO] [stdout] | ------ immutable borrow later captured here by closure [INFO] [stdout] 56 | a[x][y] = 1; [INFO] [stdout] | - second borrow occurs due to use of `a` in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/40-手势密码的种数.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | let mut c = get_patterns(&mut dp, j, i).clone().to_vec(); [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] Some errors have detailed explanations: E0502, E0594. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `learnRust` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable `queenCount` should have a snake case name [INFO] [stdout] --> src/bin/14-基于面向对象的八皇后.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | fn go(&mut self, x: usize, y: usize, queenCount: i32) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `queen_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [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: unused import: `std::ops::DerefMut` [INFO] [stdout] --> src/bin/03-链表小练习-实现move_next.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `queenCount` should have a snake case name [INFO] [stdout] --> src/bin/14-基于面向对象的八皇后.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | fn go(&mut self, x: usize, y: usize, queenCount: i32) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `queen_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/axIfLet.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | / if let Node { value } = x { [INFO] [stdout] 154 | | println!("{}", value); [INFO] [stdout] 155 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/axIfLet.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | / if let Node(value) = x { [INFO] [stdout] 172 | | println!("{}", value); [INFO] [stdout] 173 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/axIfLet.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 176 | Node(value) => println!("value is {}", value), [INFO] [stdout] | ----------- matches any value [INFO] [stdout] 177 | //下面这个分支永远不会执行到 [INFO] [stdout] 178 | Node(3) => println!("value is 3"), [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `xNode` [INFO] [stdout] --> src/aeEnum.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | xNode(i32), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/aeEnum.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | User { name: String, age: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/aeEnum.rs:60:34 [INFO] [stdout] | [INFO] [stdout] 60 | User { name: String, age: i32 }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/aeEnum.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/aeEnum.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> src/aeEnum.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/afStruct.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `one` [INFO] [stdout] --> src/afStruct.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | fn one() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two` [INFO] [stdout] --> src/afStruct.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | fn two(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `four` [INFO] [stdout] --> src/afStruct.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | fn four(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Node` [INFO] [stdout] --> src/afStruct.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | struct Node; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `No` [INFO] [stdout] --> src/afStruct.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 90 | enum No {}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Red` [INFO] [stdout] --> src/apMatch.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blue` [INFO] [stdout] --> src/apMatch.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Green` [INFO] [stdout] --> src/apMatch.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HSV` [INFO] [stdout] --> src/apMatch.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | HSV(u32, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HSL` [INFO] [stdout] --> src/apMatch.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | HSL(u32, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CMY` [INFO] [stdout] --> src/apMatch.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | CMY(u32, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CMYK` [INFO] [stdout] --> src/apMatch.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | CMYK(u32, u32, u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/apMatch.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | y: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Missing` [INFO] [stdout] --> src/apMatch.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | Missing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Err` [INFO] [stdout] --> src/aqUsefulStruct.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | Err(E), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/bfLifetime.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | fn longest(x: &str) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `go` [INFO] [stdout] --> src/bfLifetime.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 223 | fn go<'a>(curcur: &'a mut &'a mut Box) {} [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `haha` [INFO] [stdout] --> src/caModule.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | fn haha() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `haha` [INFO] [stdout] --> src/caModule.rs:94:27 [INFO] [stdout] | [INFO] [stdout] 94 | pub(crate) fn haha() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `haha` [INFO] [stdout] --> src/caModule.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | fn haha() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Some` [INFO] [stdout] --> src/ceGeneric.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | Some(T), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/ceGeneric.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Result` [INFO] [stdout] --> src/ceGeneric.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance` [INFO] [stdout] --> src/ceGeneric.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | fn distance>(graph: &G, start: &N, end: &N) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance` [INFO] [stdout] --> src/ceGeneric.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | fn distance(graph: &G, start: &G::N, end: &G::N) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_assign` [INFO] [stdout] --> src/clMacro.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | fn $func + Copy>(xs: &mut Vec, ys: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | op!(add_assign, Add, +=, add); [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: `mul_assign` [INFO] [stdout] --> src/clMacro.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | fn $func + Copy>(xs: &mut Vec, ys: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | 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/clMacro.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | fn $func + Copy>(xs: &mut Vec, ys: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | 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: function is never used: `haha` [INFO] [stdout] --> src/useFolder/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn haha() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/abPrint.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | write!(f, "["); [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] = 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 `std::result::Result` that must be used [INFO] [stdout] --> src/abPrint.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | write!(f, ","); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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 `std::result::Result` that must be used [INFO] [stdout] --> src/abPrint.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | write!(f, "{}", self.0[i]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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: constant `x` should have an upper case name [INFO] [stdout] --> src/aeArray.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | const x: i32 = 3; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `X` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/aoExpression.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | 2 * x; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `x` should have an upper case name [INFO] [stdout] --> src/bhSingleton.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | static mut x: i32 = 0; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> src/ckClosure.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | s; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/mcFile.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `n` should have an upper case name [INFO] [stdout] --> src/mhVec.rs:138:11 [INFO] [stdout] | [INFO] [stdout] 138 | const n: usize = 10; [INFO] [stdout] | ^ help: convert the identifier to upper case: `N` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "3dcfee7448f1619d6d0a9ded7e9b5629bbee09a51c5f58e28a14bf7303b7c8b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3dcfee7448f1619d6d0a9ded7e9b5629bbee09a51c5f58e28a14bf7303b7c8b5", kill_on_drop: false }` [INFO] [stdout] 3dcfee7448f1619d6d0a9ded7e9b5629bbee09a51c5f58e28a14bf7303b7c8b5