[INFO] cloning repository https://github.com/viperscape/rust-irc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/viperscape/rust-irc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fviperscape%2Frust-irc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fviperscape%2Frust-irc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a745a9259b993aa99d9e1fbfb6ae19f6b84d7fdc [INFO] testing viperscape/rust-irc against master#160e7623e8cbbf1feab2b6e2a24733a98c7bde9c for pr-145628 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fviperscape%2Frust-irc" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/viperscape/rust-irc [INFO] finished tweaking git repo https://github.com/viperscape/rust-irc [INFO] tweaked toml for git repo https://github.com/viperscape/rust-irc written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/viperscape/rust-irc on toolchain 160e7623e8cbbf1feab2b6e2a24733a98c7bde9c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/viperscape/rust-irc already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58d77a47582b6ee4878a90e5582fdea4f03de83dbe2edd9c055a81e63e44b2b4 [INFO] running `Command { std: "docker" "start" "-a" "58d77a47582b6ee4878a90e5582fdea4f03de83dbe2edd9c055a81e63e44b2b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58d77a47582b6ee4878a90e5582fdea4f03de83dbe2edd9c055a81e63e44b2b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58d77a47582b6ee4878a90e5582fdea4f03de83dbe2edd9c055a81e63e44b2b4", kill_on_drop: false }` [INFO] [stdout] 58d77a47582b6ee4878a90e5582fdea4f03de83dbe2edd9c055a81e63e44b2b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a314116f8a1698fd49952fbb22edfda77f3e61f0962ebed8f0ac516dbc4ef8f7 [INFO] running `Command { std: "docker" "start" "-a" "a314116f8a1698fd49952fbb22edfda77f3e61f0962ebed8f0ac516dbc4ef8f7", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling rust-irc v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `{` [INFO] [stdout] --> src/main.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | spawn(proc() { //read stream, run handler [INFO] [stdout] | -^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `regex` [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `regex_macros` [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate regex_macros; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::TcpStream` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `TcpStream` in `io` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 8 - use std::io::TcpStream; [INFO] [stdout] 8 + use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedStream` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::BufferedStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedStream` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `phase` in this scope [INFO] [stdout] --> src/main.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[phase(plugin)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/main.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[deriving(Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `regex` in this scope [INFO] [stdout] --> src/main.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | let re = regex!(r".*?(rust)"); //to find all mentions of rust let's build this regex [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `regex` is imported here, but it is an unresolved item, not a macro [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `comm` in `std` [INFO] [stdout] --> src/main.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | let (dbtx,dbrx) = std::comm::channel(); //debug channel, unhandled irc msg [INFO] [stdout] | ^^^^ could not find `comm` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `comm` in `std` [INFO] [stdout] --> src/main.rs:28:26 [INFO] [stdout] | [INFO] [stdout] 28 | let (mtx,mrx) = std::comm::channel(); //all chat, for another task to consume [INFO] [stdout] | ^^^^ could not find `comm` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IoResult` in module `std::io` [INFO] [stdout] --> src/main.rs:20:73 [INFO] [stdout] | [INFO] [stdout] 20 | fn send_stream (s:&mut BufferedStream,msg: &str) -> std::io::IoResult<()> { [INFO] [stdout] | ^^^^^^^^ help: a type alias with a similar name exists: `Result` [INFO] [stdout] --> /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/io/error.rs:52:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named type alias `Result` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | spawn(proc() { //read stream, run handler [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 8 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/main.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | 'chat: loop { //todo: consider regex matching for key terms [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `phase` [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(phase)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&str` in the current scope [INFO] [stdout] --> src/main.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | s.write_str(msg.as_slice()); //we could one line this, but let's break it down [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | spawn(proc() { //read stream, run handler [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:63:39 [INFO] [stdout] | [INFO] [stdout] 63 | let vmsg: Vec<&str> = msg.as_slice().split(' ').collect(); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] | [INFO] [stdout] note: there's an earlier shadowed binding `msg` of type `_` that has method `as_slice` available [INFO] [stdout] --> src/main.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let msg = match bufstream2.read_until(b'\n') { //read until newline byte [INFO] [stdout] | ^^^ `msg` of type `_` that has method `as_slice` defined earlier here [INFO] [stdout] ... [INFO] [stdout] 53 | let msg = match String::from_utf8(msg) { //decode as utf8 (assumes utf8) [INFO] [stdout] | --- earlier `msg` shadowed here with type `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:64:39 [INFO] [stdout] | [INFO] [stdout] 64 | let cmsg: Vec<&str> = msg.as_slice().split(':').collect(); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] | [INFO] [stdout] note: there's an earlier shadowed binding `msg` of type `_` that has method `as_slice` available [INFO] [stdout] --> src/main.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let msg = match bufstream2.read_until(b'\n') { //read until newline byte [INFO] [stdout] | ^^^ `msg` of type `_` that has method `as_slice` defined earlier here [INFO] [stdout] ... [INFO] [stdout] 53 | let msg = match String::from_utf8(msg) { //decode as utf8 (assumes utf8) [INFO] [stdout] | --- earlier `msg` shadowed here with type `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:69:52 [INFO] [stdout] | [INFO] [stdout] 69 | send_stream(&mut bufstream2, s.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0463, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-irc` (bin "rust-irc") due to 18 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "a314116f8a1698fd49952fbb22edfda77f3e61f0962ebed8f0ac516dbc4ef8f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a314116f8a1698fd49952fbb22edfda77f3e61f0962ebed8f0ac516dbc4ef8f7", kill_on_drop: false }` [INFO] [stdout] a314116f8a1698fd49952fbb22edfda77f3e61f0962ebed8f0ac516dbc4ef8f7