Skip to content

fix: ignore string literal contents in emit text scans#337

Merged
ivov merged 2 commits into
mainfrom
mask-string-literals-in-emit-scans
May 7, 2026
Merged

fix: ignore string literal contents in emit text scans#337
ivov merged 2 commits into
mainfrom
mask-string-literals-in-emit-scans

Conversation

@ivov
Copy link
Copy Markdown
Owner

@ivov ivov commented May 7, 2026

Negation of a comparison no longer flips an operator that appears inside a string literal:

!("x == y" == s)

Previously, the inner == was flipped to != instead of the outer comparison, producing the wrong condition.

Also, match over a non-literal subject no longer fails to compile when an arm body contains a string literal whose contents happen to spell the synthesized subject temp:

match make_p() {
  _ => "subject_1",
}

Previously, the _ = subject_1 discard was suppressed, leaving the temp declared and unused.

@ivov ivov merged commit eaa4e69 into main May 7, 2026
12 checks passed
@ivov ivov mentioned this pull request May 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Released in lisette-v0.2.1

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.

1 participant