Skip to content

Add HasCallStack to all specilization when generic function has one - #574

Merged
Shimuuar merged 2 commits into
masterfrom
has_call_stack_mut
Oct 7, 2026
Merged

Shimuuar merged 2 commits into
masterfrom
has_call_stack_mut

Conversation

@Shimuuar

@Shimuuar Shimuuar commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Some generic functions has HasCallStack in context while their specializations don't. This frequently makes stack traces quite useless since they end up truncated. I think only reasonable way is to add HasCallStack to specializations as well

Fixes #494

Add HasCallstack for all specialization which has it in Generic version:

 - !
 - indexM
 - slice
 - backpermute
 - copy

Fixes #494
 - new
 - grow
 - read,write
 - modify,modifyM
 - swap,exchange,copy,move
@Shimuuar
Shimuuar force-pushed the has_call_stack_mut branch from edd57a2 to d4a91a3 Compare October 5, 2026 17:09
@toyboot4e

Copy link
Copy Markdown
Contributor

Sweet ❤️ ❤️ ❤️

@lehins lehins left a comment

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.

👍

@Shimuuar
Shimuuar merged commit d0f42e0 into master Oct 7, 2026
26 checks passed
@Shimuuar
Shimuuar deleted the has_call_stack_mut branch October 7, 2026 18:37
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.

Adding more HasCallStack s

3 participants