-
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
Borrow check error with "unknown scope" region for callee's self parameter #4464
Comments
Looks broken all right. |
no longer ICE; it now responds to updated input:
with:
This looks like a reasonable error to mem except, hm, I think probably the signature of slice isn't right? Or something. Leaving open but moving off the priority list for 0.6 (and removed ICE label) |
I think the problem is the last part: the lifetime of the pointer/length pair itself shouldn't be constrained to be equal to the lifetime of the pointed-to data like that. So |
This is rather related to #5656. I'll take a look as I work. |
I think I have the fix for this problem (inadvertently, actually). |
Never mind, I was wrong. It seemed related to another problem that I found, but the fix for that issue doesn't seem to have fixed this test case. I'll look at this more specifically shortly. |
@graydon 's code compiles now (modified to take the lifetime parameter explicitly). I'll add a test case. |
Still needs test, updated syntax: |
* Document RUSTFMT env var * Move documentation up * Apply suggestions from code review Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com> * Fix accedental removal Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com> # Conflicts: # README.md
A reduced test case, which seems as if it should be valid:
The error:
The text was updated successfully, but these errors were encountered: