Skip to content

fix(rust,scala): fix args truncation by ignoring lifetime/symbol marks - #2133

Merged
squid-protocol merged 1 commit into
mainfrom
fix-1872-rust-scala-lifetime
Aug 22, 2026
Merged

fix(rust,scala): fix args truncation by ignoring lifetime/symbol marks#2133
squid-protocol merged 1 commit into
mainfrom
fix-1872-rust-scala-lifetime

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #1872

Summary

This PR correctly identifies Rust lifetimes and Scala symbols during function parameter string tokenization by using self.primary_lang_id instead of getattr(self, 'language', '') (which was dead code because the class doesn't define it). It also adds the identical check to _matching_paren_end to prevent it from getting hopelessly stuck looking for a matching string delimiter that never comes.

Both golden masters have been regenerated and the missing arguments for these functions have been successfully rescued.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit eeb0896 into main Aug 22, 2026
29 checks passed
@squid-protocol
squid-protocol deleted the fix-1872-rust-scala-lifetime branch August 22, 2026 18:14
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.

rust/scala lifetime-exemption in _count_top_level_args is dead code (self.language vs self.primary_lang_id)

1 participant