Repository navigation
fix(rust): eliminate call-graph ledger FPs/FNs (tuple structs, deep match tuples, param & turbofish macros) - #8794
Closed
squid-protocol wants to merge 1 commit into
Closed
squid-protocol wants to merge 1 commit into
squid-protocol wants to merge 1 commit into
Conversation
…atch tuples, param & turbofish macros)
Contributor
Owner
Author
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
Consolidates all remaining actionable Rust call-graph comparison ledger fixes into a single PR:
rust/call/not-a-call-in-ts:struct_item<block, 3 FPs)\bstruct\s+(?P<pat>[^\W\d]\w*)in_blank_binding_patterns(gitgalaxy/standards/language_standards/languages/rust.py) sostruct QueryDataA(Entity, &'static A);,struct Newtype(bool);, andstruct Tuple(u32, bool);inside function bodies are not read as calls (C5).rust/call/not-a-call-in-ts:tuple_struct_pattern<tuple_pattern, 2 FPs)_ARM_PATTERNand_SELECT_ARM_PATTERN(rust.py) from 2 to 4 levels so arms like(Some((untagged_tokens, ())), Some((tag_tokens, _)), None) =>(serde_internals_attr.rs:decide_tag/decide_identifier) are blanked as patterns (C3).fnparameter lists (rust/call/macro_invocation/identifier, 4 FNs)_FN_PARAMSfull-span blanking with_blank_fn_params(rust.py), preservingToken![,]/syn::Token![+]macro calls inside parameter lists while continuing to blank parameter patterns (Foo(a): Foo) andFn(...)bounds.rust/call/engine-attributes-to-another-function, 1 FN)CALLS_OUT_RUST's suffix (gitgalaxy/standards/language_standards/_shared_patterns.py) to a positive lookahead ((?=...)) soinput.parse::<Token![+]>()?;(serde_internals_attr.rs:parse_lit_into_lifetimes) extracts bothparseandToken.(The remaining
token_tree<macro_invocation/token_tree<token_treecells are already validated as "GitGalaxy right" in the ledger because tree-sitter-rust leaves macro token trees opaque.)Golden Crucible Updates
tests/golden_master_auditandtests/golden_master_zero_dep_auditviacrucible_check.py --update --yesreflecting the eliminated Rust FPs and recoveredToken!macro calls.Verification
tests/extraction/languages/test_calls_out_rust_ledger.pycovering all four shapes plus ReDoS immunity onCALLS_OUT_RUSTand_ARM_PATTERN.pytest tests/extraction/languages/test_calls_out_rust_*.py(301 passed),tests/extraction/languages/test_calls_out_rust_ledger.py tests/extraction/languages/test_rust*.py(124 passed),ruff format --check,tests/ruff_audit.py --ci,tests/doc_refs_audit.py --ci, andpython tests/tools/call_graph_resolution.py rust --ci(passed: confident precision 98.3%, recall 81.5%, resolution recall 82.1%).