-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
region error "Cannot encode region variables" #3888
Comments
hmm. I wasn't aware of this error. Sounds like a failing in region inference somehow (underconstrained?) |
As of 89ed595 , this fails with a different error:
Not sure if the |
I fixed the I figured out that this minimized version still errors out:
but this one compiles successfully:
so I'm guessing this has to do with a bug with autoslicing and methods. |
The "cannot encode region variables" error has been fixed. I verified the results reported by catamorphism. That may be a bug, but the title of this bug is confusing matters. So I will open up a separate bug for the borrow checking issue. |
Spawned off new ticket #5541. Closing this one. |
… 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
… 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
…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
Android: Fixed tests for libc time API Closes rust-lang#3888. There's nothing to do, really. All of the API is already supported by `miri`, but I just tweaked tests a bit to match the data structures and functions from `bionic`.
The following code causes the compiler to fail. Conversation on IRC suggests this is a known issue, but I could not find this specific error by searching tickets for "Cannot encode region variables" nor any of the hits for "region variables".
I apologize if this is a duplicate.
The text was updated successfully, but these errors were encountered: