diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-08-06 11:21:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-06 11:21:30 +0900 |
| commit | 5b4396068744e810d090de038e6f456432d203a2 (patch) | |
| tree | adfcae1cb81d52158a0afe8fecc747c711a51339 /compiler/rustc_codegen_gcc | |
| parent | 772db06e103f21761ffcc77d1099fbd60e88cdc0 (diff) | |
| parent | e3389befe1655875ab2bfd83a9c44e507ec0ee5f (diff) | |
| download | rust-5b4396068744e810d090de038e6f456432d203a2.tar.gz rust-5b4396068744e810d090de038e6f456432d203a2.zip | |
Rollup merge of #87727 - SkiFire13:fix-87718, r=jackh726
explicit_generic_args_with_impl_trait: fix min expected number of generics Fixes #87718 The problem was that `synth_type_param_count` was already subtracted from `named_type_param_count`, so this ended up being subtracted again. This caused `expected_min` to overflow, and ultimately resulting in weird and wrong behaviour. I've also added another test not present in the original issue but caused by the same bug.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
