[INFO] fetching crate chat_messages 0.1.0... [INFO] checking chat_messages-0.1.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate chat_messages 0.1.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate chat_messages 0.1.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate chat_messages 0.1.0 [INFO] tweaked toml for crates.io crate chat_messages 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate chat_messages 0.1.0 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 12 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive_base_message v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] db8e998198dc23fcb9b55704fdb8b232e903fb571287ebb70d4d172a28248635 [INFO] running `Command { std: "docker" "start" "-a" "db8e998198dc23fcb9b55704fdb8b232e903fb571287ebb70d4d172a28248635", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "db8e998198dc23fcb9b55704fdb8b232e903fb571287ebb70d4d172a28248635", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db8e998198dc23fcb9b55704fdb8b232e903fb571287ebb70d4d172a28248635", kill_on_drop: false }` [INFO] [stdout] db8e998198dc23fcb9b55704fdb8b232e903fb571287ebb70d4d172a28248635 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5187c9e8a3e87cd6281f51b7fdcb7ed404081ced9da5ff26ea38c3af88e99de5 [INFO] running `Command { std: "docker" "start" "-a" "5187c9e8a3e87cd6281f51b7fdcb7ed404081ced9da5ff26ea38c3af88e99de5", kill_on_drop: false }` [INFO] [stderr] Compiling derive_base_message v0.1.1 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking serde_json v1.0.143 [INFO] [stderr] Checking chat_messages v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0407]: method `is_example` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `additional_kwargs` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `response_metadata` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `id` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `name` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `role` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `is_example` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `additional_kwargs` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `response_metadata` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `id` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `name` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `role` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `message_type` has an incompatible type for trait [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ expected `base_message::MessageType`, found `&base_message::MessageType` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/base_message.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | fn message_type(&self) -> MessageType; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&ChatMessage) -> base_message::MessageType` [INFO] [stdout] found signature `fn(&ChatMessage) -> &base_message::MessageType` [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `message_type` has an incompatible type for trait [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ expected `base_message::MessageType`, found `&base_message::MessageType` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/base_message.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | fn message_type(&self) -> MessageType; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&ToolMessage) -> base_message::MessageType` [INFO] [stdout] found signature `fn(&ToolMessage) -> &base_message::MessageType` [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `base_message::BaseMessageFields` has no field named `message_type` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ `base_message::BaseMessageFields` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `message_type` on type `base_message::BaseMessageFields` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `base_message::BaseMessageFields` has no field named `message_type` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ `base_message::BaseMessageFields` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `message_type` on type `base_message::BaseMessageFields` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0407, E0560, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stdout] error[E0407]: method `is_example` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `additional_kwargs` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `response_metadata` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `id` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chat_messages` (lib test) due to 18 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0407]: method `name` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `role` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `is_example` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `additional_kwargs` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `response_metadata` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `id` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `name` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `role` is not a member of trait `BaseMessage` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ not a member of trait `BaseMessage` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `message_type` has an incompatible type for trait [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ expected `base_message::MessageType`, found `&base_message::MessageType` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/base_message.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | fn message_type(&self) -> MessageType; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&ChatMessage) -> base_message::MessageType` [INFO] [stdout] found signature `fn(&ChatMessage) -> &base_message::MessageType` [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `message_type` has an incompatible type for trait [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ expected `base_message::MessageType`, found `&base_message::MessageType` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/base_message.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | fn message_type(&self) -> MessageType; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&ToolMessage) -> base_message::MessageType` [INFO] [stdout] found signature `fn(&ToolMessage) -> &base_message::MessageType` [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `base_message::BaseMessageFields` has no field named `message_type` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ `base_message::BaseMessageFields` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `message_type` on type `base_message::BaseMessageFields` [INFO] [stdout] --> src/chat_message.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `base_message::BaseMessageFields` has no field named `message_type` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ `base_message::BaseMessageFields` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `message_type` on type `base_message::BaseMessageFields` [INFO] [stdout] --> src/tool_message.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(BaseMessage)] [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BaseMessage` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0407, E0560, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chat_messages` (lib) due to 18 previous errors [INFO] running `Command { std: "docker" "inspect" "5187c9e8a3e87cd6281f51b7fdcb7ed404081ced9da5ff26ea38c3af88e99de5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5187c9e8a3e87cd6281f51b7fdcb7ed404081ced9da5ff26ea38c3af88e99de5", kill_on_drop: false }` [INFO] [stdout] 5187c9e8a3e87cd6281f51b7fdcb7ed404081ced9da5ff26ea38c3af88e99de5