[INFO] fetching crate fdringbuf 0.0.2... [INFO] checking fdringbuf-0.0.2 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-4 [INFO] extracting crate fdringbuf 0.0.2 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate fdringbuf 0.0.2 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 crates.io crate fdringbuf 0.0.2 [INFO] finished tweaking crates.io crate fdringbuf 0.0.2 [INFO] tweaked toml for crates.io crate fdringbuf 0.0.2 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 6 packages [INFO] [stderr] Adding cfg_aliases v0.1.1 (latest: v0.2.0) [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] warning: dependency (nix) specified without providing a local path, Git repository, version, or workspace dependency to use. This will be considered an error in future versions [INFO] [stderr] warning: unused manifest key: dev-dependencies.nix.nix [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] aeffda119f536d3d4a5d7521c7c26bbceac4a4929e44704ea5fa129bd7538483 [INFO] running `Command { std: "docker" "start" "-a" "aeffda119f536d3d4a5d7521c7c26bbceac4a4929e44704ea5fa129bd7538483", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aeffda119f536d3d4a5d7521c7c26bbceac4a4929e44704ea5fa129bd7538483", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aeffda119f536d3d4a5d7521c7c26bbceac4a4929e44704ea5fa129bd7538483", kill_on_drop: false }` [INFO] [stdout] aeffda119f536d3d4a5d7521c7c26bbceac4a4929e44704ea5fa129bd7538483 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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] a22b9a13716ea321495a23967b9a34e514b93e97f325fcfded2b89b92eb3a2b0 [INFO] running `Command { std: "docker" "start" "-a" "a22b9a13716ea321495a23967b9a34e514b93e97f325fcfded2b89b92eb3a2b0", kill_on_drop: false }` [INFO] [stderr] warning: dependency (nix) specified without providing a local path, Git repository, version, or workspace dependency to use. This will be considered an error in future versions [INFO] [stderr] warning: unused manifest key: dev-dependencies.nix.nix [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling nix v0.28.0 [INFO] [stderr] Checking fdringbuf v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `self::nix::sys::epoll` [INFO] [stdout] --> src/fdbuf.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | use self::nix::sys::epoll::*; [INFO] [stdout] | ^^^^^ could not find `epoll` in `sys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `self::nix::sys::eventfd` [INFO] [stdout] --> src/fdbuf.rs:211:29 [INFO] [stdout] | [INFO] [stdout] 211 | use self::nix::sys::eventfd::*; [INFO] [stdout] | ^^^^^^^ could not find `eventfd` in `sys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `epoll_create` in this scope [INFO] [stdout] --> src/fdbuf.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | let sleep = epoll_create().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use libc::epoll_create; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `EpollEvent` in this scope [INFO] [stdout] --> src/fdbuf.rs:187:21 [INFO] [stdout] | [INFO] [stdout] 187 | let event = EpollEvent { data: 0, events: EPOLLIN }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EPOLLIN` in this scope [INFO] [stdout] --> src/fdbuf.rs:187:51 [INFO] [stdout] | [INFO] [stdout] 187 | let event = EpollEvent { data: 0, events: EPOLLIN }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 173 + use libc::EPOLLIN; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `epoll_ctl` in this scope [INFO] [stdout] --> src/fdbuf.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | epoll_ctl(sleep, EpollOp::EpollCtlAdd, fd, &event).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use libc::epoll_ctl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `EpollEvent` in this scope [INFO] [stdout] --> src/fdbuf.rs:193:27 [INFO] [stdout] | [INFO] [stdout] 193 | let mut events = [EpollEvent { data: 0, events: EPOLLIN }]; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EPOLLIN` in this scope [INFO] [stdout] --> src/fdbuf.rs:193:57 [INFO] [stdout] | [INFO] [stdout] 193 | let mut events = [EpollEvent { data: 0, events: EPOLLIN }]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 173 + use libc::EPOLLIN; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `epoll_wait` in this scope [INFO] [stdout] --> src/fdbuf.rs:194:23 [INFO] [stdout] | [INFO] [stdout] 194 | assert_eq!(1, epoll_wait(fd, &mut events, 5000).unwrap()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use libc::epoll_wait; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `eventfd` in this scope [INFO] [stdout] --> src/fdbuf.rs:212:29 [INFO] [stdout] | [INFO] [stdout] 212 | let (efd1, efd2) = (eventfd(0, EFD_CLOEXEC).unwrap(), eventfd(0, EFD_CLOEXEC).unwrap()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use libc::eventfd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EFD_CLOEXEC` in this scope [INFO] [stdout] --> src/fdbuf.rs:212:40 [INFO] [stdout] | [INFO] [stdout] 212 | let (efd1, efd2) = (eventfd(0, EFD_CLOEXEC).unwrap(), eventfd(0, EFD_CLOEXEC).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 173 + use libc::EFD_CLOEXEC; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `eventfd` in this scope [INFO] [stdout] --> src/fdbuf.rs:212:63 [INFO] [stdout] | [INFO] [stdout] 212 | let (efd1, efd2) = (eventfd(0, EFD_CLOEXEC).unwrap(), eventfd(0, EFD_CLOEXEC).unwrap()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use libc::eventfd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EFD_CLOEXEC` in this scope [INFO] [stdout] --> src/fdbuf.rs:212:74 [INFO] [stdout] | [INFO] [stdout] 212 | let (efd1, efd2) = (eventfd(0, EFD_CLOEXEC).unwrap(), eventfd(0, EFD_CLOEXEC).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 173 + use libc::EFD_CLOEXEC; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found module `std::thread::scoped` [INFO] [stdout] --> src/fdbuf.rs:226:21 [INFO] [stdout] | [INFO] [stdout] 226 | let guard = ::std::thread::scoped(move || { [INFO] [stdout] | ^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | help: a function with a similar name exists: `scope` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/thread/scoped.rs:129:1 [INFO] [stdout] ::: /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/thread/scoped.rs:131:60 [INFO] [stdout] | [INFO] [stdout] = note: similarly named function `scope` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `scoped` is private [INFO] [stdout] --> src/fdbuf.rs:226:36 [INFO] [stdout] | [INFO] [stdout] 226 | let guard = ::std::thread::scoped(move || { [INFO] [stdout] | ^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `scoped` is defined here [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/thread/mod.rs:183:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpollOp` [INFO] [stdout] --> src/fdbuf.rs:188:26 [INFO] [stdout] | [INFO] [stdout] 188 | epoll_ctl(sleep, EpollOp::EpollCtlAdd, fd, &event).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EpollOp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/fdbuf.rs:233:69 [INFO] [stdout] | [INFO] [stdout] 233 | for z in d.iter().take(300) { cc += 1; if *z == -1 { quit = true; return (cc, false); } sum += *z as u64 }; [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | cannot apply unary operator `-` [INFO] [stdout] | help: you may have meant the maximum value of `u32`: `u32::MAX` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `u32` [INFO] [stdout] --> src/fdbuf.rs:261:29 [INFO] [stdout] | [INFO] [stdout] 261 | s.send(|d| { d[0] = -1; (1, false) }).unwrap(); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | cannot apply unary operator `-` [INFO] [stdout] | help: you may have meant the maximum value of `u32`: `u32::MAX` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0423, E0425, E0432, E0433, E0600, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fdringbuf` (lib test) due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "a22b9a13716ea321495a23967b9a34e514b93e97f325fcfded2b89b92eb3a2b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a22b9a13716ea321495a23967b9a34e514b93e97f325fcfded2b89b92eb3a2b0", kill_on_drop: false }` [INFO] [stdout] a22b9a13716ea321495a23967b9a34e514b93e97f325fcfded2b89b92eb3a2b0