[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 master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyynlove%2Frust_study" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [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-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yynlove/rust_study on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yynlove/rust_study already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 249fa2e9059cf080738f7ce19e6152e8fdaecdb2268f6f7cf192d0d799ca8253 [INFO] running `Command { std: "docker" "start" "-a" "249fa2e9059cf080738f7ce19e6152e8fdaecdb2268f6f7cf192d0d799ca8253", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "249fa2e9059cf080738f7ce19e6152e8fdaecdb2268f6f7cf192d0d799ca8253", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "249fa2e9059cf080738f7ce19e6152e8fdaecdb2268f6f7cf192d0d799ca8253", kill_on_drop: false }` [INFO] [stdout] 249fa2e9059cf080738f7ce19e6152e8fdaecdb2268f6f7cf192d0d799ca8253 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac2f26cb95921218e76f731dab896f1de56c46d3f0edca4878148df474679fa5 [INFO] running `Command { std: "docker" "start" "-a" "ac2f26cb95921218e76f731dab896f1de56c46d3f0edca4878148df474679fa5", 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] 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: 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: function `optionTest` is never used [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 `option_panic_Test` is never used [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 `plus_one` is never used [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 `test` is never used [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 `change_reference` is never used [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 `test_sturct_demo` is never used [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: struct `Rectangle` is never constructed [INFO] [stdout] --> src/my_mod/struct_demo.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [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: associated items `square`, `setHeight`, `area`, and `can_hold` are never used [INFO] [stdout] --> src/my_mod/struct_demo.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Rectangle{ [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 21 | fn square(size:u32)-> Rectangle{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn setHeight(&mut self,height:u32){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn area(&self) -> u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rus` is never used [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 `rus_unwrap` is never used [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 `rus_expect` is never used [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 `read_from_file` is never used [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 `read_from_file_jianxie` is never used [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 `Point` is never constructed [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: method `mixup` is never used [INFO] [stdout] --> src/my_mod/shi.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Point{ [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 8 | fn mixup(self,other:Point)->Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build` is never used [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: trait `Summary` is never used [INFO] [stdout] --> src/my_mod/shi.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait Summary{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tweet` is never constructed [INFO] [stdout] --> src/my_mod/shi.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Tweet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `summary_tweet_test` is never used [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 `largest` is never used [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 `trait_fanxing` is never used [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 `longest_test_error` is never used [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] For more information about this error, try `rustc --explain E0428`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_study` (bin "rust_study" test) due to 1 previous error; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ac2f26cb95921218e76f731dab896f1de56c46d3f0edca4878148df474679fa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac2f26cb95921218e76f731dab896f1de56c46d3f0edca4878148df474679fa5", kill_on_drop: false }` [INFO] [stdout] ac2f26cb95921218e76f731dab896f1de56c46d3f0edca4878148df474679fa5