[INFO] fetching crate fust_tutorials 0.1.0... [INFO] checking fust_tutorials-0.1.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate fust_tutorials 0.1.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate fust_tutorials 0.1.0 [INFO] finished tweaking crates.io crate fust_tutorials 0.1.0 [INFO] tweaked toml for crates.io crate fust_tutorials 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate fust_tutorials 0.1.0 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 crates.io crate fust_tutorials 0.1.0 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 84a4f42e2d11879b998b3a2f04e07fecddb8ae5255bce7181b4c95c51a32a86a [INFO] running `Command { std: "docker" "start" "-a" "84a4f42e2d11879b998b3a2f04e07fecddb8ae5255bce7181b4c95c51a32a86a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84a4f42e2d11879b998b3a2f04e07fecddb8ae5255bce7181b4c95c51a32a86a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84a4f42e2d11879b998b3a2f04e07fecddb8ae5255bce7181b4c95c51a32a86a", kill_on_drop: false }` [INFO] [stdout] 84a4f42e2d11879b998b3a2f04e07fecddb8ae5255bce7181b4c95c51a32a86a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 8af9a86489a8a54011cb47dc65c33fe114b81cc8f516df83c39f84c6379ea700 [INFO] running `Command { std: "docker" "start" "-a" "8af9a86489a8a54011cb47dc65c33fe114b81cc8f516df83c39f84c6379ea700", kill_on_drop: false }` [INFO] [stderr] Checking fust_tutorials v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `News` is never constructed [INFO] [stdout] --> src/lib.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct News { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/front_of_house.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/front_of_house.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn take_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/front_of_house.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn serve_order(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/front_of_house.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn take_payment(){} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/guess.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 2 | value: i32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `News` is never constructed [INFO] [stdout] --> src/lib.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct News { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/lib.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | fn can_hold(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/front_of_house.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/front_of_house.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn take_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/front_of_house.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn serve_order(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/front_of_house.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn take_payment(){} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guess` is never constructed [INFO] [stdout] --> src/guess.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Guess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/guess.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Guess { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 7 | pub fn new(value: i32) -> Guess { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `three` [INFO] [stdout] --> src/main.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | let three = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_three` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | let y = back(x); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:277:27 [INFO] [stdout] | [INFO] [stdout] 277 | Message::Move{x, y} => "move", [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:277:30 [INFO] [stdout] | [INFO] [stdout] 277 | Message::Move{x, y} => "move", [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 295 | let x = if let Some(i) = some_num { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/main.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let first = &v[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ans` [INFO] [stdout] --> src/main.rs:348:9 [INFO] [stdout] | [INFO] [stdout] 348 | let ans = &hello[0..2]; // 慎用,用可能 panic [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | let value = scores.get("Blue"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/main.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | let mut score: HashMap<_, _> = teams.into_iter().zip(initial_scores.into_iter()).collect(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | let mut score: HashMap<_, _> = teams.into_iter().zip(initial_scores.into_iter()).collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:499:20 [INFO] [stdout] | [INFO] [stdout] 499 | fn some_func(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/main.rs:499:27 [INFO] [stdout] | [INFO] [stdout] 499 | fn some_func(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `excerpt` [INFO] [stdout] --> src/main.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 526 | let excerpt = Excerpt { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_excerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typeofdata` is never used [INFO] [stdout] --> src/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn typeofdata() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arra_y` is never used [INFO] [stdout] --> src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn arra_y() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `label` is never used [INFO] [stdout] --> src/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn label() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_while` is never used [INFO] [stdout] --> src/main.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn use_while() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/main.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 265 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 266 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 267 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 268 | Write(String), [INFO] [stdout] 269 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `module` is never used [INFO] [stdout] --> src/main.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn module() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_handle_with_wrap_helper` is never used [INFO] [stdout] --> src/main.rs:419:4 [INFO] [stdout] | [INFO] [stdout] 419 | fn error_handle_with_wrap_helper(file: &str) -> Result { // 枚举是一个范型, 范型用<> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_handle_with_wrap` is never used [INFO] [stdout] --> src/main.rs:453:4 [INFO] [stdout] | [INFO] [stdout] 453 | fn error_handle_with_wrap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_func` is never used [INFO] [stdout] --> src/main.rs:499:4 [INFO] [stdout] | [INFO] [stdout] 499 | fn some_func(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> src/main.rs:520:5 [INFO] [stdout] | [INFO] [stdout] 519 | struct Excerpt<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 520 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/main.rs:531:4 [INFO] [stdout] | [INFO] [stdout] 531 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/main.rs:565:8 [INFO] [stdout] | [INFO] [stdout] 565 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_value` are never used [INFO] [stdout] --> src/main.rs:578:8 [INFO] [stdout] | [INFO] [stdout] 574 | / impl Cacher [INFO] [stdout] 575 | | where T: Fn(U) -> U, [INFO] [stdout] 576 | | U: Hash + Eq + Copy, [INFO] [stdout] | |______________________________- associated items in this implementation [INFO] [stdout] 577 | { [INFO] [stdout] 578 | fn new(calculation: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 582 | fn get_value(&mut self, arg: U) -> U { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_workout` is never used [INFO] [stdout] --> src/main.rs:595:4 [INFO] [stdout] | [INFO] [stdout] 595 | fn generate_workout(intensity: u32, random_number: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closure` is never used [INFO] [stdout] --> src/main.rs:620:4 [INFO] [stdout] | [INFO] [stdout] 620 | fn closure() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `three` [INFO] [stdout] --> src/main.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | let three = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_three` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | let y = back(x); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:277:27 [INFO] [stdout] | [INFO] [stdout] 277 | Message::Move{x, y} => "move", [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:277:30 [INFO] [stdout] | [INFO] [stdout] 277 | Message::Move{x, y} => "move", [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 295 | let x = if let Some(i) = some_num { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/main.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let first = &v[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ans` [INFO] [stdout] --> src/main.rs:348:9 [INFO] [stdout] | [INFO] [stdout] 348 | let ans = &hello[0..2]; // 慎用,用可能 panic [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | let value = scores.get("Blue"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/main.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | let mut score: HashMap<_, _> = teams.into_iter().zip(initial_scores.into_iter()).collect(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | let mut score: HashMap<_, _> = teams.into_iter().zip(initial_scores.into_iter()).collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:499:20 [INFO] [stdout] | [INFO] [stdout] 499 | fn some_func(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/main.rs:499:27 [INFO] [stdout] | [INFO] [stdout] 499 | fn some_func(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `excerpt` [INFO] [stdout] --> src/main.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 526 | let excerpt = Excerpt { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_excerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typeofdata` is never used [INFO] [stdout] --> src/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn typeofdata() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arra_y` is never used [INFO] [stdout] --> src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn arra_y() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `label` is never used [INFO] [stdout] --> src/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn label() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_while` is never used [INFO] [stdout] --> src/main.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn use_while() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/main.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 265 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 266 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 267 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 268 | Write(String), [INFO] [stdout] 269 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `module` is never used [INFO] [stdout] --> src/main.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn module() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_handle_with_wrap_helper` is never used [INFO] [stdout] --> src/main.rs:419:4 [INFO] [stdout] | [INFO] [stdout] 419 | fn error_handle_with_wrap_helper(file: &str) -> Result { // 枚举是一个范型, 范型用<> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_handle_with_wrap` is never used [INFO] [stdout] --> src/main.rs:453:4 [INFO] [stdout] | [INFO] [stdout] 453 | fn error_handle_with_wrap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_func` is never used [INFO] [stdout] --> src/main.rs:499:4 [INFO] [stdout] | [INFO] [stdout] 499 | fn some_func(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> src/main.rs:520:5 [INFO] [stdout] | [INFO] [stdout] 519 | struct Excerpt<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 520 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/main.rs:531:4 [INFO] [stdout] | [INFO] [stdout] 531 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/main.rs:565:8 [INFO] [stdout] | [INFO] [stdout] 565 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_value` are never used [INFO] [stdout] --> src/main.rs:578:8 [INFO] [stdout] | [INFO] [stdout] 574 | / impl Cacher [INFO] [stdout] 575 | | where T: Fn(U) -> U, [INFO] [stdout] 576 | | U: Hash + Eq + Copy, [INFO] [stdout] | |______________________________- associated items in this implementation [INFO] [stdout] 577 | { [INFO] [stdout] 578 | fn new(calculation: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 582 | fn get_value(&mut self, arg: U) -> U { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_workout` is never used [INFO] [stdout] --> src/main.rs:595:4 [INFO] [stdout] | [INFO] [stdout] 595 | fn generate_workout(intensity: u32, random_number: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closure` is never used [INFO] [stdout] --> src/main.rs:620:4 [INFO] [stdout] | [INFO] [stdout] 620 | fn closure() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `Command { std: "docker" "inspect" "8af9a86489a8a54011cb47dc65c33fe114b81cc8f516df83c39f84c6379ea700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8af9a86489a8a54011cb47dc65c33fe114b81cc8f516df83c39f84c6379ea700", kill_on_drop: false }` [INFO] [stdout] 8af9a86489a8a54011cb47dc65c33fe114b81cc8f516df83c39f84c6379ea700