Repository navigation
Research exhaustiveness linters and profile the Rust build - #1866
Merged
Merged
Conversation
This was referenced Nov 9, 2026
Merged
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
Two research notes following the Go (#1835) and TypeScript (#1840) comparisons with the Rust binary. ADR-0001 is unchanged.
exhaustiveand typescript-eslint'sswitch-exhaustiveness-checkmake a new variant fail CI at every unhandled switch. That's roughly what Rust'smatchplusclippy::wildcard_enum_match_armgives here. Go'sexhaustivereproduces the prototype's 129-line custom checker. Rust still differs in three ways: its missing-case check is unconditional, its variants carry payloads, and safe code can't hold an invalid value. Go keeps the largest gap.devbuild takes 65.6 s on 4 vCPUs, and about 30 s of that waits onaws-lc-sys(rustls's C crypto). Thethirdshiftcrate itself takes 29 s.cargo checkaccounts for 2 s.Related: #1865 (derive the Console's OpenAPI response schemas from the Rust types), which came out of the same review.
Evidence
Execution evidence
Documentation only; no code or tests change.
exhaustivev0.17.1,go-check-sumtypev0.5.0, golangci-lint v2.15.0, ESLint 9.39.5 with typescript-eslint 8.72.2, andtsc5.9.3. They ran against scratch copies ofprototype/goandprototypes/typescript, including copies with a variant added (ciCancelled,closed). The note separates what was run from what was read in the cited sources.cargo build --locked --bin thirdshift --timingsfrom an empty target directory at6c26e8d9, in the Lima VM, then two edit-and-rebuild runs each withcargo buildandcargo check. Per-unit times come from the timing report'sUNIT_DATA.Merge Danger
Door: two-way
Blast Radius: none. Two new Markdown files under
docs/research/.