rust-lang / rust-lang/rust

rustc consumes > 50GB memory, completes eventually but def. stuck on something

Open
#129,844 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-type-system C-optimization E-needs-mcve I-compilemem I-compiletime T-compiler T-types
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...

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):

rustc.logs.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.