Skip to content

chore(lint): forbid RefCell and Cell - #2721

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/chore/forbid-refcell/forbid-refcell-cell--c824647a
Oct 31, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/chore/forbid-refcell/forbid-refcell-cell--c824647a

Conversation

@tignear

@tignear tignear commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

State is owned and passed explicitly. clippy.toml now rejects
std::cell::RefCell and std::cell::Cell, so code takes &mut, returns
results, or keys caches by all their inputs instead of mutating shared
state behind shared references. No crate outside tests uses them any more.

Two exceptions are allowed with a reason: celox-vpi, whose callbacks
re-enter the layer from C while it holds the simulation, and the
analyzer's unit tests, whose thread-local work counters exist only in test
builds (non-test builds still enforce the ban).

State is owned and passed explicitly. `clippy.toml` now rejects
`std::cell::RefCell` and `std::cell::Cell`, so code takes `&mut`, returns
results, or keys caches by all their inputs instead of mutating shared
state behind shared references. No crate outside tests uses them any more.

Two exceptions are allowed with a reason: celox-vpi, whose callbacks
re-enter the layer from C while it holds the simulation, and the
analyzer's unit tests, whose thread-local work counters exist only in test
builds (non-test builds still enforce the ban).

Change-Id: Ic824647aa2413e8752452d50b5b7962110736993
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T10:36:06.660973Z b03b5dc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added merge-ready Request merging through Mergify after required checks and removed merge-ready Request merging through Mergify after required checks labels Oct 31, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 31, 2026
@mergify

mergify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as d7abfa7 at 11:17 UTC

Merged together with #2464. 12 min in the queue, 9 min of it CI.

So far

9 merge conditions met
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • check-success = Verify workflow lockfile
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Queue validation
    • check-neutral = @github-actions/Queue validation
    • check-skipped = @github-actions/Queue validation
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Verify workflow lockfile
    • check-neutral = @github-actions/Verify workflow lockfile
    • check-skipped = @github-actions/Verify workflow lockfile

Times in UTC · dashboard · how the merge queue works

@mergify
mergify Bot merged commit d7abfa7 into master Oct 31, 2026
28 checks passed
@mergify
mergify Bot deleted the stack/tignear/chore/forbid-refcell/forbid-refcell-cell--c824647a branch October 31, 2026 11:17
@mergify mergify Bot removed the queued Mergify queue entry label Oct 31, 2026
@github-actions github-actions Bot mentioned this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant