Skip to content

Add WorkerSend background spawn lint - #62640

Draft
miguelraz wants to merge 1 commit into
zed-industries:mainfrom
miguelraz:add-worker-send-background-spawn-lint
Draft

Add WorkerSend background spawn lint#62640
miguelraz wants to merge 1 commit into
zed-industries:mainfrom
miguelraz:add-worker-send-background-spawn-lint

Conversation

@miguelraz

Copy link
Copy Markdown
Contributor

Summary

  • add a Dylint for GPUI background tasks containing data that does not implement WorkerSend
  • emulate auto-trait behavior for closure captures, coroutine state, nested futures, and opaque futures
  • ignore call sites that are provably excluded from wasm and cover positive and negative cases with UI tests

Tests

  • cargo fmt --manifest-path tooling/lints/Cargo.toml --all -- --check
  • cargo +nightly-2026-03-21 test --manifest-path tooling/lints/Cargo.toml

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Aug 14, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Aug 14, 2026
@miguelraz
miguelraz marked this pull request as draft August 14, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant