[INFO] fetching crate gw-rust-programming-tutorial 0.1.0... [INFO] checking gw-rust-programming-tutorial-0.1.0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate gw-rust-programming-tutorial 0.1.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate gw-rust-programming-tutorial 0.1.0 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate gw-rust-programming-tutorial 0.1.0 [INFO] finished tweaking crates.io crate gw-rust-programming-tutorial 0.1.0 [INFO] tweaked toml for crates.io crate gw-rust-programming-tutorial 0.1.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate crates.io crate gw-rust-programming-tutorial 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded stdext v0.3.1 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 38dffa7bed86b808e3b71733ea78ee3991574d53181c49a59691629c2b9949fe [INFO] running `Command { std: "docker" "start" "-a" "38dffa7bed86b808e3b71733ea78ee3991574d53181c49a59691629c2b9949fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38dffa7bed86b808e3b71733ea78ee3991574d53181c49a59691629c2b9949fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38dffa7bed86b808e3b71733ea78ee3991574d53181c49a59691629c2b9949fe", kill_on_drop: false }` [INFO] [stdout] 38dffa7bed86b808e3b71733ea78ee3991574d53181c49a59691629c2b9949fe [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8ff705659d8352bd8adf93b5ff93a3d761bc7767906dabdb8f44ce2e33b1b9f [INFO] running `Command { std: "docker" "start" "-a" "e8ff705659d8352bd8adf93b5ff93a3d761bc7767906dabdb8f44ce2e33b1b9f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking stdext v0.3.1 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking gw-rust-programming-tutorial v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/chapter_8/test_collection.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/chapter_8/test_collection.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let v = vec![1, 2, 3]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/chapter_8/test_string.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/chapter_8/test_string.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let s = data.to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/chapter_8/test_string.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let s = "initial contents".to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/chapter_8/test_collection.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let hello = String::from("السلام عليكم"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/chapter_8/test_collection.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let v = vec![1, 2, 3]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let hello = String::from("Dobrý den"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let hello = String::from("Hello"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let hello = String::from("שָׁלוֹם"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let hello = String::from("नमस्ते"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let hello = String::from("こんにちは"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let hello = String::from("안녕하세요"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let hello = String::from("你好"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let hello = String::from("Olá"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let hello = String::from("Здравствуйте"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let hello = String::from("Hola"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chapter_8/test_string.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut s = String::new(); [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: `s3` [INFO] [stdout] --> src/chapter_8/test_string.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let s3 = s1 + &s2; // 注意 s1 被移动了,不能继续使用 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/chapter_8/test_string.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/chapter_8/test_string.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let s = data.to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/chapter_8/test_string.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let s = "initial contents".to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let hello = String::from("السلام عليكم"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let hello = String::from("Dobrý den"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let hello = String::from("Hello"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let hello = String::from("שָׁלוֹם"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let hello = String::from("नमस्ते"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let hello = String::from("こんにちは"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let hello = String::from("안녕하세요"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let hello = String::from("你好"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let hello = String::from("Olá"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let hello = String::from("Здравствуйте"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/chapter_8/test_string.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let hello = String::from("Hola"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chapter_8/test_string.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut s = String::new(); [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: `s3` [INFO] [stdout] --> src/chapter_8/test_string.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let s3 = s1 + &s2; // 注意 s1 被移动了,不能继续使用 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/chapter_9/test_panic.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let f = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/chapter_9/test_panic.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let f = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `it1` [INFO] [stdout] --> src/chapter_13/file_iterator.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let it1 = v1.iter_mut(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_it1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `it1` [INFO] [stdout] --> src/chapter_13/file_iterator.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let it1 = v1.into_iter(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_it1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/chapter_8/test_collection.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | 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] 36 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/chapter_8/test_collection.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | 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] 37 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/chapter_8/test_collection.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | Text(String), [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] 38 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/chapter_10/test_traits.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/chapter_10/test_traits.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 57 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/chapter_10/test_traits.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 66 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `it1` [INFO] [stdout] --> src/chapter_13/file_iterator.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let it1 = v1.iter_mut(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_it1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `it1` [INFO] [stdout] --> src/chapter_13/file_iterator.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let it1 = v1.into_iter(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_it1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/chapter_8/test_collection.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | 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] 36 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/chapter_8/test_collection.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | 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] 37 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/chapter_8/test_collection.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | Text(String), [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] 38 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/chapter_10/test_traits.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/chapter_10/test_traits.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 57 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/chapter_10/test_traits.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 66 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | test_panic::read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 29 | let _ = test_panic::read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | test_panic::read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 29 | let _ = test_panic::read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapCus` should have a snake case name [INFO] [stdout] --> src/chapter_8/test_map.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut mapCus:HashMap=HashMap::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `map_cus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/chapter_12/test_12_6.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | parse_env(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 6 | let _ = parse_env(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapCus` should have a snake case name [INFO] [stdout] --> src/chapter_8/test_map.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut mapCus:HashMap=HashMap::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `map_cus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/chapter_12/test_12_6.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | parse_env(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 6 | let _ = parse_env(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnum` [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let fnum: f32 = 3.0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fnum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnum` [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let fnum: f32 = 3.0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fnum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let ch: char = 'a'; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = tu1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let ch: char = 'a'; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = tu1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/main.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | let s1 = gives_ownership(); // gives_ownership 将返回值 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/main.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let s3 = takes_and_gives_back(s2); // s2 被移动到 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/main.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | let s1 = gives_ownership(); // gives_ownership 将返回值 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/main.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let s3 = takes_and_gives_back(s2); // s2 被移动到 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, and `sign_in_count` are never read [INFO] [stdout] --> src/main.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 277 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 278 | active: bool, [INFO] [stdout] 279 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 280 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 281 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/main.rs:322:14 [INFO] [stdout] | [INFO] [stdout] 322 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/main.rs:324:14 [INFO] [stdout] | [INFO] [stdout] 324 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | Ooo(Option), [INFO] [stdout] | --- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` 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] 366 | Ooo(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, `Write`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/main.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 361 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 362 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 363 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 364 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 365 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel`, `Dime`, and `Quarter` are never constructed [INFO] [stdout] --> src/main.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 381 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 382 | Penny, [INFO] [stdout] 383 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 384 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 385 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_optionT_match` should have a snake case name [INFO] [stdout] --> src/main.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 407 | fn test_optionT_match() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_option_t_match` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, and `sign_in_count` are never read [INFO] [stdout] --> src/main.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 277 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 278 | active: bool, [INFO] [stdout] 279 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 280 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 281 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/main.rs:322:14 [INFO] [stdout] | [INFO] [stdout] 322 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/main.rs:324:14 [INFO] [stdout] | [INFO] [stdout] 324 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | Ooo(Option), [INFO] [stdout] | --- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` 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] 366 | Ooo(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, `Write`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/main.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 361 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 362 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 363 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 364 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 365 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel`, `Dime`, and `Quarter` are never constructed [INFO] [stdout] --> src/main.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 381 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 382 | Penny, [INFO] [stdout] 383 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 384 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 385 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_optionT_match` should have a snake case name [INFO] [stdout] --> src/main.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 407 | fn test_optionT_match() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_option_t_match` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.01s [INFO] running `Command { std: "docker" "inspect" "e8ff705659d8352bd8adf93b5ff93a3d761bc7767906dabdb8f44ce2e33b1b9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8ff705659d8352bd8adf93b5ff93a3d761bc7767906dabdb8f44ce2e33b1b9f", kill_on_drop: false }` [INFO] [stdout] e8ff705659d8352bd8adf93b5ff93a3d761bc7767906dabdb8f44ce2e33b1b9f