Skip to content

test(resolution): pin Rust Type::method() resolution end-to-end (#1658) - #1668

Merged
Shashankss1205 merged 1 commit into
mainfrom
test/1658-rust-scoped-calls
Aug 26, 2026
Merged

Shashankss1205 merged 1 commit into
mainfrom
test/1658-rust-scoped-calls

Conversation

@Shashankss1205

Copy link
Copy Markdown
Collaborator

Turns out #1658 was three-quarters fixed by the time it was filed — the resolution wiring at calls.py:1043 already consumes inferred_obj_type, and the missing pieces were exactly what landed since: #1657 gave impl methods class_context (populating class_method_index) and scoped calls their receiver type, and #1510 stopped the writer dropping resolved edges whose target scope lives outside context.

Verified on the issue's suggested corpus against a real embedded database: Worker::new() and Pool::new() each bind to their own impl, and Arc::new() produces no local edge. This PR pins that end-to-end chain as a regression test so a break in any piece fails loudly.

Fixes #1658

The chain assembled across #1657 (impl-method class_context + scoped-call
receiver types) and #1510 (label-aware called-context clause) makes scoped
constructor calls resolve correctly: same-named news bind to their own impl
and external Arc::new does not mis-bind locally. Pinned on a real embedded
database so a regression in any of the three pieces fails this test.
@vercel

vercel Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
code-graph-context-pack Ready Ready Preview Aug 26, 2026 2:02pm

@github-actions

Copy link
Copy Markdown
Contributor

Hi! 👋 Join our CodeGraphContext Discord channel to collaborate: https://discord.gg/dR4QY32uYQ

@Shashankss1205
Shashankss1205 merged commit 0430ac2 into main Aug 26, 2026
13 of 19 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog tasks to Done in CGC Progress Board Aug 26, 2026
@Shashankss1205
Shashankss1205 deleted the test/1658-rust-scoped-calls branch August 26, 2026 14:02
@github-actions

Copy link
Copy Markdown
Contributor

🔍 PR Code Graph Analysis

test(resolution): pin Rust Type::method() resolution end-to-end (#1658) (#1668)

📊 Interactive Visualization

View the blast radius graph: PR Reviewer Dashboard

📦 Artifacts

The graph JSON has been uploaded as a build artifact: pr-code-graph-1668


Generated by CodeGraphContext using FalkorDB Lite

This branch was successfully deployed

1 active deployment
Preview — 360a9553 Deployed Aug 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug(resolution): Rust Type::method() calls never produce a CALLS edge — scoped-call receiver is not consumed

1 participant