[INFO] cloning repository https://github.com/ferhatgec/gretea [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ferhatgec/gretea" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fferhatgec%2Fgretea", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fferhatgec%2Fgretea'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 814b9be460c3409d2ba7e3bd94e59bc9070852c3 [INFO] checking ferhatgec/gretea against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fferhatgec%2Fgretea" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ferhatgec/gretea [INFO] finished tweaking git repo https://github.com/ferhatgec/gretea [INFO] tweaked toml for git repo https://github.com/ferhatgec/gretea written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ferhatgec/gretea on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ferhatgec/gretea 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f4f8f47f1e61e9e5215dc7e577d701c298dc9f6a7b3dd46dcd1e5428a48459fe [INFO] running `Command { std: "docker" "start" "-a" "f4f8f47f1e61e9e5215dc7e577d701c298dc9f6a7b3dd46dcd1e5428a48459fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4f8f47f1e61e9e5215dc7e577d701c298dc9f6a7b3dd46dcd1e5428a48459fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4f8f47f1e61e9e5215dc7e577d701c298dc9f6a7b3dd46dcd1e5428a48459fe", kill_on_drop: false }` [INFO] [stdout] f4f8f47f1e61e9e5215dc7e577d701c298dc9f6a7b3dd46dcd1e5428a48459fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6582921c91c96272d6a95118e0e82bc129623040e6221901c83b7fced5035da5 [INFO] running `Command { std: "docker" "start" "-a" "6582921c91c96272d6a95118e0e82bc129623040e6221901c83b7fced5035da5", kill_on_drop: false }` [INFO] [stderr] Checking elite v0.1.4 [INFO] [stderr] Checking gretea v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/parser.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | BTreeMap [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: `elite::logger::elite_logger::log` [INFO] [stdout] --> src/parser.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use elite::logger::elite_logger::log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/parser.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | BTreeMap [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: `elite::logger::elite_logger::log` [INFO] [stdout] --> src/parser.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use elite::logger::elite_logger::log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/parser.rs:1080:37 [INFO] [stdout] | [INFO] [stdout] 1057 | ... continue; [INFO] [stdout] | -------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 1080 | ... argument_name.clear(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/parser.rs:1080:37 [INFO] [stdout] | [INFO] [stdout] 1057 | ... continue; [INFO] [stdout] | -------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 1080 | ... argument_name.clear(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut type_name = String::new(); [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: unused variable: `type_name` [INFO] [stdout] --> src/parser.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut type_name = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `unparsed` is never read [INFO] [stdout] --> src/read.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct GreteaFileData { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 23 | pub raw_data : String, [INFO] [stdout] 24 | pub unparsed : Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GreteaFileData` has a derived impl for the trait `Clone`, 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: variant `Info` is never constructed [INFO] [stdout] --> src/log.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum LogTypes { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 10 | Info, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:103:56 [INFO] [stdout] | [INFO] [stdout] 103 | let object_name = header(normalize(file.0.split('/').last().unwrap().parse().unwrap())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:133:47 [INFO] [stdout] | [INFO] [stdout] 133 | remove_and_check(header(normalize(file.0.split('/') [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 134 | | .last() [INFO] [stdout] 135 | | .unwrap() [INFO] [stdout] 136 | | .parse() [INFO] [stdout] | |________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tokenizer.rs:147:63 [INFO] [stdout] | [INFO] [stdout] 147 | data.push_str(&*format!("{}{}", tokens.clone(), if is_seq { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tokenizer.rs:156:59 [INFO] [stdout] | [INFO] [stdout] 156 | data.push_str(&*format!("{}{}", tokens.clone(), if tokens[1..] != *ESC { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gretea` (bin "gretea" test) due to 2 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut type_name = String::new(); [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: unused variable: `type_name` [INFO] [stdout] --> src/parser.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut type_name = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `unparsed` is never read [INFO] [stdout] --> src/read.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct GreteaFileData { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 23 | pub raw_data : String, [INFO] [stdout] 24 | pub unparsed : Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GreteaFileData` has a derived impl for the trait `Clone`, 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: variant `Info` is never constructed [INFO] [stdout] --> src/log.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum LogTypes { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 10 | Info, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:103:56 [INFO] [stdout] | [INFO] [stdout] 103 | let object_name = header(normalize(file.0.split('/').last().unwrap().parse().unwrap())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:133:47 [INFO] [stdout] | [INFO] [stdout] 133 | remove_and_check(header(normalize(file.0.split('/') [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 134 | | .last() [INFO] [stdout] 135 | | .unwrap() [INFO] [stdout] 136 | | .parse() [INFO] [stdout] | |________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tokenizer.rs:147:63 [INFO] [stdout] | [INFO] [stdout] 147 | data.push_str(&*format!("{}{}", tokens.clone(), if is_seq { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tokenizer.rs:156:59 [INFO] [stdout] | [INFO] [stdout] 156 | data.push_str(&*format!("{}{}", tokens.clone(), if tokens[1..] != *ESC { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gretea` (bin "gretea") due to 2 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6582921c91c96272d6a95118e0e82bc129623040e6221901c83b7fced5035da5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6582921c91c96272d6a95118e0e82bc129623040e6221901c83b7fced5035da5", kill_on_drop: false }` [INFO] [stdout] 6582921c91c96272d6a95118e0e82bc129623040e6221901c83b7fced5035da5