[INFO] cloning repository https://github.com/NLSTXinsheng/RustLearn1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NLSTXinsheng/RustLearn1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNLSTXinsheng%2FRustLearn1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNLSTXinsheng%2FRustLearn1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cb60175f963917f45bd957a7efd84d3053c5663e [INFO] testing NLSTXinsheng/RustLearn1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNLSTXinsheng%2FRustLearn1" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/NLSTXinsheng/RustLearn1 [INFO] finished tweaking git repo https://github.com/NLSTXinsheng/RustLearn1 [INFO] tweaked toml for git repo https://github.com/NLSTXinsheng/RustLearn1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/NLSTXinsheng/RustLearn1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/NLSTXinsheng/RustLearn1 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8bbdbb372094e2de0ae62648a18bf6546297389b327b601d3389ee9376b1ee1f [INFO] running `Command { std: "docker" "start" "-a" "8bbdbb372094e2de0ae62648a18bf6546297389b327b601d3389ee9376b1ee1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8bbdbb372094e2de0ae62648a18bf6546297389b327b601d3389ee9376b1ee1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bbdbb372094e2de0ae62648a18bf6546297389b327b601d3389ee9376b1ee1f", kill_on_drop: false }` [INFO] [stdout] 8bbdbb372094e2de0ae62648a18bf6546297389b327b601d3389ee9376b1ee1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99dc13e602c37b029ecbf3d7016e39a6e0c36d41f949162451c124ba3339c8e6 [INFO] running `Command { std: "docker" "start" "-a" "99dc13e602c37b029ecbf3d7016e39a6e0c36d41f949162451c124ba3339c8e6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling PackageCrateModule v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: crate `PackageCrateModule` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `package_crate_module` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `mod` [INFO] [stdout] --> src/main.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::* //全部引用,谨慎使用 [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] ... [INFO] [stdout] 15 | mod house; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/main.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 24 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp::Ordering` and `io` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{cmp::Ordering, io}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/main.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{self, write};// == use std::io & use std::io::write [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::*` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::* //全部引用,谨慎使用 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `erer` should have an upper camel case name [INFO] [stdout] --> src/main.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct erer { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Erer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `private_ee` should have an upper camel case name [INFO] [stdout] --> src/main.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct private_ee { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `PrivateEe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:71:22 [INFO] [stdout] | [INFO] [stdout] 71 | use runner::one_yi::{self, set_one}; //use关键字引用到当前作用域 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Result` [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | use std::fmt::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Result as IoResult` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | use std::io::Result as IoResult;//为同名但是不同路径的struct指定一个别名 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let e = private_ee { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `er` [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let er = one_er::erer::new(); //封装 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_er` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `PackageCrateModule` (bin "PackageCrateModule") due to 2 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "99dc13e602c37b029ecbf3d7016e39a6e0c36d41f949162451c124ba3339c8e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99dc13e602c37b029ecbf3d7016e39a6e0c36d41f949162451c124ba3339c8e6", kill_on_drop: false }` [INFO] [stdout] 99dc13e602c37b029ecbf3d7016e39a6e0c36d41f949162451c124ba3339c8e6