Skip to content

macOS 15 arm64 20250912.392 Image - Rust configuration has changed #13041

@grzegorzkrukowski

Description

@grzegorzkrukowski

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

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • macOS 26 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

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.

Metadata

Metadata

Assignees

Labels

Area: RustOS: macOSbug reportinvestigateCollect additional information, like space on disk, other tool incompatibilities etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions