Uh oh!
There was an error while loading. Please reload this page.
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] Fixesrust-lang#24049.
rust-highfive
commented
Apr 7, 2015
(rust_highfive has picked a reviewer for you, use r? to override) |
lilyball
commented
Apr 7, 2015
/cc @alexcrichton |
nikomatsakis
commented
Apr 7, 2015
cc @aturon |
nikomatsakis
commented
Apr 7, 2015
er, incomplete comment. I was going to say this feels like an API stabilization thing. |
alexcrichton
commented
Apr 7, 2015
alexcrichton
commented
Apr 8, 2015
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! |
lilyball
commented
Apr 11, 2015
Only if I'm ok with my type not being |
lilyball
commented
Apr 12, 2015
RFC submitted as rust-lang/rfcs#1057 |
alexcrichton
commented
Apr 17, 2015
The RFC has now been merged, so I've reopened this to merge it! |
bors
commented
Apr 18, 2015
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::Errorvalues to be stored inArcproperly.Because this requires
Syncof any value passed toio::Error::new()and modifies the relevant
convert::Fromimpls, this is a[breaking-change]
Fixes#24049.