-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Add read_buf
equivalents for positioned reads
#140459
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
Conversation
This comment has been minimized.
This comment has been minimized.
74e016c
to
2ccb45f
Compare
Have these changes been discussed with libs-api at all? Usually changes to unstable API need to be proposed at https://github.com/rust-lang/libs-team/ with the ACP issue template.
This needs some tests as well.
For the above,
@rustbot author
Reminder, once the PR becomes ready for a review, use @rustbot ready
.
For consistency and clarity, could we include safety comments on each unsafe block? Even brief notes are helpful to understand the assumptions being made
2ccb45f
to
09ac65a
Compare
This comment has been minimized.
This comment has been minimized.
09ac65a
to
a22d2b4
Compare
This comment has been minimized.
This comment has been minimized.
a22d2b4
to
59cb58e
Compare
This comment has been minimized.
This comment has been minimized.
59cb58e
to
85e1da1
Compare
Thank you both.
- Opened an APC that was accepted, but items to be added under a new feature instead of
read_buf
. Moved toread_buf_at
with new tracking issue Tracking Issue forread_buf_at
#140771 . - Added safety comments also for FFI calls.
- Added tests.
@rustbot ready
@bors try
Add `read_buf` equivalents for positioned reads Adds the following items under the ~~`read_buf` (#78485)~~ `read_buf_at` (#140771) feature: - `std::os::unix::fs::FileExt::read_buf_at` - `std::os::unix::fs::FileExt::read_buf_exact_at` - `std::os::windows::fs::FileExt::seek_read_buf` try-job: x86_64-msvc-1 try-job: x86_64-msvc-2
bf491a1
to
55ce5c1
Compare
Back after a while, rebased to resolve conflicts, and ready for the next round of review.
@rustbot ready
This comment has been minimized.
This comment has been minimized.
55ce5c1
to
bf491a1
Compare
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.
Thanks for the updates, two small nits then r=me
bf491a1
to
60c69e1
Compare
Adds the following items under the `read_buf_at` feature: - `std::os::unix::fs::FileExt::read_buf_at` - `std::os::unix::fs::FileExt::read_buf_exact_at` - `std::os::windows::fs::FileExt::seek_read_buf`
60c69e1
to
c914c47
Compare
@rustbot ready
Going to rerun the try job just in case, but LGTM. Thanks for the updates
@bors2 try
Add `read_buf` equivalents for positioned reads try-job: `x86_64-msvc*` try-job: `test-various*` try-job: `dist-various*`
This comment has been minimized.
This comment has been minimized.
@bors r+
...oss35 Add `read_buf` equivalents for positioned reads Adds the following items under the ~~`read_buf` (rust-lang#78485)~~ `read_buf_at` (rust-lang#140771) feature: - `std::os::unix::fs::FileExt::read_buf_at` - `std::os::unix::fs::FileExt::read_buf_exact_at` - `std::os::windows::fs::FileExt::seek_read_buf` try-job: `x86_64-msvc*` try-job: `test-various*` try-job: `dist-various*`
Rollup of 24 pull requests Successful merges: - #140459 (Add `read_buf` equivalents for positioned reads) - #143725 (core: add Peekable::next_if_map) - #145209 (Stabilize `path_add_extension`) - #145342 (fix drop scope for `super let` bindings within `if let`) - #145750 (raw_vec.rs: Remove superfluous fn alloc_guard) - #145827 (On unused binding or binding not present in all patterns, suggest potential typo of unit struct/variant or const) - #145932 (Allow `inline(always)` with a target feature behind a unstable feature `target_feature_inline_always`.) - #145962 (Ensure we emit an allocator shim when only some crate types need one) - #145963 (Add LSX accelerated implementation for source file analysis) - #146054 (add `#[must_use]` to `array::repeat`) - #146090 (Derive `PartialEq` for `InvisibleOrigin`) - #146112 (don't uppercase error messages) - #146120 (Correct typo in `rustc_errors` comment) - #146124 (Test `rustc-dev` in `distcheck`) - #146127 (Rename `ToolRustc` to `ToolRustcPrivate`) - #146131 (rustdoc-search: add test case for indexing every item type) - #146134 (llvm: nvptx: Layout update to match LLVM) - #146136 (docs(std): add missing closing code block fences in doc comments) - #146137 (Disallow frontmatter in `--cfg` and `--check-cfg` arguments) - #146140 (compiletest: cygwin follows windows in using PATH for dynamic libraries) - #146150 (fix(rustdoc): match rustc `--emit` precedence ) - #146155 (Make bootstrap self test parallel) - #146161 ([rustdoc] Uncomment code to add scraped rustdoc examples in loaded paths) - #146172 (triagebot: configure some pings when certain attributes are used) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #140459 - niklasf:feature/read-buf-at, r=tgross35 Add `read_buf` equivalents for positioned reads Adds the following items under the ~~`read_buf` (#78485)~~ `read_buf_at` (#140771) feature: - `std::os::unix::fs::FileExt::read_buf_at` - `std::os::unix::fs::FileExt::read_buf_exact_at` - `std::os::windows::fs::FileExt::seek_read_buf` try-job: `x86_64-msvc*` try-job: `test-various*` try-job: `dist-various*`
Uh oh!
There was an error while loading. Please reload this page.
Adds the following items under the
(削除)read_buf
(#78485) (削除ここまで)read_buf_at
(#140771) feature:std::os::unix::fs::FileExt::read_buf_at
std::os::unix::fs::FileExt::read_buf_exact_at
std::os::windows::fs::FileExt::seek_read_buf
try-job:
x86_64-msvc*
try-job:
test-various*
try-job:
dist-various*