-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support in band lifetimes #7416
Comments
Hmm, that seems wrong. |
Actually that might have been an early panic. The error from renaming
|
Reference search fails there because those lifetimes don't have a definition place. As in they aren't listed in the impls generic param list where we currently expect them to be. So as a workaround when trying to rename these you can temporarily add the definition, rename and then remove the definition I believe 😄 |
7505: Widen Highlights root range to covering element r=Veykril a=Veykril There have been a few issues about/containing spurious syntax highlighting panics, which all seem to come from the `rust_analyzer::handlers::handle_semantic_tokens_range` request, which I believe this to be the cause of as the text range we want to highlight here is currently potentially smaller than that of the covering element, so we might highlight something that is inside the covering element, but outside of the text range we wish to highlight causing the assert to fail. Unfortunately this isn't really easy to test since I have yet to find a reproducible cause(#7504 doesn't work for me cause I can't seem to checkout the given commit). See #7504, #7298, #7299 and #7416, all of those contain an assertion failure in syntax highlighting, but only in the range request. Co-authored-by: Lukas Wirth <[email protected]>
In-band lifetimes appear quite likely to be removed from the compiler at this point. Something to keep an eye out for with regard to closing this issue. |
This feature is getting removed, so we can close this |
This happened trying to rename
'me
on https://github.com/jyn514/rust/blob/8edda7e0fb9ae313e47f9f43a07e719b9f0fe9d0/compiler/rustc_infer/src/infer/nll_relate/mod.rs#L818.The text was updated successfully, but these errors were encountered: