[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] testing NeuropathyCC/rust_study against beta-2020-10-09 for beta-1.48-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuropathyCC%2Frust_study" "/workspace/builds/worker-1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/NeuropathyCC/rust_study on toolchain beta-2020-10-09
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-10-09" "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-1/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" "+beta-2020-10-09" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "+beta-2020-10-09" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a2fe0ecc435ee294ed31a6872f86e679cb09407b94ea4d9e56bf11efdc48a36d
[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" "a2fe0ecc435ee294ed31a6872f86e679cb09407b94ea4d9e56bf11efdc48a36d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a2fe0ecc435ee294ed31a6872f86e679cb09407b94ea4d9e56bf11efdc48a36d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a2fe0ecc435ee294ed31a6872f86e679cb09407b94ea4d9e56bf11efdc48a36d", kill_on_drop: false }`
[INFO] [stdout] a2fe0ecc435ee294ed31a6872f86e679cb09407b94ea4d9e56bf11efdc48a36d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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" "+beta-2020-10-09" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 615693495bbe1052b0c392a2b824cb422fe6cf62bace3468953baf650880733c
[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" "615693495bbe1052b0c392a2b824cb422fe6cf62bace3468953baf650880733c", kill_on_drop: false }`
[INFO] [stderr]    Compiling 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<Foo<'a> + '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: 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<Foo<'a> + '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<T: Mul<Output = T>> (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.69s
[INFO] running `Command { std: "docker" "inspect" "615693495bbe1052b0c392a2b824cb422fe6cf62bace3468953baf650880733c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "615693495bbe1052b0c392a2b824cb422fe6cf62bace3468953baf650880733c", kill_on_drop: false }`
[INFO] [stdout] 615693495bbe1052b0c392a2b824cb422fe6cf62bace3468953baf650880733c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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" "+beta-2020-10-09" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 603c08b4f660aef782c7eb2c3aea1e11410dc0990be8e4740e3fcf0b15194d03
[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" "603c08b4f660aef782c7eb2c3aea1e11410dc0990be8e4740e3fcf0b15194d03", kill_on_drop: false }`
[INFO] [stderr]    Compiling 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<Foo<'a> + '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: 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<Foo<'a> + '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<T: Mul<Output = T>> (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 test [unoptimized + debuginfo] target(s) in 0.61s
[INFO] running `Command { std: "docker" "inspect" "603c08b4f660aef782c7eb2c3aea1e11410dc0990be8e4740e3fcf0b15194d03", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "603c08b4f660aef782c7eb2c3aea1e11410dc0990be8e4740e3fcf0b15194d03", kill_on_drop: false }`
[INFO] [stdout] 603c08b4f660aef782c7eb2c3aea1e11410dc0990be8e4740e3fcf0b15194d03
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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" "+beta-2020-10-09" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 14d06dc30b34e8b23582b492d0939c8d5f2387816670a5f8f46b9fc39245ad2e
[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" "14d06dc30b34e8b23582b492d0939c8d5f2387816670a5f8f46b9fc39245ad2e", kill_on_drop: false }`
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/lifetime/lifetime.rs:58:33
[INFO] [stderr]    |
[INFO] [stderr] 58 | fn fool<'a> (s: &'a str) -> Box<Foo<'a> + 'a> {
[INFO] [stderr]    |                                 ^^^^^^^^^^^^ help: use `dyn`: `dyn Foo<'a> + 'a`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: type `math_op` should have an upper camel case name
[INFO] [stderr]  --> src/function/higherorderfunction.rs:2:6
[INFO] [stderr]   |
[INFO] [stderr] 2 | type math_op = fn(i32, i32)  -> i32;
[INFO] [stderr]   |      ^^^^^^^ help: convert the identifier to upper camel case: `MathOp`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/function/closure.rs:41:18
[INFO] [stderr]    |
[INFO] [stderr] 41 |     let c : Box< Fn() -> i32 >= Box::new( | | env_var + 2 );
[INFO] [stderr]    |                  ^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> i32`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `result`
[INFO] [stderr]   --> src/lifetime/lifetime.rs:17:9
[INFO] [stderr]    |
[INFO] [stderr] 17 |     let result = String::from("hello, lifetime");
[INFO] [stderr]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `b`
[INFO] [stderr]   --> src/lifetime/lifetime.rs:16:25
[INFO] [stderr]    |
[INFO] [stderr] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str{
[INFO] [stderr]    |                         ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `y`
[INFO] [stderr]  --> src/lifetime/smartptr_ownership.rs:6:9
[INFO] [stderr]   |
[INFO] [stderr] 6 |     let y = x;
[INFO] [stderr]   |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `c`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:13:9
[INFO] [stderr]    |
[INFO] [stderr] 13 |     let c = *a;
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_c`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `d`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr] 14 |     let d= *b;
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_d`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `y1`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:25:8
[INFO] [stderr]    |
[INFO] [stderr] 25 |    let y1 = x.clone();
[INFO] [stderr]    |        ^^ help: if this is intentional, prefix it with an underscore: `_y1`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `y2`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:26:6
[INFO] [stderr]    |
[INFO] [stderr] 26 |     let y2 = x.clone();
[INFO] [stderr]    |         ^^ help: if this is intentional, prefix it with an underscore: `_y2`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `w`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:28:6
[INFO] [stderr]    |
[INFO] [stderr] 28 |     let w = Rc::downgrade(&x);
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_w`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `y3`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:30:6
[INFO] [stderr]    |
[INFO] [stderr] 30 |     let y3 = &*x;
[INFO] [stderr]    |         ^^ help: if this is intentional, prefix it with an underscore: `_y3`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `a`
[INFO] [stderr]   --> src/function/functions.rs:21:10
[INFO] [stderr]    |
[INFO] [stderr] 21 |     let (a, b) = addsub(56, 12);
[INFO] [stderr]    |          ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `b`
[INFO] [stderr]   --> src/function/functions.rs:21:13
[INFO] [stderr]    |
[INFO] [stderr] 21 |     let (a, b) = addsub(56, 12);
[INFO] [stderr]    |             ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `x`
[INFO] [stderr]  --> src/function/higherorderfunction.rs:9:12
[INFO] [stderr]   |
[INFO] [stderr] 9 | fn one_arg(x: i32) { }
[INFO] [stderr]   |            ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `fn_ptr1`
[INFO] [stderr]   --> src/function/higherorderfunction.rs:11:9
[INFO] [stderr]    |
[INFO] [stderr] 11 |     let fn_ptr1: fn(i32) = one_arg;
[INFO] [stderr]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fn_ptr1`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `other_fn`
[INFO] [stderr]   --> src/function/higherorderfunction.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr] 14 |     let other_fn = fn_ptr;
[INFO] [stderr]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_other_fn`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `c`
[INFO] [stderr]   --> src/function/closure.rs:41:9
[INFO] [stderr]    |
[INFO] [stderr] 41 |     let c : Box< Fn() -> i32 >= Box::new( | | env_var + 2 );
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_c`
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `compute`
[INFO] [stderr]   --> src/borrow/borrow.rs:14:4
[INFO] [stderr]    |
[INFO] [stderr] 14 | fn compute(input: &u32, output: &mut u32) {
[INFO] [stderr]    |    ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `eg_2`
[INFO] [stderr]   --> src/lifetime/lifetime.rs:16:4
[INFO] [stderr]    |
[INFO] [stderr] 16 | fn eg_2<'a>(a: &'a str, b: &'a str) -> &'a str{
[INFO] [stderr]    |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `longest_str`
[INFO] [stderr]   --> src/lifetime/lifetime.rs:23:4
[INFO] [stderr]    |
[INFO] [stderr] 23 | fn longest_str<'a>(a: &'a str, b: &'a str) -> &'a str {
[INFO] [stderr]    |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `longest`
[INFO] [stderr]   --> src/lifetime/lifetime.rs:32:4
[INFO] [stderr]    |
[INFO] [stderr] 32 | fn longest<'a, 'b: 'a>(a: &'a str, b: &'b str) -> &'a str {
[INFO] [stderr]    |    ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field is never read: `name`
[INFO] [stderr]   --> src/lifetime/lifetime.rs:53:5
[INFO] [stderr]    |
[INFO] [stderr] 53 |     name:&'a str
[INFO] [stderr]    |     ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `fool`
[INFO] [stderr]   --> src/lifetime/lifetime.rs:58:4
[INFO] [stderr]    |
[INFO] [stderr] 58 | fn fool<'a> (s: &'a str) -> Box<Foo<'a> + 'a> {
[INFO] [stderr]    |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `eg_1`
[INFO] [stderr]  --> src/lifetime/smartptr_ownership.rs:4:4
[INFO] [stderr]   |
[INFO] [stderr] 4 | fn eg_1() {
[INFO] [stderr]   |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `eg_2`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:10:4
[INFO] [stderr]    |
[INFO] [stderr] 10 | fn eg_2() {
[INFO] [stderr]    |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `eg_rc`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:23:4
[INFO] [stderr]    |
[INFO] [stderr] 23 | fn eg_rc(){
[INFO] [stderr]    |    ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct is never constructed: `Foo`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:40:8
[INFO] [stderr]    |
[INFO] [stderr] 40 | struct Foo{
[INFO] [stderr]    |        ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `main`
[INFO] [stderr]   --> src/lifetime/smartptr_ownership.rs:44:4
[INFO] [stderr]    |
[INFO] [stderr] 44 | fn main (){
[INFO] [stderr]    |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `snake_case`
[INFO] [stderr]  --> src/function/functions.rs:3:4
[INFO] [stderr]   |
[INFO] [stderr] 3 | fn snake_case () {}
[INFO] [stderr]   |    ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `fn`
[INFO] [stderr]  --> src/function/functions.rs:4:4
[INFO] [stderr]   |
[INFO] [stderr] 4 | fn r#fn() {}
[INFO] [stderr]   |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `f`
[INFO] [stderr]  --> src/function/functions.rs:8:4
[INFO] [stderr]   |
[INFO] [stderr] 8 | fn f() { print!("1"); }
[INFO] [stderr]   |    ^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `main`
[INFO] [stderr]  --> src/function/functions.rs:9:4
[INFO] [stderr]   |
[INFO] [stderr] 9 | fn main() {
[INFO] [stderr]   |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `fm`
[INFO] [stderr]   --> src/function/functions.rs:28:4
[INFO] [stderr]    |
[INFO] [stderr] 28 | fn fm(ref _s: S){
[INFO] [stderr]    |    ^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `foo`
[INFO] [stderr]   --> src/function/functions.rs:32:4
[INFO] [stderr]    |
[INFO] [stderr] 32 | fn foo(_: i32) { // 忽略参数
[INFO] [stderr]    |    ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `addsub`
[INFO] [stderr]   --> src/function/functions.rs:38:5
[INFO] [stderr]    |
[INFO] [stderr] 38 | fn  addsub(x: usize, y: usize) -> (usize, usize){
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `square`
[INFO] [stderr]   --> src/function/functions.rs:44:4
[INFO] [stderr]    |
[INFO] [stderr] 44 | fn square<T: Mul<Output = T>> (x: T, y: T) -> T {
[INFO] [stderr]    |    ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function is never used: `show`
[INFO] [stderr]   --> src/function/functions.rs:58:8
[INFO] [stderr]    |
[INFO] [stderr] 58 |     fn show(&self) {
[INFO] [stderr]    |        ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `show_user`
[INFO] [stderr]   --> src/function/functions.rs:64:4
[INFO] [stderr]    |
[INFO] [stderr] 64 | fn show_user (){
[INFO] [stderr]    |    ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: type alias is never used: `math_op`
[INFO] [stderr]  --> src/function/higherorderfunction.rs:2:1
[INFO] [stderr]   |
[INFO] [stderr] 2 | type math_op = fn(i32, i32)  -> i32;
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `math`
[INFO] [stderr]  --> src/function/higherorderfunction.rs:3:4
[INFO] [stderr]   |
[INFO] [stderr] 3 | fn math(op: math_op, a: i32, b: i32) -> i32 {
[INFO] [stderr]   |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hello`
[INFO] [stderr]  --> src/function/higherorderfunction.rs:8:4
[INFO] [stderr]   |
[INFO] [stderr] 8 | fn hello() { }
[INFO] [stderr]   |    ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `one_arg`
[INFO] [stderr]  --> src/function/higherorderfunction.rs:9:4
[INFO] [stderr]   |
[INFO] [stderr] 9 | fn one_arg(x: i32) { }
[INFO] [stderr]   |    ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `main`
[INFO] [stderr]   --> src/function/higherorderfunction.rs:10:4
[INFO] [stderr]    |
[INFO] [stderr] 10 | fn main () {
[INFO] [stderr]    |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `counter`
[INFO] [stderr]  --> src/function/closure.rs:9:4
[INFO] [stderr]   |
[INFO] [stderr] 9 | fn counter(x: i32) -> impl Fn(i32) -> i32 {
[INFO] [stderr]   |    ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `main`
[INFO] [stderr]   --> src/function/closure.rs:39:4
[INFO] [stderr]    |
[INFO] [stderr] 39 | fn main () {
[INFO] [stderr]    |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: 46 warnings emitted
[INFO] [stderr] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running /opt/rustwide/target/debug/deps/lifetime-c9c95e7ccc92bde8
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "14d06dc30b34e8b23582b492d0939c8d5f2387816670a5f8f46b9fc39245ad2e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "14d06dc30b34e8b23582b492d0939c8d5f2387816670a5f8f46b9fc39245ad2e", kill_on_drop: false }`
[INFO] [stdout] 14d06dc30b34e8b23582b492d0939c8d5f2387816670a5f8f46b9fc39245ad2e
