[INFO] cloning repository https://github.com/Luke-Draper/MSTS-RS [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Luke-Draper/MSTS-RS" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuke-Draper%2FMSTS-RS", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuke-Draper%2FMSTS-RS'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9d72b9b988a0718fc951715a684dd8595809648 [INFO] checking Luke-Draper/MSTS-RS/d9d72b9b988a0718fc951715a684dd8595809648 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuke-Draper%2FMSTS-RS" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Luke-Draper/MSTS-RS on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Luke-Draper/MSTS-RS [INFO] finished tweaking git repo https://github.com/Luke-Draper/MSTS-RS [INFO] tweaked toml for git repo https://github.com/Luke-Draper/MSTS-RS written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Luke-Draper/MSTS-RS 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ident_case v1.0.0 [INFO] [stderr] Downloaded darling_macro v0.8.0 [INFO] [stderr] Downloaded derive_builder v0.7.0 [INFO] [stderr] Downloaded proc-macro2 v0.4.23 [INFO] [stderr] Downloaded darling v0.8.0 [INFO] [stderr] Downloaded darling_core v0.8.0 [INFO] [stderr] Downloaded syn v0.15.20 [INFO] [stderr] Downloaded derive_builder_core v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf05fe72f77046cfa7ff8561d7731f8d666d404cf80bef5250ca449b81ce2b4b [INFO] running `Command { std: "docker" "start" "-a" "bf05fe72f77046cfa7ff8561d7731f8d666d404cf80bef5250ca449b81ce2b4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf05fe72f77046cfa7ff8561d7731f8d666d404cf80bef5250ca449b81ce2b4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf05fe72f77046cfa7ff8561d7731f8d666d404cf80bef5250ca449b81ce2b4b", kill_on_drop: false }` [INFO] [stdout] bf05fe72f77046cfa7ff8561d7731f8d666d404cf80bef5250ca449b81ce2b4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4bd19acd6afc0e15e68ad710fc9b551a7d990242592eccfb9927df207d0518fe [INFO] running `Command { std: "docker" "start" "-a" "4bd19acd6afc0e15e68ad710fc9b551a7d990242592eccfb9927df207d0518fe", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.23 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling ident_case v1.0.0 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Compiling derive_builder v0.7.0 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling syn v0.15.20 [INFO] [stderr] Checking serde_json v1.0.33 [INFO] [stderr] Compiling darling_core v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.80 [INFO] [stderr] Compiling darling_macro v0.8.0 [INFO] [stderr] Compiling darling v0.8.0 [INFO] [stderr] Compiling derive_builder_core v0.4.0 [INFO] [stderr] Checking msts_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::file_io` [INFO] [stdout] --> src/template_parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::file_io; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tasks` [INFO] [stdout] --> src/template_parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::tasks; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::file_io` [INFO] [stdout] --> src/template_parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::file_io; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/template_parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tasks` [INFO] [stdout] --> src/template_parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::tasks; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/template_parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | sub_tasks: Vec<&'a Task<'a>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | sub_tasks: Vec<&'a dyn Task<'a>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | sub_tasks: Vec<&'a Task<'a>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | sub_tasks: Vec<&'a dyn Task<'a>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | sub_tasks: Vec<&'a Task<'a>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 | sub_tasks: Vec<&'a dyn Task<'a>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | sub_tasks: Vec<&'a Task<'a>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 | sub_tasks: Vec<&'a dyn Task<'a>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:30:68 [INFO] [stdout] | [INFO] [stdout] 30 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:34:48 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a Task<'a>>) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 34 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a dyn Task<'a>>) {} [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:30:68 [INFO] [stdout] | [INFO] [stdout] 30 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:34:48 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a Task<'a>>) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 34 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a dyn Task<'a>>) {} [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:91:48 [INFO] [stdout] | [INFO] [stdout] 91 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a Task<'a>>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a dyn Task<'a>>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:105:68 [INFO] [stdout] | [INFO] [stdout] 105 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:91:48 [INFO] [stdout] | [INFO] [stdout] 91 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a Task<'a>>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a dyn Task<'a>>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:105:68 [INFO] [stdout] | [INFO] [stdout] 105 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:110:44 [INFO] [stdout] | [INFO] [stdout] 110 | fn task_factory(input_string: &String) -> &Task { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | fn task_factory(input_string: &String) -> &dyn Task { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:110:44 [INFO] [stdout] | [INFO] [stdout] 110 | fn task_factory(input_string: &String) -> &Task { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | fn task_factory(input_string: &String) -> &dyn Task { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/tasks.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | return Some(); [INFO] [stdout] | ^^^^-- argument #1 of type `Vec<&dyn Task<'_>>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/option.rs:579:5 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 106 | return Some(/* Vec<&dyn Task<'_>> */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/tasks.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | return Some(); [INFO] [stdout] | ^^^^-- argument #1 of type `Vec<&dyn Task<'_>>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/option.rs:579:5 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 106 | return Some(/* Vec<&dyn Task<'_>> */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | } as &Task; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 116 | } as &dyn Task; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | } as &Task; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 116 | } as &dyn Task; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | } as &Task; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | } as &dyn Task; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | } as &Task; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | } as &dyn Task; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:122:26 [INFO] [stdout] | [INFO] [stdout] 122 | return &EndTask {} as &Task; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 122 | return &EndTask {} as &dyn Task; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:122:26 [INFO] [stdout] | [INFO] [stdout] 122 | return &EndTask {} as &Task; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 122 | return &EndTask {} as &dyn Task; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tasks.rs:123:34 [INFO] [stdout] | [INFO] [stdout] 123 | } else if task_type == TASK_VAR { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 124 | | } else if task_type == TASK_VAR { [INFO] [stdout] | |_____^ expected `&dyn Task<'_>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&dyn Task<'_>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tasks.rs:124:34 [INFO] [stdout] | [INFO] [stdout] 124 | } else if task_type == TASK_VAR { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 125 | | } else if task_type == TASK_VAR { [INFO] [stdout] | |_____^ expected `&dyn Task<'_>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&dyn Task<'_>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tasks.rs:125:34 [INFO] [stdout] | [INFO] [stdout] 125 | } else if task_type == TASK_VAR { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 126 | | } else { [INFO] [stdout] | |_____^ expected `&dyn Task<'_>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&dyn Task<'_>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tasks.rs:123:34 [INFO] [stdout] | [INFO] [stdout] 123 | } else if task_type == TASK_VAR { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 124 | | } else if task_type == TASK_VAR { [INFO] [stdout] | |_____^ expected `&dyn Task<'_>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&dyn Task<'_>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | } as &Task; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 129 | } as &dyn Task; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tasks.rs:124:34 [INFO] [stdout] | [INFO] [stdout] 124 | } else if task_type == TASK_VAR { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 125 | | } else if task_type == TASK_VAR { [INFO] [stdout] | |_____^ expected `&dyn Task<'_>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&dyn Task<'_>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tasks.rs:125:34 [INFO] [stdout] | [INFO] [stdout] 125 | } else if task_type == TASK_VAR { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 126 | | } else { [INFO] [stdout] | |_____^ expected `&dyn Task<'_>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&dyn Task<'_>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tasks.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | } as &Task; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 129 | } as &dyn Task; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `run_vars` [INFO] [stdout] --> src/tasks.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | fn run_task(&self, run_vars: serde_json::Value) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_run_vars` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `run_vars` [INFO] [stdout] --> src/tasks.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_run_vars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_sub_tasks` [INFO] [stdout] --> src/tasks.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a Task<'a>>) {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_sub_tasks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `run_vars` [INFO] [stdout] --> src/tasks.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | fn run_task(&self, run_vars: serde_json::Value) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_run_vars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.escaped_string` which is behind a shared reference [INFO] [stdout] --> src/tasks.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | return self.escaped_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.escaped_string` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 51 | return self.escaped_string.clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `run_vars` [INFO] [stdout] --> src/tasks.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | fn run_task(&self, run_vars: serde_json::Value) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_run_vars` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `self.escaped_string`, which is behind a `&` reference [INFO] [stdout] --> src/tasks.rs:54:3 [INFO] [stdout] | [INFO] [stdout] 54 | self.escaped_string = self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 36 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String); [INFO] [stdout] 37 | } [INFO] [stdout] ... [INFO] [stdout] 52 | } [INFO] [stdout] 53 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `run_vars` [INFO] [stdout] --> src/tasks.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | fn expand_task(&self, run_vars: serde_json::Value) -> Option> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_run_vars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_sub_tasks` [INFO] [stdout] --> src/tasks.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_sub_tasks(&self, in_sub_tasks: Vec<&'a Task<'a>>) {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_sub_tasks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> src/tasks.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | fn replace_proxy_in_task(&self, proxy: String, replacement: String) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replacement` [INFO] [stdout] --> src/tasks.rs:65:49 [INFO] [stdout] | [INFO] [stdout] 65 | fn replace_proxy_in_task(&self, proxy: String, replacement: String) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replacement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `run_vars` [INFO] [stdout] --> src/tasks.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | fn run_task(&self, run_vars: serde_json::Value) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_run_vars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.accessor_string` which is behind a shared reference [INFO] [stdout] --> src/tasks.rs:76:41 [INFO] [stdout] | [INFO] [stdout] 76 | return get_value_from_accessor_string(self.accessor_string, run_vars).to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ move occurs because `self.accessor_string` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 76 | return get_value_from_accessor_string(self.accessor_string.clone(), run_vars).to_string(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `self.accessor_string`, which is behind a `&` reference [INFO] [stdout] --> src/tasks.rs:79:3 [INFO] [stdout] | [INFO] [stdout] 79 | self.accessor_string = self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 36 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String); [INFO] [stdout] 37 | } [INFO] [stdout] ... [INFO] [stdout] 77 | } [INFO] [stdout] 78 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.escaped_string` which is behind a shared reference [INFO] [stdout] --> src/tasks.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | return self.escaped_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.escaped_string` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 51 | return self.escaped_string.clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `self.sub_tasks`, which is behind a `&` reference [INFO] [stdout] --> src/tasks.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 92 | self.sub_tasks = in_sub_tasks; [INFO] [stdout] | ^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 34 ~ fn set_sub_tasks(&mut self, in_sub_tasks: Vec<&'a Task<'a>>) {} [INFO] [stdout] 35 | // .replace(format!("{}{}",TASK_PROXY_DELIM,proxy),replacement); [INFO] [stdout] ... [INFO] [stdout] 90 | impl<'a> Task<'a> for ForEachTask<'a> { [INFO] [stdout] 91 ~ fn set_sub_tasks(&mut self, in_sub_tasks: Vec<&'a Task<'a>>) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `self.escaped_string`, which is behind a `&` reference [INFO] [stdout] --> src/tasks.rs:54:3 [INFO] [stdout] | [INFO] [stdout] 54 | self.escaped_string = self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 36 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String); [INFO] [stdout] 37 | } [INFO] [stdout] ... [INFO] [stdout] 52 | } [INFO] [stdout] 53 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> src/tasks.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | fn replace_proxy_in_task(&self, proxy: String, replacement: String) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replacement` [INFO] [stdout] --> src/tasks.rs:65:49 [INFO] [stdout] | [INFO] [stdout] 65 | fn replace_proxy_in_task(&self, proxy: String, replacement: String) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replacement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `self.array_accessor_string`, which is behind a `&` reference [INFO] [stdout] --> src/tasks.rs:98:3 [INFO] [stdout] | [INFO] [stdout] 98 | self.array_accessor_string = self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 36 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String); [INFO] [stdout] 37 | } [INFO] [stdout] ... [INFO] [stdout] 96 | } [INFO] [stdout] 97 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.accessor_string` which is behind a shared reference [INFO] [stdout] --> src/tasks.rs:76:41 [INFO] [stdout] | [INFO] [stdout] 76 | return get_value_from_accessor_string(self.accessor_string, run_vars).to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ move occurs because `self.accessor_string` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 76 | return get_value_from_accessor_string(self.accessor_string.clone(), run_vars).to_string(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `proxy` [INFO] [stdout] --> src/tasks.rs:102:30 [INFO] [stdout] | [INFO] [stdout] 97 | fn replace_proxy_in_task(&self, proxy: String, replacement: String) { [INFO] [stdout] | ----- move occurs because `proxy` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 101 | for sub in &self.sub_tasks { [INFO] [stdout] | -------------------------- inside of this loop [INFO] [stdout] 102 | sub.replace_proxy_in_task(proxy, replacement); [INFO] [stdout] | ^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `replace_proxy_in_task` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/tasks.rs:36:41 [INFO] [stdout] | [INFO] [stdout] 36 | fn replace_proxy_in_task(&self, proxy: String, replacement: String); [INFO] [stdout] | --------------------- ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 101 ~ let mut value = sub.replace_proxy_in_task(proxy, replacement); [INFO] [stdout] 102 ~ for sub in &self.sub_tasks { [INFO] [stdout] 103 ~ value; [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 102 | sub.replace_proxy_in_task(proxy.clone(), replacement); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `self.accessor_string`, which is behind a `&` reference [INFO] [stdout] --> src/tasks.rs:79:3 [INFO] [stdout] | [INFO] [stdout] 79 | self.accessor_string = self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 36 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String); [INFO] [stdout] 37 | } [INFO] [stdout] ... [INFO] [stdout] 77 | } [INFO] [stdout] 78 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `replacement` [INFO] [stdout] --> src/tasks.rs:102:37 [INFO] [stdout] | [INFO] [stdout] 97 | fn replace_proxy_in_task(&self, proxy: String, replacement: String) { [INFO] [stdout] | ----------- move occurs because `replacement` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 101 | for sub in &self.sub_tasks { [INFO] [stdout] | -------------------------- inside of this loop [INFO] [stdout] 102 | sub.replace_proxy_in_task(proxy, replacement); [INFO] [stdout] | ^^^^^^^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `replace_proxy_in_task` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/tasks.rs:36:62 [INFO] [stdout] | [INFO] [stdout] 36 | fn replace_proxy_in_task(&self, proxy: String, replacement: String); [INFO] [stdout] | --------------------- in this function ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 101 ~ let mut value = sub.replace_proxy_in_task(proxy, replacement); [INFO] [stdout] 102 ~ for sub in &self.sub_tasks { [INFO] [stdout] 103 ~ value; [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 102 | sub.replace_proxy_in_task(proxy, replacement.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `self.sub_tasks`, which is behind a `&` reference [INFO] [stdout] --> src/tasks.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 92 | self.sub_tasks = in_sub_tasks; [INFO] [stdout] | ^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 34 ~ fn set_sub_tasks(&mut self, in_sub_tasks: Vec<&'a Task<'a>>) {} [INFO] [stdout] 35 | // .replace(format!("{}{}",TASK_PROXY_DELIM,proxy),replacement); [INFO] [stdout] ... [INFO] [stdout] 90 | impl<'a> Task<'a> for ForEachTask<'a> { [INFO] [stdout] 91 ~ fn set_sub_tasks(&mut self, in_sub_tasks: Vec<&'a Task<'a>>) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Value` [INFO] [stdout] --> src/tasks.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | output = output[index]; [INFO] [stdout] | ^^^^^^^^^^^^^ move occurs because value has type `Value`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 150 | output = output[index].clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Value` [INFO] [stdout] --> src/tasks.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | output = output[variable]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `Value`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 152 | output = output[variable].clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `self.array_accessor_string`, which is behind a `&` reference [INFO] [stdout] --> src/tasks.rs:98:3 [INFO] [stdout] | [INFO] [stdout] 98 | self.array_accessor_string = self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 36 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String); [INFO] [stdout] 37 | } [INFO] [stdout] ... [INFO] [stdout] 96 | } [INFO] [stdout] 97 ~ fn replace_proxy_in_task(&mut self, proxy: String, replacement: String) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `proxy` [INFO] [stdout] --> src/tasks.rs:102:30 [INFO] [stdout] | [INFO] [stdout] 97 | fn replace_proxy_in_task(&self, proxy: String, replacement: String) { [INFO] [stdout] | ----- move occurs because `proxy` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 101 | for sub in &self.sub_tasks { [INFO] [stdout] | -------------------------- inside of this loop [INFO] [stdout] 102 | sub.replace_proxy_in_task(proxy, replacement); [INFO] [stdout] | ^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `replace_proxy_in_task` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/tasks.rs:36:41 [INFO] [stdout] | [INFO] [stdout] 36 | fn replace_proxy_in_task(&self, proxy: String, replacement: String); [INFO] [stdout] | --------------------- ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 101 ~ let mut value = sub.replace_proxy_in_task(proxy, replacement); [INFO] [stdout] 102 ~ for sub in &self.sub_tasks { [INFO] [stdout] 103 ~ value; [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 102 | sub.replace_proxy_in_task(proxy.clone(), replacement); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `replacement` [INFO] [stdout] --> src/tasks.rs:102:37 [INFO] [stdout] | [INFO] [stdout] 97 | fn replace_proxy_in_task(&self, proxy: String, replacement: String) { [INFO] [stdout] | ----------- move occurs because `replacement` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 101 | for sub in &self.sub_tasks { [INFO] [stdout] | -------------------------- inside of this loop [INFO] [stdout] 102 | sub.replace_proxy_in_task(proxy, replacement); [INFO] [stdout] | ^^^^^^^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `replace_proxy_in_task` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/tasks.rs:36:62 [INFO] [stdout] | [INFO] [stdout] 36 | fn replace_proxy_in_task(&self, proxy: String, replacement: String); [INFO] [stdout] | --------------------- in this function ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 101 ~ let mut value = sub.replace_proxy_in_task(proxy, replacement); [INFO] [stdout] 102 ~ for sub in &self.sub_tasks { [INFO] [stdout] 103 ~ value; [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 102 | sub.replace_proxy_in_task(proxy, replacement.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Value` [INFO] [stdout] --> src/tasks.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | output = output[index]; [INFO] [stdout] | ^^^^^^^^^^^^^ move occurs because value has type `Value`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 150 | output = output[index].clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Value` [INFO] [stdout] --> src/tasks.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | output = output[variable]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `Value`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 152 | output = output[variable].clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/template_parser.rs:195:6 [INFO] [stdout] | [INFO] [stdout] 195 | let mut template_string_edit_3: Vec<&str> = [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/template_parser.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 206 | template_string_edit_4.push(&format!("{}{}{}", TASK_ESCAPE, TASK_INTERNAL_DELIM, input)); [INFO] [stdout] | ---------------------------------------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 209 | return template_string_edit_4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/template_parser.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 201 | &input [INFO] [stdout] | __________________- [INFO] [stdout] 202 | | .replace(TASK_OPEN_DELIM, &"") [INFO] [stdout] 203 | | .replace(TASK_CLOSE_DELIM, &""), [INFO] [stdout] | |___________________________________________________- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 209 | return template_string_edit_4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tmpl_path` is assigned to, but never used [INFO] [stdout] --> src/main.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | let tmpl_path: &str; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_tmpl_path` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tmpl_path` is never read [INFO] [stdout] --> src/main.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | tmpl_path = t; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/template_parser.rs:195:6 [INFO] [stdout] | [INFO] [stdout] 195 | let mut template_string_edit_3: Vec<&str> = [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/template_parser.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 206 | template_string_edit_4.push(&format!("{}{}{}", TASK_ESCAPE, TASK_INTERNAL_DELIM, input)); [INFO] [stdout] | ---------------------------------------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 209 | return template_string_edit_4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/template_parser.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 201 | &input [INFO] [stdout] | __________________- [INFO] [stdout] 202 | | .replace(TASK_OPEN_DELIM, &"") [INFO] [stdout] 203 | | .replace(TASK_CLOSE_DELIM, &""), [INFO] [stdout] | |___________________________________________________- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 209 | return template_string_edit_4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tmpl_path` is assigned to, but never used [INFO] [stdout] --> src/main.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | let tmpl_path: &str; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_tmpl_path` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tmpl_path` is never read [INFO] [stdout] --> src/main.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | tmpl_path = t; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0382, E0507, E0515, E0594. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0382, E0507, E0515, E0594. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `msts_rs` (bin "msts_rs" test) due to 17 previous errors; 23 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `msts_rs` (bin "msts_rs") due to 17 previous errors; 23 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4bd19acd6afc0e15e68ad710fc9b551a7d990242592eccfb9927df207d0518fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bd19acd6afc0e15e68ad710fc9b551a7d990242592eccfb9927df207d0518fe", kill_on_drop: false }` [INFO] [stdout] 4bd19acd6afc0e15e68ad710fc9b551a7d990242592eccfb9927df207d0518fe