[INFO] cloning repository https://github.com/cheese1ne/rust_ [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cheese1ne/rust_" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcheese1ne%2Frust_", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcheese1ne%2Frust_'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 16c7498928d0daf0803b31d3ddfc601896897361 [INFO] checking cheese1ne/rust_ against try#70daa2c0d8eed7066b07966f3c0b0b8622bff4e4 for pr-151539 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcheese1ne%2Frust_" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cheese1ne/rust_ [INFO] finished tweaking git repo https://github.com/cheese1ne/rust_ [INFO] tweaked toml for git repo https://github.com/cheese1ne/rust_ written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cheese1ne/rust_ on toolchain 70daa2c0d8eed7066b07966f3c0b0b8622bff4e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cheese1ne/rust_ 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" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking cheese1ne/rust_ against try#70daa2c0d8eed7066b07966f3c0b0b8622bff4e4 for pr-151539 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcheese1ne%2Frust_" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cheese1ne/rust_ [INFO] finished tweaking git repo https://github.com/cheese1ne/rust_ [INFO] tweaked toml for git repo https://github.com/cheese1ne/rust_ written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cheese1ne/rust_ on toolchain 70daa2c0d8eed7066b07966f3c0b0b8622bff4e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cheese1ne/rust_ 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" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 042855ce52c59065ffd8305222dc9374100f5b403361a3b49d6c18f8b3cf2862 [INFO] running `Command { std: "docker" "start" "-a" "042855ce52c59065ffd8305222dc9374100f5b403361a3b49d6c18f8b3cf2862", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "042855ce52c59065ffd8305222dc9374100f5b403361a3b49d6c18f8b3cf2862", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "042855ce52c59065ffd8305222dc9374100f5b403361a3b49d6c18f8b3cf2862", kill_on_drop: false }` [INFO] [stdout] 042855ce52c59065ffd8305222dc9374100f5b403361a3b49d6c18f8b3cf2862 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8097c5c7a7118807720cdff864a5044cee5a7d007a1648402c6f1967a40c3af [INFO] running `Command { std: "docker" "start" "-a" "d8097c5c7a7118807720cdff864a5044cee5a7d007a1648402c6f1967a40c3af", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.56 [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling openssl-sys v0.9.85 [INFO] [stderr] Compiling tokio v1.27.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling openssl v0.10.50 [INFO] [stderr] Compiling serde_derive v1.0.160 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling serde v1.0.160 [INFO] [stderr] Compiling serde_json v1.0.96 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking ipnet v2.7.2 [INFO] [stderr] Checking unicode-ident v1.0.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking urlencoding v2.1.2 [INFO] [stderr] Checking c24_oop v0.1.0 (/opt/rustwide/workdir/c24_oop) [INFO] [stderr] Checking c27_web_server v0.1.0 (/opt/rustwide/workdir/c27_web_server) [INFO] [stderr] Checking c20_closure v0.1.0 (/opt/rustwide/workdir/c20_closure) [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> c24_oop/src/lib.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | fn content<'a>(&'a self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking c19_testing v0.1.0 (/opt/rustwide/workdir/c19_testing) [INFO] [stdout] warning: unused import: `Draw` [INFO] [stdout] --> c24_oop/src/main.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use c24_oop::{Button, Draw, Screen, SelectBox}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> c19_testing/src/lib.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> c19_testing/src/lib.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 87 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> c19_testing/src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 93 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> c20_closure/src/lib.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 130 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 131 | width: u32, [INFO] [stdout] 132 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking c17_trait v0.1.0 (/opt/rustwide/workdir/c17_trait) [INFO] [stderr] Checking c03_data_types v0.1.0 (/opt/rustwide/workdir/c03_data_types) [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> c27_web_server/src/multi_thread_server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> c27_web_server/src/multi_thread_server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Draw` [INFO] [stdout] --> c24_oop/src/main.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use c24_oop::{Button, Draw, Screen, SelectBox}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking c07_reference_and_borrow v0.1.0 (/opt/rustwide/workdir/c07_reference_and_borrow) [INFO] [stderr] Checking c11_match v0.1.0 (/opt/rustwide/workdir/c11_match) [INFO] [stdout] warning: struct `Datasource` is never constructed [INFO] [stdout] --> c19_testing/tests/common/mod.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Datasource { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking c21_iterators v0.1.0 (/opt/rustwide/workdir/c21_iterators) [INFO] [stderr] Checking c02_variables_and_mutability v0.1.0 (/opt/rustwide/workdir/c02_variables_and_mutability) [INFO] [stderr] Checking c12_if_let v0.1.0 (/opt/rustwide/workdir/c12_if_let) [INFO] [stderr] Checking c16_generics v0.1.0 (/opt/rustwide/workdir/c16_generics) [INFO] [stderr] Checking c22_smart_points v0.1.0 (/opt/rustwide/workdir/c22_smart_points) [INFO] [stderr] Checking c14_collections v0.1.0 (/opt/rustwide/workdir/c14_collections) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> c02_variables_and_mutability/src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let mut spaces_mut = " '2' "; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> c12_if_let/src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 35 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `proc_macro_span_shrink` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.56/src/lib.rs:92:30 [INFO] [stdout] | [INFO] [stdout] 92 | feature(proc_macro_span, proc_macro_span_shrink) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a feature with a similar name: `proc_macro_span_file` [INFO] [stdout] | [INFO] [stdout] 92 - feature(proc_macro_span, proc_macro_span_shrink) [INFO] [stdout] 92 + feature(proc_macro_span, proc_macro_span_file) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> c12_if_let/src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 43 | Alabama, [INFO] [stdout] 44 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `value_in_cents` is never used [INFO] [stdout] --> c12_if_let/src/main.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl Coin { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 49 | fn value_in_cents(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `proc_macro_span_shrink` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.56/src/lib.rs:92:30 [INFO] [stdout] | [INFO] [stdout] 92 | feature(proc_macro_span, proc_macro_span_shrink) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a feature with a similar name: `proc_macro_span_file` [INFO] [stdout] | [INFO] [stdout] 92 - feature(proc_macro_span, proc_macro_span_shrink) [INFO] [stdout] 92 + feature(proc_macro_span, proc_macro_span_file) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> c11_match/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 15 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> c11_match/src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 37 | Alabama, [INFO] [stdout] 38 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking c10_enum v0.1.0 (/opt/rustwide/workdir/c10_enum) [INFO] [stderr] Checking c13_crate v0.1.0 (/opt/rustwide/workdir/c13_crate) [INFO] [stderr] Checking c15_errors v0.1.0 (/opt/rustwide/workdir/c15_errors) [INFO] [stderr] Checking url v2.3.1 [INFO] [stderr] Checking c08_slice v0.1.0 (/opt/rustwide/workdir/c08_slice) [INFO] [stdout] warning: enum `Box` is never used [INFO] [stdout] --> c16_generics/src/main.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 93 | enum Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> c16_generics/src/main.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> c16_generics/src/main.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> c16_generics/src/main.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 113 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 114 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> c22_smart_points/src/box_.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> c22_smart_points/src/drop_.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> c22_smart_points/src/drop_.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> c22_smart_points/src/rc_.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> c22_smart_points/src/rc_.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> c22_smart_points/src/weak_.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let x = Rc::downgrade(&branch); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> c22_smart_points/src/rc_.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 4 - Cons(i32, Rc), [INFO] [stdout] 4 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> c22_smart_points/src/weak_.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | parent: RefCell>, [INFO] [stdout] 8 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> c14_collections/src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> c14_collections/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | 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: field `value` is never read [INFO] [stdout] --> c19_testing/src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 93 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> c14_collections/src/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let mut v = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking c18_lifetime v0.1.0 (/opt/rustwide/workdir/c18_lifetime) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> c14_collections/src/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut field_name = String::from("Favorite color"); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> c14_collections/src/main.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] 85 - Int(i32), [INFO] [stdout] 85 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> c14_collections/src/main.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SheetCell` 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] 86 - Float(f64), [INFO] [stdout] 86 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> c14_collections/src/main.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SheetCell` 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] 87 - Text(String), [INFO] [stdout] 87 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `macos` in `os` [INFO] [stdout] --> c10_enum/src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::macos::raw::stat; [INFO] [stdout] | ^^^^^ could not find `macos` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/70daa2c0d8eed7066b07966f3c0b0b8622bff4e4/library/std/src/os/mod.rs:156:6 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated behind the `macos` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> c15_errors/src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 47 | not_found => match File::create("/Users/sobann/code-nav/rust/errors_/hello.txt") { [INFO] [stdout] | --------- matches any value [INFO] [stdout] ... [INFO] [stdout] 51 | other_error => { [INFO] [stdout] | ^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stdout] warning: unused variable: `file_io` [INFO] [stdout] --> c15_errors/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let file_io = match file_io_result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_io` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `not_found` [INFO] [stdout] --> c15_errors/src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | not_found => match File::create("/Users/sobann/code-nav/rust/errors_/hello.txt") { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `NotFound` [INFO] [stdout] | [INFO] [stdout] 47 - not_found => match File::create("/Users/sobann/code-nav/rust/errors_/hello.txt") { [INFO] [stdout] 47 + std::io::ErrorKind::NotFound => match File::create("/Users/sobann/code-nav/rust/errors_/hello.txt") { [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 47 | _not_found => match File::create("/Users/sobann/code-nav/rust/errors_/hello.txt") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other_error` [INFO] [stdout] --> c15_errors/src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | other_error => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_other_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_io` [INFO] [stdout] --> c15_errors/src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let file_io = file_io_result.unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_io` [INFO] [stdout] --> c15_errors/src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let file_io = file_io_result.expect("hello.txt should be included in this project"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> c15_errors/src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let username = read_username_from_file(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> c15_errors/src/main.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let username = read_username_from_file_shorthand(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_panic_demo` is never used [INFO] [stdout] --> c15_errors/src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn simple_panic_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> c10_enum/src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_char` [INFO] [stdout] --> c10_enum/src/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let some_char = Some('e'); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `absent_number` [INFO] [stdout] --> c10_enum/src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let absent_number: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absent_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> c24_oop/src/lib.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | fn content<'a>(&'a self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `panic_backtrace_demo` is never used [INFO] [stdout] --> c15_errors/src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn panic_backtrace_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_result_resolve_panic_demo` is never used [INFO] [stdout] --> c15_errors/src/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn use_result_resolve_panic_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_result_unwrap_demo` is never used [INFO] [stdout] --> c15_errors/src/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn use_result_unwrap_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_result_expect_demo` is never used [INFO] [stdout] --> c15_errors/src/main.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn use_result_expect_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spread_painc_demo` is never used [INFO] [stdout] --> c15_errors/src/main.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn spread_painc_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> c15_errors/src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_shorthand` is never used [INFO] [stdout] --> c15_errors/src/main.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn read_username_from_file_shorthand() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `option_shorthand_demo` is never used [INFO] [stdout] --> c15_errors/src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn option_shorthand_demo() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_char_of_first_line` is never used [INFO] [stdout] --> c15_errors/src/main.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn last_char_of_first_line(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking c09_struct v0.1.0 (/opt/rustwide/workdir/c09_struct) [INFO] [stderr] error: could not compile `c10_enum` (bin "c10_enum" test) due to 1 previous error; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable `r` is assigned to, but never used [INFO] [stdout] --> c18_lifetime/src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let r; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_r` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> c18_lifetime/src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | r = &x; //r获取x的引用 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string2` [INFO] [stdout] --> c18_lifetime/src/main.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let string2 = String::from("xyz"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> c18_lifetime/src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let i = ImportantExcerpt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> c18_lifetime/src/main.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 57 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> c18_lifetime/src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 62 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> c20_closure/src/lib.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 130 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 131 | width: u32, [INFO] [stdout] 132 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Box` is never used [INFO] [stdout] --> c16_generics/src/main.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 93 | enum Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> c11_match/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 15 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> c16_generics/src/main.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> c11_match/src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 37 | Alabama, [INFO] [stdout] 38 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> c16_generics/src/main.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> c16_generics/src/main.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 113 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 114 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `r` is assigned to, but never used [INFO] [stdout] --> c18_lifetime/src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let r; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_r` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> c18_lifetime/src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | r = &x; //r获取x的引用 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string2` [INFO] [stdout] --> c18_lifetime/src/main.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let string2 = String::from("xyz"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> c18_lifetime/src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let i = ImportantExcerpt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> c18_lifetime/src/main.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 57 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> c18_lifetime/src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 62 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> c09_struct/src/main.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | struct Game<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `square`, `area`, `perimeter`, `valid`, and `can_hold` are never used [INFO] [stdout] --> c09_struct/src/main.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 127 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 128 | //创建一个正方形 [INFO] [stdout] 129 | fn square(size: u32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn perimeter(self: &Self) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn valid(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0635`. [INFO] [stdout] [INFO] [stderr] error: could not compile `proc-macro2` (lib) due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0635`. [INFO] [stdout] [INFO] [stderr] error: could not compile `proc-macro2` (lib) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "d8097c5c7a7118807720cdff864a5044cee5a7d007a1648402c6f1967a40c3af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8097c5c7a7118807720cdff864a5044cee5a7d007a1648402c6f1967a40c3af", kill_on_drop: false }` [INFO] [stdout] d8097c5c7a7118807720cdff864a5044cee5a7d007a1648402c6f1967a40c3af