Skip to content

Fix non_copy_const ICE #15083

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

Merged
merged 1 commit into from
Jun 19, 2025
Merged

Fix non_copy_const ICE #15083

merged 1 commit into from
Jun 19, 2025

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Jun 19, 2025

fixes #15069


changelog: none

@rustbot
Copy link
Collaborator

rustbot commented Jun 19, 2025

r? @llogiq

rustbot has assigned @llogiq.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 19, 2025
@llogiq
Copy link
Contributor

llogiq commented Jun 19, 2025

I guess the only question is why did we use that binder+instantiate rigmarole in the first place?

Anyway, LGTM.

@llogiq llogiq added this pull request to the merge queue Jun 19, 2025
@Jarcho
Copy link
Contributor Author

Jarcho commented Jun 19, 2025

It's needed when reading types from init_typeck since they come from a different body. I accidentally applied it in that spot as well.

Merged via the queue into rust-lang:master with commit 62fd159 Jun 19, 2025
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: const parameter N/#1 (N/#1/1) out of range when instantiating args=[N/#1]
3 participants