You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(rp2040): clippy::large_futures on windows-msvc breaks full/windows Check #2049
full / windows / Check (windows-latest) fails on Clippy for every PR
branch carrying current main:
error: large future with a size of 32984 bytes
--> crates/fbuild-build-arm/src/rp2040/orchestrator.rs:174:20
|
174 | return super::mbed::build(params, ctx, start).await;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: consider `Box::pin` on it
= note: `-D clippy::large-futures` implied by `-D warnings`
error: could not compile `fbuild-build-arm` (lib) due to 1 previous error
Job 133918968688, run 44048154994, branch feat/ape-host-tools head aa4f35fc (main 9b0892fd merged in; that branch only touches fbuild-packages-fetch). Linux Check is green at the same commit: the BuildParams/BuildContext payload is larger under MSVC, so only
windows-msvc crosses clippy's large_futures threshold.
Cause
Rp2040Orchestrator::build (added by 2fc5739a feat(rp2040): build Arduino Mbed core without SDK substitution) hands pipeline::BuildContext::new
straight into super::mbed::build(...) and awaits it inline, so the whole mbed::build future is a 32,984-byte state machine under MSVC.
Reproduce locally only on a Windows toolchain; the cheapest proof is the full / windows / Check job on any PR.
Fix sketch
return Box::pin(super::mbed::build(params, ctx, start)).await; — clippy's own
suggestion, and the same pattern the workspace already uses on the staged_install/resolve_cached seams (Box::pin(...) for the same lint).
Alternatives that keep the fast path unboxed: move the BuildContext
construction into mbed::build so the orchestrator's future stays small, which
is the better shape if the box shows up in a profile.
Filed from the steward tick that resolved PR #1633's merge conflict; this is
the only thing keeping that branch's Windows cell red.
Activity