[INFO] cloning repository https://github.com/ckolek/FIXEngine-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ckolek/FIXEngine-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fckolek%2FFIXEngine-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fckolek%2FFIXEngine-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9dd83c9a96e832824db68e5182369d4db3b52c47 [INFO] checking ckolek/FIXEngine-rs/9dd83c9a96e832824db68e5182369d4db3b52c47 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fckolek%2FFIXEngine-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/ckolek/FIXEngine-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/ckolek/FIXEngine-rs [INFO] finished tweaking git repo https://github.com/ckolek/FIXEngine-rs [INFO] tweaked toml for git repo https://github.com/ckolek/FIXEngine-rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ckolek/FIXEngine-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] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c6eda45c8eb08a453a9bd4d3f761ae8f847e33f5d70b4f5c5c98444da646aee [INFO] running `Command { std: "docker" "start" "-a" "4c6eda45c8eb08a453a9bd4d3f761ae8f847e33f5d70b4f5c5c98444da646aee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c6eda45c8eb08a453a9bd4d3f761ae8f847e33f5d70b4f5c5c98444da646aee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c6eda45c8eb08a453a9bd4d3f761ae8f847e33f5d70b4f5c5c98444da646aee", kill_on_drop: false }` [INFO] [stdout] 4c6eda45c8eb08a453a9bd4d3f761ae8f847e33f5d70b4f5c5c98444da646aee [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c27e04c9774c52e7f6326938e8201176473672fae76a8eec71c8c08b4f0c47b [INFO] running `Command { std: "docker" "start" "-a" "1c27e04c9774c52e7f6326938e8201176473672fae76a8eec71c8c08b4f0c47b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking fix v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/engine/mod.rs:7:66 [INFO] [stdout] | [INFO] [stdout] 7 | fn on_receive(&mut self, session_id : &SessionId, message : &FIXMessage); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 7 | fn on_receive(&mut self, session_id : &SessionId, message : &dyn FIXMessage); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/engine/mod.rs:8:63 [INFO] [stdout] | [INFO] [stdout] 8 | fn on_send(&mut self, session_id : &SessionId, message : &FIXMessage); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 8 | fn on_send(&mut self, session_id : &SessionId, message : &dyn FIXMessage); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/engine/mod.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | message_listeners : Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 12 | message_listeners : Vec> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/messages/mod.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | field_values : Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 9 | field_values : Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/messages/mod.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | field_values : Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 45 | field_values : Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/fields/mod.rs:30:62 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_tag_value(&self, tag_num : u32) -> Result, ()>; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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 get_tag_value(&self, tag_num : u32) -> Result, ()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/fields/mod.rs:31:80 [INFO] [stdout] | [INFO] [stdout] 31 | fn get_tag_value_at(&self, tag_num : u32, index : usize) -> Result, ()>; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 31 | fn get_tag_value_at(&self, tag_num : u32, index : usize) -> Result, ()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `FIXMessage` cannot be made into an object [INFO] [stdout] --> src/engine/mod.rs:7:66 [INFO] [stdout] | [INFO] [stdout] 7 | fn on_receive(&mut self, session_id : &SessionId, message : &FIXMessage); [INFO] [stdout] | ^^^^^^^^^^ `FIXMessage` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/fields/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn get_value>(&self, field : &F) -> Result, ()>; [INFO] [stdout] | ^^^^^^^^^ ...because method `get_value` has generic type parameters [INFO] [stdout] 28 | fn get_value_at>(&self, field : &F, index : usize) -> Result, ()>; [INFO] [stdout] | ^^^^^^^^^^^^ ...because method `get_value_at` has generic type parameters [INFO] [stdout] | [INFO] [stdout] ::: src/messages/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait FIXMessage : FIXMessageFields {} [INFO] [stdout] | ---------- this trait cannot be made into an object... [INFO] [stdout] = help: consider moving `get_value` to another trait [INFO] [stdout] = help: consider moving `get_value_at` to another trait [INFO] [stdout] = help: only type `messages::RawFIXMessage` is seen to implement the trait in this crate, consider using it directly instead [INFO] [stdout] = note: `FIXMessage` can be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `FIXMessage` cannot be made into an object [INFO] [stdout] --> src/engine/mod.rs:8:63 [INFO] [stdout] | [INFO] [stdout] 8 | fn on_send(&mut self, session_id : &SessionId, message : &FIXMessage); [INFO] [stdout] | ^^^^^^^^^^ `FIXMessage` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/fields/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn get_value>(&self, field : &F) -> Result, ()>; [INFO] [stdout] | ^^^^^^^^^ ...because method `get_value` has generic type parameters [INFO] [stdout] 28 | fn get_value_at>(&self, field : &F, index : usize) -> Result, ()>; [INFO] [stdout] | ^^^^^^^^^^^^ ...because method `get_value_at` has generic type parameters [INFO] [stdout] | [INFO] [stdout] ::: src/messages/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait FIXMessage : FIXMessageFields {} [INFO] [stdout] | ---------- this trait cannot be made into an object... [INFO] [stdout] = help: consider moving `get_value` to another trait [INFO] [stdout] = help: consider moving `get_value_at` to another trait [INFO] [stdout] = help: only type `messages::RawFIXMessage` is seen to implement the trait in this crate, consider using it directly instead [INFO] [stdout] = note: `FIXMessage` can be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/messages/mod.rs:31:62 [INFO] [stdout] | [INFO] [stdout] 31 | fn get_tag_value(&self, tag_num : u32) -> Result, ()> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 31 | fn get_tag_value(&self, tag_num : u32) -> Result, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/messages/mod.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_tag_value_at(&self, tag_num : u32, index : usize) -> Result, ()> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 35 | fn get_tag_value_at(&self, tag_num : u32, index : usize) -> Result, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: you might be missing crate `fix` [INFO] [stdout] --> src/messages/mod.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | use fix::fields::{FIXMessageField, StringField}; [INFO] [stdout] | ^^^ you might be missing crate `fix` [INFO] [stdout] | [INFO] [stdout] help: consider importing the `fix` crate [INFO] [stdout] --> src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 + extern crate fix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/engine/mod.rs:7:66 [INFO] [stdout] | [INFO] [stdout] 7 | fn on_receive(&mut self, session_id : &SessionId, message : &FIXMessage); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 7 | fn on_receive(&mut self, session_id : &SessionId, message : &dyn FIXMessage); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/engine/mod.rs:8:63 [INFO] [stdout] | [INFO] [stdout] 8 | fn on_send(&mut self, session_id : &SessionId, message : &FIXMessage); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 8 | fn on_send(&mut self, session_id : &SessionId, message : &dyn FIXMessage); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/engine/mod.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | message_listeners : Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 12 | message_listeners : Vec> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/messages/mod.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | field_values : Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 9 | field_values : Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/messages/mod.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | field_values : Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 45 | field_values : Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/fields/mod.rs:30:62 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_tag_value(&self, tag_num : u32) -> Result, ()>; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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 get_tag_value(&self, tag_num : u32) -> Result, ()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/fields/mod.rs:31:80 [INFO] [stdout] | [INFO] [stdout] 31 | fn get_tag_value_at(&self, tag_num : u32, index : usize) -> Result, ()>; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 31 | fn get_tag_value_at(&self, tag_num : u32, index : usize) -> Result, ()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `FIXMessage` cannot be made into an object [INFO] [stdout] --> src/engine/mod.rs:7:66 [INFO] [stdout] | [INFO] [stdout] 7 | fn on_receive(&mut self, session_id : &SessionId, message : &FIXMessage); [INFO] [stdout] | ^^^^^^^^^^ `FIXMessage` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/fields/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn get_value>(&self, field : &F) -> Result, ()>; [INFO] [stdout] | ^^^^^^^^^ ...because method `get_value` has generic type parameters [INFO] [stdout] 28 | fn get_value_at>(&self, field : &F, index : usize) -> Result, ()>; [INFO] [stdout] | ^^^^^^^^^^^^ ...because method `get_value_at` has generic type parameters [INFO] [stdout] | [INFO] [stdout] ::: src/messages/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait FIXMessage : FIXMessageFields {} [INFO] [stdout] | ---------- this trait cannot be made into an object... [INFO] [stdout] = help: consider moving `get_value` to another trait [INFO] [stdout] = help: consider moving `get_value_at` to another trait [INFO] [stdout] = help: only type `messages::RawFIXMessage` is seen to implement the trait in this crate, consider using it directly instead [INFO] [stdout] = note: `FIXMessage` can be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `FIXMessage` cannot be made into an object [INFO] [stdout] --> src/engine/mod.rs:8:63 [INFO] [stdout] | [INFO] [stdout] 8 | fn on_send(&mut self, session_id : &SessionId, message : &FIXMessage); [INFO] [stdout] | ^^^^^^^^^^ `FIXMessage` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/fields/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn get_value>(&self, field : &F) -> Result, ()>; [INFO] [stdout] | ^^^^^^^^^ ...because method `get_value` has generic type parameters [INFO] [stdout] 28 | fn get_value_at>(&self, field : &F, index : usize) -> Result, ()>; [INFO] [stdout] | ^^^^^^^^^^^^ ...because method `get_value_at` has generic type parameters [INFO] [stdout] | [INFO] [stdout] ::: src/messages/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait FIXMessage : FIXMessageFields {} [INFO] [stdout] | ---------- this trait cannot be made into an object... [INFO] [stdout] = help: consider moving `get_value` to another trait [INFO] [stdout] = help: consider moving `get_value_at` to another trait [INFO] [stdout] = help: only type `messages::RawFIXMessage` is seen to implement the trait in this crate, consider using it directly instead [INFO] [stdout] = note: `FIXMessage` can be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/messages/mod.rs:31:62 [INFO] [stdout] | [INFO] [stdout] 31 | fn get_tag_value(&self, tag_num : u32) -> Result, ()> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 31 | fn get_tag_value(&self, tag_num : u32) -> Result, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/messages/mod.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_tag_value_at(&self, tag_num : u32, index : usize) -> Result, ()> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 35 | fn get_tag_value_at(&self, tag_num : u32, index : usize) -> Result, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw` [INFO] [stdout] --> src/fields/mod.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | fn get_value(&self, raw : Vec) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_raw` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `fix` (lib test) due to 4 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/messages/mod.rs:54:55 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn add_value>(mut self, field : &F, value : T) -> Self { [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/messages/mod.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut field_indices = self.field_indices.entry(tag_num).or_insert(Vec::new()); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fix` (lib) due to 3 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1c27e04c9774c52e7f6326938e8201176473672fae76a8eec71c8c08b4f0c47b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c27e04c9774c52e7f6326938e8201176473672fae76a8eec71c8c08b4f0c47b", kill_on_drop: false }` [INFO] [stdout] 1c27e04c9774c52e7f6326938e8201176473672fae76a8eec71c8c08b4f0c47b