about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2025-03-30 20:20:24 +0300
committerChayim Refael Friedman <chayimfr@gmail.com>2025-04-22 14:55:43 +0300
commit5e49ce92fe67684eb0b94a3a4900150da687ce8a (patch)
tree088a0a17b4abe8d075df86a3a8119f7b35e0f21b /tests/codegen/src-hash-algorithm
parente51e384fb0b6309d4fdd0b2ff7c951bdd99927dd (diff)
downloadrust-5e49ce92fe67684eb0b94a3a4900150da687ce8a.tar.gz
rust-5e49ce92fe67684eb0b94a3a4900150da687ce8a.zip
Add two new diagnostics: one for mismatch in generic arguments count, and another for mismatch in their kind
Also known as E0747 and E0107.

And by the way, rewrite how we lower generic arguments and deduplicate it between paths and method calls. The new version is taken almost straight from rustc.

This commit also changes the binders of `generic_defaults()`, to only include the binders of the arguments up to (and not including) the current argument. This make it easier to handle it in the rewritten lowering of generic args. It's also how rustc does it.
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions