refactor(lading): annotate intentional-panic network generators#1899
Draft
goxberry wants to merge 1 commit into
Draft
refactor(lading): annotate intentional-panic network generators#1899goxberry wants to merge 1 commit into
goxberry wants to merge 1 commit into
Conversation
Attach fn-level #[expect(clippy::expect_used, reason = "...")] to the
construction and spin sites in the network protocol generators, plus
Cat-3 mechanical conversions for procfs path literals.
- generator/http.rs::{new, spin} (OnceCell + Semaphore)
- generator/grpc.rs::{new, connect} (target_uri parsing, FIXME on new)
- generator/splunk_hec.rs::{new, spin, send_hec_request} (FIXME on parse)
- generator/tcp.rs::new (FIXME: addr parsing)
- generator/procfs.rs (Cat-3 /proc paths)
- generator/kubernetes/resource.rs::get_name (set_name contract)
- generator/splunk_hec/acknowledgements.rs::send (ack-id contract)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This was referenced May 23, 2026
Contributor
Author
This was referenced May 23, 2026
|
This was referenced May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
Annotate intentional-panic
.expect()sites in the network protocol generators with fn-level#[expect(clippy::expect_used, reason = "...")]. Reasons distinguish documented-contract panics from user-input parsing failures (the latter carryFIXMEmarkers tracking eventual conversion toErrorvariants).Sites annotated:
Stacked on #1898. Part of the broader push toward enforcing
clippy::expect_used = "deny"workspace-wide.Test plan