analysis-stats
hangs with fixed-point combinator
#9813
Labels
A-ty
type system / type inference / traits / method resolution
S-unactionable
Issue requires feedback, design decisions or is blocked on other work
rust-analyzer
(installed by VS Code plugin) hangs andrustfmt
takes too long (infinite?) time if I add the following code:There is no problem with
rust-analyzer
(except for #8917) if I comment out this code and re-open VS Code.In this code, I define fixed-point combinator and use it to implement a closure that calculate factorial. The code compiles and no problem occur at execution (see https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=82edb19f2e437ab6ff5a8045c4ab0593). Therefore, the code is not in itself a bad one. Maybe cyclic definition problem or something (not with
rustc
but only withrust-analyzer
) happens, but I'm not sure.The hanging process name was
rust-analyzer-x86_64-unknown-linux-gnu
. I also checked that~/.config/Code/User/globalStorage/matklad.rust-analyzer/rust-analyzer-x86_64-unknown-linux-gnu analysis-stats PATH/TO/project_dir
also hangs while processingget_fact
:I use following version with VS Code plugin on Kubuntu 20.04:
The text was updated successfully, but these errors were encountered: