[INFO] cloning repository https://github.com/superhu/mysql-udf-http-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/superhu/mysql-udf-http-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperhu%2Fmysql-udf-http-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperhu%2Fmysql-udf-http-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] acf8691ae437392c4daaeb050086a80dae4904ec [INFO] testing superhu/mysql-udf-http-rs against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperhu%2Fmysql-udf-http-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/superhu/mysql-udf-http-rs [INFO] finished tweaking git repo https://github.com/superhu/mysql-udf-http-rs [INFO] tweaked toml for git repo https://github.com/superhu/mysql-udf-http-rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/superhu/mysql-udf-http-rs on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/superhu/mysql-udf-http-rs 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.tokio-tungstenite.futures [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de60b1548b6fcf993fbd2d88f5671e0bae26a4c6fbaf75f99307ba055bdf5d60 [INFO] running `Command { std: "docker" "start" "-a" "de60b1548b6fcf993fbd2d88f5671e0bae26a4c6fbaf75f99307ba055bdf5d60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de60b1548b6fcf993fbd2d88f5671e0bae26a4c6fbaf75f99307ba055bdf5d60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de60b1548b6fcf993fbd2d88f5671e0bae26a4c6fbaf75f99307ba055bdf5d60", kill_on_drop: false }` [INFO] [stdout] de60b1548b6fcf993fbd2d88f5671e0bae26a4c6fbaf75f99307ba055bdf5d60 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 85a8af51920be5772b327aa53d5d9a640f21e56ffc618584c97e882230ecb0a6 [INFO] running `Command { std: "docker" "start" "-a" "85a8af51920be5772b327aa53d5d9a640f21e56ffc618584c97e882230ecb0a6", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.tokio-tungstenite.futures [INFO] [stderr] Compiling proc-macro2 v1.0.83 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling miniz_oxide v0.7.3 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling rustls-pki-types v1.7.0 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling udf-sys v0.5.5 [INFO] [stderr] Compiling rustls-pemfile v2.1.2 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.65 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling udf-macros v0.5.5 [INFO] [stderr] Compiling udf v0.5.5 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tungstenite v0.23.0 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling async-compression v0.4.10 [INFO] [stderr] Compiling tokio-tungstenite v0.23.1 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v1.3.1 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.4 [INFO] [stderr] Compiling mysql-udf-http-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `http` [INFO] [stdout] --> src/bin/ws.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | mod http; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `http`, create file "src/bin/http.rs" or "src/bin/http/mod.rs" [INFO] [stdout] = note: if there is a `mod http` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/bin/ws.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use std::os::windows::io::AsRawSocket; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/os/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/os/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `reqwest_websocket` [INFO] [stdout] --> src/bin/ws.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use reqwest_websocket::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `reqwest_websocket` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `reqwest_websocket`, use `cargo add reqwest_websocket` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/bin/ws.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/bin/ws.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/bin/ws.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/bin/ws.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::blocking::multipart` [INFO] [stdout] --> src/bin/ws.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use reqwest::blocking::multipart; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::Runtime` [INFO] [stdout] --> src/bin/ws.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::socket` [INFO] [stdout] --> src/bin/ws.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use libc::socket; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `write` [INFO] [stdout] --> src/main.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | write(sock.try_clone().unwrap(), "And this is my Child\n").unwrap(); [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 104 | write!(sock.try_clone().unwrap(), "And this is my Child\n").unwrap(); [INFO] [stdout] | + [INFO] [stdout] help: consider importing one of these functions instead [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::write; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs::write; [INFO] [stdout] | [INFO] [stdout] 1 + use std::ptr::write; [INFO] [stdout] | [INFO] [stdout] 1 + use core::fmt::write; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read` in this scope [INFO] [stdout] --> src/main.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 19 | fn readn(fd: &TcpStream, buf: &mut [u8]) -> io::Result { [INFO] [stdout] | ------------------------------------------------------------- similarly named function `readn` defined here [INFO] [stdout] ... [INFO] [stdout] 105 | read(sock.try_clone().unwrap(), &mut a).unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 105 | readn(sock.try_clone().unwrap(), &mut a).unwrap(); [INFO] [stdout] | + [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs::read; [INFO] [stdout] | [INFO] [stdout] 1 + use std::ptr::read; [INFO] [stdout] | [INFO] [stdout] 1 + use core::ptr::read; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UdpSocket` [INFO] [stdout] --> src/main.rs:2:40 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{Ipv4Addr, SocketAddrV4, UdpSocket, TcpStream, TcpListener}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::prelude::*` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::unix::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CStr` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ffi::CStr; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender` and `channel` [INFO] [stdout] --> src/main.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::mpsc::{channel, Sender}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/websocket.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tungstenite::tungstenite::protocol::CloseFrame` [INFO] [stdout] --> src/websocket.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio_tungstenite::tungstenite::protocol::CloseFrame; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tungstenite::tungstenite::protocol::frame::coding::CloseCode` [INFO] [stdout] --> src/websocket.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio_tungstenite::tungstenite::protocol::frame::coding::CloseCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MaybeTlsStream`, `WebSocketStream`, and `tungstenite` [INFO] [stdout] --> src/websocket.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio_tungstenite::{MaybeTlsStream, WebSocketStream, tungstenite}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `upgrade` found for struct `reqwest::RequestBuilder` in the current scope [INFO] [stdout] --> src/bin/ws.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 63 | let websocket = Client::default() [INFO] [stdout] | _____________________- [INFO] [stdout] 64 | | .get("wss://echo.websocket.org/") [INFO] [stdout] 65 | | .upgrade() [INFO] [stdout] | | -^^^^^^^ method not found in `reqwest::RequestBuilder` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0583, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for reference `&TcpStream` in the current scope [INFO] [stdout] --> src/main.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | let nread = fd.read(&mut buf[buf_pos..])?; [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:813:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `&TcpStream` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `read_i8` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/byteorder-1.5.0/src/io.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_i8(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mysql-udf-http-rs` (bin "ws") due to 4 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `write_all` found for reference `&TcpStream` in the current scope [INFO] [stdout] --> src/main.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fd.write_all(&answer)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1835:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `&TcpStream` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write_all` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] help: there is a method `write` with a similar name [INFO] [stdout] | [INFO] [stdout] 44 - fd.write_all(&answer)?; [INFO] [stdout] 44 + fd.write(&answer)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/websocket.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use futures_util::{future, pin_mut, StreamExt, SinkExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for reference `&TcpStream` in the current scope [INFO] [stdout] --> src/main.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fd.write_all(&response)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1835:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `&TcpStream` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write_all` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] help: there is a method `write` with a similar name [INFO] [stdout] | [INFO] [stdout] 74 - fd.write_all(&response)?; [INFO] [stdout] 74 + fd.write(&response)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ip` is never used [INFO] [stdout] --> src/websocket.rs:188:4 [INFO] [stdout] | [INFO] [stdout] 188 | fn get_ip(args: &ArgList) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send` is never used [INFO] [stdout] --> src/websocket.rs:279:8 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn send(fd: RawFd, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for reference `&TcpStream` in the current scope [INFO] [stdout] --> src/main.rs:81:31 [INFO] [stdout] | [INFO] [stdout] 81 | let nread = match fd0.read(&mut buffer_r) { [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:813:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `&TcpStream` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `read_i8` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/byteorder-1.5.0/src/io.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_i8(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Read` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::hint::must_use` that must be used [INFO] [stdout] --> src/websocket.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | format!("receive msg from isdp,send to front-server fd:{}",&java2db_fd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 106 | let _ = format!("receive msg from isdp,send to front-server fd:{}",&java2db_fd); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for reference `&TcpStream` in the current scope [INFO] [stdout] --> src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | fd1.write_all(&buffer_r[..nread]).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1835:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `&TcpStream` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `write_all` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] help: there is a method `write` with a similar name [INFO] [stdout] | [INFO] [stdout] 85 - fd1.write_all(&buffer_r[..nread]).unwrap(); [INFO] [stdout] 85 + fd1.write(&buffer_r[..nread]).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `TcpStream` in the current scope [INFO] [stdout] --> src/main.rs:90:34 [INFO] [stdout] | [INFO] [stdout] 90 | let mut inet_fd = TcpStream::new().unwrap(); [INFO] [stdout] | ^^^ function or associated item not found in `TcpStream` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `TcpStream` consider using one of the following associated functions: [INFO] [stdout] TcpStream::connect [INFO] [stdout] TcpStream::connect_timeout [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/net/tcp.rs:169:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let address = format!("{}.{}.{}.{}", ip[0], ip[1], ip[2], ip[3]); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mysql-udf-http-rs` (bin "mysql-udf-http-rs") due to 8 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "85a8af51920be5772b327aa53d5d9a640f21e56ffc618584c97e882230ecb0a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85a8af51920be5772b327aa53d5d9a640f21e56ffc618584c97e882230ecb0a6", kill_on_drop: false }` [INFO] [stdout] 85a8af51920be5772b327aa53d5d9a640f21e56ffc618584c97e882230ecb0a6