]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #96823 - jackh726:params-heuristics-fix, r=estebank
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Tue, 10 May 2022 06:24:04 +0000 (08:24 +0200)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 06:24:04 +0000 (08:24 +0200)
commit9a3f17b34d59329a931c10086d5e98b3dea26ee7
treec10121bf83c96c61ed6a302da248cc4e96bab2ac
parent7b32e9304b12f1e5b06573c7bf80c5d23e1d9083
parent1d68e6d67452c0de61e133553a28c8871e96837a
Rollup merge of #96823 - jackh726:params-heuristics-fix, r=estebank

Properly fix #96638

Closes #96638

The main part of this change is `Error::Invalid` now returns both the input and arg indices. However, I realized the code here was kind of confusing and not internally consistent (and thus I was having trouble getting the right behavior). So I've also switched `input_indices` and `arg_indices` to more closely match some naming in `checks` (although I think a more thorough cleanup there could be beneficial). I've added comments, but essentially `input_indices` refers to *user provided* inputs and `arg_indices` refers to *expected* args.