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

Resolve inference variables before trying to remove overloaded indexing #79427

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

Aaron1011
Copy link
Member

Fixes #79152

This code was already set up to handle indexing an array. However, it
appears that we never end up with an inference variable for the slice
case, so the missing call to resolve_vars_if_possible had no effect
until now.

@rust-highfive
Copy link
Collaborator

r? @oli-obk

(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 Nov 25, 2020
Fixes rust-lang#79152

This code was already set up to handle indexing an array. However, it
appears that we never end up with an inference variable for the slice
case, so the missing call to `resolve_vars_if_possible` had no effect
until now.
@Aaron1011 Aaron1011 force-pushed the fix/const-array-index branch from 9ffe250 to 0b64110 Compare November 25, 2020 23:41
@oli-obk
Copy link
Contributor

oli-obk commented Nov 26, 2020

@bors r+ p=1

@bors
Copy link
Contributor

bors commented Nov 26, 2020

📌 Commit 0b64110 has been approved by oli-obk

@bors
Copy link
Contributor

bors commented Nov 26, 2020

🌲 The tree is currently closed for pull requests below priority 500, this pull request will be tested once the tree is reopened

@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 Nov 26, 2020
@bors
Copy link
Contributor

bors commented Nov 26, 2020

⌛ Testing commit 0b64110 with merge aefcf1f...

@bors
Copy link
Contributor

bors commented Nov 26, 2020

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing aefcf1f to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 26, 2020
@bors bors merged commit aefcf1f into rust-lang:master Nov 26, 2020
@rustbot rustbot added this to the 1.50.0 milestone Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alacritty/vte fails to build on rustc master (mutable references are not allowed in constant functions)
5 participants