[INFO] cloning repository https://github.com/NeuropathyCC/rust_study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NeuropathyCC/rust_study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuropathyCC%2Frust_study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuropathyCC%2Frust_study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4e71580497824fbcad4062ad3924e22c1edf95e0 [INFO] checking NeuropathyCC/rust_study against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuropathyCC%2Frust_study" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NeuropathyCC/rust_study on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NeuropathyCC/rust_study [INFO] finished tweaking git repo https://github.com/NeuropathyCC/rust_study [INFO] tweaked toml for git repo https://github.com/NeuropathyCC/rust_study written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/NeuropathyCC/rust_study already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b834822d34ceebf91c50be3ee848b8f84037c4c8f95a6f9bdb81e52f28d121a1 [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" "b834822d34ceebf91c50be3ee848b8f84037c4c8f95a6f9bdb81e52f28d121a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b834822d34ceebf91c50be3ee848b8f84037c4c8f95a6f9bdb81e52f28d121a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b834822d34ceebf91c50be3ee848b8f84037c4c8f95a6f9bdb81e52f28d121a1", kill_on_drop: false }` [INFO] [stdout] b834822d34ceebf91c50be3ee848b8f84037c4c8f95a6f9bdb81e52f28d121a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] c6c7587e284262b0b5327473dd60ca8e9235d22e090fd9f3a28e5f5e1dfff1e6 [INFO] running `Command { std: "docker" "start" "-a" "c6c7587e284262b0b5327473dd60ca8e9235d22e090fd9f3a28e5f5e1dfff1e6", kill_on_drop: false }` [INFO] [stderr] Checking lifetime v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lifetime/lifetime.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | fn fool<'a> (s: &'a str) -> Box + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn Foo<'a> + 'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `math_op` should have an upper camel case name [INFO] [stdout] --> src/function/higherorderfunction.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | type math_op = fn(i32, i32) -> i32; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MathOp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/function/closure.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | let c : Box< Fn() -> i32 >= Box::new( | | env_var + 2 ); [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lifetime/lifetime.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | fn fool<'a> (s: &'a str) -> Box + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn Foo<'a> + 'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `math_op` should have an upper camel case name [INFO] [stdout] --> src/function/higherorderfunction.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | type math_op = fn(i32, i32) -> i32; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MathOp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/function/closure.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | let c : Box< Fn() -> i32 >= Box::new( | | env_var + 2 ); [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/lifetime/lifetime.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let result = String::from("hello, lifetime"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lifetime/lifetime.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let c = *a; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let d= *b; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | let y1 = x.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y2` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | let y2 = x.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | let w = Rc::downgrade(&x); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y3` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let y3 = &*x; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/function/functions.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | let (a, b) = addsub(56, 12); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/function/functions.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let (a, b) = addsub(56, 12); [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/function/higherorderfunction.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | fn one_arg(x: i32) { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fn_ptr1` [INFO] [stdout] --> src/function/higherorderfunction.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let fn_ptr1: fn(i32) = one_arg; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fn_ptr1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other_fn` [INFO] [stdout] --> src/function/higherorderfunction.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let other_fn = fn_ptr; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_other_fn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/function/closure.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let c : Box< Fn() -> i32 >= Box::new( | | env_var + 2 ); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/lifetime/lifetime.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let result = String::from("hello, lifetime"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lifetime/lifetime.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let c = *a; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let d= *b; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | let y1 = x.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y2` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | let y2 = x.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | let w = Rc::downgrade(&x); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y3` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let y3 = &*x; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/function/functions.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | let (a, b) = addsub(56, 12); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/function/functions.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let (a, b) = addsub(56, 12); [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/function/higherorderfunction.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | fn one_arg(x: i32) { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fn_ptr1` [INFO] [stdout] --> src/function/higherorderfunction.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let fn_ptr1: fn(i32) = one_arg; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fn_ptr1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other_fn` [INFO] [stdout] --> src/function/higherorderfunction.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let other_fn = fn_ptr; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_other_fn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/function/closure.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let c : Box< Fn() -> i32 >= Box::new( | | env_var + 2 ); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute` [INFO] [stdout] --> src/borrow/borrow.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn compute(input: &u32, output: &mut u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_2` [INFO] [stdout] --> src/lifetime/lifetime.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest_str` [INFO] [stdout] --> src/lifetime/lifetime.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn longest_str<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/lifetime/lifetime.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn longest<'a, 'b: 'a>(a: &'a str, b: &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/lifetime/lifetime.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | name:&'a str [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fool` [INFO] [stdout] --> src/lifetime/lifetime.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn fool<'a> (s: &'a str) -> Box + 'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_1` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn eg_1() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_2` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn eg_2() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_rc` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn eg_rc(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Foo` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Foo{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn main (){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `snake_case` [INFO] [stdout] --> src/function/functions.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn snake_case () {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fn` [INFO] [stdout] --> src/function/functions.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn r#fn() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `f` [INFO] [stdout] --> src/function/functions.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn f() { print!("1"); } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/functions.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fm` [INFO] [stdout] --> src/function/functions.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn fm(ref _s: S){ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/function/functions.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn foo(_: i32) { // 忽略参数 [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `addsub` [INFO] [stdout] --> src/function/functions.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | fn addsub(x: usize, y: usize) -> (usize, usize){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `square` [INFO] [stdout] --> src/function/functions.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn square> (x: T, y: T) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `show` [INFO] [stdout] --> src/function/functions.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_user` [INFO] [stdout] --> src/function/functions.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn show_user (){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `math_op` [INFO] [stdout] --> src/function/higherorderfunction.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | type math_op = fn(i32, i32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `math` [INFO] [stdout] --> src/function/higherorderfunction.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn math(op: math_op, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hello` [INFO] [stdout] --> src/function/higherorderfunction.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn hello() { } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `one_arg` [INFO] [stdout] --> src/function/higherorderfunction.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn one_arg(x: i32) { } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/higherorderfunction.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `counter` [INFO] [stdout] --> src/function/closure.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn counter(x: i32) -> impl Fn(i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/closure.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute` [INFO] [stdout] --> src/borrow/borrow.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn compute(input: &u32, output: &mut u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_2` [INFO] [stdout] --> src/lifetime/lifetime.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest_str` [INFO] [stdout] --> src/lifetime/lifetime.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn longest_str<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/lifetime/lifetime.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn longest<'a, 'b: 'a>(a: &'a str, b: &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/lifetime/lifetime.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | name:&'a str [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fool` [INFO] [stdout] --> src/lifetime/lifetime.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn fool<'a> (s: &'a str) -> Box + 'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_1` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn eg_1() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_2` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn eg_2() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eg_rc` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn eg_rc(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Foo` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Foo{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/lifetime/smartptr_ownership.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn main (){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `snake_case` [INFO] [stdout] --> src/function/functions.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn snake_case () {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fn` [INFO] [stdout] --> src/function/functions.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn r#fn() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `f` [INFO] [stdout] --> src/function/functions.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn f() { print!("1"); } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/functions.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fm` [INFO] [stdout] --> src/function/functions.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn fm(ref _s: S){ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> src/function/functions.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn foo(_: i32) { // 忽略参数 [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `addsub` [INFO] [stdout] --> src/function/functions.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | fn addsub(x: usize, y: usize) -> (usize, usize){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `square` [INFO] [stdout] --> src/function/functions.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn square> (x: T, y: T) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `show` [INFO] [stdout] --> src/function/functions.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_user` [INFO] [stdout] --> src/function/functions.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn show_user (){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `math_op` [INFO] [stdout] --> src/function/higherorderfunction.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | type math_op = fn(i32, i32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `math` [INFO] [stdout] --> src/function/higherorderfunction.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn math(op: math_op, a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hello` [INFO] [stdout] --> src/function/higherorderfunction.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn hello() { } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `one_arg` [INFO] [stdout] --> src/function/higherorderfunction.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn one_arg(x: i32) { } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/higherorderfunction.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `counter` [INFO] [stdout] --> src/function/closure.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn counter(x: i32) -> impl Fn(i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/function/closure.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn main () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "c6c7587e284262b0b5327473dd60ca8e9235d22e090fd9f3a28e5f5e1dfff1e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6c7587e284262b0b5327473dd60ca8e9235d22e090fd9f3a28e5f5e1dfff1e6", kill_on_drop: false }` [INFO] [stdout] c6c7587e284262b0b5327473dd60ca8e9235d22e090fd9f3a28e5f5e1dfff1e6