[Chapel Merge] Add hash function for bigint to allow usage in ass

Branch: refs/heads/main
Revision: df5b8cb
Author: bmcdonald3
Link: Add hash function for bigint to allow usage in associative domains/maps by bmcdonald3 · Pull Request #18579 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #18579 from bmcdonald3/hash-bigint

Add hash function for bigint to allow usage in associative domains/maps

The bigint record does not have a compiler-generated hash function since the compiler generated hash function hashes each field of the record, so the mpz field, a variable with an extern type, is unable to be hashed by the compiler. this PR takes advantage of the user-defined hash functions from #18343 to allow bigint's to be used as keys in maps/associative domains.

Closes bigints should be hashable · Issue #18562 · chapel-lang/chapel · GitHub

[ reviewed by and help from @aconsroe-hpe - thanks! ]

Modified Files:
A test/library/standard/BigInteger/testHash.chpl

A test/library/standard/BigInteger/testHash.good
M modules/standard/BigInteger.chpl

Compare: https://github.com/chapel-lang/chapel/compare/eddb20913c47...df5b8cb46fac