Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly fix #96638 #96823

Merged
merged 1 commit into from
May 10, 2022
Merged

Properly fix #96638 #96823

merged 1 commit into from
May 10, 2022

Conversation

jackh726
Copy link
Member

@jackh726 jackh726 commented May 7, 2022

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.

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label May 7, 2022
@rust-highfive
Copy link
Collaborator

r? @estebank

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 7, 2022
@jackh726 jackh726 changed the title Probably fix #96638 Properly fix #96638 May 8, 2022
@jackh726 jackh726 force-pushed the params-heuristics-fix branch from 4077f03 to 4599ce5 Compare May 9, 2022 17:52
@jackh726 jackh726 force-pushed the params-heuristics-fix branch from 4599ce5 to 1d68e6d Compare May 9, 2022 17:53
@estebank
Copy link
Contributor

estebank commented May 9, 2022

@bors r+

@bors
Copy link
Contributor

bors commented May 9, 2022

📌 Commit 1d68e6d has been approved by estebank

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 9, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request May 10, 2022
Rollup of 5 pull requests

Successful merges:

 - rust-lang#93661 (Add missing rustc arg docs)
 - rust-lang#96674 (docs: add link explaining variance to NonNull docs)
 - rust-lang#96812 (Do not lint on explicit outlives requirements from external macros.)
 - rust-lang#96823 (Properly fix rust-lang#96638)
 - rust-lang#96872 (make sure ScalarPair enums have ScalarPair variants; add some layout sanity checks)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 9a3f17b into rust-lang:master May 10, 2022
@rustbot rustbot added this to the 1.62.0 milestone May 10, 2022
@jackh726 jackh726 deleted the params-heuristics-fix branch November 22, 2022 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE on checking function arguments
6 participants