[INFO] cloning repository https://github.com/veqox/gravitas-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/veqox/gravitas-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fveqox%2Fgravitas-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fveqox%2Fgravitas-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d0aa5b7b51708b46617f4174af7c798f5af6cbb4 [INFO] checking veqox/gravitas-rs against try#2c4819a380dbddb1f2a0f4405a49fb6ed90983ae for pr-152996 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fveqox%2Fgravitas-rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/veqox/gravitas-rs [INFO] finished tweaking git repo https://github.com/veqox/gravitas-rs [INFO] tweaked toml for git repo https://github.com/veqox/gravitas-rs written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/veqox/gravitas-rs on toolchain 2c4819a380dbddb1f2a0f4405a49fb6ed90983ae [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/veqox/gravitas-rs 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" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 78cf8d375eb1952ae5d91f9225abfe68ac1f4eb405ec6013c4bb08c784959aae [INFO] running `Command { std: "docker" "start" "-a" "78cf8d375eb1952ae5d91f9225abfe68ac1f4eb405ec6013c4bb08c784959aae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "78cf8d375eb1952ae5d91f9225abfe68ac1f4eb405ec6013c4bb08c784959aae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78cf8d375eb1952ae5d91f9225abfe68ac1f4eb405ec6013c4bb08c784959aae", kill_on_drop: false }` [INFO] [stdout] 78cf8d375eb1952ae5d91f9225abfe68ac1f4eb405ec6013c4bb08c784959aae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 521c400e4208d3e850573e7b41546fc8dda6ac0a33c31e441c3e3ec0959957b4 [INFO] running `Command { std: "docker" "start" "-a" "521c400e4208d3e850573e7b41546fc8dda6ac0a33c31e441c3e3ec0959957b4", kill_on_drop: false }` [INFO] [stderr] Checking jiff v0.2.14 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking dns v0.1.0 (/opt/rustwide/workdir/crates/dns) [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stdout] warning: unused imports: `class::Class` and `r#type::Type` [INFO] [stdout] --> crates/dns/src/packet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | class::Class, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | r#type::Type, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f64::NAN` [INFO] [stdout] --> crates/dns/src/question.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::NAN, fmt::Debug}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> crates/dns/src/question.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | class::{self, Class}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `class::Class` and `r#type::Type` [INFO] [stdout] --> crates/dns/src/packet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | class::Class, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | r#type::Type, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f64::NAN` [INFO] [stdout] --> crates/dns/src/question.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::NAN, fmt::Debug}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> crates/dns/src/question.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | class::{self, Class}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> crates/dns/src/packet.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn add_answer(&mut self, answer: Record) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer_start` [INFO] [stdout] --> crates/dns/src/packet.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let answer_start = [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buf` is never read [INFO] [stdout] --> crates/dns/src/packet.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Packet<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 17 | buf: &'a mut [u8; 4096], [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Packet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_bytes` is never used [INFO] [stdout] --> crates/dns/src/proto/decoder.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Decoder<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn read_bytes(&mut self, len: usize) -> Result<&'a [u8], CodecError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Encode` is never used [INFO] [stdout] --> crates/dns/src/proto/encoder.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Encode<'a>: Sized { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Encoder` is never constructed [INFO] [stdout] --> crates/dns/src/proto/encoder.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Encoder<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> crates/dns/src/proto/encoder.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Encoder<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(buf: &'a mut [u8; 4096]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn remaining(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn position(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn write_u32(&mut self, value: u32) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn write_u16(&mut self, value: u16) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn write_u8(&mut self, value: u8) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn copy_within(&mut self, start: usize, len: usize) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> crates/dns/src/record.rs:171:8 [INFO] [stdout] | [INFO] [stdout] 170 | impl<'a> RecordData { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 171 | fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> crates/dns/src/packet.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn add_answer(&mut self, answer: Record) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer_start` [INFO] [stdout] --> crates/dns/src/packet.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let answer_start = [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buf` is never read [INFO] [stdout] --> crates/dns/src/packet.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Packet<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 17 | buf: &'a mut [u8; 4096], [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Packet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_bytes` is never used [INFO] [stdout] --> crates/dns/src/proto/decoder.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Decoder<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn read_bytes(&mut self, len: usize) -> Result<&'a [u8], CodecError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Encode` is never used [INFO] [stdout] --> crates/dns/src/proto/encoder.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Encode<'a>: Sized { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Encoder` is never constructed [INFO] [stdout] --> crates/dns/src/proto/encoder.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Encoder<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> crates/dns/src/proto/encoder.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> Encoder<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(buf: &'a mut [u8; 4096]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn remaining(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn position(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn write_u32(&mut self, value: u32) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn write_u16(&mut self, value: u16) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn write_u8(&mut self, value: u8) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn copy_within(&mut self, start: usize, len: usize) -> Result<(), CodecError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> crates/dns/src/record.rs:171:8 [INFO] [stdout] | [INFO] [stdout] 170 | impl<'a> RecordData { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 171 | fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking gravitas v0.1.0 (/opt/rustwide/workdir/crates/gravitas) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/gravitas/src/main.rs:44:45 [INFO] [stdout] | [INFO] [stdout] 44 | let packet = match Packet::from_buf(&buf[..len]) { [INFO] [stdout] | ---------------- ^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut [u8; 4096]` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> crates/dns/src/packet.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from_buf(buf: &'a mut [u8; 4096]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/gravitas/src/main.rs:44:45 [INFO] [stdout] | [INFO] [stdout] 44 | let packet = match Packet::from_buf(&buf[..len]) { [INFO] [stdout] | ---------------- ^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut [u8; 4096]` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> crates/dns/src/packet.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from_buf(buf: &'a mut [u8; 4096]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_to` found for struct `Packet<'a>` in the current scope [INFO] [stdout] --> crates/gravitas/src/main.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | let len = response.write_to(&mut buf).unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `Packet<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_to` found for struct `Packet<'a>` in the current scope [INFO] [stdout] --> crates/gravitas/src/main.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | let len = response.write_to(&mut buf).unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `Packet<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gravitas` (bin "gravitas") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `gravitas` (bin "gravitas" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "521c400e4208d3e850573e7b41546fc8dda6ac0a33c31e441c3e3ec0959957b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "521c400e4208d3e850573e7b41546fc8dda6ac0a33c31e441c3e3ec0959957b4", kill_on_drop: false }` [INFO] [stdout] 521c400e4208d3e850573e7b41546fc8dda6ac0a33c31e441c3e3ec0959957b4