Skip to content

Fix canonicalize_const_var leaking inference variables - #65652

Merged
bors merged 1 commit into
rust-lang:masterfrom
BenLewis-Seequent:const_infer_leak
Oct 21, 2019
Merged

Fix canonicalize_const_var leaking inference variables#65652
bors merged 1 commit into
rust-lang:masterfrom
BenLewis-Seequent:const_infer_leak

Conversation

@BenLewis-Seequent

Copy link
Copy Markdown

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-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 21, 2019
@BenLewis-SeequentBenLewis-Seequent changed the title Fix canonicalize_const_var from leaking inference variablesFix canonicalize_const_var leaking inference variablesOct 21, 2019
@eddyb

Copy link
Copy Markdown
Contributor

This is great, thanks!
@bors r+

@bors

bors commented Oct 21, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit aa3d28f has been approved by eddyb

@borsbors 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
Copy Markdown
Contributor

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

@varkorvarkor 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
Fixesrust-lang#61338Fixesrust-lang#61516Fixesrust-lang#62536Fixesrust-lang#64087Fixesrust-lang#64863Fixesrust-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
@JohnTitorJohnTitor mentioned this pull request Oct 21, 2019
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:masterOct 21, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-const_generics`#![feature(const_generics)]`S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

6 participants

@BenLewis-Seequent@eddyb@bors@varkor@rust-highfive@skinnyBat