Skip to content

chore(lint): unreachable! is no longer used, even in tests - #716

Draft
PiquelChips wants to merge 1 commit into
mainfrom
chore/clippy-unreachable
Draft

PiquelChips wants to merge 1 commit into
mainfrom
chore/clippy-unreachable

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

What and why

Turns on clippy::unreachable: unreachable! is an assertion the compiler can't check, so production code should make the case impossible in the types instead. The workspace has no such site outside tests. Both test sites are fixed: a federation test helper's let … else now panics with its message, and the SDK vector test's key lookup finds the key from a table with .expect, which drops the catch-all arm.

No #[expect] was needed.

Testing

cargo clippy --workspace --all-targets -- -D warnings passes; the SDK vectors test passes.

Note

Written by Claude Sonnet 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant