[INFO] cloning repository https://github.com/mutohq/Rust--event-loop-handling [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mutohq/Rust--event-loop-handling" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmutohq%2FRust--event-loop-handling", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmutohq%2FRust--event-loop-handling'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9dc1e5941a1e96bfd877ad965eff4c0e08dae421 [INFO] checking mutohq/Rust--event-loop-handling against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmutohq%2FRust--event-loop-handling" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mutohq/Rust--event-loop-handling on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mutohq/Rust--event-loop-handling [INFO] finished tweaking git repo https://github.com/mutohq/Rust--event-loop-handling [INFO] tweaked toml for git repo https://github.com/mutohq/Rust--event-loop-handling written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mutohq/Rust--event-loop-handling 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 234806e4f5bf3bca6dddedcf374f8ab569442ebde3c97b9ad48e40ffd9a432d5 [INFO] running `Command { std: "docker" "start" "-a" "234806e4f5bf3bca6dddedcf374f8ab569442ebde3c97b9ad48e40ffd9a432d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "234806e4f5bf3bca6dddedcf374f8ab569442ebde3c97b9ad48e40ffd9a432d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "234806e4f5bf3bca6dddedcf374f8ab569442ebde3c97b9ad48e40ffd9a432d5", kill_on_drop: false }` [INFO] [stdout] 234806e4f5bf3bca6dddedcf374f8ab569442ebde3c97b9ad48e40ffd9a432d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bfd2b6bc8f4507e1d85feb72b23cfc5af80a9c693fbf5b7d18f80d951b6b54e2 [INFO] running `Command { std: "docker" "start" "-a" "bfd2b6bc8f4507e1d85feb72b23cfc5af80a9c693fbf5b7d18f80d951b6b54e2", kill_on_drop: false }` [INFO] [stderr] Compiling gcc v0.3.28 [INFO] [stderr] Checking lazy_static v0.2.1 [INFO] [stderr] Checking libc v0.2.12 [INFO] [stderr] Compiling eventloop v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/mylib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender` [INFO] [stdout] --> src/main.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::mpsc::{Sender,Receiver}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/mylib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender` [INFO] [stdout] --> src/main.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::mpsc::{Sender,Receiver}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | thread::sleep_ms(200000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/mylib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | thread::sleep_ms(1000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | thread::sleep_ms(200000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/mylib.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | thread::sleep_ms(2000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/mylib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | thread::sleep_ms(1000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/mylib.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | thread::sleep_ms(2000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mylib.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | call: Option> [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 43 | call: Option> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mylib.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | call: Option> [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 43 | call: Option> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mylib.rs:245:31 [INFO] [stdout] | [INFO] [stdout] 245 | fn add_callback(f:Box,tx:Sender>){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 245 | fn add_callback(f:Box,tx:Sender>){ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mylib.rs:245:31 [INFO] [stdout] | [INFO] [stdout] 245 | fn add_callback(f:Box,tx:Sender>){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 245 | fn add_callback(f:Box,tx:Sender>){ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mylib.rs:247:86 [INFO] [stdout] | [INFO] [stdout] 247 | let temp_elem = ToServe{ fd: -1, status:1,register:false,inner:None,call: Some(f)}; [INFO] [stdout] | ---- ^ expected trait `FnMut(i32) + Send`, found trait `FnMut(i32)` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found struct `Box<(dyn FnMut(i32) + 'static)>` [INFO] [stdout] help: the type constructed contains `Box<(dyn FnMut(i32) + 'static)>` due to the type of the argument passed [INFO] [stdout] --> src/mylib.rs:247:81 [INFO] [stdout] | [INFO] [stdout] 247 | let temp_elem = ToServe{ fd: -1, status:1,register:false,inner:None,call: Some(f)}; [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:579:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mylib.rs:247:86 [INFO] [stdout] | [INFO] [stdout] 247 | let temp_elem = ToServe{ fd: -1, status:1,register:false,inner:None,call: Some(f)}; [INFO] [stdout] | ---- ^ expected trait `FnMut(i32) + Send`, found trait `FnMut(i32)` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found struct `Box<(dyn FnMut(i32) + 'static)>` [INFO] [stdout] help: the type constructed contains `Box<(dyn FnMut(i32) + 'static)>` due to the type of the argument passed [INFO] [stdout] --> src/mylib.rs:247:81 [INFO] [stdout] | [INFO] [stdout] 247 | let temp_elem = ToServe{ fd: -1, status:1,register:false,inner:None,call: Some(f)}; [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:579:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/mylib.rs:113:27 [INFO] [stdout] | [INFO] [stdout] 113 | let s = unsafe { epoll_ctl(epfd, EPOLL_CTL_ADD, instance.fd,event) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/mylib.rs:113:27 [INFO] [stdout] | [INFO] [stdout] 113 | let s = unsafe { epoll_ctl(epfd, EPOLL_CTL_ADD, instance.fd,event) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/mylib.rs:118:26 [INFO] [stdout] | [INFO] [stdout] 118 | Some(ref inner) => flag= true, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/mylib.rs:121:30 [INFO] [stdout] | [INFO] [stdout] 121 | let s = unsafe { epoll_ctl(epfd, EPOLL_CTL_DEL, instance.fd,event) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/mylib.rs:118:26 [INFO] [stdout] | [INFO] [stdout] 118 | Some(ref inner) => flag= true, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/mylib.rs:121:30 [INFO] [stdout] | [INFO] [stdout] 121 | let s = unsafe { epoll_ctl(epfd, EPOLL_CTL_DEL, instance.fd,event) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*call` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/mylib.rs:264:28 [INFO] [stdout] | [INFO] [stdout] 264 | Some(ref call) => call(32), [INFO] [stdout] | ^^^^ `call` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 264 | Some(ref mut call) => call(32), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*call` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/mylib.rs:264:28 [INFO] [stdout] | [INFO] [stdout] 264 | Some(ref call) => call(32), [INFO] [stdout] | ^^^^ `call` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 264 | Some(ref mut call) => call(32), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `eventloop` (bin "eventloop") due to 3 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `eventloop` (bin "eventloop" test) due to 3 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bfd2b6bc8f4507e1d85feb72b23cfc5af80a9c693fbf5b7d18f80d951b6b54e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfd2b6bc8f4507e1d85feb72b23cfc5af80a9c693fbf5b7d18f80d951b6b54e2", kill_on_drop: false }` [INFO] [stdout] bfd2b6bc8f4507e1d85feb72b23cfc5af80a9c693fbf5b7d18f80d951b6b54e2