Skip to content

Infinite loop in trait solving #1269

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

Closed
edwin0cheng opened this issue May 13, 2019 · 5 comments
Closed

Infinite loop in trait solving #1269

edwin0cheng opened this issue May 13, 2019 · 5 comments

Comments

@edwin0cheng
Copy link
Member

When i try to run ra_cli analysis-stats on rust-analysis source code, it seem to be going in infinite loop inside https://github.com/rust-analyzer/rust-analyzer/blob/b22614f0b500c351d3abf33a4ed6beaea6861bca/crates/ra_hir/src/ty/traits.rs#L94

Is it because of the fuse things in Chalk we are talking in Zulip , or other reasons ?

@flodiebold
Copy link
Member

It's not an infinite loop, just a very long one ;)

Are you on current master? I thought I made sure that with #1266 it worked again.

@edwin0cheng
Copy link
Member Author

Yes i am in master (b22614f) , and i waited over 10 mins :), although my pc is quite old. (Windows i5-4440).

@flodiebold
Copy link
Member

Hm, I must have accidentally tested with the wrong binary :( I'll look into it.

@flodiebold
Copy link
Member

#1270 should fix this for rust-analyzer for now, at least it works for me again now. We need rust-lang/chalk#227 or something like that to make sure this can never happen, though.

@edwin0cheng
Copy link
Member Author

Closed #1270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants