[INFO] fetching crate generic-container 0.2.2... [INFO] checking generic-container-0.2.2 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate generic-container 0.2.2 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate generic-container 0.2.2 [INFO] finished tweaking crates.io crate generic-container 0.2.2 [INFO] tweaked toml for crates.io crate generic-container 0.2.2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate generic-container 0.2.2 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 generic-container 0.2.2 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 56aaf7e65a34e51bd35f736b4a29fbe038cd79bf7fd3741033416b18999ea7ac [INFO] running `Command { std: "docker" "start" "-a" "56aaf7e65a34e51bd35f736b4a29fbe038cd79bf7fd3741033416b18999ea7ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56aaf7e65a34e51bd35f736b4a29fbe038cd79bf7fd3741033416b18999ea7ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56aaf7e65a34e51bd35f736b4a29fbe038cd79bf7fd3741033416b18999ea7ac", kill_on_drop: false }` [INFO] [stdout] 56aaf7e65a34e51bd35f736b4a29fbe038cd79bf7fd3741033416b18999ea7ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] a37463f433b6fb7b84213484824ea765e30e70bf2f4d11d6da734208c04a4aee [INFO] running `Command { std: "docker" "start" "-a" "a37463f433b6fb7b84213484824ea765e30e70bf2f4d11d6da734208c04a4aee", kill_on_drop: false }` [INFO] [stderr] Checking generic-container v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stdout] error: this type will no longer be must used: Result<&T, Infallible> [INFO] [stdout] --> src/impls/t_itself.rs:26:68 [INFO] [stdout] | [INFO] [stdout] 26 | fn try_get_ref(&self) -> Result, Self::RefError> { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 27 | | Ok(self) [INFO] [stdout] 28 | | } [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<&T, Infallible> [INFO] [stdout] --> src/impls/t_itself.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | Ok(self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&mut T, Infallible> [INFO] [stdout] --> src/impls/t_itself.rs:49:78 [INFO] [stdout] | [INFO] [stdout] 49 | fn try_get_mut(&mut self) -> Result, Self::RefMutError> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 50 | | Ok(self) [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&mut T, Infallible> [INFO] [stdout] --> src/impls/t_itself.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | Ok(self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&T, Infallible> [INFO] [stdout] --> src/impls/box_container.rs:27:68 [INFO] [stdout] | [INFO] [stdout] 27 | fn try_get_ref(&self) -> Result, Self::RefError> { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 28 | | Ok(self) [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&T, Infallible> [INFO] [stdout] --> src/impls/box_container.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&mut T, Infallible> [INFO] [stdout] --> src/impls/box_container.rs:50:78 [INFO] [stdout] | [INFO] [stdout] 50 | fn try_get_mut(&mut self) -> Result, Self::RefMutError> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 51 | | Ok(self) [INFO] [stdout] 52 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&mut T, Infallible> [INFO] [stdout] --> src/impls/box_container.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | Ok(self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&T, Infallible> [INFO] [stdout] --> src/impls/rc.rs:26:68 [INFO] [stdout] | [INFO] [stdout] 26 | fn try_get_ref(&self) -> Result, Self::RefError> { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 27 | | Ok(self) [INFO] [stdout] 28 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&T, Infallible> [INFO] [stdout] --> src/impls/rc.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | Ok(self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&T, Infallible> [INFO] [stdout] --> src/impls/arc.rs:26:68 [INFO] [stdout] | [INFO] [stdout] 26 | fn try_get_ref(&self) -> Result, Self::RefError> { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 27 | | Ok(self) [INFO] [stdout] 28 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&T, Infallible> [INFO] [stdout] --> src/impls/arc.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | Ok(self) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/impls/rc_refcell.rs:34:68 [INFO] [stdout] | [INFO] [stdout] 34 | fn try_get_ref(&self) -> Result, Self::RefError> { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 35 | | Ok(self.borrow()) [INFO] [stdout] 36 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/impls/rc_refcell.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | Ok(self.borrow()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/impls/rc_refcell.rs:65:78 [INFO] [stdout] | [INFO] [stdout] 65 | fn try_get_mut(&mut self) -> Result, Self::RefMutError> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 66 | | Ok(self.borrow_mut()) [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/impls/rc_refcell.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | Ok(self.borrow_mut()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this type continue be must used: Result, Infallible> [INFO] [stdout] --> src/impls/arc_rwlock.rs:42:68 [INFO] [stdout] | [INFO] [stdout] 42 | fn try_get_ref(&self) -> Result, Self::RefError> { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 43 | | Ok(self.read().panic_if_poisoned()) [INFO] [stdout] 44 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mustuse_in_always_ok)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this type continue be must used: Result, Infallible> [INFO] [stdout] --> src/impls/arc_rwlock.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | Ok(self.read().panic_if_poisoned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this type continue be must used: Result, Infallible> [INFO] [stdout] --> src/impls/arc_rwlock.rs:79:78 [INFO] [stdout] | [INFO] [stdout] 79 | fn try_get_mut(&mut self) -> Result, Self::RefMutError> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 80 | | Ok(self.write().panic_if_poisoned()) [INFO] [stdout] 81 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this type continue be must used: Result, Infallible> [INFO] [stdout] --> src/impls/arc_rwlock.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | Ok(self.write().panic_if_poisoned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this type continue be must used: Result, Infallible> [INFO] [stdout] --> src/impls/arc_mutex.rs:42:68 [INFO] [stdout] | [INFO] [stdout] 42 | fn try_get_ref(&self) -> Result, Self::RefError> { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 43 | | Ok(self.lock().panic_if_poisoned()) [INFO] [stdout] 44 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this type continue be must used: Result, Infallible> [INFO] [stdout] --> src/impls/arc_mutex.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | Ok(self.lock().panic_if_poisoned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this type continue be must used: Result, Infallible> [INFO] [stdout] --> src/impls/arc_mutex.rs:79:78 [INFO] [stdout] | [INFO] [stdout] 79 | fn try_get_mut(&mut self) -> Result, Self::RefMutError> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 80 | | Ok(self.lock().panic_if_poisoned()) [INFO] [stdout] 81 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this type continue be must used: Result, Infallible> [INFO] [stdout] --> src/impls/arc_mutex.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | Ok(self.lock().panic_if_poisoned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `generic-container` (lib) due to 16 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "a37463f433b6fb7b84213484824ea765e30e70bf2f4d11d6da734208c04a4aee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a37463f433b6fb7b84213484824ea765e30e70bf2f4d11d6da734208c04a4aee", kill_on_drop: false }` [INFO] [stdout] a37463f433b6fb7b84213484824ea765e30e70bf2f4d11d6da734208c04a4aee