GeezerVison is showing github.com — style(id): clear assert_is_empty sites, drop lint allows (#803 slice) by developing-today-fleet[bot] · Pull Request #15535 · developing-today/code
Conversation
#803 slice: id root crate (package id)
Clears both Rust 1.99 lints for the root package only — clippy::assert_is_empty and clippy::chunks_exact_to_as_chunks — following merged slices #15400, #15403, #15412, #15491 (and #15522 for id-store, which landed while this ran). The root package's allows live in pkgs/id/Cargo.toml's own [lints.clippy] table (there is no [workspace.lints]; every member crate carries its own table, untouched here).
Census / negative control (both headlines counted)
Throwaway branch with only the allows dropped, no conversions (fleet run 45787397556, branch deleted after): exactly 107 clippy::assert_is_empty diagnostics at 107 unique spans and 1 clippy::chunks_exact_to_as_chunks diagnostic. The census counts both lint headlines (positive "is empty" and negated "is not empty"): 6 of the 107 are negated (didit/tests.rs, cli_integration.rs, config_invariants.rs, conformance.rs, crash/main.rs, and a debug_assert! in collab_live_stream_poc.rs). Candidates that do not trigger the lint were left alone: message-carrying asserts, compound && predicates, prop_assert!, and is_empty() on non-collection types (SubscriptionStore, WaitingPool, the ordered-stream type).
Changes
- 107 assert sites converted across 33 files: positive →
assert_eq!(x, [] as [Elem; 0]), negated → assert_ne! / debug_assert_ne!, in the established pattern (in-scope short type names; *expr deref for &Vec receivers per the id-web slice).
- 1 chunks_exact site (
examples/session_checkpoint_poc.rs) → as_chunks::<64>().0 (the message is padded to a multiple of 64 first, so the remainder is empty; same shape as src/hosted_export.rs).
pkgs/id/Cargo.toml: both lint allows and their stale P8.8 TODO comment removed.
- Flagged scope addition: the crate denies
unwrap_used/expect_used/panic, and four test targets lacked the allow every sibling module carries — census run 45790258915 located 93 diagnostics (39 unwrap_used + 54 expect_used unique spans) in the tests modules of src/currency/gateway_poc.rs and src/hosted_world_partition.rs and in tests/bridge_fixtures.rs / tests/stress_gen_recovery.rs. Added the sibling-pattern allow attribute in those four places; no test code changed. Without this the root crate's clippy gate cannot pass at all.
Verification (remote, fleet-command on developing-today/fleet)
- First pass (run 45791348241): rustfmt wraps + one E0277 (
config_rollout's compensations_required is Vec<String>, not Vec<ExternalEffect>) — both fixed.
- Final run 45799506140 on this head (after merging current main):
cargo fmt -p id -- --check → FMT_RC=0; cargo clippy -p id --all-targets with both lints at -D → CLIPPY_RC=0; cargo test -p id → TEST_RC=0, 1658 passed / 0 failed / 6 ignored across 94 test binaries.
No new dependencies. rust-toolchain.toml untouched.
Refs #803
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-26T10:41:00Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "4291c7d25d6699e6d0378dcce687f1935ec39c09"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Convert all 107 clippy::assert_is_empty sites in the root id package
(73 positive assert_eq!, plus negated assert_ne!/debug_assert_ne! forms)
to the assert_eq!(x, [] as [Elem; 0]) pattern used by the earlier #803
slices, convert the one clippy::chunks_exact_to_as_chunks site in
examples/session_checkpoint_poc.rs to as_chunks, and drop both lint
allows (with their stale P8.8 TODO comment) from pkgs/id/Cargo.toml.
Census/negative control: fleet run 45787397556 on a throwaway branch
with only the allows dropped reproduced exactly 107 assert_is_empty
diagnostics (107 unique spans) and 1 chunks_exact diagnostic.
The root package denies clippy::unwrap_used/expect_used/panic, and four
test targets lacked the allow the rest of the crate carries: the tests
modules of currency/gateway_poc.rs and hosted_world_partition.rs, and
the test files tests/bridge_fixtures.rs and tests/stress_gen_recovery.rs
(93 diagnostics between them). Without these the crate clippy gate
cannot pass regardless of the assert_is_empty sweep. Sibling-pattern
fix only; no test code changed.
#803 slice)
cargo fmt wraps the longer assert_eq! conversions; no semantic change.
In tests/config_rollout.rs the compensations_required field is
Vec<String>, not Vec<ExternalEffect> (E0277 in the first verification
run 45791348241).
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
595baa32-6340-4e2d-a17b-6aaeae5dc511
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
developing-today-fleet Bot
pushed a commit
that referenced
this pull request
Nov 26, 2026
…sus sites + 3 post-census additions on current main)
assert!(x.is_empty()) -> assert_eq!(x, [] as [T; 0]) following the merged
slices (#15400/#15403/#15412/#15491/#15522/#15525/#15529/#15535).
Negative control (run 45831946171, current main, warning mode, JSON
counts): id-core 3 (social_object_contract.rs:346 + navigation.rs:1456,1488
— navigation.rs is a new file added after the census base), id-web 3
(collab.rs:4207,4358 + collab.rs:4058 added after the census base),
id-import-notion 5, id-caps 2, id-events 5. chunks_exact_to_as_chunks 0
everywhere. Also adds temporary census/gate/test scripts under
pkgs/id/census-803-final/ (verification only, removed before the PR).
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|