[INFO] fetching crate telegram-bot2-macros 0.1.3... [INFO] testing telegram-bot2-macros-0.1.3 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate telegram-bot2-macros 0.1.3 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate telegram-bot2-macros 0.1.3 [INFO] finished tweaking crates.io crate telegram-bot2-macros 0.1.3 [INFO] tweaked toml for crates.io crate telegram-bot2-macros 0.1.3 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate telegram-bot2-macros 0.1.3 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 13 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [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] 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0940f90a1b02bd90f6feccdfe9462f58a05be0832663c129014054f20349393e [INFO] running `Command { std: "docker" "start" "-a" "0940f90a1b02bd90f6feccdfe9462f58a05be0832663c129014054f20349393e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0940f90a1b02bd90f6feccdfe9462f58a05be0832663c129014054f20349393e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0940f90a1b02bd90f6feccdfe9462f58a05be0832663c129014054f20349393e", kill_on_drop: false }` [INFO] [stdout] 0940f90a1b02bd90f6feccdfe9462f58a05be0832663c129014054f20349393e [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f5af0e30369d8feb9526ef241b4d4259cf08be9543a98877d05dc0268870642 [INFO] running `Command { std: "docker" "start" "-a" "1f5af0e30369d8feb9526ef241b4d4259cf08be9543a98877d05dc0268870642", kill_on_drop: false }` [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling telegram-bot2-macros v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.71s [INFO] running `Command { std: "docker" "inspect" "1f5af0e30369d8feb9526ef241b4d4259cf08be9543a98877d05dc0268870642", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f5af0e30369d8feb9526ef241b4d4259cf08be9543a98877d05dc0268870642", kill_on_drop: false }` [INFO] [stdout] 1f5af0e30369d8feb9526ef241b4d4259cf08be9543a98877d05dc0268870642 [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ce5557251f7300f2d0b67ca863bd9777194c6fe7532ce825211caddfd61d4b7 [INFO] running `Command { std: "docker" "start" "-a" "1ce5557251f7300f2d0b67ca863bd9777194c6fe7532ce825211caddfd61d4b7", kill_on_drop: false }` [INFO] [stderr] Compiling telegram-bot2-macros v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.13s [INFO] running `Command { std: "docker" "inspect" "1ce5557251f7300f2d0b67ca863bd9777194c6fe7532ce825211caddfd61d4b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ce5557251f7300f2d0b67ca863bd9777194c6fe7532ce825211caddfd61d4b7", kill_on_drop: false }` [INFO] [stdout] 1ce5557251f7300f2d0b67ca863bd9777194c6fe7532ce825211caddfd61d4b7 [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7ffedf83b7f1061cdffec4d5ceada8bccc53c41caf57b9d141760989c6744b4f [INFO] running `Command { std: "docker" "start" "-a" "7ffedf83b7f1061cdffec4d5ceada8bccc53c41caf57b9d141760989c6744b4f", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/telegram_bot2_macros-4174bfe2d0ef1062) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests telegram_bot2_macros [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - command (line 68) ... FAILED [INFO] [stdout] test src/lib.rs - command (line 78) ... FAILED [INFO] [stdout] test src/lib.rs - bot (line 35) ... FAILED [INFO] [stdout] test src/lib.rs - daemon (line 130) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - command (line 68) stdout ---- [INFO] [stdout] error: cannot find attribute `bot_command` in this scope [INFO] [stdout] --> src/lib.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[bot_command("/soup ")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bot` in this scope [INFO] [stdout] --> src/lib.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 4 | async fn soup(bot: &Bot, chat: ChatId, id: i64) -> Result<(), ()> { [INFO] [stdout] | ^^^ help: a struct with a similar name exists: `Box` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/boxed.rs:231:1 [INFO] [stdout] ::: /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/boxed.rs:234:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Box` defined here [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ChatId` in this scope [INFO] [stdout] --> src/lib.rs:70:32 [INFO] [stdout] | [INFO] [stdout] 4 | async fn soup(bot: &Bot, chat: ChatId, id: i64) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SendMessageBuilder` [INFO] [stdout] --> src/lib.rs:71:22 [INFO] [stdout] | [INFO] [stdout] 5 | bot.send_message(SendMessageBuilder::new(chat, format!("Soup {} requested", id)).build()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `SendMessageBuilder` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - command (line 78) stdout ---- [INFO] [stdout] error: cannot find attribute `bot_command` in this scope [INFO] [stdout] --> src/lib.rs:79:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[bot_command("/soup ")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bot` in this scope [INFO] [stdout] --> src/lib.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 4 | async fn soup(bot: &Bot, chat: ChatId, id: Option, name: Option) -> Result<(), ()> { [INFO] [stdout] | ^^^ help: a struct with a similar name exists: `Box` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/boxed.rs:231:1 [INFO] [stdout] ::: /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/boxed.rs:234:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Box` defined here [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ChatId` in this scope [INFO] [stdout] --> src/lib.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 4 | async fn soup(bot: &Bot, chat: ChatId, id: Option, name: Option) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SendMessageBuilder` [INFO] [stdout] --> src/lib.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 5 | bot.send_message(SendMessageBuilder::new(chat, format!("Soup {}@{} requested", name.unwrap_or("None".to_string()), id.unwrap_or(0))).... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `SendMessageBuilder` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - bot (line 35) stdout ---- [INFO] [stdout] error: cannot find attribute `bot` in this scope [INFO] [stdout] --> src/lib.rs:36:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[bot] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `bot` is in scope, but it is a function, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use telegram_bot2_macros::bot; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `handlers` in this scope [INFO] [stdout] --> src/lib.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 8 | .handler(handlers![handler]) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use telegram_bot2_macros::handlers; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `commands` in this scope [INFO] [stdout] --> src/lib.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 9 | .commands(commands![soup]) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use telegram_bot2_macros::commands; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 6 | .interval(Duration::from_secs(0)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0121]: the placeholder `_` is not allowed within types on item signatures for opaque types [INFO] [stdout] --> src/lib.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 4 | async fn bot() -> _ { [INFO] [stdout] | ^ not allowed in type signatures [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BotBuilder` [INFO] [stdout] --> src/lib.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 5 | BotBuilder::new() [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `BotBuilder` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0121, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0121`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - daemon (line 130) stdout ---- [INFO] [stdout] error: cannot find attribute `daemon` in this scope [INFO] [stdout] --> src/lib.rs:131:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[daemon(interval = 5)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use telegram_bot2_macros::daemon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BotState` in this scope [INFO] [stdout] --> src/lib.rs:132:24 [INFO] [stdout] | [INFO] [stdout] 4 | async fn hello(state: &BotState>) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Mutex` in this scope [INFO] [stdout] --> src/lib.rs:132:33 [INFO] [stdout] | [INFO] [stdout] 4 | async fn hello(state: &BotState>) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::nonpoison::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - bot (line 35) [INFO] [stdout] src/lib.rs - command (line 68) [INFO] [stdout] src/lib.rs - command (line 78) [INFO] [stdout] src/lib.rs - daemon (line 130) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.44s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "7ffedf83b7f1061cdffec4d5ceada8bccc53c41caf57b9d141760989c6744b4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ffedf83b7f1061cdffec4d5ceada8bccc53c41caf57b9d141760989c6744b4f", kill_on_drop: false }` [INFO] [stdout] 7ffedf83b7f1061cdffec4d5ceada8bccc53c41caf57b9d141760989c6744b4f