Description
The rust compiler is throwing errors on the latest macOS image on dead code detected.
error: struct `ClipboardWorkspace` is never constructed
Error: --> data/core/src/clipboard/types.rs:14:8
|
14 | struct ClipboardWorkspace {
| ^^^^^^^^^^^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
On the previous image it was silently ignored as expected.
On the same codebase, the different runners are behaving differently.
Platforms affected
Runner images affected
Image version and build link
The working runner:
https://github.com/actions/runner-images/blob/macos-15-arm64/20250911.2324/images/macos/macos-15-arm64-Readme.md
The broken runner:
https://github.com/actions/runner-images/blob/macos-15-arm64/20250916.2338/images/macos/macos-15-arm64-Readme.md
Is it regression?
20250916.2338
Expected behavior
I would expect the same, default behaviour from Rust compiler to not be that strict and not throw an error on dead code, like before.
Actual behavior
Rust compiler is throwing an error causing build failures on the latest image
Repro steps
Compile a Rust code with dead code on the latest runner.
Description
The rust compiler is throwing errors on the latest macOS image on dead code detected.
On the previous image it was silently ignored as expected.
On the same codebase, the different runners are behaving differently.
Platforms affected
Runner images affected
Image version and build link
The working runner:
https://github.com/actions/runner-images/blob/macos-15-arm64/20250911.2324/images/macos/macos-15-arm64-Readme.md
The broken runner:
https://github.com/actions/runner-images/blob/macos-15-arm64/20250916.2338/images/macos/macos-15-arm64-Readme.md
Is it regression?
20250916.2338
Expected behavior
I would expect the same, default behaviour from Rust compiler to not be that strict and not throw an error on dead code, like before.
Actual behavior
Rust compiler is throwing an error causing build failures on the latest image
Repro steps
Compile a Rust code with dead code on the latest runner.