[INFO] cloning repository https://github.com/wangdengwu/rust-by-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wangdengwu/rust-by-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangdengwu%2Frust-by-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangdengwu%2Frust-by-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 899a3490bc0203063564d90c64c097a28b0277f0 [INFO] checking wangdengwu/rust-by-example against master#d49be02cf6d2e2a01264fcdef1e20c826710c0f5 for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangdengwu%2Frust-by-example" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wangdengwu/rust-by-example on toolchain d49be02cf6d2e2a01264fcdef1e20c826710c0f5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wangdengwu/rust-by-example [INFO] finished tweaking git repo https://github.com/wangdengwu/rust-by-example [INFO] tweaked toml for git repo https://github.com/wangdengwu/rust-by-example written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/wangdengwu/rust-by-example 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" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2647ad549c6d60a8e1b5f7a2209ce52b9166a56ba79d6b16b1aa0d68a8872f18 [INFO] running `Command { std: "docker" "start" "-a" "2647ad549c6d60a8e1b5f7a2209ce52b9166a56ba79d6b16b1aa0d68a8872f18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2647ad549c6d60a8e1b5f7a2209ce52b9166a56ba79d6b16b1aa0d68a8872f18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2647ad549c6d60a8e1b5f7a2209ce52b9166a56ba79d6b16b1aa0d68a8872f18", kill_on_drop: false }` [INFO] [stdout] 2647ad549c6d60a8e1b5f7a2209ce52b9166a56ba79d6b16b1aa0d68a8872f18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3445b14f0f666f55d76ee71dfddf211a52a79ae340dce5a91d601dd7cb62d3dd [INFO] running `Command { std: "docker" "start" "-a" "3445b14f0f666f55d76ee71dfddf211a52a79ae340dce5a91d601dd7cb62d3dd", kill_on_drop: false }` [INFO] [stderr] Checking rust-by-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `tarpaulin` [INFO] [stdout] --> src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(not(tarpaulin))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/hello_world/display/formatting.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/custom_types/structs.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/flow_control/match/destructure_structures.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `tarpaulin` [INFO] [stdout] --> src/functions/diverging.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(not(tarpaulin))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deeply::nested::function as other_function` [INFO] [stdout] --> src/modules/use.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use deeply::nested::function as other_function; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `tarpaulin` [INFO] [stdout] --> src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(not(tarpaulin))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/primitives/literals_operators.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/primitives/tuples.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/primitives/array_slices.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/custom_types/constants.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/variable_bindings/mutability.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/variable_bindings/scope_shadowing.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/variable_bindings/declare_first.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/variable_bindings/freezing.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/types/casting.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(error)]// @formatter:off [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/types/casting.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | #[cfg(error)]// @formatter:off [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/flow_control/for.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/flow_control/match/destructure_structures.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/functions/methods.rs:101:15 [INFO] [stdout] | [INFO] [stdout] 101 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/functions/methods.rs:135:15 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/functions/closures/capture.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(error)] // @formatter:off [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/functions/closures/capture.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/functions/closures/capture.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/functions/closures/iter_any.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/functions/closures/iter_any.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/functions/closures.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/functions/closures.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `tarpaulin` [INFO] [stdout] --> src/functions/diverging.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(not(tarpaulin))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/modules/struct_visibility.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | #[cfg(error)] // @formatter:off [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/modules/struct_visibility.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | #[cfg(error)] // @formatter:off [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/generics/bounds.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `error` [INFO] [stdout] --> src/generics/bounds.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | #[cfg(error)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `feature = "error"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(error)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(error)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_world` is never used [INFO] [stdout] --> src/hello_world/mod.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn hello_world() -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_default` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn format_by_default() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_index` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn format_by_index() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_named` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn format_by_named() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_binary_type` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn format_by_binary_type() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_octal_type` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn format_by_octal_type() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_hexadecimal_type` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn format_by_hexadecimal_type() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_right_justify_default` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn format_by_right_justify_default() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_right_justify_0` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn format_by_right_justify_0() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_left_adjust_0` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn format_by_left_adjust_0() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_right_justify_width` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn format_by_right_justify_width() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_pi` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn format_by_pi() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Structure` is never constructed [INFO] [stdout] --> src/hello_world/formatted_print.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct Structure(i32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_struct` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn format_by_struct() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_by_local_variable` is never used [INFO] [stdout] --> src/hello_world/formatted_print.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn format_by_local_variable() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Structure` is never constructed [INFO] [stdout] --> src/hello_world/debug.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Structure(i32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Deep` is never constructed [INFO] [stdout] --> src/hello_world/debug.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Deep(Structure); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_debug_by_default` is never used [INFO] [stdout] --> src/hello_world/debug.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn format_debug_by_default() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_debug_by_index` is never used [INFO] [stdout] --> src/hello_world/debug.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn format_debug_by_index() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_debug_by_struct` is never used [INFO] [stdout] --> src/hello_world/debug.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn format_debug_by_struct() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_debug_by_struct_deep` is never used [INFO] [stdout] --> src/hello_world/debug.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn format_debug_by_struct_deep() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/hello_world/debug.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Person<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_debug_by_pretty_print` is never used [INFO] [stdout] --> src/hello_world/debug.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn format_debug_by_pretty_print() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Structure` is never constructed [INFO] [stdout] --> src/hello_world/display.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Structure(i32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinMax` is never constructed [INFO] [stdout] --> src/hello_world/display.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct MinMax(i64, i64); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2D` is never constructed [INFO] [stdout] --> src/hello_world/display.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Point2D { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/hello_world/display/testcase_list.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct List(Vec); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `City` is never constructed [INFO] [stdout] --> src/hello_world/display/formatting.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct City { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> src/hello_world/display/formatting.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse` is never used [INFO] [stdout] --> src/primitives/tuples.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn reverse(pair: (i32, bool)) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matrix` is never constructed [INFO] [stdout] --> src/primitives/tuples.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Matrix(f32, f32, f32, f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transpose` is never used [INFO] [stdout] --> src/primitives/tuples.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn transpose(matrix: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_slice` is never used [INFO] [stdout] --> src/primitives/array_slices.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn analyze_slice(slice: &[i32]) -> (i32, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/custom_types/structs.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unit` is never constructed [INFO] [stdout] --> src/custom_types/structs.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/custom_types/structs.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Pair(i32, f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/custom_types/structs.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/custom_types/structs.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WebEvent` is never used [INFO] [stdout] --> src/custom_types/enums.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum WebEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inspect` is never used [INFO] [stdout] --> src/custom_types/enums.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn inspect(event: WebEvent) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Number` is never used [INFO] [stdout] --> src/custom_types/enums.rs:50:6 [INFO] [stdout] | [INFO] [stdout] 50 | enum Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Color` is never used [INFO] [stdout] --> src/custom_types/enums.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add` and `Subtract` are never constructed [INFO] [stdout] --> src/custom_types/enums.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum VeryVerboseEnumOfThingsToDoWithNumbers { [INFO] [stdout] | -------------------------------------- variants in this enum [INFO] [stdout] 32 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 33 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VeryVerboseEnumOfThingsToDoWithNumbers` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Operations` is never used [INFO] [stdout] --> src/custom_types/enums.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | pub(crate) type Operations = VeryVerboseEnumOfThingsToDoWithNumbers; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> src/custom_types/enums.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 38 | impl Operations { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 39 | pub(crate) fn run(&self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/custom_types/testcase_linked_list.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `prepend`, `len`, and `stringify` are never used [INFO] [stdout] --> src/custom_types/testcase_linked_list.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl List { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 12 | // Create an empty list [INFO] [stdout] 13 | fn new() -> List { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn prepend(self, elem: u32) -> List { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn len(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn stringify(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LANGUAGE` is never used [INFO] [stdout] --> src/custom_types/constants.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | static mut LANGUAGE: &str = "Rust"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `THRESHOLD` is never used [INFO] [stdout] --> src/custom_types/constants.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_big` is never used [INFO] [stdout] --> src/custom_types/constants.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_big(n: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `NanoSecond` is never used [INFO] [stdout] --> src/types/aliasing.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | type NanoSecond = u64; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Inch` is never used [INFO] [stdout] --> src/types/aliasing.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | type Inch = u64; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `U64` is never used [INFO] [stdout] --> src/types/aliasing.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type U64 = u64; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/conversion/from_into.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` 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 `value` is never read [INFO] [stdout] --> src/conversion/from_into.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 30 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` 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 `Circle` is never constructed [INFO] [stdout] --> src/conversion/to_and_from_strings.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Circle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_loop` is never used [INFO] [stdout] --> src/flow_control/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn test_loop(fizzbuzz: &mut i32, fizz: &mut i32, buzz: &mut i32, counter: &mut i32, n: i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `if_else_str` is never used [INFO] [stdout] --> src/flow_control/if_else.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn if_else_str(n: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `if_else_int` is never used [INFO] [stdout] --> src/flow_control/if_else.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn if_else_int(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_number` is never used [INFO] [stdout] --> src/flow_control/match.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn match_number(number: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_boolean` is never used [INFO] [stdout] --> src/flow_control/match.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn match_boolean(boolean: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_slice` is never used [INFO] [stdout] --> src/flow_control/match/destructure_slice.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn match_slice(array: [i32; 3]) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_tuple` is never used [INFO] [stdout] --> src/flow_control/match/destructure_tuple.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn match_tuple(triple: (i32, i32, i32)) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Color` is never used [INFO] [stdout] --> src/flow_control/match/destructure_enum.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_enum` is never used [INFO] [stdout] --> src/flow_control/match/destructure_enum.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn match_enum(color: Color) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo` is never constructed [INFO] [stdout] --> src/flow_control/match/destructure_structures.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_struct` is never used [INFO] [stdout] --> src/flow_control/match/destructure_structures.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn match_struct(foo: Foo) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Temperature` is never used [INFO] [stdout] --> src/flow_control/match/guard.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum Temperature { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_guard` is never used [INFO] [stdout] --> src/flow_control/match/guard.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn match_guard(temperature: Temperature) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Age` is never used [INFO] [stdout] --> src/flow_control/match/binding.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | type Age = fn() -> u32; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `age` is never used [INFO] [stdout] --> src/flow_control/match/binding.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn age(a: Age) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SomeNumber` is never used [INFO] [stdout] --> src/flow_control/match/binding.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type SomeNumber = fn() -> Option; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_number` is never used [INFO] [stdout] --> src/flow_control/match/binding.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn some_number(sn: SomeNumber) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Foo` is never used [INFO] [stdout] --> src/flow_control/if_let.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_count_item` is never used [INFO] [stdout] --> src/flow_control/let_else.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn get_count_item(s: &str) -> (u32, &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_divisible_by` is never used [INFO] [stdout] --> src/functions/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fizzbuzz` is never used [INFO] [stdout] --> src/functions/mod.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn fizzbuzz(n: u32) -> &'static str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fizzbuzz_to` is never used [INFO] [stdout] --> src/functions/mod.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn fizzbuzz_to(n: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/functions/methods.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `origin` and `new` are never used [INFO] [stdout] --> src/functions/methods.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Point { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | fn origin() -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn new(x: f64, y: f64) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/functions/methods.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `area`, `perimeter`, and `translate` are never used [INFO] [stdout] --> src/functions/methods.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Rectangle { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn perimeter(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn translate(&mut self, x: f64, y: f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/functions/methods.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | struct Pair(Box, Box); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `destroy` is never used [INFO] [stdout] --> src/functions/methods.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 63 | impl Pair { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | fn destroy(self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-by-example` (bin "rust-by-example"); 90 warnings 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/d49be02cf6d2e2a01264fcdef1e20c826710c0f5/bin/rustc --crate-name rust_by_example --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("error"))' -C metadata=1aa7a2b7074923cd -C extra-filename=-1aa7a2b7074923cd --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --cap-lints=forbid` (exit status: 1) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/hello_world/formatted_print.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | struct Structure(i32); [INFO] [stdout] | --------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Structure` 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: field `0` is never read [INFO] [stdout] --> src/hello_world/debug.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | struct Structure(i32); [INFO] [stdout] | --------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Structure` 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/hello_world/debug.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | struct Deep(Structure); [INFO] [stdout] | ---- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Deep` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/functions/closures/iter_any.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/functions/closures/iter_find.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/custom_types/constants.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | unsafe { assert_eq!("Rust", LANGUAGE); } [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] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/custom_types/constants.rs:20:37 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { assert_eq!("rust", LANGUAGE); } [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] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3445b14f0f666f55d76ee71dfddf211a52a79ae340dce5a91d601dd7cb62d3dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3445b14f0f666f55d76ee71dfddf211a52a79ae340dce5a91d601dd7cb62d3dd", kill_on_drop: false }` [INFO] [stdout] 3445b14f0f666f55d76ee71dfddf211a52a79ae340dce5a91d601dd7cb62d3dd