[INFO] cloning repository https://github.com/zongzi531/rust-learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zongzi531/rust-learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzongzi531%2Frust-learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzongzi531%2Frust-learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dcf7c60aecad6474095e9df0da0409a19ff70b09 [INFO] checking zongzi531/rust-learning against master#a5db378dc14a40dd1580c27fb8362156446382c3 for pr-136490 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzongzi531%2Frust-learning" "/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/zongzi531/rust-learning on toolchain a5db378dc14a40dd1580c27fb8362156446382c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5db378dc14a40dd1580c27fb8362156446382c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zongzi531/rust-learning [INFO] finished tweaking git repo https://github.com/zongzi531/rust-learning [INFO] tweaked toml for git repo https://github.com/zongzi531/rust-learning written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zongzi531/rust-learning 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" "+a5db378dc14a40dd1580c27fb8362156446382c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded utf8_slice v1.0.0 [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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a5db378dc14a40dd1580c27fb8362156446382c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e840064324bad043bb34c51646ce770be8f23f8f97e3dc902a6973f127fa5684 [INFO] running `Command { std: "docker" "start" "-a" "e840064324bad043bb34c51646ce770be8f23f8f97e3dc902a6973f127fa5684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e840064324bad043bb34c51646ce770be8f23f8f97e3dc902a6973f127fa5684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e840064324bad043bb34c51646ce770be8f23f8f97e3dc902a6973f127fa5684", kill_on_drop: false }` [INFO] [stdout] e840064324bad043bb34c51646ce770be8f23f8f97e3dc902a6973f127fa5684 [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=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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a5db378dc14a40dd1580c27fb8362156446382c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ceffd27687eae327d983c4dbcf4bd33c40e6cf5995a8c9500eb5e69e12c5c5f5 [INFO] running `Command { std: "docker" "start" "-a" "ceffd27687eae327d983c4dbcf4bd33c40e6cf5995a8c9500eb5e69e12c5c5f5", kill_on_drop: false }` [INFO] [stderr] Checking utf8_slice v1.0.0 [INFO] [stderr] Checking rust-learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/compound-types-array-4.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | struct I64(i64); [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/compound-types-array-4.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | struct Char(char); [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/compound-types-array-4.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | I64(i64), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 10 | I64(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/compound-types-array-4.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | Char(char), [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 11 | Char(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/bin/method-6.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | match (*self) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - match (*self) { [INFO] [stdout] 12 + match *self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red` and `Green` are never constructed [INFO] [stdout] --> src/bin/method-6.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum TrafficLightColor { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 4 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | Yellow, [INFO] [stdout] 6 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrafficLightColor` 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: calls to `std::str::from_utf8` with a invalid literal always return an error [INFO] [stdout] --> src/bin/compound-types-string-10-1.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 31 | let shift_jis = b"\x82\xe6\x82\xa8\x82\xb1\x82\xbb"; // "ようこそ" in SHIFT-JIS [INFO] [stdout] | ----------------------------------- the literal was valid UTF-8 up to the 0 bytes [INFO] [stdout] ... [INFO] [stdout] 34 | match str::from_utf8(shift_jis) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_from_utf8)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/compound-types-struct-1.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | let p = Person { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `age`, and `hobby` are never read [INFO] [stdout] --> src/bin/compound-types-struct-1.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | hobby: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/bin/pattern-match-match-iflet-7.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | if let Foo::Bar(i) = a { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg1` [INFO] [stdout] --> src/bin/compound-types-enum-2.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | let msg1 = Message::Move{ x: 1, y: 1 }; // 使用x = 1, y = 2 来初始化 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_msg1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg2` [INFO] [stdout] --> src/bin/compound-types-enum-2.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | let msg2 = Message::Write("hello, world!".to_string()); // 使用 "hello, world!" 来初始化 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_msg2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/compound-types-enum-2.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Move { x: i32, y: i32 }, [INFO] [stdout] | ---- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/compound-types-enum-2.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 6 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit` and `ChangeColor` are never constructed [INFO] [stdout] --> src/bin/compound-types-enum-2.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 4 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly` is never used [INFO] [stdout] --> src/bin/generics-traits-trait-object-1.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 13 | impl Swan { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 14 | fn fly(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/bin/ownership-borrowing-11.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/bin/ownership-borrowing-11.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | let r2 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly` is never used [INFO] [stdout] --> src/bin/generics-traits-trait-object-2.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl Duck { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 7 | fn fly(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly` is never used [INFO] [stdout] --> src/bin/generics-traits-trait-object-2.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 12 | impl Swan { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 13 | fn fly(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u2` [INFO] [stdout] --> src/bin/compound-types-struct-6.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | let u2 = set_email(u1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_u2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `username`, `email`, and `sign_in_count` are never read [INFO] [stdout] --> src/bin/compound-types-struct-6.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 4 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/generics-traits-generics-4.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | let p = Point{x: 5, y : "hello".to_string()}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/generics-traits-generics-4.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 5 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/lifetime-basic-6.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | struct Borrowed<'a>(&'a i32); [INFO] [stdout] | -------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Borrowed` 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 `x` and `y` are never read [INFO] [stdout] --> src/bin/lifetime-basic-6.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct NamedBorrowed<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 10 | x: &'a i32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | y: &'a i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `NamedBorrowed` 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/bin/lifetime-basic-6.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | Num(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Either` 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] 16 | Num(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/lifetime-basic-6.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | Ref(&'a i32), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Either` 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] 17 | Ref(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/lifetime-basic-6.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | struct Borrowed<'a>(&'a i32); [INFO] [stdout] | -------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Borrowed` 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 `x` and `y` are never read [INFO] [stdout] --> src/bin/lifetime-basic-6.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct NamedBorrowed<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 10 | x: &'a i32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | y: &'a i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `NamedBorrowed` 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/bin/lifetime-basic-6.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | Num(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Either` 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] 16 | Num(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/lifetime-basic-6.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | Ref(&'a i32), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Either` 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] 17 | Ref(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/bin/pattern-match-match-iflet-7.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | if let Foo::Bar(i) = a { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Write`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/bin/compound-types-enum-3.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 4 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Move { x: i32, y: i32 }, [INFO] [stdout] 6 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/bin/lifetime-basic-3.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/lifetime-basic-5.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | let y: & i32 = &_x; [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: `p` [INFO] [stdout] --> src/bin/generics-traits-generics-4.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | let p = Point{x: 5, y : "hello".to_string()}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/generics-traits-generics-4.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 5 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Write`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/bin/compound-types-enum-3.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 4 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Move { x: i32, y: i32 }, [INFO] [stdout] 6 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i3` [INFO] [stdout] --> src/bin/type-conversions-from-into-1.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | let i3: u32 = 'a'.into(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_i3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bin/type-conversions-from-into-1.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | let s: String = 'a'.into(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i3_` [INFO] [stdout] --> src/bin/type-conversions-from-into-1.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | let i3_: u32 = 'a' as u32 ; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_i3_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s_` [INFO] [stdout] --> src/bin/type-conversions-from-into-1.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | let s_: String = String::from('a'); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/pattern-match-match-iflet-3.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ----------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 7 | ChangeColor((), i32, i32), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Write` is never constructed [INFO] [stdout] --> src/bin/pattern-match-match-iflet-3.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 3 | enum Message { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_on_ref_zero` is never used [INFO] [stdout] --> src/bin/lifetime-advance-4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn call_on_ref_zero(f: F) where for<'a> F: Fn(&'a i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bin/ownership-borrowing-9.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | fn borrow_object(s: &String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-learning` (bin "lifetime-advance-4" test); 1 warning emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] No space left on device (os error 28) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] failed to parse process output: `/opt/rustwide/rustup-home/toolchains/a5db378dc14a40dd1580c27fb8362156446382c3/bin/rustc --crate-name lifetime_advance_4 --edition=2021 src/bin/lifetime-advance-4.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=28a80206a72611a1 -C extra-filename=-6492c013ec4ecf4d --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern utf8_slice=/opt/rustwide/target/debug/deps/libutf8_slice-08253a6ecf8af2c5.rmeta --cap-lints=forbid` (exit status: 0) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/collections-vector-1.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_vec(v: &Vec) {} [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: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/bin/lifetime-advance-2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `announce_and_return_part` is never used [INFO] [stdout] --> src/bin/lifetime-advance-2.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl<'a: 'b, 'b> ImportantExcerpt<'a> { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 7 | fn announce_and_return_part(&'a self, announcement: &'b str) -> &'b str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't create a temp dir: No space left on device (os error 28) at path "/opt/rustwide/target/debug/deps/rmetaFRIJcB" [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-learning` (bin "lifetime-advance-2") due to 1 previous error; 2 warnings emitted [INFO] [stdout] warning: function `print_c` is never used [INFO] [stdout] --> src/bin/lifetime-static-6.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn print_c(t: &'static dyn Display) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not parse/generate dep info at: /opt/rustwide/target/debug/deps/generics_traits_generics_7-e9cab8cf81d8de4f.d [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] failed to write `/opt/rustwide/target/debug/.fingerprint/rust-learning-e9cab8cf81d8de4f/dep-test-bin-generics-traits-generics-7` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] No space left on device (os error 28) [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/generics-traits-traits-5.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct Post { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Post` 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] [stderr] error: could not compile `rust-learning` (bin "lifetime-static-6" test); 1 warning emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] No space left on device (os error 28) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] failed to parse process output: `/opt/rustwide/rustup-home/toolchains/a5db378dc14a40dd1580c27fb8362156446382c3/bin/rustc --crate-name lifetime_static_6 --edition=2021 src/bin/lifetime-static-6.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=3d7e6433f9d47213 -C extra-filename=-e91f52e553646dcc --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern utf8_slice=/opt/rustwide/target/debug/deps/libutf8_slice-08253a6ecf8af2c5.rmeta --cap-lints=forbid` (exit status: 1) [INFO] [stdout] warning: fields `a` and `b` are never read [INFO] [stdout] --> src/bin/lifetime-static-2.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | a: String, [INFO] [stdout] | ^ [INFO] [stdout] 4 | b: String, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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: static variable `config` should have an upper case name [INFO] [stdout] --> src/bin/lifetime-static-2.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | static mut config: Option<&mut Config> = None; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `CONFIG` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/bin/lifetime-static-2.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | println!("{:?}",config) [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ceffd27687eae327d983c4dbcf4bd33c40e6cf5995a8c9500eb5e69e12c5c5f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ceffd27687eae327d983c4dbcf4bd33c40e6cf5995a8c9500eb5e69e12c5c5f5", kill_on_drop: false }` [INFO] [stdout] ceffd27687eae327d983c4dbcf4bd33c40e6cf5995a8c9500eb5e69e12c5c5f5