Exclude build metadata from equality checking.
Exclude build metadata from equality checking.

Build metadata is already excluded from precedence checking in line with
the spec. For consistency and providing strict total ordering for
Version, build metadata should also be ignored in Eq impl.

Closes #12438

Signed-off-by: OGINO Masanori <c49462fef669560e618607913e6c283f7627123c@gmail.com>

yangxingpping/semver,rust-lang/semver