Skip to content

Implement Read/Write for Pin<P> #3413

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

coolreader18
Copy link
Contributor

Closes #3412

Without these impls, something like Pin<Box<T: Read>> does not actually
implement Read.

Closes hyperium#3412

BREAKING CHANGE: Pin is #[fundamental], so this theoretically conflicts
  with existing user Read/Write for Pin<...> impls. However, those impls
  probably don't exist yet.
@seanmonstar seanmonstar merged commit dd6d81c into hyperium:master Nov 16, 2023
@coolreader18 coolreader18 deleted the impl-io-for-pin branch November 16, 2023 16:40
@coolreader18
Copy link
Contributor Author

Oh, woah, wild, I was looking in the Rust changelog for something totally unrelated to this and found rust-lang/rust#81363, which shows it was sorta an under-specification of Pin at the time.

0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 12, 2024
Without these impls, something like Pin<Box<T: Read>> does not actually
implement Read.

Closes hyperium#3412

BREAKING CHANGE: Pin is #[fundamental], so this theoretically conflicts
  with existing user Read/Write for Pin<...> impls. However, those impls
  probably don't exist yet.
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 16, 2024
Without these impls, something like Pin<Box<T: Read>> does not actually
implement Read.

Closes hyperium#3412

BREAKING CHANGE: Pin is #[fundamental], so this theoretically conflicts
  with existing user Read/Write for Pin<...> impls. However, those impls
  probably don't exist yet.

Signed-off-by: Sven Pfennig <s.pfennig@reply.de>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing impl Read/Write for Pin<P>
2 participants