[INFO] cloning repository https://github.com/Amakesasha/Rust-TcpServer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Amakesasha/Rust-TcpServer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmakesasha%2FRust-TcpServer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmakesasha%2FRust-TcpServer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4e9cb6c1fc178c046a8690111e702d384096e86 [INFO] checking Amakesasha/Rust-TcpServer/e4e9cb6c1fc178c046a8690111e702d384096e86 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmakesasha%2FRust-TcpServer" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Amakesasha/Rust-TcpServer on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Amakesasha/Rust-TcpServer [INFO] finished tweaking git repo https://github.com/Amakesasha/Rust-TcpServer [INFO] tweaked toml for git repo https://github.com/Amakesasha/Rust-TcpServer written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Amakesasha/Rust-TcpServer 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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9104895ec239c24e23b161a20c53a54ec8400d0a0bcdd5488424d1230e2b55c [INFO] running `Command { std: "docker" "start" "-a" "e9104895ec239c24e23b161a20c53a54ec8400d0a0bcdd5488424d1230e2b55c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9104895ec239c24e23b161a20c53a54ec8400d0a0bcdd5488424d1230e2b55c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9104895ec239c24e23b161a20c53a54ec8400d0a0bcdd5488424d1230e2b55c", kill_on_drop: false }` [INFO] [stdout] e9104895ec239c24e23b161a20c53a54ec8400d0a0bcdd5488424d1230e2b55c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail_expr_drop_order" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ee58d15e0e9a221d263457837dc35c6e0eb435cf99d7f855555604fedd450cb [INFO] running `Command { std: "docker" "start" "-a" "0ee58d15e0e9a221d263457837dc35c6e0eb435cf99d7f855555604fedd450cb", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking rust_tcp_sever v0.1.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/tcp_server.rs:94:18 [INFO] [stdout] | [INFO] [stdout] 94 | unsafe { TCP_LISTENER.as_ref().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/tcp_server.rs:94:18 [INFO] [stdout] | [INFO] [stdout] 94 | unsafe { TCP_LISTENER.as_ref().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> examples/default_start.rs:39:44 [INFO] [stdout] | [INFO] [stdout] 39 | fn parser_request(_stream: &TcpStream, request: &Request, response: &mut Response) { } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> examples/work_response.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | fn send_file(request: &Request, response: &mut Response) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use std::error::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Response` in this scope [INFO] [stdout] --> examples/work_response.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn send_file(request: &Request, response: &mut Response) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Response` in this scope [INFO] [stdout] --> examples/work_response.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | fn echo(response: &mut Response) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Response` in this scope [INFO] [stdout] --> examples/work_response.rs:31:38 [INFO] [stdout] | [INFO] [stdout] 31 | fn cookie_and_setting(response: &mut Response) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> examples/work_response.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | fn rest_function(request: &Request, response: &mut Response) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use std::error::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Response` in this scope [INFO] [stdout] --> examples/work_response.rs:53:52 [INFO] [stdout] | [INFO] [stdout] 53 | fn rest_function(request: &Request, response: &mut Response) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> examples/default_start.rs:39:63 [INFO] [stdout] | [INFO] [stdout] 39 | fn parser_request(_stream: &TcpStream, request: &Request, response: &mut Response) { } [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `work_response` [INFO] [stdout] --> examples/work_response.rs:59:2 [INFO] [stdout] | [INFO] [stdout] 59 | } [INFO] [stdout] | ^ consider adding a `main` function to `examples/work_response.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> examples/edit_fn_rw.rs:30:44 [INFO] [stdout] | [INFO] [stdout] 30 | fn parser_request(_stream: &TcpStream, request: &Request, response: &mut Response) { } [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> examples/edit_fn_rw.rs:30:63 [INFO] [stdout] | [INFO] [stdout] 30 | fn parser_request(_stream: &TcpStream, request: &Request, response: &mut Response) { } [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Response` [INFO] [stdout] --> examples/work_response.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _ = Response::new(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Response` [INFO] [stdout] --> examples/work_response.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let _ = Response::new_from_file("examples_rs/webpage.html", "text/html"); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Response` [INFO] [stdout] --> examples/work_response.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let _ = Response::new_from_fn(|resp| { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_tcp_sever` (example "work_response") due to 11 previous errors [INFO] running `Command { std: "docker" "inspect" "0ee58d15e0e9a221d263457837dc35c6e0eb435cf99d7f855555604fedd450cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ee58d15e0e9a221d263457837dc35c6e0eb435cf99d7f855555604fedd450cb", kill_on_drop: false }` [INFO] [stdout] 0ee58d15e0e9a221d263457837dc35c6e0eb435cf99d7f855555604fedd450cb