Skip to content

Rust macro invocations never resolve to a same-named fn; Rust fn def calls; Go generic instantiation calls (Part of #5634) - #5719

Merged
squid-protocol merged 4 commits into
mainfrom
churn/5634-20261019T1621Z
Oct 20, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/5634-20261019T1621Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5634

What changed

  • detector.py / call_resolver.py: a Rust name!(...) macro invocation is qualified as a macro and never resolves to a same-named fn.
  • _shared_patterns.py: per-language global-ignore exemptions so Rust def (a legitimate fn name) is no longer dropped as a keyword; CALLS_OUT_GO matches generic instantiation calls F[T](...).
  • Tests: tests/extraction/languages/test_calls_out_rust_go_5634.py (24 cases, one per shape).
  • Golden masters re-blessed via golden-lock.sh crucible_check.py --update --yes (both legs).

Real-port check (licensed DOOM ports, old scan vs this branch)

port old edges new removed added
gore (Go) 3309 3310 0 1 (w_CacheLumpNumT[*patch_t](...))
room4doom (Rust) 24891 24897 0 6 (def() inside vec![] x5, NSVisualEffectView::class())
rust-doom (Rust) 2042 2042 0 0

Each added edge was read in the source and is a real call. Old scans are the committed speedrun scans, so the comparison is old-engine vs this branch. I did not run callcheck_rustgo2.py as is, because it reads fixed old-scan paths.

Gates

pr_gates.py --fast: 6/6 pass (lint, audits, secrets, xray, gen-docs, gauntlet). New tests: 24 pass. Local ruff was 0.16.0 vs CI 0.16.10, but pr_gates used the cached 0.16.10.

Remaining slices / Sibling gaps

  • Not run: the full callcheck_rustgo2.py oracle against re-scanned DBs, tri-comparison, and the full suite (CI-light backfill item).
  • Rust struct-literal field calls were not separately evidenced on a real port (only vec! args showed up).

Lessons for agents

  • crucible_check.py needs LANGUAGE_CRUCIBLE_PATH (the sibling lookup fails from a worktrees/ dir): /srv/storage_16tb/projects/gitgalaxy/language-crucible.
  • The venv must be invoked by path ($V/python); source activate does not persist across Bash calls.

🤖 Generated with Claude Code

squid-protocol and others added 4 commits October 19, 2026 12:26
…calls; Go generic instantiation calls (Part of #5634)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…alls, generic instantiation) (Part of #5634)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

# Conflicts:
#	tests/golden_master_audit/12_scan_output_snapshots/gpu_json.json
#	tests/golden_master_audit/12_scan_output_snapshots/graph_sqlite.json
#	tests/golden_master_audit/12_scan_output_snapshots/llm_brief.json
#	tests/golden_master_audit/2_global_ecosystem_summary/network_macro.json
#	tests/golden_master_audit/6_parsed_files_scanned_artifacts/files/11_scan_db_snapshot/pagerank.json
#	tests/golden_master_zero_dep_audit/12_scan_output_snapshots/gpu_json.json
#	tests/golden_master_zero_dep_audit/12_scan_output_snapshots/graph_sqlite.json
#	tests/golden_master_zero_dep_audit/12_scan_output_snapshots/llm_brief.json
#	tests/golden_master_zero_dep_audit/2_global_ecosystem_summary/network_macro.json
#	tests/golden_master_zero_dep_audit/6_parsed_files_scanned_artifacts/files/11_scan_db_snapshot/pagerank.json
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 20, 2026 10:18
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 10:25
@squid-protocol
squid-protocol merged commit 2dfda3b into main Oct 20, 2026
95 of 97 checks passed
@squid-protocol
squid-protocol deleted the churn/5634-20261019T1621Z branch October 20, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant