-
Notifications
You must be signed in to change notification settings - Fork 627
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
Remove AsyncRead::initializer #1761
Comments
Yeah, it seems like there's some push towards having |
There was a push at rust-lang/rust#58363, but there are two issues with this:
Note however that the current |
It seems to me like we're at an awkward point with regards to the desired functionality here.
|
Whether or not an |
I think we should choose one of the following:
|
+1 for making it unstable. The "simpler API" is unsound, though, so I don't want to do that. |
@cramertj what is unsound about it? |
|
@cramertj makes sense, thanks for the explanation. Is the intent to document the unsafe requirements you describe as part of https://github.com/rust-lang/unsafe-code-guidelines or some other location? |
The requirement that |
That seems more like Reference material than UCG. There's no open questions, just things are a bit surprising (rust-lang/rfcs#2585 would improve things IMO by making the role of |
255: Update futures-preview to 0.3.0-alpha.19 r=skade a=taiki-e Depends on http-rs/surf#74 Refs: * rust-lang/futures-rs#1761 * rust-lang/futures-rs#1845 cc @skade @stjepang @yoshuawuyts Co-authored-by: Taiki Endo <[email protected]>
255: Update futures-preview to 0.3.0-alpha.19 r=skade a=taiki-e Depends on http-rs/surf#74 Refs: * rust-lang/futures-rs#1761 * rust-lang/futures-rs#1845 cc @skade @stjepang @yoshuawuyts Co-authored-by: Taiki Endo <[email protected]>
The tracking issue for
std::io::Read::initializer
makes it sound like that API is definitely going to be changed a lot, it would be good to remove the similar API here until thestd
API is closer to its final form.The text was updated successfully, but these errors were encountered: