-
Couldn't load subscription status.
- Fork 9
Description
I recently attempted to update to digest 0.11.0-rc.0 with some of my crates. It appears having hybrid-array anywhere in the dependency tree of a crate, not even in the immediate view, is sufficient for every existing [T; N]::as_ref call which prior worked to stop working unless the caller explicitly specifies what they wanted a reference of as now there are multiple candidates for which AsRef is to be invoked.
I wouldn't raise this as an issue, except since having hybrid-array anywhere as a dependency seems to trigger this, it causes any inclusion of hybrid-array in the dependency tree to require updating all parts of a codebase. I have several crates, some decently distanced from the underlying hashes, which would require updating.
I wanted to flag this before the digest 0.11 release was actually cut as hopefully, if this impl AsRef is removed, it won't require waiting for digest 0.12. Unfortunately, it would require a hybrid-array 0.4.0. With how pervasive this single impl is though, hence why my issue title calls it 'poisonous' as it poisons the entire tree, I'd hope to see this impl either removed or truly to be so beneficial, to be worth keeping. I don't have sufficient context to comment on the latter and concede that.