[INFO] cloning repository https://github.com/Sandell390/MQTT_Broker
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sandell390/MQTT_Broker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSandell390%2FMQTT_Broker", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSandell390%2FMQTT_Broker'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0d7b80c7e412d0d6e36f766beb4e316f26e4ae38
[INFO] testing Sandell390/MQTT_Broker against 1.97.0-beta.6 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSandell390%2FMQTT_Broker" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Sandell390/MQTT_Broker
[INFO] finished tweaking git repo https://github.com/Sandell390/MQTT_Broker
[INFO] tweaked toml for git repo https://github.com/Sandell390/MQTT_Broker written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Sandell390/MQTT_Broker on toolchain 1.97.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Sandell390/MQTT_Broker 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" "+1.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded neli v0.6.4
[INFO] [stderr]   Downloaded local-ip-address v0.5.7
[INFO] [stderr]   Downloaded neli-proc-macros v0.1.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5
[INFO] running `Command { std: "docker" "start" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.78
[INFO] [stderr]    Compiling serde v1.0.196
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling either v1.9.0
[INFO] [stderr]    Compiling thiserror v1.0.56
[INFO] [stderr]    Compiling log v0.4.20
[INFO] [stderr]    Compiling getrandom v0.2.12
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]    Compiling serde_derive v1.0.196
[INFO] [stderr]    Compiling thiserror-impl v1.0.56
[INFO] [stderr]    Compiling neli-proc-macros v0.1.3
[INFO] [stderr]    Compiling neli v0.6.4
[INFO] [stderr]    Compiling local-ip-address v0.5.7
[INFO] [stderr]    Compiling mqtt_broker v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `has_received_pubrec` is never read
[INFO] [stdout]    --> src/control_packet/publish.rs:496:33
[INFO] [stdout]     |
[INFO] [stdout] 496 | ...                   has_received_pubrec = true;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `has_received_pubcomp` is never read
[INFO] [stdout]    --> src/control_packet/publish.rs:546:33
[INFO] [stdout]     |
[INFO] [stdout] 546 | ...                   has_received_pubcomp = true;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `packet_id` is never read
[INFO] [stdout]  --> src/models/sub_info.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct SubInfo {
[INFO] [stdout]   |            ------- field in this struct
[INFO] [stdout] 2 |     pub packet_id: u16,
[INFO] [stdout]   |         ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `timestamp_sent`, `publish_packet`, `qos_level`, and `flow_direction` are never read
[INFO] [stdout]   --> src/models/publish_queue_item.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct PublishQueueItem {
[INFO] [stdout]    |            ---------------- fields in this struct
[INFO] [stdout] 25 |     pub packet_id: usize,
[INFO] [stdout] 26 |     pub timestamp_sent: Instant,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 27 |     pub publish_packet: Vec<u8>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 28 |     pub state: PublishItemState,
[INFO] [stdout] 29 |     pub qos_level: u8,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 30 |     pub flow_direction: PublishItemDirection,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PublishQueueItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.27s
[INFO] running `Command { std: "docker" "inspect" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling mqtt_broker v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `has_received_pubrec` is never read
[INFO] [stdout]    --> src/control_packet/publish.rs:496:33
[INFO] [stdout]     |
[INFO] [stdout] 496 | ...                   has_received_pubrec = true;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `has_received_pubcomp` is never read
[INFO] [stdout]    --> src/control_packet/publish.rs:546:33
[INFO] [stdout]     |
[INFO] [stdout] 546 | ...                   has_received_pubcomp = true;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `timestamp_sent`, `publish_packet`, `qos_level`, and `flow_direction` are never read
[INFO] [stdout]   --> src/models/publish_queue_item.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct PublishQueueItem {
[INFO] [stdout]    |            ---------------- fields in this struct
[INFO] [stdout] 25 |     pub packet_id: usize,
[INFO] [stdout] 26 |     pub timestamp_sent: Instant,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 27 |     pub publish_packet: Vec<u8>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 28 |     pub state: PublishItemState,
[INFO] [stdout] 29 |     pub qos_level: u8,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 30 |     pub flow_direction: PublishItemDirection,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PublishQueueItem` 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] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.29s
[INFO] running `Command { std: "docker" "inspect" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: value assigned to `has_received_pubrec` is never read
[INFO] [stderr]    --> src/control_packet/publish.rs:496:33
[INFO] [stderr]     |
[INFO] [stderr] 496 | ...                   has_received_pubrec = true;
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `has_received_pubcomp` is never read
[INFO] [stderr]    --> src/control_packet/publish.rs:546:33
[INFO] [stderr]     |
[INFO] [stderr] 546 | ...                   has_received_pubcomp = true;
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: fields `timestamp_sent`, `publish_packet`, `qos_level`, and `flow_direction` are never read
[INFO] [stderr]   --> src/models/publish_queue_item.rs:26:9
[INFO] [stderr]    |
[INFO] [stderr] 24 | pub struct PublishQueueItem {
[INFO] [stderr]    |            ---------------- fields in this struct
[INFO] [stderr] 25 |     pub packet_id: usize,
[INFO] [stderr] 26 |     pub timestamp_sent: Instant,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^
[INFO] [stderr] 27 |     pub publish_packet: Vec<u8>,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^
[INFO] [stderr] 28 |     pub state: PublishItemState,
[INFO] [stderr] 29 |     pub qos_level: u8,
[INFO] [stderr]    |         ^^^^^^^^^
[INFO] [stderr] 30 |     pub flow_direction: PublishItemDirection,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `PublishQueueItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `mqtt_broker` (bin "mqtt_broker" test) generated 3 warnings
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mqtt_broker-6c543161d386d315)
[INFO] [stdout] 
[INFO] [stdout] running 31 tests
[INFO] [stdout] test tests::common_fn_test::tests::test_get_values ... ok
[INFO] [stdout] test tests::common_fn_test::tests::test_decode_remaining_length ... ok
[INFO] [stdout] test tests::common_fn_test::tests::test_create_packet ... ok
[INFO] [stdout] test tests::common_fn_test::tests::test_split_into_msb_lsb ... ok
[INFO] [stdout] test tests::connect_test::tests::test_handle_invalid_packet_type ... ok
[INFO] [stdout] test tests::connect_test::tests::test_handle_invalid_protocol ... ok
[INFO] [stdout] test tests::connect_test::tests::test_handle_invalid_remaining_lenght ... ok
[INFO] [stdout] test tests::connect_test::tests::test_handle_reserved_flag ... ok
[INFO] [stdout] test tests::connect_test::tests::test_handle_valid_packet ... ok
[INFO] [stdout] test tests::disconnect_test::tests::test_handle_disconnect_packets ... ok
[INFO] [stdout] test tests::ping_test::ping_test::handle_lengthis3_returnserr ... ok
[INFO] [stdout] test tests::ping_test::ping_test::handle_bytearray3long_returnserr ... ok
[INFO] [stdout] test tests::ping_test::ping_test::handle_reservedbit1set_returnserr ... ok
[INFO] [stdout] test tests::ping_test::ping_test::handle_reservedbit0set_returnserr ... ok
[INFO] [stdout] test tests::ping_test::ping_test::handle_reservedbit2set_returnserr ... ok
[INFO] [stdout] test tests::ping_test::ping_test::handle_reservedbit3set_returnserr ... ok
[INFO] [stdout] test tests::ping_test::ping_test::handle_validping_returnsbytearray ... ok
[INFO] [stdout] test tests::publish_subscriber_test::tests::test_publish_to_client ... ok
[INFO] [stdout] test tests::topic_list_test::tests::test_add_client_to_topic_list ... ok
[INFO] [stdout] test tests::subscribe_test::tests::test_handle_subscribe_packet_invalid_qos ... ok
[INFO] [stdout] test tests::subscribe_test::tests::test_handle_subscribe_packet_multiple_topics ... ok
[INFO] [stdout] test tests::subscribe_test::tests::test_handle_subscribe_packet ... ok
[INFO] [stdout] test tests::topic_list_test::tests::test_remove_client_from_topic_list ... ok
[INFO] [stdout] test tests::unsubscribe_test::tests::test_handle_unsubscribe_packet_invalid_length ... ok
[INFO] [stdout] test tests::common_fn_test::tests::test_split_byte ... ok
[INFO] [stdout] test tests::unsubscribe_test::tests::test_handle_unsubscribe_packet ... ok
[INFO] [stdout] test tests::unsubscribe_test::tests::test_handle_unsubscribe_packet_multiple_topics ... ok
[INFO] [stdout] test tests::publish_publisher_test::tests::test_handle_qos_1_session ... ok
[INFO] [stdout] test tests::publish_subscriber_test::tests::test_publish_to_client_qos_1 ... ok
[INFO] [stdout] test tests::publish_publisher_test::tests::test_handle_qos_2_session ... ok
[INFO] [stdout] test tests::publish_subscriber_test::tests::test_publish_to_client_qos_2 ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 31 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.31s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5", kill_on_drop: false }`
[INFO] [stdout] 0302af1347cd9eefee3ceb984abeaf194c1df71a58abb1233e7cf6f09f415ec5
