[INFO] cloning repository https://github.com/bestchenwu/RustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bestchenwu/RustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy/objects/info: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/bestchenwu/RustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bestchenwu/RustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy'... [INFO] [stderr] error: failed to write new configuration file /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy/config.lock [INFO] [stderr] fatal: could not set 'core.filemode' to 'true' [WARN] Retrying crate fetch in 3 seconds (attempt 2) [INFO] cloning repository https://github.com/bestchenwu/RustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bestchenwu/RustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy'... [INFO] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/commit-msg.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy/hooks/commit-msg.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 3) [INFO] cloning repository https://github.com/bestchenwu/RustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bestchenwu/RustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy/branches/: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 4) [INFO] cloning repository https://github.com/bestchenwu/RustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bestchenwu/RustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 5) [INFO] cloning repository https://github.com/bestchenwu/RustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bestchenwu/RustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 6) [INFO] cloning repository https://github.com/bestchenwu/RustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bestchenwu/RustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 7) [INFO] cloning repository https://github.com/bestchenwu/RustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bestchenwu/RustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 8) [INFO] cloning repository https://github.com/bestchenwu/RustStudy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bestchenwu/RustStudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d65c56555fb97ccbe31bac911cdf72bc3bb3f148 [INFO] building bestchenwu/RustStudy against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbestchenwu%2FRustStudy" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bestchenwu/RustStudy on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bestchenwu/RustStudy [INFO] finished tweaking git repo https://github.com/bestchenwu/RustStudy [INFO] tweaked toml for git repo https://github.com/bestchenwu/RustStudy written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bestchenwu/RustStudy 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 03b42c1e389da6fad560b26bb80af74be5195ed4fb13e17b931f166503cf996a [INFO] running `Command { std: "docker" "start" "-a" "03b42c1e389da6fad560b26bb80af74be5195ed4fb13e17b931f166503cf996a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "03b42c1e389da6fad560b26bb80af74be5195ed4fb13e17b931f166503cf996a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03b42c1e389da6fad560b26bb80af74be5195ed4fb13e17b931f166503cf996a", kill_on_drop: false }` [INFO] [stdout] 03b42c1e389da6fad560b26bb80af74be5195ed4fb13e17b931f166503cf996a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9d448b54594e4301e4106656676e275ab985222e86aa613434795dd857d7d11 [INFO] running `Command { std: "docker" "start" "-a" "c9d448b54594e4301e4106656676e275ab985222e86aa613434795dd857d7d11", kill_on_drop: false }` [INFO] [stderr] Compiling RustStudy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs`, `io`, and `thread` [INFO] [stdout] --> src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{fs, io, thread}; [INFO] [stdout] | ^^ ^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Book::Papery` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::Book::Papery; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::second::ClassName` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::second::ClassName; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `url_book` should have an upper camel case name [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | url_book { url: String }, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `UrlBook` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `index_book` should have an upper camel case name [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | index_book { index: u32 }, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `IndexBook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/main.rs:400:13 [INFO] [stdout] | [INFO] [stdout] 400 | { 1 } [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 400 - { 1 } [INFO] [stdout] 400 + 1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/main.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | { 0 } [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 402 - { 0 } [INFO] [stdout] 402 + 0 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/main.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | { -1 } [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 404 - { -1 } [INFO] [stdout] 404 + -1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Site` is never constructed [INFO] [stdout] --> src/main.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Site { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `speak` and `create` are never used [INFO] [stdout] --> src/main.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Site { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 20 | //结构体方法,第一个参数是&self [INFO] [stdout] 21 | fn speak(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn create(domain: String, name: String, nation: String, found: u32) -> Site { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Book` is never used [INFO] [stdout] --> src/main.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | enum Book { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Book` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_x` is never used [INFO] [stdout] --> src/main.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 46 | fn get_x(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Descriptive` is never used [INFO] [stdout] --> src/main.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | trait Descriptive { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/main.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `output` is never used [INFO] [stdout] --> src/main.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn output(t: T) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longer` is never used [INFO] [stdout] --> src/main.rs:377:4 [INFO] [stdout] | [INFO] [stdout] 377 | fn longer<'a>(str1: &'a str, str2: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangle` is never used [INFO] [stdout] --> src/main.rs:385:4 [INFO] [stdout] | [INFO] [stdout] 385 | fn dangle() -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Compare` is never used [INFO] [stdout] --> src/main.rs:393:7 [INFO] [stdout] | [INFO] [stdout] 393 | trait Compare { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max` is never used [INFO] [stdout] --> src/main.rs:409:4 [INFO] [stdout] | [INFO] [stdout] 409 | fn max(array: &[T]) -> &T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `another_function` is never used [INFO] [stdout] --> src/main.rs:421:4 [INFO] [stdout] | [INFO] [stdout] 421 | fn another_function(x: i64, y: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/main.rs:427:4 [INFO] [stdout] | [INFO] [stdout] 427 | fn add(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClassName` is never constructed [INFO] [stdout] --> src/second.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ClassName { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `public_method`, and `private_method` are never used [INFO] [stdout] --> src/second.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ClassName { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 6 | pub fn new(newField: String) -> ClassName { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn public_method(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn private_method(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newField` should have a snake case name [INFO] [stdout] --> src/second.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn new(newField: String) -> ClassName { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_field` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "c9d448b54594e4301e4106656676e275ab985222e86aa613434795dd857d7d11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9d448b54594e4301e4106656676e275ab985222e86aa613434795dd857d7d11", kill_on_drop: false }` [INFO] [stdout] c9d448b54594e4301e4106656676e275ab985222e86aa613434795dd857d7d11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 401390ad420158612be8e62a44fa41349c3d4349434106101768b38ef5b623c9 [INFO] running `Command { std: "docker" "start" "-a" "401390ad420158612be8e62a44fa41349c3d4349434106101768b38ef5b623c9", kill_on_drop: false }` [INFO] [stderr] Compiling RustStudy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs`, `io`, and `thread` [INFO] [stdout] --> src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{fs, io, thread}; [INFO] [stdout] | ^^ ^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Book::Papery` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::Book::Papery; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::second::ClassName` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::second::ClassName; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `url_book` should have an upper camel case name [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | url_book { url: String }, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `UrlBook` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `index_book` should have an upper camel case name [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | index_book { index: u32 }, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `IndexBook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/main.rs:400:13 [INFO] [stdout] | [INFO] [stdout] 400 | { 1 } [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 400 - { 1 } [INFO] [stdout] 400 + 1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/main.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | { 0 } [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 402 - { 0 } [INFO] [stdout] 402 + 0 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/main.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | { -1 } [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 404 - { -1 } [INFO] [stdout] 404 + -1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Site` is never constructed [INFO] [stdout] --> src/main.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Site { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `speak` and `create` are never used [INFO] [stdout] --> src/main.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Site { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 20 | //结构体方法,第一个参数是&self [INFO] [stdout] 21 | fn speak(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn create(domain: String, name: String, nation: String, found: u32) -> Site { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Book` is never used [INFO] [stdout] --> src/main.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | enum Book { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Book` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_x` is never used [INFO] [stdout] --> src/main.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 46 | fn get_x(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Descriptive` is never used [INFO] [stdout] --> src/main.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | trait Descriptive { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/main.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `output` is never used [INFO] [stdout] --> src/main.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn output(t: T) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangle` is never used [INFO] [stdout] --> src/main.rs:385:4 [INFO] [stdout] | [INFO] [stdout] 385 | fn dangle() -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Compare` is never used [INFO] [stdout] --> src/main.rs:393:7 [INFO] [stdout] | [INFO] [stdout] 393 | trait Compare { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max` is never used [INFO] [stdout] --> src/main.rs:409:4 [INFO] [stdout] | [INFO] [stdout] 409 | fn max(array: &[T]) -> &T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `another_function` is never used [INFO] [stdout] --> src/main.rs:421:4 [INFO] [stdout] | [INFO] [stdout] 421 | fn another_function(x: i64, y: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/main.rs:427:4 [INFO] [stdout] | [INFO] [stdout] 427 | fn add(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClassName` is never constructed [INFO] [stdout] --> src/second.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ClassName { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `public_method`, and `private_method` are never used [INFO] [stdout] --> src/second.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ClassName { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 6 | pub fn new(newField: String) -> ClassName { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn public_method(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn private_method(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newField` should have a snake case name [INFO] [stdout] --> src/second.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn new(newField: String) -> ClassName { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_field` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustc3QadRg/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-*,libgetopts-*,libunicode_width-*,librustc_std_workspace_std-*,libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustc3QadRg/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,-znostart-stop-gc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/RustStudy-4b7115134775523b" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: collect2: fatal error: ld terminated with signal 7 [Bus error], core dumped [INFO] [stdout] compilation terminated. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `RustStudy` (bin "RustStudy" test) due to 1 previous error; 29 warnings emitted [INFO] running `Command { std: "docker" "inspect" "401390ad420158612be8e62a44fa41349c3d4349434106101768b38ef5b623c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "401390ad420158612be8e62a44fa41349c3d4349434106101768b38ef5b623c9", kill_on_drop: false }` [INFO] [stdout] 401390ad420158612be8e62a44fa41349c3d4349434106101768b38ef5b623c9