[INFO] fetching crate chat_messages 0.1.0... [INFO] testing chat_messages-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate chat_messages 0.1.0 into /workspace/builds/worker-3-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-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate chat_messages 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdc9874d2ca89f2464ea48376f0e12f8da38ec304ef92acd1e16005f12aabf51 [INFO] running `Command { std: "docker" "start" "-a" "fdc9874d2ca89f2464ea48376f0e12f8da38ec304ef92acd1e16005f12aabf51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdc9874d2ca89f2464ea48376f0e12f8da38ec304ef92acd1e16005f12aabf51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdc9874d2ca89f2464ea48376f0e12f8da38ec304ef92acd1e16005f12aabf51", kill_on_drop: false }` [INFO] [stdout] fdc9874d2ca89f2464ea48376f0e12f8da38ec304ef92acd1e16005f12aabf51 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07d6ab04703eb98c4c4a2d7db8783be2d2d3bb4245d89eb3f6abf2dce343255a [INFO] running `Command { std: "docker" "start" "-a" "07d6ab04703eb98c4c4a2d7db8783be2d2d3bb4245d89eb3f6abf2dce343255a", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling derive_base_message v0.1.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.143 [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" "07d6ab04703eb98c4c4a2d7db8783be2d2d3bb4245d89eb3f6abf2dce343255a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07d6ab04703eb98c4c4a2d7db8783be2d2d3bb4245d89eb3f6abf2dce343255a", kill_on_drop: false }` [INFO] [stdout] 07d6ab04703eb98c4c4a2d7db8783be2d2d3bb4245d89eb3f6abf2dce343255a