Skip to content

feat: Add array_refcount and slice_refcount builtins for debugging#6584

Merged
jfecher merged 8 commits intomasterfrom
jf/debug-rc
Nov 22, 2024
Merged

feat: Add array_refcount and slice_refcount builtins for debugging#6584
jfecher merged 8 commits intomasterfrom
jf/debug-rc

Conversation

@jfecher
Copy link
Copy Markdown
Contributor

@jfecher jfecher commented Nov 21, 2024

Description

Problem*

Resolves

Summary*

Added debug functions to retrieve the hidden reference count field on arrays and slices in unconstrained code. This always returns 0 in constrained and comptime code.

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants