[INFO] fetching crate dev 0.1.0... [INFO] checking dev-0.1.0 against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] extracting crate dev 0.1.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate dev 0.1.0 on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate dev 0.1.0 [INFO] finished tweaking crates.io crate dev 0.1.0 [INFO] tweaked toml for crates.io crate dev 0.1.0 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nix v0.22.0 [INFO] [stderr] Downloaded err v0.0.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74358e9d1090b824a114979b2eb9b8cc33fe5699e3e3fe2362e445fb4cfe6cfe [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "74358e9d1090b824a114979b2eb9b8cc33fe5699e3e3fe2362e445fb4cfe6cfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74358e9d1090b824a114979b2eb9b8cc33fe5699e3e3fe2362e445fb4cfe6cfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74358e9d1090b824a114979b2eb9b8cc33fe5699e3e3fe2362e445fb4cfe6cfe", kill_on_drop: false }` [INFO] [stdout] 74358e9d1090b824a114979b2eb9b8cc33fe5699e3e3fe2362e445fb4cfe6cfe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0f67f21e6e337aee6e365d8c8a55b811034d8e10b17615e1d540cbd699911420 [INFO] running `Command { std: "docker" "start" "-a" "0f67f21e6e337aee6e365d8c8a55b811034d8e10b17615e1d540cbd699911420", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking err v0.0.8 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Checking nix v0.22.0 [INFO] [stderr] Checking dev v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find macro `ioctl` in this scope [INFO] [stdout] --> src/lib.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | ioctl!{bad blkgetsize64 with ior!(0x12, 114, mem::size_of::()) } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ioctl` in this scope [INFO] [stdout] --> src/lib.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | ioctl!{none blkpbszget with 0x12, 123} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blkgetsize64` in this scope [INFO] [stdout] --> src/lib.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | try!(nix_to_io(blkgetsize64(fd.as_raw_fd(), mem::transmute(&mut r)))); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blkpbszget` in this scope [INFO] [stdout] --> src/lib.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | nix_to_io(blkpbszget(fd.as_raw_fd())) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | /// Size in bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `size_t` [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | use libc::{size_t, c_int}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ioctl` in this scope [INFO] [stdout] --> src/lib.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | ioctl!{bad blkgetsize64 with ior!(0x12, 114, mem::size_of::()) } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | try!(nix_to_io(blkgetsize64(fd.as_raw_fd(), mem::transmute(&mut r)))); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ioctl` in this scope [INFO] [stdout] --> src/lib.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | ioctl!{none blkpbszget with 0x12, 123} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn blockdev_size(fd: &AsRawFd) -> io::Result { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn AsRawFd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blkgetsize64` in this scope [INFO] [stdout] --> src/lib.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | try!(nix_to_io(blkgetsize64(fd.as_raw_fd(), mem::transmute(&mut r)))); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blkpbszget` in this scope [INFO] [stdout] --> src/lib.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | nix_to_io(blkpbszget(fd.as_raw_fd())) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn blockdev_phys_block_size(fd: &AsRawFd) -> io::Result { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn AsRawFd` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / macro_rules! try_or { [INFO] [stdout] 58 | | ($try:expr, $or:expr) => ( [INFO] [stdout] 59 | | let t = $try; [INFO] [stdout] 60 | | match t { [INFO] [stdout] ... | [INFO] [stdout] 64 | | ) [INFO] [stdout] 65 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | /// Size in bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | let dirs = try!(fs::read_dir(net)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `size_t` [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | use libc::{size_t, c_int}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | try!(nix_to_io(blkgetsize64(fd.as_raw_fd(), mem::transmute(&mut r)))); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:90:27 [INFO] [stdout] | [INFO] [stdout] 90 | let net_dev = try!(net_dev_res); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | let mut f = try!(fs::File::open(p)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn blockdev_size(fd: &AsRawFd) -> io::Result { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn AsRawFd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | try!(f.read_to_end(&mut v)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | Ok(try!(std::str::from_utf8(&v[..v.len()-1])).to_owned()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn blockdev_phys_block_size(fd: &AsRawFd) -> io::Result { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn AsRawFd` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / macro_rules! try_or { [INFO] [stdout] 58 | | ($try:expr, $or:expr) => ( [INFO] [stdout] 59 | | let t = $try; [INFO] [stdout] 60 | | match t { [INFO] [stdout] ... | [INFO] [stdout] 64 | | ) [INFO] [stdout] 65 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | let dirs = try!(fs::read_dir(net)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:90:27 [INFO] [stdout] | [INFO] [stdout] 90 | let net_dev = try!(net_dev_res); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | let mut f = try!(fs::File::open(p)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | try!(f.read_to_end(&mut v)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | Ok(try!(std::str::from_utf8(&v[..v.len()-1])).to_owned()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `nix::errno::::Sys`: Use Errno::... instead [INFO] [stdout] --> src/lib.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | nix::Error::Sys(errno) => io::Error::from_raw_os_error(errno as i32), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys` [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | nix::Error::Sys(errno) => io::Error::from_raw_os_error(errno as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns [INFO] [stdout] | [INFO] [stdout] = help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `nix::errno::::Sys`: Use Errno::... instead [INFO] [stdout] --> src/lib.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | nix::Error::Sys(errno) => io::Error::from_raw_os_error(errno as i32), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys` [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | nix::Error::Sys(errno) => io::Error::from_raw_os_error(errno as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns [INFO] [stdout] | [INFO] [stdout] = help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidPath` found for enum `Errno` in the current scope [INFO] [stdout] --> src/lib.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | nix::Error::InvalidPath => io::Error::new(io::ErrorKind::InvalidInput, "InvalidPath"), [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `Errno` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidPath` found for enum `Errno` in the current scope [INFO] [stdout] --> src/lib.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | nix::Error::InvalidPath => io::Error::new(io::ErrorKind::InvalidInput, "InvalidPath"), [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `Errno` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0164, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0164`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0164, E0425, E0599. [INFO] [stdout] [INFO] [stderr] error: could not compile `dev` due to 7 previous errors; 13 warnings emitted [INFO] [stdout] For more information about an error, try `rustc --explain E0164`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "0f67f21e6e337aee6e365d8c8a55b811034d8e10b17615e1d540cbd699911420", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f67f21e6e337aee6e365d8c8a55b811034d8e10b17615e1d540cbd699911420", kill_on_drop: false }` [INFO] [stdout] 0f67f21e6e337aee6e365d8c8a55b811034d8e10b17615e1d540cbd699911420