Move hash module from collections to core
auto merge of #19800 : sfackler/rust/core-hash, r=alexcrichton

r? @alexcrichton
Merge remote-tracking branch 'upstream/master'