Hash `Kind` in metadata for crates
Hash `Kind` in metadata for crates

This fixes what is now a bug in Cargo discovered when attempting to land
rust-lang/rust#42495 where Cargo will compile both host and target artifacts
with the same `-C metadata` flag. This means that the compile can load two
crates with the same SVH that are supposed to be distinct, which causes weird
bugs with crate loading and whatnot.

This commit throws in the `Kind` into the metadata calculation to resolve this
to ensure that host/target artifacts always have a different `-C metadata`

tsurai/cargo,tsurai/cargo,rustyhorde/cargo,rustyhorde/cargo,durka/cargo,achanda/cargo,eminence/cargo,achanda/cargo,vojtechkral/cargo,achanda/cargo,tshepang/cargo,vojtechkral/cargo,nipunn1313/cargo,durka/cargo,nipunn1313/cargo,eminence/cargo,vojtechkral/cargo,rustyhorde/cargo,rust-lang/cargo,tshepang/cargo,rustyhorde/cargo,vojtechkral/cargo,rust-lang/cargo,durka/cargo,durka/cargo,tsurai/cargo,eminence/cargo,nipunn1313/cargo,eminence/cargo,tshepang/cargo,rust-lang/cargo,achanda/cargo,tsurai/cargo,nipunn1313/cargo,tsurai/cargo,rust-lang/cargo,tshepang/cargo