[INFO] fetching crate stage 0.2.0... [INFO] testing stage-0.2.0 against master#b70888601af92f6cdc0364abab3446e418b91d36 for pr-86479 [INFO] extracting crate stage 0.2.0 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate stage 0.2.0 on toolchain b70888601af92f6cdc0364abab3446e418b91d36 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate stage 0.2.0 [INFO] finished tweaking crates.io crate stage 0.2.0 [INFO] tweaked toml for crates.io crate stage 0.2.0 written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate crates.io crate stage 0.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f42deab5b3597d608ed60c9185465e9d8446414f5b3328f2bdfd5028b54c92e9 [INFO] running `Command { std: "docker" "start" "-a" "f42deab5b3597d608ed60c9185465e9d8446414f5b3328f2bdfd5028b54c92e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f42deab5b3597d608ed60c9185465e9d8446414f5b3328f2bdfd5028b54c92e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f42deab5b3597d608ed60c9185465e9d8446414f5b3328f2bdfd5028b54c92e9", kill_on_drop: false }` [INFO] [stdout] f42deab5b3597d608ed60c9185465e9d8446414f5b3328f2bdfd5028b54c92e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 616ec6018d33476037ddbf05f3d72452209b928154c0feb8c7293509b076ecda [INFO] running `Command { std: "docker" "start" "-a" "616ec6018d33476037ddbf05f3d72452209b928154c0feb8c7293509b076ecda", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling futures-sink v0.3.4 [INFO] [stderr] Compiling futures-core v0.3.4 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling futures-io v0.3.4 [INFO] [stderr] Compiling pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling futures-task v0.3.4 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling once_cell v1.3.1 [INFO] [stderr] Compiling tracing-core v0.1.10 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling futures-channel v0.3.4 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling num_cpus v1.12.0 [INFO] [stderr] Compiling mio v0.7.0 [INFO] [stderr] Compiling crossbeam-channel v0.4.2 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling tracing-attributes v0.1.7 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling const-random-macro v0.1.8 [INFO] [stderr] Compiling tracing v0.1.13 [INFO] [stderr] Compiling const-random v0.1.8 [INFO] [stderr] Compiling ahash v0.3.2 [INFO] [stderr] Compiling dashmap v3.7.0 [INFO] [stderr] Compiling futures-util v0.3.4 [INFO] [stderr] Compiling futures-executor v0.3.4 [INFO] [stderr] Compiling futures v0.3.4 [INFO] [stderr] Compiling mirai v0.0.4 [INFO] [stderr] Compiling stage v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.00s [INFO] running `Command { std: "docker" "inspect" "616ec6018d33476037ddbf05f3d72452209b928154c0feb8c7293509b076ecda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "616ec6018d33476037ddbf05f3d72452209b928154c0feb8c7293509b076ecda", kill_on_drop: false }` [INFO] [stdout] 616ec6018d33476037ddbf05f3d72452209b928154c0feb8c7293509b076ecda [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17418e7d8e3998fd6ff9dbea1bcb9aaa6796f5e2e7207ab687a70a9f90617523 [INFO] running `Command { std: "docker" "start" "-a" "17418e7d8e3998fd6ff9dbea1bcb9aaa6796f5e2e7207ab687a70a9f90617523", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling regex-syntax v0.6.17 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling smallvec v1.2.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling sharded-slab v0.0.8 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling tracing-log v0.1.1 [INFO] [stderr] Compiling chrono v0.4.11 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling regex v1.3.5 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling tracing-serde v0.1.1 [INFO] [stderr] Compiling serde_json v1.0.48 [INFO] [stderr] Compiling tracing-subscriber v0.2.3 [INFO] [stderr] Compiling stage v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find macro `actor_msg` in this scope [INFO] [stdout] --> examples/tcp.rs:136:1 [INFO] [stdout] | [INFO] [stdout] 136 | actor_msg!(Continue, TcpRecvMsg, TcpSendCmd, ReadingTcp, WritingTcp); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] stage::actor_msg [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> examples/tcp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::io::Error` [INFO] [stdout] --> examples/tcp.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncRead`, `Result as FutIoResult` [INFO] [stdout] --> examples/tcp.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | io::{AsyncRead, AsyncReadExt, Result as FutIoResult}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpConnection` [INFO] [stdout] --> examples/tcp.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | use mirai::tcp::{TcpConnection, TcpListenerStream, TcpRecvStream, TcpSendStream}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsgError` [INFO] [stdout] --> examples/tcp.rs:12:80 [INFO] [stdout] | [INFO] [stdout] 12 | Actor, ActorCtx, ActorError, ActorRef, ActorResult, BuildActorOp, Message, MsgError, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `tcp` [INFO] [stdout] --> examples/tcp.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use std::net::SocketAddr; [INFO] [stdout] 2 | | [INFO] [stdout] 3 | | use futures::io::Error; [INFO] [stdout] 4 | | use futures::{ [INFO] [stdout] ... | [INFO] [stdout] 135 | | [INFO] [stdout] 136 | | actor_msg!(Continue, TcpRecvMsg, TcpSendCmd, ReadingTcp, WritingTcp); [INFO] [stdout] | |_____________________________________________________________________^ consider adding a `main` function to `examples/tcp.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Continue: From` is not satisfied [INFO] [stdout] --> examples/tcp.rs:47:31 [INFO] [stdout] | [INFO] [stdout] 47 | let _ = ctx.this.send(Continue); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected an implementor of trait `From` [INFO] [stdout] | help: consider borrowing here: `&Continue` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `From` for `Message` [INFO] [stdout] = note: required because of the requirements on the impl of `Into` for `Continue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TcpRecvMsg: From` is not satisfied [INFO] [stdout] --> examples/tcp.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | match self.handler.send(msg) { [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected an implementor of trait `From` [INFO] [stdout] | help: consider borrowing here: `&msg` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `From` for `Message` [INFO] [stdout] = note: required because of the requirements on the impl of `Into` for `TcpRecvMsg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TcpSendCmd: ActorMessage` is not satisfied [INFO] [stdout] --> examples/tcp.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | if let Some(cmd) = msg.try_cast::() { [INFO] [stdout] | ^^^^^^^^ the trait `ActorMessage` is not implemented for `TcpSendCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TcpRecvMsg: ActorMessage` is not satisfied [INFO] [stdout] --> examples/tcp.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | if let Some(msg) = msg.try_cast::() { [INFO] [stdout] | ^^^^^^^^ the trait `ActorMessage` is not implemented for `TcpRecvMsg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TcpSendCmd: From` is not satisfied [INFO] [stdout] --> examples/tcp.rs:107:35 [INFO] [stdout] | [INFO] [stdout] 107 | self.tx.unwrap().send(TcpSendCmd::Send(msg.into_bytes())).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected an implementor of trait `From` [INFO] [stdout] | help: consider borrowing here: `&TcpSendCmd::Send(msg.into_bytes())` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `From` for `Message` [INFO] [stdout] = note: required because of the requirements on the impl of `Into` for `TcpSendCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ReadingTcp: ActorMessage` is not satisfied [INFO] [stdout] --> examples/tcp.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let Some(msg) = msg.try_cast::() { [INFO] [stdout] | ^^^^^^^^ the trait `ActorMessage` is not implemented for `ReadingTcp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `WritingTcp: ActorMessage` is not satisfied [INFO] [stdout] --> examples/tcp.rs:112:39 [INFO] [stdout] | [INFO] [stdout] 112 | } else if let Some(msg) = msg.try_cast::() { [INFO] [stdout] | ^^^^^^^^ the trait `ActorMessage` is not implemented for `WritingTcp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/tcp.rs:84:85 [INFO] [stdout] | [INFO] [stdout] 84 | pub async fn handle(mut self, ctx: ActorCtx, msg: Message) -> ActorResult { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 85 | | // Await each incoming connection. The Actor will use no CPU time until the system gives the [INFO] [stdout] 86 | | // event letting us know we have a connection. [INFO] [stdout] 87 | | let incoming = match self.listener.next().await.unwrap() { [INFO] [stdout] ... | [INFO] [stdout] 99 | | let rx_actor_state = TcpRecvActor { conn: rx, handler: echo_actor.clone() }; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____^ expected enum `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stage` due to 11 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "17418e7d8e3998fd6ff9dbea1bcb9aaa6796f5e2e7207ab687a70a9f90617523", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17418e7d8e3998fd6ff9dbea1bcb9aaa6796f5e2e7207ab687a70a9f90617523", kill_on_drop: false }` [INFO] [stdout] 17418e7d8e3998fd6ff9dbea1bcb9aaa6796f5e2e7207ab687a70a9f90617523