-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Seek needs finalization of its API #10432
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
Milestone
Comments
Additionally, |
Accepted for P-backcompat-libs |
Someone in IRC also pointed out that seek/tell should be split into their own traits, with Seek probably inheriting from Tell. I don't remember the exact argument. |
Merged
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 25, 2022
fix: Fall back to parameter definitions on error types in signature help Fixes rust-lang#10432
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
May 5, 2023
New lint: detect `if` expressions with simple boolean assignments to the same target Closes rust-lang#10430 changelog: [`needless_bool_assign`] new lint to detect simple boolean assignment to the same target in `if` branches
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is currently an
XXX
on the seek trait asking a question about what to do about seeks out of bounds of the current file. Additionally, this leads to thefail!()
-ing implementations ofSeek
onMemReader
,BufReader
, andBufWriter
.MemWriter
currently has an implementation that fills with 0s when you seek beyond the end and then perform a write.In my opinion, the semantics should be defined as:
This behavior follows what
lseek
+read
+write
appear to do. Regardless, we need to decide on this for 1.0. Nominating.The text was updated successfully, but these errors were encountered: