Skip to content

Deny clippy::should_panic_without_expect - #2648

Merged
LucaCappelletti94 merged 1 commit into
mainfrom
deny-should-panic-without-expect
Oct 16, 2026
Merged

LucaCappelletti94 merged 1 commit into
mainfrom
deny-should-panic-without-expect

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

Denies clippy::should_panic_without_expect, which flags a #[should_panic] without an expected message. Such a test passes on any panic, including one unrelated to what it checks. Both existing #[should_panic] tests already name their message, so nothing else changes.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.22%. Comparing base (c62f01d) to head (5f12406).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2648   +/-   ##
=======================================
  Coverage   81.22%   81.22%           
=======================================
  Files          42       42           
  Lines       33914    33914           
  Branches    33914    33914           
=======================================
  Hits        27547    27547           
  Misses       2793     2793           
  Partials     3574     3574           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LucaCappelletti94

Copy link
Copy Markdown
Contributor Author

Will go ahead and merge this one.

cc @alamb @iffyio

@LucaCappelletti94
LucaCappelletti94 added this pull request to the merge queue Oct 16, 2026
Merged via the queue into main with commit 7d34c89 Oct 16, 2026
14 checks passed
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.

2 participants