[pointer][invariant] Remove AliasingMapping, Inaccessible#1942
Merged
joshlf merged 0 commit intoIfc49755af0d90eeefe7822d755d508403c266bdafrom Feb 5, 2025
Merged
Conversation
This was referenced Oct 18, 2024
jswrenn
approved these changes
Oct 18, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## Ifc49755af0d90eeefe7822d755d508403c266bda #1942 +/- ##
==========================================================================
Coverage 89.46% 89.46%
==========================================================================
Files 17 17
Lines 5838 5838
==========================================================================
Hits 5223 5223
Misses 615 615 ☔ View full report in Codecov by Sentry. |
53deb0a to
4795dcd
Compare
4795dcd to
94165e5
Compare
03ccfe5 to
244bef4
Compare
94165e5 to
dbf871e
Compare
This was referenced Oct 22, 2024
244bef4 to
5f1d243
Compare
dbf871e to
33fc89f
Compare
This was referenced Oct 23, 2024
5f1d243 to
995e1f0
Compare
33fc89f to
48f1450
Compare
995e1f0 to
4f292ed
Compare
48f1450 to
355531d
Compare
355531d to
d89fa0f
Compare
4f292ed to
0948d1a
Compare
0948d1a to
75208cb
Compare
d89fa0f to
08771d7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We previously used
AliasingMappings andInaccessibleto modelUnsafeCellagreement. This abuses the notion of a mapping since onedoesn't ever actually want to change the aliasing of a pointer (and
certainly not to
Inaccessible) - really this was meant to modelpointer casts which should never be performed. In addition to being an
awkward fit, the presence of
Inaccessiblemeant that code could notassume that any
Aliasinginvariant permitted reading, and so we had toadd extra machinery to work around this.
Future commits will use a different, simpler model for denoting
UnsafeCellagreement or disagreement.While we're here, make
Readslightly more permissive, implemented forA: Aliasing, T: Immutablerather than justA: Reference, T: Immutable.Makes progress on #1122, #1866
This PR is on branch ptr-overhaul-more-generic-issue-1945.