[INFO] cloning repository https://github.com/yynlove/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/yynlove/rust_study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyynlove%2Frust_study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyynlove%2Frust_study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f33abe86441726cd21adc5f2d49eae8b25e46387 [INFO] checking yynlove/rust_study against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyynlove%2Frust_study" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yynlove/rust_study on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yynlove/rust_study [INFO] finished tweaking git repo https://github.com/yynlove/rust_study [INFO] tweaked toml for git repo https://github.com/yynlove/rust_study written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/yynlove/rust_study already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.release [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 978b288ba7ae6e0646c513e7099737382a49a912ee4e4ffbaa762cb3cd3ff6ac [INFO] running `Command { std: "docker" "start" "-a" "978b288ba7ae6e0646c513e7099737382a49a912ee4e4ffbaa762cb3cd3ff6ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "978b288ba7ae6e0646c513e7099737382a49a912ee4e4ffbaa762cb3cd3ff6ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "978b288ba7ae6e0646c513e7099737382a49a912ee4e4ffbaa762cb3cd3ff6ac", kill_on_drop: false }` [INFO] [stdout] 978b288ba7ae6e0646c513e7099737382a49a912ee4e4ffbaa762cb3cd3ff6ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c568be4092f0e8e361898afa979a3f365fae9fb5a92cdf273eb3c2c58fe6b32 [INFO] running `Command { std: "docker" "start" "-a" "9c568be4092f0e8e361898afa979a3f365fae9fb5a92cdf273eb3c2c58fe6b32", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.release [INFO] [stderr] Checking rust_study v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0428]: the name `it_works` is defined multiple times [INFO] [stdout] --> src/tests.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn it_works() { [INFO] [stdout] | ------------- previous definition of the value `it_works` here [INFO] [stdout] ... [INFO] [stdout] 32 | fn it_works() -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `it_works` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `it_works` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> src/my_mod/jiu.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{ErrorKind, Read}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::my_mod::shi::build` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::my_mod::shi::build; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> src/my_mod/jiu.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{ErrorKind, Read}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::my_mod::shi::build` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::my_mod::shi::build; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0428`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_study` due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/my_mod/ip.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/my_mod/ip.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bfile` [INFO] [stdout] --> src/my_mod/jiu.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | let bfile = match a { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bfile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/my_mod/jiu.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let a = File::open("aaa.text").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/my_mod/jiu.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let a = File::open("aaa.text").expect(""); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optionTest` [INFO] [stdout] --> src/my_mod/ip.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn optionTest(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `option_panic_Test` [INFO] [stdout] --> src/my_mod/ip.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn option_panic_Test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `plus_one` [INFO] [stdout] --> src/my_mod/ip.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn plus_one(x:Option) -> Option{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/my_mod/refence.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change_reference` [INFO] [stdout] --> src/my_mod/refence.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn change_reference(some_string: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_sturct_demo` [INFO] [stdout] --> src/my_mod/struct_demo.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn test_sturct_demo(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square` [INFO] [stdout] --> src/my_mod/struct_demo.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn square(size:u32)-> Rectangle{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `setHeight` [INFO] [stdout] --> src/my_mod/struct_demo.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn setHeight(&mut self,height:u32){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/my_mod/struct_demo.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn area(&self) -> u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/my_mod/struct_demo.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rus` [INFO] [stdout] --> src/my_mod/jiu.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn rus() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rus_unwrap` [INFO] [stdout] --> src/my_mod/jiu.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn rus_unwrap(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rus_expect` [INFO] [stdout] --> src/my_mod/jiu.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn rus_expect(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_from_file` [INFO] [stdout] --> src/my_mod/jiu.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn read_from_file()->Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_from_file_jianxie` [INFO] [stdout] --> src/my_mod/jiu.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn read_from_file_jianxie()->Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/my_mod/shi.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mixup` [INFO] [stdout] --> src/my_mod/shi.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn mixup(self,other:Point)->Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build` [INFO] [stdout] --> src/my_mod/shi.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn build(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `summary_tweet_test` [INFO] [stdout] --> src/my_mod/shi.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn summary_tweet_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest` [INFO] [stdout] --> src/my_mod/shi.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn largest(list: &[T]) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `trait_fanxing` [INFO] [stdout] --> src/my_mod/shi.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn trait_fanxing() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest_test_error` [INFO] [stdout] --> src/my_mod/shi.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn longest_test_error(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `optionTest` should have a snake case name [INFO] [stdout] --> src/my_mod/ip.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn optionTest(){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `option_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `option_panic_Test` should have a snake case name [INFO] [stdout] --> src/my_mod/ip.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn option_panic_Test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `option_panic_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setHeight` should have a snake case name [INFO] [stdout] --> src/my_mod/struct_demo.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn setHeight(&mut self,height:u32){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `set_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "9c568be4092f0e8e361898afa979a3f365fae9fb5a92cdf273eb3c2c58fe6b32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c568be4092f0e8e361898afa979a3f365fae9fb5a92cdf273eb3c2c58fe6b32", kill_on_drop: false }` [INFO] [stdout] 9c568be4092f0e8e361898afa979a3f365fae9fb5a92cdf273eb3c2c58fe6b32