Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write some safety proofs #1615

Merged
merged 1 commit into from
Sep 7, 2024
Merged

Write some safety proofs #1615

merged 1 commit into from
Sep 7, 2024

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Sep 7, 2024

Adds some informal proofs as accepted risks per #1358

Makes progress on #896

src/impls.rs Outdated
@@ -435,7 +433,9 @@ safety_comment! {

safety_comment! {
/// SAFETY:
/// TODO(#896): Write this safety proof before the next stable release.
/// Function objects (`fn()` and `extern "C" fn()`) self-evidently do not
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Function objects (`fn()` and `extern "C" fn()`) self-evidently do not
/// Function pointers (`fn()` and `extern "C" fn()`) self-evidently do not

Function objects describes the broader set that includes closures, which may contain UnsafeCells.

@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.83%. Comparing base (d66705a) to head (912bc3f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1615      +/-   ##
==========================================
+ Coverage   87.77%   87.83%   +0.06%     
==========================================
  Files          15       15              
  Lines        5594     5623      +29     
==========================================
+ Hits         4910     4939      +29     
  Misses        684      684              

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

Adds some informal proofs as accepted risks per #1358

Makes progress on #896
@joshlf joshlf added this pull request to the merge queue Sep 7, 2024
Merged via the queue into main with commit 02dc876 Sep 7, 2024
74 checks passed
@joshlf joshlf deleted the accepted-risk-unsafe-cells branch September 7, 2024 22:01
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.

3 participants