[INFO] fetching crate xdr 0.1.0... [INFO] checking xdr-0.1.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate xdr 0.1.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate xdr 0.1.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate xdr 0.1.0 [INFO] finished tweaking crates.io crate xdr 0.1.0 [INFO] tweaked toml for crates.io crate xdr 0.1.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3896983b475a9023f80c796ee79643ae04002b87f70ecb76ab59bde4f31e8e5d [INFO] running `Command { std: "docker" "start" "-a" "3896983b475a9023f80c796ee79643ae04002b87f70ecb76ab59bde4f31e8e5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3896983b475a9023f80c796ee79643ae04002b87f70ecb76ab59bde4f31e8e5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3896983b475a9023f80c796ee79643ae04002b87f70ecb76ab59bde4f31e8e5d", kill_on_drop: false }` [INFO] [stdout] 3896983b475a9023f80c796ee79643ae04002b87f70ecb76ab59bde4f31e8e5d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e29942375a713c49e56ff1deb0089ca54cc96a22a19ebb7d70cad363e28bfef [INFO] running `Command { std: "docker" "start" "-a" "1e29942375a713c49e56ff1deb0089ca54cc96a22a19ebb7d70cad363e28bfef", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking xdr v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | Io(byteorder::Error), [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 16 - Io(byteorder::Error), [INFO] [stdout] 16 + Io(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | impl From for Error { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 21 - impl From for Error { [INFO] [stdout] 21 + impl From for Error { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | fn from(err: byteorder::Error) -> Error { Error::Io(err) } [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 22 - fn from(err: byteorder::Error) -> Error { Error::Io(err) } [INFO] [stdout] 22 + fn from(err: Error) -> Error { Error::Io(err) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 25 | impl From for byteorder::Error { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 25 - impl From for byteorder::Error { [INFO] [stdout] 25 + impl From for Error { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | Io(byteorder::Error), [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 16 - Io(byteorder::Error), [INFO] [stdout] 16 + Io(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | impl From for Error { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 21 - impl From for Error { [INFO] [stdout] 21 + impl From for Error { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | fn from(err: byteorder::Error) -> Error { Error::Io(err) } [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 22 - fn from(err: byteorder::Error) -> Error { Error::Io(err) } [INFO] [stdout] 22 + fn from(err: Error) -> Error { Error::Io(err) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 25 | impl From for byteorder::Error { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 25 - impl From for byteorder::Error { [INFO] [stdout] 25 + impl From for Error { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | fn from(err: Error) -> byteorder::Error { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 26 - fn from(err: Error) -> byteorder::Error { [INFO] [stdout] 26 + fn from(err: Error) -> Error { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Error` in `byteorder` [INFO] [stdout] --> src/xdr.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | Error::InvalidValue => byteorder::Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid value")), [INFO] [stdout] | ^^^^^ could not find `Error` in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 29 - Error::InvalidValue => byteorder::Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid value")), [INFO] [stdout] 29 + Error::InvalidValue => Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid value")), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Error` in `byteorder` [INFO] [stdout] --> src/xdr.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | Error::InvalidType => byteorder::Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid type")), [INFO] [stdout] | ^^^^^ could not find `Error` in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 30 - Error::InvalidType => byteorder::Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid type")), [INFO] [stdout] 30 + Error::InvalidType => Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid type")), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/xdr.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | fn from(err: Error) -> byteorder::Error { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 26 - fn from(err: Error) -> byteorder::Error { [INFO] [stdout] 26 + fn from(err: Error) -> Error { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Error` in `byteorder` [INFO] [stdout] --> src/xdr.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | Error::InvalidValue => byteorder::Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid value")), [INFO] [stdout] | ^^^^^ could not find `Error` in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 29 - Error::InvalidValue => byteorder::Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid value")), [INFO] [stdout] 29 + Error::InvalidValue => Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid value")), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Error` in `byteorder` [INFO] [stdout] --> src/xdr.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | Error::InvalidType => byteorder::Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid type")), [INFO] [stdout] | ^^^^^ could not find `Error` in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::error::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 + use xdr::io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 30 - Error::InvalidType => byteorder::Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid type")), [INFO] [stdout] 30 + Error::InvalidType => Error::Io(io::Error::new(io::ErrorKind::Other, "Invalid type")), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> src/xdr.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use byteorder::{BigEndian,ReadBytesExt,WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/xdr.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | let len = try!(self.unpack::()) as usize; [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/xdr.rs:188:15 [INFO] [stdout] | [INFO] [stdout] 188 | let count = try!(x.unpack::()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/xdr.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let len = try!(x.unpack::()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/xdr.rs:218:15 [INFO] [stdout] | [INFO] [stdout] 218 | let bytes = try!(x.unpack_opaque_fixed_len(len)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/xdr.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | try!(x.unpack_opaque_fixed_len(pad)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> src/xdr.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use byteorder::{BigEndian,ReadBytesExt,WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/xdr.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | let len = try!(self.unpack::()) as usize; [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/xdr.rs:188:15 [INFO] [stdout] | [INFO] [stdout] 188 | let count = try!(x.unpack::()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/xdr.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let len = try!(x.unpack::()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/xdr.rs:218:15 [INFO] [stdout] | [INFO] [stdout] 218 | let bytes = try!(x.unpack_opaque_fixed_len(len)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/xdr.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | try!(x.unpack_opaque_fixed_len(pad)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/xdr.rs:50:40 [INFO] [stdout] | [INFO] [stdout] 50 | Error::Io(ref err) => error::Error::description(err), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/xdr.rs:50:40 [INFO] [stdout] | [INFO] [stdout] 50 | Error::Io(ref err) => error::Error::description(err), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xdr.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | fn cause(&self) -> Option<&error::Error> { [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] 54 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xdr.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | fn cause(&self) -> Option<&error::Error> { [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] 54 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Self` cannot be known at compilation time [INFO] [stdout] --> src/xdr.rs:182:41 [INFO] [stdout] | [INFO] [stdout] 182 | fn read_from_xdr(x: &mut XdrReader) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] note: required by an implicit `Sized` bound in `Result` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:527:1 [INFO] [stdout] help: consider further restricting `Self` [INFO] [stdout] | [INFO] [stdout] 182 | fn read_from_xdr(x: &mut XdrReader) -> Result where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Self` cannot be known at compilation time [INFO] [stdout] --> src/xdr.rs:182:41 [INFO] [stdout] | [INFO] [stdout] 182 | fn read_from_xdr(x: &mut XdrReader) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] note: required by an implicit `Sized` bound in `Result` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:527:1 [INFO] [stdout] help: consider further restricting `Self` [INFO] [stdout] | [INFO] [stdout] 182 | fn read_from_xdr(x: &mut XdrReader) -> Result where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 250 | opt!(x.writer.write_u32::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 261 | opt!(x.writer.write_u32::(v as u32)) [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 272 | opt!(x.writer.write_u32::(v as u32)) [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 283 | opt!(x.writer.write_i32::(v as i32)) [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 294 | opt!(x.writer.write_i32::(v as i32)) [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 305 | opt!(x.writer.write_i32::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 250 | opt!(x.writer.write_u32::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 316 | opt!(x.writer.write_i64::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 261 | opt!(x.writer.write_u32::(v as u32)) [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 327 | opt!(x.writer.write_u64::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 272 | opt!(x.writer.write_u32::(v as u32)) [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 339 | opt!(x.writer.write_f32::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 283 | opt!(x.writer.write_i32::(v as i32)) [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 350 | opt!(x.writer.write_f64::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 365 | / opt!( match v { [INFO] [stdout] 366 | | true => x.writer.write_u32::(1), [INFO] [stdout] 367 | | false => x.writer.write_u32::(0), [INFO] [stdout] 368 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 294 | opt!(x.writer.write_i32::(v as i32)) [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 305 | opt!(x.writer.write_i32::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 316 | opt!(x.writer.write_i64::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 327 | opt!(x.writer.write_u64::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 339 | opt!(x.writer.write_f32::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 350 | opt!(x.writer.write_f64::(v)) [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `xdr::Error: From` is not satisfied [INFO] [stdout] --> src/xdr.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | Err(v) => return Some(From::from(v)), [INFO] [stdout] | ---------- ^ the trait `From` is not implemented for `xdr::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 365 | / opt!( match v { [INFO] [stdout] 366 | | true => x.writer.write_u32::(1), [INFO] [stdout] 367 | | false => x.writer.write_u32::(0), [INFO] [stdout] 368 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xdr` (lib) due to 20 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 19 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xdr` (lib test) due to 20 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1e29942375a713c49e56ff1deb0089ca54cc96a22a19ebb7d70cad363e28bfef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e29942375a713c49e56ff1deb0089ca54cc96a22a19ebb7d70cad363e28bfef", kill_on_drop: false }` [INFO] [stdout] 1e29942375a713c49e56ff1deb0089ca54cc96a22a19ebb7d70cad363e28bfef