Skip to content

feat: loom support#2

Merged
Berrysoft merged 2 commits intomasterfrom
feat/loom
Apr 8, 2026
Merged

feat: loom support#2
Berrysoft merged 2 commits intomasterfrom
feat/loom

Conversation

@George-Miao
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 7, 2026 23:45
@George-Miao George-Miao self-assigned this Apr 7, 2026
@George-Miao George-Miao requested a review from Berrysoft April 7, 2026 23:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Loom-aware thread-id tracking so SendWrapper can be model-checked under cfg(loom) while preserving the existing current_thread_id (nightly) fast-path.

Changes:

  • Switches thread-id selection logic to a cfg_if! block with a cfg(loom) branch.
  • Adds cfg-if and a cfg(loom)-scoped dependency on loom, plus a lint allowlist for cfg(loom).
  • Updates .gitignore to ignore Zed editor config.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/lib.rs Introduces cfg(loom) branch for thread-id acquisition and refactors conditional imports/definitions.
Cargo.toml Adds cfg-if, conditional loom dependency, and unexpected_cfgs lint config for cfg(loom).
.gitignore Ignores .zed/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@Berrysoft Berrysoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge loom and else?

@George-Miao George-Miao requested a review from Berrysoft April 8, 2026 02:18
@Berrysoft Berrysoft merged commit 6cfea0e into master Apr 8, 2026
1 check passed
@Berrysoft Berrysoft deleted the feat/loom branch April 8, 2026 03:13
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.

3 participants