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

Fix "cannot encode region variables" error #5467

Conversation

nikomatsakis
Copy link
Contributor

The basic problem was that vtables were not being resolved. The fix uncovered another issue, which was that the syntax extensions were not creating method calls properly and were relying on outdated code in typeck, so I fixed that too.

Resolves issues #3888, #4036, #4492.

r? @catamorphism

expr_call(expr_field(...)) rather than an expr_method_call.
There is probably more such code in trans that should be removed.
problem and which seem like they could be useful in the future.
… astconv

and from typeck, which is verboten.  We are supposed to write inference results
into the FnCtxt and then these get copied over in writeback.  Add assertions
that no inference by-products are added to this table.

Fixes rust-lang#3888
Fixes rust-lang#4036
Fixes rust-lang#4492
bors added a commit that referenced this pull request Mar 26, 2013
…encode-region-variables, r=nikomatsakis

The basic problem was that vtables were not being resolved.  The fix uncovered another issue, which was that the syntax extensions were not creating method calls properly and were relying on outdated code in typeck, so I fixed that too.  

Resolves issues #3888, #4036, #4492.

r? @catamorphism
@bors bors closed this Mar 26, 2013
@bors bors merged commit 3ca7c22 into rust-lang:incoming Mar 26, 2013
@nikomatsakis nikomatsakis deleted the issues-3888-4036-4492-cannot-encode-region-variables branch March 30, 2016 16:16
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants