-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SE-0370] pointer family initialization improvements & better buffer slices #41608
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
[SE-0370] pointer family initialization improvements & better buffer slices #41608
Conversation
@swift-ci please smoke test |
The draft needs a good number of |
@swift-ci please smoke test macOS platform |
@swift-ci please smoke test |
b1a5caa
to
345756e
Compare
@swift-ci please smoke test |
@swift-ci please smoke test macOS platform |
345756e
to
cf1fc47
Compare
@swift-ci please smoke test |
@swift-ci please smoke test Linux platform |
@swift-ci please test |
04888f3
to
9e5b246
Compare
@swift-ci please test |
9e5b246
to
54941cc
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
@swift-ci Please Test Source Compatibility |
@swift-ci please test |
c57f285
to
c914cc7
Compare
@swift-ci please test macOS platform |
@swift-ci please test |
@swift-ci please test linux platform |
4f8dd21
to
efa9323
Compare
efa9323
to
fb9bff3
Compare
fb9bff3
to
ffa7b0e
Compare
For the "may overlap" vs "must not overlap" notes, could different types of asides be used? |
@benrimmington I believe we support all of docc; I was unaware of the "Warning" aside. I will improve this in a followup PR. |
@swift-ci please test and merge |
This comment was marked as outdated.
This comment was marked as outdated.
I will try a different way to define these. Earlier they had "passed" the ABI checker test because I had wrongly marked them as |
I will need help for this one. |
I'll revert the |
return startIndex.advanced(by: count) | ||
} | ||
|
||
var (iterator, copied) = source._copySequenceContents(initializing: self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, is there a reason we aren't calling _copyContents
here? Now that we require the source to fit in the target, its precondition doesn't seem problematic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seemed redundant to have the full _copyContents
only to double-check its work after it returns. Every stdlib type that implements a _copyContents
fast path also has wCSIA
.
- this caused an unexpected test failure, will change separately.
@swift-ci please test macOS platform |
@swift-ci please test linux platform |
@swift-ci please test linux platform |
@swift-ci please test macOS platform |
Implementation of SE-0370 with improvements to pointer family initialization API, and to buffer slicing.
Resolves rdar://99461160