[INFO] cloning repository https://github.com/nikita-skobov/context-based-variable-substitution [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nikita-skobov/context-based-variable-substitution" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnikita-skobov%2Fcontext-based-variable-substitution", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnikita-skobov%2Fcontext-based-variable-substitution'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c7b2f2db643ee2f665354ac3662334a0c16bfe4 [INFO] checking nikita-skobov/context-based-variable-substitution against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnikita-skobov%2Fcontext-based-variable-substitution" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nikita-skobov/context-based-variable-substitution on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nikita-skobov/context-based-variable-substitution [INFO] finished tweaking git repo https://github.com/nikita-skobov/context-based-variable-substitution [INFO] tweaked toml for git repo https://github.com/nikita-skobov/context-based-variable-substitution written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nikita-skobov/context-based-variable-substitution 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded regex v1.4.0 [INFO] [stderr] Downloaded regex-syntax v0.6.19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7cea79de6ebd5b84a9199134b490d0070590a7e79b18d77352cb95c9a42e216 [INFO] running `Command { std: "docker" "start" "-a" "a7cea79de6ebd5b84a9199134b490d0070590a7e79b18d77352cb95c9a42e216", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7cea79de6ebd5b84a9199134b490d0070590a7e79b18d77352cb95c9a42e216", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7cea79de6ebd5b84a9199134b490d0070590a7e79b18d77352cb95c9a42e216", kill_on_drop: false }` [INFO] [stdout] a7cea79de6ebd5b84a9199134b490d0070590a7e79b18d77352cb95c9a42e216 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c3e5d54b62ddae2254b1bc90f4b7e5f4a556c4fd746ddd78f397c6ed684e337 [INFO] running `Command { std: "docker" "start" "-a" "8c3e5d54b62ddae2254b1bc90f4b7e5f4a556c4fd746ddd78f397c6ed684e337", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.19 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking regex v1.4.0 [INFO] [stderr] Checking context_based_variable_substitution v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hash::Hash` [INFO] [stdout] --> src/lib.rs:1:51 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, string::ToString, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/lib.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, string::ToString, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_ignore` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | FM_ignore, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `FmIgnore` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_panic` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | FM_panic, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `FmPanic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_default` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | FM_default(String), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `FmDefault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_callback` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | FM_callback(F), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `FmCallback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_ignore` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | FM_ignore, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `FmIgnore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_panic` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | FM_panic, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `FmPanic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_default` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | FM_default(String), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `FmDefault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash::Hash` [INFO] [stdout] --> src/lib.rs:1:51 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, string::ToString, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/lib.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, string::ToString, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_ignore` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | FM_ignore, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `FmIgnore` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_panic` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | FM_panic, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `FmPanic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_default` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | FM_default(String), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `FmDefault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_callback` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | FM_callback(F), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `FmCallback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_ignore` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | FM_ignore, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `FmIgnore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_panic` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | FM_panic, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `FmPanic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FM_default` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | FM_default(String), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `FmDefault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `syntax_char` [INFO] [stdout] --> src/lib.rs:282:49 [INFO] [stdout] | [INFO] [stdout] 282 | fn get_value_from_key(&self, key: &str, syntax_char: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_syntax_char` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/lib.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | let expected = "this is my custom_context"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replaced` [INFO] [stdout] --> src/lib.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let replaced = replace_all_from(text, &context, FailureMode::FM_panic, None); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replaced` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/lib.rs:429:42 [INFO] [stdout] | [INFO] [stdout] 429 | fn get_value_from_key(&self, key: &str, syntax_char: char) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:198:29 [INFO] [stdout] | [INFO] [stdout] 198 | let mut s: String = text.clone().to_string(); [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/lib.rs:198:29 [INFO] [stdout] | [INFO] [stdout] 198 | let mut s: String = text.clone().to_string(); [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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.32s [INFO] running `Command { std: "docker" "inspect" "8c3e5d54b62ddae2254b1bc90f4b7e5f4a556c4fd746ddd78f397c6ed684e337", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c3e5d54b62ddae2254b1bc90f4b7e5f4a556c4fd746ddd78f397c6ed684e337", kill_on_drop: false }` [INFO] [stdout] 8c3e5d54b62ddae2254b1bc90f4b7e5f4a556c4fd746ddd78f397c6ed684e337