diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-06-13 16:47:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-13 16:47:45 +0200 |
| commit | 6ad8cbdc7d3e8f3abf4dc002d441940e1e24efc3 (patch) | |
| tree | 3834cfd4ee327c14d8af6081635cb551d8447c24 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 2cc267245dc1df5920190e7b3555a13bfacb11c5 (diff) | |
| parent | 280176178b1449ce9ba3bc1d2b7ebf3f1d0abb6a (diff) | |
| download | rust-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
