Skip to content

fix(HUB-0000): import ResultExt only where the Windows debug layer probe uses it - #102

Merged
chris-addison merged 1 commit into
unity/hub-consolidatedfrom
fix/HUB-0000-windows-release-unused-import
Nov 14, 2026
Merged

chris-addison merged 1 commit into
unity/hub-consolidatedfrom
fix/HUB-0000-windows-release-unused-import

Conversation

@chris-addison

Copy link
Copy Markdown
Collaborator

Description

Fixes the Windows release build, which fails on an unused import since the GPU device-loss change (#98).

directx_devices.rs imported gpui_util::ResultExt at the top of the file, but its only caller (log_err in check_debug_layer_available) sits inside #[cfg(debug_assertions)]. Release builds saw an unused import, and the Hub builds with warnings denied, so every Windows release build of the Hub stopped compiling: the nightly signed release (both Windows legs) and the native Hub nightly's Windows jobs.

The import now lives inside the debug-only block, next to the other debug-only use.

Related Issues & Discussions

  • Unity-Technologies/unity-hub#19651 moves the Hub to this branch; it needs this commit before its Windows build is green.

Checklist

  • I used LLMs to write code or other text (either in the commits or in this pull request description).

AI use: Claude found the failing CI step and wrote the change and this description. Not built for Windows locally (no Windows resource compiler on the Mac); the Hub PR that takes this pin runs the Windows lanes.

…obe uses it

Release builds never call log_err, so the top-level import was unused and
the Hub's warnings-as-errors build failed on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chris-addison
chris-addison marked this pull request as ready for review November 14, 2026 14:42
@chris-addison
chris-addison merged commit 3ab3200 into unity/hub-consolidated Nov 14, 2026
16 checks passed
@chris-addison
chris-addison deleted the fix/HUB-0000-windows-release-unused-import branch November 14, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant