Skip to content

Comments

Do not use Unsafe type#19

Merged
jakobnissen merged 9 commits intomasterfrom
no_unsafe
Feb 20, 2026
Merged

Do not use Unsafe type#19
jakobnissen merged 9 commits intomasterfrom
no_unsafe

Conversation

@jakobnissen
Copy link
Member

As pointed out by others, this means the method table for public objects contain a mix of public and private methods. That's bad. Instead, use things with private names to do our dirty unsafe business.

This is an API change, so I'll leave it for a bit before merging, in case other breaking stuff comes up.

@jakobnissen jakobnissen added the BREAKING Breaking PR label Apr 8, 2025
@codecov
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.20%. Comparing base (2f528e2) to head (8355a28).
⚠️ Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
+ Coverage   97.89%   98.20%   +0.31%     
==========================================
  Files          10        9       -1     
  Lines         333      335       +2     
==========================================
+ Hits          326      329       +3     
+ Misses          7        6       -1     
Flag Coverage Δ
unittests 98.20% <100.00%> (+0.31%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

jakobnissen and others added 7 commits February 20, 2026 11:51
As pointed out by others, this means the method table for public objects contain
a mix of public and private methods. That's bad. Instead, use things with
private names to do our dirty unsafe business.

This is an API change, so I'll leave it for a bit before merging, in case other
breaking stuff comes up.
@jakobnissen jakobnissen merged commit 18f4d0a into master Feb 20, 2026
12 checks passed
@jakobnissen jakobnissen deleted the no_unsafe branch February 20, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BREAKING Breaking PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant