about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-13 16:47:45 +0200
committerGitHub <noreply@github.com>2020-06-13 16:47:45 +0200
commit6ad8cbdc7d3e8f3abf4dc002d441940e1e24efc3 (patch)
tree3834cfd4ee327c14d8af6081635cb551d8447c24 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent2cc267245dc1df5920190e7b3555a13bfacb11c5 (diff)
parent280176178b1449ce9ba3bc1d2b7ebf3f1d0abb6a (diff)
downloadrust-6ad8cbdc7d3e8f3abf4dc002d441940e1e24efc3.tar.gz
rust-6ad8cbdc7d3e8f3abf4dc002d441940e1e24efc3.zip
Rollup merge of #73066 - ecstatic-morse:query-structural-eq2, r=pnkfelix
Querify whether a type has structural equality (Take 2)

Alternative to #72177.

Unlike in #72177, this helper method works for all types, falling back to a query for `TyKind::Adt`s that determines whether the `{Partial,}StructuralEq` traits are implemented.

This is my preferred interface for this method. I think this is better than just documenting that the helper only works for ADTs. If others disagree, we can just merge #72177 with the fixes applied. This has already taken far too long.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions