Fix visibility of digest implementations
auto merge of #9503 : dcrewi/rust/fix-digest-visibility, r=alexcrichton

I really have no idea why the tests didn't fail. Maybe it's another cross-crate issue?