rustc consumes > 50GB memory, completes eventually but def. stuck on something
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
First of all, I am convinced it is more the fault of me doing something wrong. My hope and guess is that this is not a bug in rust, but just me misusing the language. I can however not find why it is happening, but I imagine it is something to do with an accidantal recursive trait bound or other generic related issue...
- Problem is specifically with: https://github.com/plabayo/rama/blob/09c8bc0fea80560763c12149aceae3d9ddae87f5/examples/http_high_level_client.rs
- And it seemed to have been introduced the "problem" in https://github.com/plabayo/rama/pull/297/commits/aa4ea25cd2e4d624e8f82d1c48d375f285e3266b (that's when CI stage timings increased from 12m to 85m...)
Of course it might be that already before aa4ea25cd2e4d624e8f82d1c48d375f285e3266b I was defining trait bounds or using generics in a "wrong" manner.
Logs attached for timings I was able to produce with nightly (in stable it was taking too long for me to be able to wait):
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with examples/http_high_level_client.rs at the linked revision and compare it with commit aa4ea25cd2e4d624e8f82d1c48d375f285e3266b. Review rustc.logs.zip and reproduce the compilation timing and memory use with nightly or stable. Done means identifying a minimized compiler issue or confirming the behavior is caused by the example's trait bounds or generics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100