Repository navigation
Call-graph reference: Rust via rust-analyzer SCIP on serde-rs/json (Part of #3785) - #6399
Merged
Merged
Conversation
…art of #3785) A rust entry in callgraph_refs.REFERENCES, rust_analyzer_contract / rust_analyzer_version in scip_callgraph.py (shared SCIP adapter), turbofish call detection and quoted-slice impl descriptors, fixture tests and docs. No baseline yet: no Rust toolchain on the authoring box. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 07:24
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 24, 2026 07:25
Owner
Author
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
…718Z # Conflicts: # docs/graph_accuracy.md
Owner
Author
|
CI shepherd: the head of this PR (6e799c1) is not the one a maintainer labelled |
squid-protocol
disabled auto-merge
October 24, 2026 07:43
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 24, 2026 07:46
Owner
Author
|
No description provided. |
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.
Part of #3785 (adapter slice; the baseline is not in this PR).
What
tests/tools/callgraph_refs.py:rustreference (rust-analyzer, SCIP, serde-rs/json fromtests/import_graph_corpus.json).tests/tools/scip_callgraph.py:rust_analyzer_contract(rust-analyzer scip <repo>into the sharedcontract_from_index),rust_analyzer_version(None without cargo + rust-analyzer, so other machines skip), a turbofishf::<T>(call is a call, and a bracket descriptor holding a quoted](impl#[[u8]]first().) parses whole.tests/tools/test_scip_callgraph.py: hand-built SCIP index: impl methods, trait default method, bodyless trait method (not a def, Call resolver (TypeScript): confident links land on bodyless signatures (interface / abstract / type members) instead of the code that runs #3757), turbofish, macro reference (no edge), fn used as a value (no edge), external call; plus the slice-type descriptor.docs/graph_accuracy.md: checks-table row and "What the Rust reference cannot see": serde-derive / macro-generated calls are a deliberate limit, not a defect.Class / Sibling gaps
Class: onboarding a language's compiler-resolved call-graph reference through the shared SCIP adapter (scip-java is the worked member; Rust is this one). Same-mechanism siblings are the other SCIP languages of #3783 and #3784; each is one registry entry plus a build function, none touched here. No burned mainframe estate needs any of them.
Remaining slices (this PR is at 4 hand-written files, but they need a Rust toolchain and workflow permission):
call_graph_resolution.py rust --regenerate, committests/call_graph_resolution_rust_baseline.json, hand-check about 10 samples each of wrong / external / unconfirmed, verify rust-analyzer emitsenclosing_rangeand the impl symbol shape, and confirm the 1.90.0 pin (it is my choice, not measured)..github/workflows/graph-accuracy-audit.ymlgate step + paths,.claude/hooks/session-start.shinstall (needsallow_workflows).docs/function_call_graph.mdnumbers once the baseline exists.Verification
pytest(plain, from /tmp): test_scip_callgraph, test_call_graph_resolution_gate, test_callgraph_tools, test_source_reads: 45 passed.pr_gates --fast7/7;audit_check.pyall clear.callgraph_check.py: gates java/javascript/typescript PASS, tests 358 passed;gate:rustandgate:pythonMISSING (tool not installed); crucible/tree-sitter steps FAIL locally on environment (not touched by this PR; crucible log: tiktoken cache).pr_gates --ratchets(no engine parsing change).🤖 Generated with Claude Code