Skip to content

Fix canonicalize_const_var leaking inference variables #65652

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 21, 2019

Conversation

BenLewis-Seequent
Copy link

Fixes #61338
Fixes #61516
Fixes #62536
Fixes #64087
Fixes #64863
Fixes #65623

I added regression tests for all these issues apart from #64863, which is very similar to #61338.

r? @varkor

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 21, 2019
@BenLewis-Seequent BenLewis-Seequent changed the title Fix canonicalize_const_var from leaking inference variables Fix canonicalize_const_var leaking inference variables Oct 21, 2019
@eddyb
Copy link
Member

eddyb commented Oct 21, 2019

This is great, thanks!
@bors r+

@bors
Copy link
Collaborator

bors commented Oct 21, 2019

📌 Commit aa3d28f has been approved by eddyb

@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 Oct 21, 2019
@varkor
Copy link
Member

varkor commented Oct 21, 2019

@Skinny121: fantastic, thank you so much! I had completely overlooked this — great spot!

@varkor varkor added the F-const_generics `#![feature(const_generics)]` label Oct 21, 2019
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 21, 2019
Fix `canonicalize_const_var` leaking inference variables

Fixes rust-lang#61338
Fixes rust-lang#61516
Fixes rust-lang#62536
Fixes rust-lang#64087
Fixes rust-lang#64863
Fixes rust-lang#65623

I added regression tests for all these issues apart from rust-lang#64863, which is very similar to rust-lang#61338.

r? @varkor
bors added a commit that referenced this pull request Oct 21, 2019
Rollup of 5 pull requests

Successful merges:

 - #65544 (Added doc on keyword break)
 - #65620 (Correctly note code as Ok not error for E0573)
 - #65624 ([mir-opt] Improve SimplifyLocals pass so it can remove unused consts)
 - #65650 (use unwrap_or in lint code)
 - #65652 (Fix `canonicalize_const_var` leaking inference variables)

Failed merges:

r? @ghost
bors added a commit that referenced this pull request Oct 21, 2019
Rollup of 5 pull requests

Successful merges:

 - #65544 (Added doc on keyword break)
 - #65620 (Correctly note code as Ok not error for E0573)
 - #65624 ([mir-opt] Improve SimplifyLocals pass so it can remove unused consts)
 - #65650 (use unwrap_or in lint code)
 - #65652 (Fix `canonicalize_const_var` leaking inference variables)

Failed merges:

r? @ghost
@bors bors merged commit aa3d28f into rust-lang:master Oct 21, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment