Skip to content

ZJIT: Mark Regexp#to_s as returning StringExact - #1116

Closed
efegokdemir wants to merge 1 commit into
Shopify:masterfrom
efegokdemir:efe/zjit-regexp-to-s-1108
Closed

efegokdemir wants to merge 1 commit into
Shopify:masterfrom
efegokdemir:efe/zjit-regexp-to-s-1108

Conversation

@efegokdemir

Copy link
Copy Markdown

Fixes #1108. ZJIT records Regexp#to_s as returning StringExact, so HIR can retain the precise result type for later operations. A focused HIR regression test checks the inferred type; the targeted test passes.

Record Regexp#to_s as returning StringExact so HIR can retain the precise result type. Fixes Shopify#1108.
@github-actions github-actions Bot added the jit label Nov 8, 2026
@tekknolagi

Copy link
Copy Markdown

Please file PRs to ruby/ruby

@tekknolagi tekknolagi closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZJIT: Mark Regexp#to_s as returning StringExact

2 participants