Skip to content

rustdoc: synthetic blanket impls: hang / very long compiletimes with complex mutually recursive structs involving many projections #114891

@jimblandy

Description

@jimblandy

Problem

When I run cargo doc, it never terminates. Instead, it uses 100% of a CPU indefinitely.

Steps

  1. git clone https://github.com/gents83/wgpu.git
  2. cd wgpu
  3. git checkout 91d872e1
  4. cargo +nightly doc -p wgpu-core

That final command never seems to exit.

Notes

I'm running Fedora 38 and cargo 1.73.0-nightly (7c3904d6c 2023-08-14).

Metadata

Metadata

Assignees

Labels

A-synthetic-implsArea: Synthetic impls, used by rustdoc to document auto traits and traits with blanket implsA-trait-systemArea: Trait systemC-bugCategory: This is a bug.I-compiletimeIssue: Problems and improvements with respect to compile times.S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions