GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 26, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

#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.

All reactions
Felix added 4 commits November 26, 2026 09:19
Felix
style(id): clear assert_is_empty sites, drop lint allows (#803 slice)
08d124f
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.
Felix
fix(id): add test-module lint allows missing in four files (#803 slice)
041fcf6
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.
Felix
style(id): rustfmt wraps + correct compensations_required element type (
df63490
#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).
Felix
Merge remote-tracking branch 'origin/main' into felix/803-clippy-id-root
4dd7628
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

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:

  • Trigger review
  • 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 26, 2026
id phase-8: P8.8 clippy/lint sweep deferred — ~150 clippy warnings remain with no tracking issue #803
Closed
@developing-today-fleet
developing-today-fleet Bot merged commit 1133f4f into main Nov 26, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot deleted the felix/803-clippy-id-root branch November 26, 2026 10:41
developing-today-fleet Bot pushed a commit that referenced this pull request Nov 26, 2026
Felix
#803 final slice: rewrite the remaining assert_is_empty sites (15 cen…
100456f
…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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

0 participants

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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.