Uh oh!
There was an error while loading. Please reload this page.
Generalize io for Arc - #130675
Conversation
rustbot
commented
Sep 21, 2024
r? @Noratrieb rustbot has assigned @Noratrieb. Use |
Noratrieb
commented
Sep 21, 2024
r? libs-api |
lolbinarycat
commented
Sep 21, 2024
I actually ran into this today when adding blanket impls in one of by projects (i have a subtrait of |
CAD97
commented
Sep 22, 2024
On second thought — this is a bad/dangerous implementation due to impls such as It does feel like there should be a way for such forwarding to be done, but this isn't it. |
lolbinarycat
commented
Sep 22, 2024
yep, |
There's no fundamental reason to limit the io trait implementations on
Arcto onlyFile; they can equally be applied to anyArc<T> where &T: Trait.Arcisn't a fundamental type, so it's impossible for downstream crates to implementRead for Arc<LocalType>, thus this blanket impl is a non-breaking one (if I remembered the API evolution rules correctly).ATTN: this PR makes insta-stable API changes.
Now that the impl is generalized it might be more proper to live in a different file, but I did this from the web editor.