-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add Sync
to the bounds in io::Error
#24133
Conversation
This allows `io::Error` values to be stored in `Arc` properly. Because this requires `Sync` of any value passed to `io::Error::new()` and modifies the relevant `convert::From` impls, this is a [breaking-change] Fixes rust-lang#24049.
(rust_highfive has picked a reviewer for you, use r? to override) |
/cc @alexcrichton |
cc @aturon |
er, incomplete comment. I was going to say this feels like an API stabilization thing. |
Ok I chatted with @aturon today about this, and our feeling is that this probably wants to go through an RFC. We couldn't really reach consensus among ourselves and would like to garner some broader opinions. Some specific points we had in mind were:
So to move forward here I'm going to close this for now. Could you open either an RFC or discuss post on this topic to see how others feel about it as well? Thanks! |
Only if I'm ok with my type not being |
RFC submitted as rust-lang/rfcs#1057 |
The RFC has now been merged, so I've reopened this to merge it! |
This allows `io::Error` values to be stored in `Arc` properly. Because this requires `Sync` of any value passed to `io::Error::new()` and modifies the relevant `convert::From` impls, this is a [breaking-change] Fixes #24049.
This allows
io::Error
values to be stored inArc
properly.Because this requires
Sync
of any value passed toio::Error::new()
and modifies the relevant
convert::From
impls, this is a[breaking-change]
Fixes #24049.