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

std: Rename {push,read}_bytes to {push,read}_exact #12907

Merged
merged 1 commit into from
Mar 22, 2014

Conversation

alexcrichton
Copy link
Member

These methods can be mistaken for general "read some bytes" utilities when
they're actually only meant for reading an exact number of bytes. By renaming
them it's much clearer about what they're doing without having to read the
documentation.

Closes #12892

@sfackler
Copy link
Member

LGTM, but I don't know if this should wait on a weekly meeting or something.

These methods can be mistaken for general "read some bytes" utilities when
they're actually only meant for reading an exact number of bytes. By renaming
them it's much clearer about what they're doing without having to read the
documentation.

Closes rust-lang#12892
bors added a commit that referenced this pull request Mar 22, 2014
These methods can be mistaken for general "read some bytes" utilities when
they're actually only meant for reading an exact number of bytes. By renaming
them it's much clearer about what they're doing without having to read the
documentation.

Closes #12892
@bors bors closed this Mar 22, 2014
@bors bors merged commit 811257e into rust-lang:master Mar 22, 2014
@alexcrichton alexcrichton deleted the issue-12892 branch March 22, 2014 15:57
Kroisse added a commit to Kroisse/rust-http that referenced this pull request Mar 22, 2014
related issues of mozilla/rust:
- rust-lang/rust#12772  rename std::vec -> std::slice
- rust-lang/rust#13028  rename std::vec_ng -> std::vec
- rust-lang/rust@0305ed5d22e4  std: Add Vec to the prelude
- rust-lang/rust#12907  std: Rename {push,read}_bytes to {push,read}_exact
Kroisse added a commit to Kroisse/rust-http that referenced this pull request Mar 22, 2014
related issues of mozilla/rust:
- rust-lang/rust#12772  rename std::vec -> std::slice
- rust-lang/rust#13028  rename std::vec_ng -> std::vec
- rust-lang/rust@0305ed5d22e4  std: Add Vec to the prelude
- rust-lang/rust#12907  std: Rename {push,read}_bytes to {push,read}_exact
Kroisse added a commit to Kroisse/rust-http that referenced this pull request Mar 30, 2014
related issues of mozilla/rust:
- rust-lang/rust@0305ed5d22e4  std: Add Vec to the prelude

already fixed in chris-morgan#69:
- rust-lang/rust#12772  rename std::vec -> std::slice
- rust-lang/rust#13028  rename std::vec_ng -> std::vec
- rust-lang/rust#12907  std: Rename {push,read}_bytes to {push,read}_exact
am0d pushed a commit to am0d/rust-http that referenced this pull request Apr 4, 2014
related issues of mozilla/rust:
- rust-lang/rust@0305ed5d22e4  std: Add Vec to the prelude

already fixed in chris-morgan#69:
- rust-lang/rust#12772  rename std::vec -> std::slice
- rust-lang/rust#13028  rename std::vec_ng -> std::vec
- rust-lang/rust#12907  std: Rename {push,read}_bytes to {push,read}_exact
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Sep 24, 2024
…ws a value

Fixes rust-lang#12907

changelog: Fix [`needless_return`] false negative when returned expression borrows a value
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 24, 2024
Fix [`needless_return`] false negative

Fixes rust-lang#12907

changelog: Fix [`needless_return`] false negative when returned expression borrows a value.
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.

Reading more bytes than a file contains yields EOF instead of data
4 participants