-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Hang when hovering over constant #16907
Comments
rust-lang/rust#122037 might be at fault here. Presumably this broke something in our mir eval, commit range diff rust-lang/rust@7f9830b |
rust-lang/rust#122037 indeed needs some action, we need to consider function annotated with |
I encountered the same problem, in my case |
I'm taking a look at fixing this by handling the new intrinsics correctly. |
Uh, r-a's implementation of |
@Nilstrieb in case it's helpful at all, i added this comment to a closed issue before i realized that this and #16934 were both still open. memory is leaking for me whenever vs code tries to format-on-save, which sounds like it's related to your last comment here. |
rust-analyzer version:
rustc version: rustc 1.79.0-nightly (a7e4de13c 2024-03-19)
relevant settings: N/A
repository link (if public, optional): N/A
code snippet to reproduce:
Hovering over either
CONST
starts the hang and rust-analyzer becomes unresponsive, consuming about ~200MiB RAM per second in this case, though in other cases it can be much faster.The server cannot be killed through hovering on the
rust-analyzer
button on the lower bar or withrust-analyzer: Stop server
, and must be killed through the command line. It is either non-responsive or doesn't kill the process.I can reproduce this consistently with recent rust-analyzer client and server, but only after updating
rustc
fromnightly-2024-03-19
(rustc 1.79.0-nightly (3c85e5624 2024-03-18)
) tonightly-2024-03-20
(rustc 1.79.0-nightly (a7e4de13c 2024-03-19)
) or later with rustup (override works too).The text was updated successfully, but these errors were encountered: