[INFO] fetching crate stage 0.2.0... [INFO] checking stage-0.2.0 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate stage 0.2.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate stage 0.2.0 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-7/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-attributes v0.1.7 [INFO] [stderr] Downloaded regex v1.3.5 [INFO] [stderr] Downloaded smallvec v1.2.0 [INFO] [stderr] Downloaded tracing-subscriber v0.2.3 [INFO] [stderr] Downloaded const-random v0.1.8 [INFO] [stderr] Downloaded hermit-abi v0.1.8 [INFO] [stderr] Downloaded const-random-macro v0.1.8 [INFO] [stderr] Downloaded tracing v0.1.13 [INFO] [stderr] Downloaded libc v0.2.67 [INFO] [stderr] Downloaded ahash v0.3.2 [INFO] [stderr] Downloaded tracing-core v0.1.10 [INFO] [stderr] Downloaded dashmap v3.7.0 [INFO] [stderr] Downloaded sharded-slab v0.0.8 [INFO] [stderr] Downloaded mirai v0.0.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0af8b49d22517eb4c6256888984989df48e86a9bee31b160512e553310037f2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c0af8b49d22517eb4c6256888984989df48e86a9bee31b160512e553310037f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0af8b49d22517eb4c6256888984989df48e86a9bee31b160512e553310037f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0af8b49d22517eb4c6256888984989df48e86a9bee31b160512e553310037f2", kill_on_drop: false }` [INFO] [stdout] c0af8b49d22517eb4c6256888984989df48e86a9bee31b160512e553310037f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44bb19bf26ea92f622f1e091bea61d05605f58fc7c4d9cd9bad91954cf2691c0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "44bb19bf26ea92f622f1e091bea61d05605f58fc7c4d9cd9bad91954cf2691c0", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [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 libc v0.2.67 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking smallvec v1.2.0 [INFO] [stderr] Checking once_cell v1.3.1 [INFO] [stderr] Checking tracing-core v0.1.10 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking sharded-slab v0.0.8 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking tracing-log v0.1.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking mio v0.7.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking crossbeam-channel v0.4.2 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking regex v1.3.5 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking tracing-serde v0.1.1 [INFO] [stderr] Checking serde_json v1.0.48 [INFO] [stderr] Checking tracing-subscriber v0.2.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] Checking const-random v0.1.8 [INFO] [stderr] Checking ahash v0.3.2 [INFO] [stderr] Checking tracing v0.1.13 [INFO] [stderr] Checking dashmap v3.7.0 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking mirai v0.0.4 [INFO] [stderr] Checking 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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "44bb19bf26ea92f622f1e091bea61d05605f58fc7c4d9cd9bad91954cf2691c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44bb19bf26ea92f622f1e091bea61d05605f58fc7c4d9cd9bad91954cf2691c0", kill_on_drop: false }` [INFO] [stdout] 44bb19bf26ea92f622f1e091bea61d05605f58fc7c4d9cd9bad91954cf2691c0