[INFO] fetching crate chat_messages 0.1.0... [INFO] testing chat_messages-0.1.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate chat_messages 0.1.0 into /workspace/builds/worker-4-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-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate chat_messages 0.1.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 13 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d2fef152043aa1049c67136f922b90f16661b0f6be8bb52c75a1bbeae64b09c [INFO] running `Command { std: "docker" "start" "-a" "2d2fef152043aa1049c67136f922b90f16661b0f6be8bb52c75a1bbeae64b09c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d2fef152043aa1049c67136f922b90f16661b0f6be8bb52c75a1bbeae64b09c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d2fef152043aa1049c67136f922b90f16661b0f6be8bb52c75a1bbeae64b09c", kill_on_drop: false }` [INFO] [stdout] 2d2fef152043aa1049c67136f922b90f16661b0f6be8bb52c75a1bbeae64b09c [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f62dbd99e76f66616f7d33b575f1e974d1447eeac5c6e30504d57da6ca034ccd [INFO] running `Command { std: "docker" "start" "-a" "f62dbd99e76f66616f7d33b575f1e974d1447eeac5c6e30504d57da6ca034ccd", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling derive_base_message v0.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling 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] [stderr] error: could not compile `chat_messages` (lib) due to 18 previous errors [INFO] running `Command { std: "docker" "inspect" "f62dbd99e76f66616f7d33b575f1e974d1447eeac5c6e30504d57da6ca034ccd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f62dbd99e76f66616f7d33b575f1e974d1447eeac5c6e30504d57da6ca034ccd", kill_on_drop: false }` [INFO] [stdout] f62dbd99e76f66616f7d33b575f1e974d1447eeac5c6e30504d57da6ca034ccd