[INFO] fetching crate bqsp 0.5.1... [INFO] checking bqsp-0.5.1 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate bqsp 0.5.1 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate bqsp 0.5.1 [INFO] finished tweaking crates.io crate bqsp 0.5.1 [INFO] tweaked toml for crates.io crate bqsp 0.5.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate bqsp 0.5.1 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 3 packages to latest compatible versions [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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 8c6b23e0ebc63f844bfe331e82cc7b97be9511273a4f1d677ec185f431fc6f82 [INFO] running `Command { std: "docker" "start" "-a" "8c6b23e0ebc63f844bfe331e82cc7b97be9511273a4f1d677ec185f431fc6f82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c6b23e0ebc63f844bfe331e82cc7b97be9511273a4f1d677ec185f431fc6f82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c6b23e0ebc63f844bfe331e82cc7b97be9511273a4f1d677ec185f431fc6f82", kill_on_drop: false }` [INFO] [stdout] 8c6b23e0ebc63f844bfe331e82cc7b97be9511273a4f1d677ec185f431fc6f82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 3f30227e00e982abc2d9554a79ba466454ee053674d49d1d9eee1ffcf0294e1d [INFO] running `Command { std: "docker" "start" "-a" "3f30227e00e982abc2d9554a79ba466454ee053674d49d1d9eee1ffcf0294e1d", kill_on_drop: false }` [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking bqsp v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/deserializer.rs:36:86 [INFO] [stdout] | [INFO] [stdout] 36 | fn deserialize_box(data: BoxPack) -> Result where Self: Sized { [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 37 | | Ok(data.data.as_ref().to_vec()) [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, Infallible> [INFO] [stdout] --> src/deserializer.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | Ok(data.data.as_ref().to_vec()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/serializer.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | / { [INFO] [stdout] 42 | | Ok(BoxPack::new( [INFO] [stdout] 43 | | Data::from(self), [INFO] [stdout] 44 | | data_type, [INFO] [stdout] 45 | | queue [INFO] [stdout] 46 | | )) [INFO] [stdout] 47 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/serializer.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / Ok(BoxPack::new( [INFO] [stdout] 43 | | Data::from(self), [INFO] [stdout] 44 | | data_type, [INFO] [stdout] 45 | | queue [INFO] [stdout] 46 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/serializer.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | / { [INFO] [stdout] 56 | | Ok(BoxPack::new( [INFO] [stdout] 57 | | Data::from(self), [INFO] [stdout] 58 | | data_type, [INFO] [stdout] 59 | | queue [INFO] [stdout] 60 | | )) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/serializer.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | / Ok(BoxPack::new( [INFO] [stdout] 57 | | Data::from(self), [INFO] [stdout] 58 | | data_type, [INFO] [stdout] 59 | | queue [INFO] [stdout] 60 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `[u8; 4]` will be dropped [INFO] [stdout] --> src/syntatic/header.rs:81:58 [INFO] [stdout] | [INFO] [stdout] 81 | let data_size_ptr = self.data_size.to_le_bytes().as_ptr(); [INFO] [stdout] | ---------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `[u8; 4]` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `[u8; 4]` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: you must make sure that the variable you bind the `[u8; 4]` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `[u8; 4]` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `[u8; 2]` will be dropped [INFO] [stdout] --> src/syntatic/header.rs:82:58 [INFO] [stdout] | [INFO] [stdout] 82 | let data_type_ptr = self.data_type.to_le_bytes().as_ptr(); [INFO] [stdout] | ---------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `[u8; 2]` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `[u8; 2]` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: you must make sure that the variable you bind the `[u8; 2]` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `[u8; 2]` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `[u8; 1]` will be dropped [INFO] [stdout] --> src/syntatic/header.rs:83:50 [INFO] [stdout] | [INFO] [stdout] 83 | let queue_ptr = self.queue.to_le_bytes().as_ptr(); [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `[u8; 1]` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `[u8; 1]` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: you must make sure that the variable you bind the `[u8; 1]` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `[u8; 1]` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/deserializer.rs:36:86 [INFO] [stdout] | [INFO] [stdout] 36 | fn deserialize_box(data: BoxPack) -> Result where Self: Sized { [INFO] [stdout] | ______________________________________________________________________________________^ [INFO] [stdout] 37 | | Ok(data.data.as_ref().to_vec()) [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, Infallible> [INFO] [stdout] --> src/deserializer.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | Ok(data.data.as_ref().to_vec()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bqsp` (lib test) due to 6 previous errors; 3 warnings emitted [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/serializer.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | / { [INFO] [stdout] 42 | | Ok(BoxPack::new( [INFO] [stdout] 43 | | Data::from(self), [INFO] [stdout] 44 | | data_type, [INFO] [stdout] 45 | | queue [INFO] [stdout] 46 | | )) [INFO] [stdout] 47 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/serializer.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / Ok(BoxPack::new( [INFO] [stdout] 43 | | Data::from(self), [INFO] [stdout] 44 | | data_type, [INFO] [stdout] 45 | | queue [INFO] [stdout] 46 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/serializer.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | / { [INFO] [stdout] 56 | | Ok(BoxPack::new( [INFO] [stdout] 57 | | Data::from(self), [INFO] [stdout] 58 | | data_type, [INFO] [stdout] 59 | | queue [INFO] [stdout] 60 | | )) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/serializer.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | / Ok(BoxPack::new( [INFO] [stdout] 57 | | Data::from(self), [INFO] [stdout] 58 | | data_type, [INFO] [stdout] 59 | | queue [INFO] [stdout] 60 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `[u8; 4]` will be dropped [INFO] [stdout] --> src/syntatic/header.rs:81:58 [INFO] [stdout] | [INFO] [stdout] 81 | let data_size_ptr = self.data_size.to_le_bytes().as_ptr(); [INFO] [stdout] | ---------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `[u8; 4]` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `[u8; 4]` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: you must make sure that the variable you bind the `[u8; 4]` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `[u8; 4]` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `[u8; 2]` will be dropped [INFO] [stdout] --> src/syntatic/header.rs:82:58 [INFO] [stdout] | [INFO] [stdout] 82 | let data_type_ptr = self.data_type.to_le_bytes().as_ptr(); [INFO] [stdout] | ---------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `[u8; 2]` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `[u8; 2]` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: you must make sure that the variable you bind the `[u8; 2]` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `[u8; 2]` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `[u8; 1]` will be dropped [INFO] [stdout] --> src/syntatic/header.rs:83:50 [INFO] [stdout] | [INFO] [stdout] 83 | let queue_ptr = self.queue.to_le_bytes().as_ptr(); [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `[u8; 1]` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `[u8; 1]` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: you must make sure that the variable you bind the `[u8; 1]` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `[u8; 1]` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bqsp` (lib) due to 6 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3f30227e00e982abc2d9554a79ba466454ee053674d49d1d9eee1ffcf0294e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f30227e00e982abc2d9554a79ba466454ee053674d49d1d9eee1ffcf0294e1d", kill_on_drop: false }` [INFO] [stdout] 3f30227e00e982abc2d9554a79ba466454ee053674d49d1d9eee1ffcf0294e1d