about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-08 23:15:13 +0100
committerGitHub <noreply@github.com>2023-12-08 23:15:13 +0100
commit943fa33dafe8abcc299110682d272183f198ab5e (patch)
tree9123ce2b53710f5eeb8f6f38a964993160676420 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentd2de292017a534a48bfa517434cd64a72e08f13f (diff)
parenteb53721a34d1d910b900aa753e0a00dc72ef41ac (diff)
downloadrust-943fa33dafe8abcc299110682d272183f198ab5e.tar.gz
rust-943fa33dafe8abcc299110682d272183f198ab5e.zip
Rollup merge of #118730 - jyn514:cmp_refs, r=estebank,compiler-errors
recurse into refs when comparing tys for diagnostics

before:
![image](https://github.com/rust-lang/rust/assets/23638587/bf6abd62-c7f3-4c09-a47e-31b6e129de19)

after:
![image](https://github.com/rust-lang/rust/assets/23638587/b704d728-ddba-4204-aebe-c07dcbbcb55c)

this diff from the test suite is also quite nice imo:
```diff
`@@` -4,8 +4,8 `@@` error[E0308]: mismatched types
 LL |     debug_assert_eq!(iter.next(), Some(value));
    |                                   ^^^^^^^^^^^ expected `Option<<I as Iterator>::Item>`, found `Option<&<I as Iterator>::Item>`
    |
-   = note: expected enum `Option<<I as Iterator>::Item>`
-              found enum `Option<&<I as Iterator>::Item>`
+   = note: expected enum `Option<_>`
+              found enum `Option<&_>`
```
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions