[INFO] fetching crate hxd 0.1.3... [INFO] checking hxd-0.1.3 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate hxd 0.1.3 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate hxd 0.1.3 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate hxd 0.1.3 [INFO] tweaked toml for crates.io crate hxd 0.1.3 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate hxd 0.1.3 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate hxd 0.1.3 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4e27e870ea1a90fa7bc4215272d0ed28ff0af778674694909807cf1a47af600 [INFO] running `Command { std: "docker" "start" "-a" "a4e27e870ea1a90fa7bc4215272d0ed28ff0af778674694909807cf1a47af600", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4e27e870ea1a90fa7bc4215272d0ed28ff0af778674694909807cf1a47af600", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4e27e870ea1a90fa7bc4215272d0ed28ff0af778674694909807cf1a47af600", kill_on_drop: false }` [INFO] [stdout] a4e27e870ea1a90fa7bc4215272d0ed28ff0af778674694909807cf1a47af600 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 090a298551240826906fbc0de45049da221d49d2c134f1e4faa2cfa58a872b34 [INFO] running `Command { std: "docker" "start" "-a" "090a298551240826906fbc0de45049da221d49d2c134f1e4faa2cfa58a872b34", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking hxd v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Checking similar v2.7.0 [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:30:88 [INFO] [stdout] | [INFO] [stdout] 30 | fn next_n<'buf>(&mut self, buf: &'buf mut [u8]) -> Result<&'buf [u8], Self::Error> { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 31 | | if self.index >= self.slice.len() { [INFO] [stdout] 32 | | return Ok(&[]); [INFO] [stdout] ... | [INFO] [stdout] 37 | | Ok(&buf[..end]) [INFO] [stdout] 38 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | return Ok(&[]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | Ok(&buf[..end]) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:40:66 [INFO] [stdout] | [INFO] [stdout] 40 | fn skip_n(&mut self, n: usize) -> Result { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 41 | | self.index += n; [INFO] [stdout] 42 | | Ok(self.index) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(self.index) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:158:88 [INFO] [stdout] | [INFO] [stdout] 158 | fn next_n<'buf>(&mut self, buf: &'buf mut [u8]) -> Result<&'buf [u8], Self::Error> { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 159 | | Ok(self.next_bytes(buf)) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | Ok(self.next_bytes(buf)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:162:66 [INFO] [stdout] | [INFO] [stdout] 162 | fn skip_n(&mut self, n: usize) -> Result { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 163 | | self.advance_indices_by(n); [INFO] [stdout] 164 | | Ok(n) [INFO] [stdout] 165 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | Ok(n) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:290:88 [INFO] [stdout] | [INFO] [stdout] 290 | fn next_n<'buf>(&mut self, buf: &'buf mut [u8]) -> Result<&'buf [u8], Self::Error> { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 291 | | let mut i = 0usize; [INFO] [stdout] 292 | | while i < buf.len() { [INFO] [stdout] 293 | | match self.iterator.next() { [INFO] [stdout] ... | [INFO] [stdout] 303 | | Ok(&buf[..i]) [INFO] [stdout] 304 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:298:28 [INFO] [stdout] | [INFO] [stdout] 298 | return Ok(&buf[..i]); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | Ok(&buf[..i]) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:306:66 [INFO] [stdout] | [INFO] [stdout] 306 | fn skip_n(&mut self, n: usize) -> Result { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 307 | | for i in 0..n { [INFO] [stdout] 308 | | if let None = self.iterator.next() { [INFO] [stdout] 309 | | return Ok(i); [INFO] [stdout] ... | [INFO] [stdout] 312 | | Ok(n) [INFO] [stdout] 313 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:309:24 [INFO] [stdout] | [INFO] [stdout] 309 | return Ok(i); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | Ok(n) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:350:88 [INFO] [stdout] | [INFO] [stdout] 350 | fn next_n<'buf>(&mut self, buf: &'buf mut [u8]) -> Result<&'buf [u8], Self::Error> { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 351 | | let mut i = 0usize; [INFO] [stdout] 352 | | while i < buf.len() { [INFO] [stdout] 353 | | if let Some(b) = self.next_byte() { [INFO] [stdout] ... | [INFO] [stdout] 360 | | Ok(&buf[..i]) [INFO] [stdout] 361 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:357:24 [INFO] [stdout] | [INFO] [stdout] 357 | return Ok(&buf[..i]); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | Ok(&buf[..i]) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:363:66 [INFO] [stdout] | [INFO] [stdout] 363 | fn skip_n(&mut self, n: usize) -> Result { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 364 | | for _ in 0..n { [INFO] [stdout] 365 | | if self.next_byte().is_none() { [INFO] [stdout] 366 | | return Ok(n); [INFO] [stdout] ... | [INFO] [stdout] 369 | | Ok(n) [INFO] [stdout] 370 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:366:24 [INFO] [stdout] | [INFO] [stdout] 366 | return Ok(n); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | Ok(n) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:402:82 [INFO] [stdout] | [INFO] [stdout] 402 | fn next_n<'a>(&mut self, buf: &'a mut [u8]) -> Result<&'a [u8], Self::Error> { [INFO] [stdout] | __________________________________________________________________________________^ [INFO] [stdout] 403 | | let mut i = 0; [INFO] [stdout] 404 | | while i < buf.len() { [INFO] [stdout] 405 | | match self.next() { [INFO] [stdout] ... | [INFO] [stdout] 415 | | Ok(&buf[..i]) [INFO] [stdout] 416 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&[u8], Infallible> [INFO] [stdout] --> src/reader.rs:415:9 [INFO] [stdout] | [INFO] [stdout] 415 | Ok(&buf[..i]) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:418:66 [INFO] [stdout] | [INFO] [stdout] 418 | fn skip_n(&mut self, n: usize) -> Result { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 419 | | for i in 0..n { [INFO] [stdout] 420 | | match self.next() { [INFO] [stdout] 421 | | Some(_) => {} [INFO] [stdout] ... | [INFO] [stdout] 427 | | Ok(n) [INFO] [stdout] 428 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:423:28 [INFO] [stdout] | [INFO] [stdout] 423 | return Ok(i); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/reader.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 427 | Ok(n) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/writer.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | r.unwrap() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/writer.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | r.unwrap() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/writer.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | r.unwrap() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/writer.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | r.unwrap() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hxd` (lib) due to 30 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "090a298551240826906fbc0de45049da221d49d2c134f1e4faa2cfa58a872b34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "090a298551240826906fbc0de45049da221d49d2c134f1e4faa2cfa58a872b34", kill_on_drop: false }` [INFO] [stdout] 090a298551240826906fbc0de45049da221d49d2c134f1e4faa2cfa58a872b34