[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 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuke-Draper%2FMSTS-RS" "/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/Luke-Draper/MSTS-RS on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-4-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive_builder_core v0.4.0 [INFO] [stderr] Downloaded proc-macro2 v0.4.23 [INFO] [stderr] Downloaded darling_macro v0.8.0 [INFO] [stderr] Downloaded darling v0.8.0 [INFO] [stderr] Downloaded derive_builder v0.7.0 [INFO] [stderr] Downloaded darling_core v0.8.0 [INFO] [stderr] Downloaded syn v0.15.20 [INFO] [stderr] Downloaded serde_json v1.0.33 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4812ae5fec49878a43dd42c0e0dd807de5e3671cf7356f0e8d77b2d5e02e9331 [INFO] running `Command { std: "docker" "start" "-a" "4812ae5fec49878a43dd42c0e0dd807de5e3671cf7356f0e8d77b2d5e02e9331", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4812ae5fec49878a43dd42c0e0dd807de5e3671cf7356f0e8d77b2d5e02e9331", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4812ae5fec49878a43dd42c0e0dd807de5e3671cf7356f0e8d77b2d5e02e9331", kill_on_drop: false }` [INFO] [stdout] 4812ae5fec49878a43dd42c0e0dd807de5e3671cf7356f0e8d77b2d5e02e9331 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 726f69d1e7789be7d3d3a6be945495d00001f724cf97dbc3bde3d63a80818b10 [INFO] running `Command { std: "docker" "start" "-a" "726f69d1e7789be7d3d3a6be945495d00001f724cf97dbc3bde3d63a80818b10", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.23 [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 itoa v0.4.3 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking bitflags v1.0.4 [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: `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::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: the item `Vec` is imported redundantly [INFO] [stdout] --> src/template_parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [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: the item `Vec` is imported redundantly [INFO] [stdout] --> src/template_parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [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: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: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: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: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] | ^^^^-- an argument of type `Vec<&dyn Task<'_>>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/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] | ^^^^-- an argument of type `Vec<&dyn Task<'_>>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/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: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: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: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: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] 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] 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: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] 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] 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[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] [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[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 [INFO] [stdout] | [INFO] [stdout] 36 | 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] [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[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] [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 [INFO] [stdout] | [INFO] [stdout] 36 | 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.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 [INFO] [stdout] | [INFO] [stdout] 36 | fn replace_proxy_in_task(&mut self, proxy: String, replacement: String); [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 [INFO] [stdout] | [INFO] [stdout] 34 | 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 `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] [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 [INFO] [stdout] | [INFO] [stdout] 36 | fn replace_proxy_in_task(&mut self, proxy: String, replacement: String); [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 [INFO] [stdout] | [INFO] [stdout] 34 | 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.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 [INFO] [stdout] | [INFO] [stdout] 36 | 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[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 [INFO] [stdout] | [INFO] [stdout] 36 | 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[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] [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] [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] [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] [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; 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0382, E0507, E0515, E0594. [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] 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; 24 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; 24 warnings emitted [INFO] running `Command { std: "docker" "inspect" "726f69d1e7789be7d3d3a6be945495d00001f724cf97dbc3bde3d63a80818b10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "726f69d1e7789be7d3d3a6be945495d00001f724cf97dbc3bde3d63a80818b10", kill_on_drop: false }` [INFO] [stdout] 726f69d1e7789be7d3d3a6be945495d00001f724cf97dbc3bde3d63a80818b10 [INFO] checking Luke-Draper/MSTS-RS against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuke-Draper%2FMSTS-RS" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Luke-Draper/MSTS-RS on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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-4-tc2/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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 145dca1cdf11906f9f09979e9d6a98654109ad71d8ea8012bfba42db320a936a [INFO] running `Command { std: "docker" "start" "-a" "145dca1cdf11906f9f09979e9d6a98654109ad71d8ea8012bfba42db320a936a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "145dca1cdf11906f9f09979e9d6a98654109ad71d8ea8012bfba42db320a936a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "145dca1cdf11906f9f09979e9d6a98654109ad71d8ea8012bfba42db320a936a", kill_on_drop: false }` [INFO] [stdout] 145dca1cdf11906f9f09979e9d6a98654109ad71d8ea8012bfba42db320a936a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec84dc55a91bd446d00944e1adc81099a793e4d5246073bb15975f0d5fcc7e0a [INFO] running `Command { std: "docker" "start" "-a" "ec84dc55a91bd446d00944e1adc81099a793e4d5246073bb15975f0d5fcc7e0a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "ec84dc55a91bd446d00944e1adc81099a793e4d5246073bb15975f0d5fcc7e0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec84dc55a91bd446d00944e1adc81099a793e4d5246073bb15975f0d5fcc7e0a", kill_on_drop: false }` [INFO] [stdout] ec84dc55a91bd446d00944e1adc81099a793e4d5246073bb15975f0d5fcc7e0a