Skip to content

[rust2cpg] refactor visitImpl.#6086

Merged
xavierpinho merged 1 commit into
masterfrom
xavierp/detached-ast
Jul 8, 2026
Merged

[rust2cpg] refactor visitImpl.#6086
xavierpinho merged 1 commit into
masterfrom
xavierp/detached-ast

Conversation

@xavierpinho

Copy link
Copy Markdown
Contributor

The main goal being to remove storeInDiffGraph calls during lowering.

}
}

// There can be multiple `impl X` in the same file/project, so we lower their

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And their fullnames are still unique?

@xavierpinho xavierpinho Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, via typeDeclForImpl, which either takes rust_ast_gen's resolved name or builds one from the type name + current crate as a fallback. (But didn't change any logic in this PR, it's really just a refactoring.)

@xavierpinho xavierpinho merged commit 3e34a32 into master Jul 8, 2026
8 checks passed
@xavierpinho xavierpinho deleted the xavierp/detached-ast branch July 8, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants