[INFO] cloning repository https://github.com/shuaibingn/my_rust_project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shuaibingn/my_rust_project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshuaibingn%2Fmy_rust_project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshuaibingn%2Fmy_rust_project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2b681564db693786975623a827a2388f51608a22 [INFO] building shuaibingn/my_rust_project against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshuaibingn%2Fmy_rust_project" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shuaibingn/my_rust_project on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shuaibingn/my_rust_project [INFO] finished tweaking git repo https://github.com/shuaibingn/my_rust_project [INFO] tweaked toml for git repo https://github.com/shuaibingn/my_rust_project written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/shuaibingn/my_rust_project 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 43c2659bf6495d88ca2129012a53af791c6f6918885676f0d8bb8e52ead8b559 [INFO] running `Command { std: "docker" "start" "-a" "43c2659bf6495d88ca2129012a53af791c6f6918885676f0d8bb8e52ead8b559", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "43c2659bf6495d88ca2129012a53af791c6f6918885676f0d8bb8e52ead8b559", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43c2659bf6495d88ca2129012a53af791c6f6918885676f0d8bb8e52ead8b559", kill_on_drop: false }` [INFO] [stdout] 43c2659bf6495d88ca2129012a53af791c6f6918885676f0d8bb8e52ead8b559 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3cb98eed12c398080f61e09bb8f8c608a94f1fd0adbfa2fa24f4a6f006225a9f [INFO] running `Command { std: "docker" "start" "-a" "3cb98eed12c398080f61e09bb8f8c608a94f1fd0adbfa2fa24f4a6f006225a9f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling http-range-header v0.3.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling matchit v0.5.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling pin-project-internal v1.1.8 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling pin-project v1.1.8 [INFO] [stderr] Compiling axum-core v0.2.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling tower-http v0.3.5 [INFO] [stderr] Compiling axum v0.5.17 [INFO] [stderr] Compiling my_rust_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/vector.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 - Int(i32), [INFO] [stdout] 3 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/vector.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 - Float(f64), [INFO] [stdout] 4 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/vector.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Text(&'a str), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Text(&'a str), [INFO] [stdout] 5 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Json` [INFO] [stdout] --> src/bin/web_server.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::{response, routing::get, Json, Router}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShirtColor` is never used [INFO] [stdout] --> src/bin/closures.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum ShirtColor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShirtColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inventory` is never constructed [INFO] [stdout] --> src/bin/closures.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Inventory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `giveaway` and `most_stocked` are never used [INFO] [stdout] --> src/bin/closures.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Inventory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 12 | fn giveaway(&mut self, color: Option) -> ShirtColor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn most_stocked(&self) -> ShirtColor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user1` [INFO] [stdout] --> src/bin/a语法.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let user1 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/lifetime.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | fn longest_test<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/bin/a语法.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let four = IpAddrKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/bin/a语法.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let six = IpAddrKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_test` is never used [INFO] [stdout] --> src/bin/lifetime.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn longest_test<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/bin/lifetime.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn longest_with_an_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/bin/a语法.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 80 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 82 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 83 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/bin/a语法.rs:91:6 [INFO] [stdout] | [INFO] [stdout] 91 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_in_cents` is never used [INFO] [stdout] --> src/bin/a语法.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn value_in_cents(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide` is never used [INFO] [stdout] --> src/bin/a语法.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn divide(a: i32, b: i32) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_element` is never used [INFO] [stdout] --> src/bin/a语法.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn get_element(index: usize, vec: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> src/bin/match_key.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] 4 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/bin/match_key.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 9 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add` is never used [INFO] [stdout] --> src/bin/trait_learning.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Tweet { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 37 | fn add(a: T, b: T) -> T [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer` [INFO] [stdout] --> src/bin/generic.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let integer = Point { x: 5, y: 10.0 }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> src/bin/generic.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let float = Point { x: 1.0, y: 4 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/generic.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 25 | x: I, [INFO] [stdout] | ^ [INFO] [stdout] 26 | y: F, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> src/bin/generic.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl Point { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 30 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x` and `y` are never used [INFO] [stdout] --> src/bin/generic.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Point { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 36 | fn x(&self) -> &I { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn y(&self) -> &F { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 49.11s [INFO] running `Command { std: "docker" "inspect" "3cb98eed12c398080f61e09bb8f8c608a94f1fd0adbfa2fa24f4a6f006225a9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cb98eed12c398080f61e09bb8f8c608a94f1fd0adbfa2fa24f4a6f006225a9f", kill_on_drop: false }` [INFO] [stdout] 3cb98eed12c398080f61e09bb8f8c608a94f1fd0adbfa2fa24f4a6f006225a9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 341f8734400622e3018bdecd72c3cccc04400f7d11f4c725318ab879f9503608 [INFO] running `Command { std: "docker" "start" "-a" "341f8734400622e3018bdecd72c3cccc04400f7d11f4c725318ab879f9503608", kill_on_drop: false }` [INFO] [stderr] Compiling my_rust_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/lifetime.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | fn longest_test<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> src/bin/match_key.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] 4 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/bin/match_key.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 9 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_test` is never used [INFO] [stdout] --> src/bin/lifetime.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn longest_test<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/bin/lifetime.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn longest_with_an_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/vector.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 - Int(i32), [INFO] [stdout] 3 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/vector.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 - Float(f64), [INFO] [stdout] 4 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/vector.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Text(&'a str), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Text(&'a str), [INFO] [stdout] 5 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer` [INFO] [stdout] --> src/bin/generic.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let integer = Point { x: 5, y: 10.0 }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> src/bin/generic.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let float = Point { x: 1.0, y: 4 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/generic.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 25 | x: I, [INFO] [stdout] | ^ [INFO] [stdout] 26 | y: F, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> src/bin/generic.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl Point { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 30 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x` and `y` are never used [INFO] [stdout] --> src/bin/generic.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Point { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 36 | fn x(&self) -> &I { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn y(&self) -> &F { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add` is never used [INFO] [stdout] --> src/bin/trait_learning.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Tweet { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 37 | fn add(a: T, b: T) -> T [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user1` [INFO] [stdout] --> src/bin/a语法.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let user1 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/bin/a语法.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let four = IpAddrKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/bin/a语法.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let six = IpAddrKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/bin/a语法.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 80 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 82 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 83 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/bin/a语法.rs:91:6 [INFO] [stdout] | [INFO] [stdout] 91 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_in_cents` is never used [INFO] [stdout] --> src/bin/a语法.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn value_in_cents(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide` is never used [INFO] [stdout] --> src/bin/a语法.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn divide(a: i32, b: i32) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_element` is never used [INFO] [stdout] --> src/bin/a语法.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn get_element(index: usize, vec: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Json` [INFO] [stdout] --> src/bin/web_server.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::{response, routing::get, Json, Router}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShirtColor` is never used [INFO] [stdout] --> src/bin/closures.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum ShirtColor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShirtColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inventory` is never constructed [INFO] [stdout] --> src/bin/closures.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Inventory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `giveaway` and `most_stocked` are never used [INFO] [stdout] --> src/bin/closures.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Inventory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 12 | fn giveaway(&mut self, color: Option) -> ShirtColor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn most_stocked(&self) -> ShirtColor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.10s [INFO] running `Command { std: "docker" "inspect" "341f8734400622e3018bdecd72c3cccc04400f7d11f4c725318ab879f9503608", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "341f8734400622e3018bdecd72c3cccc04400f7d11f4c725318ab879f9503608", kill_on_drop: false }` [INFO] [stdout] 341f8734400622e3018bdecd72c3cccc04400f7d11f4c725318ab879f9503608