Skip to content

Large compile times with repetitive trait bound #68796

Open
@Farkal

Description

@Farkal

I am using wundergraph that generate lot of macro code and it seems rustc have hard time resolving code here and here

I tried this code:
https://github.com/Farkal/test-wundergraph

I expected to see this happen:
Less than 40sc of compilation on each change

Instead, this happened:
40sc or more of compilation

Meta

rustc --version --verbose:
rustc 1.41.0 (5e1a799 2020-01-27)
binary: rustc
commit-hash: 5e1a799
commit-date: 2020-01-27
host: x86_64-unknown-linux-gnu
release: 1.41.0
LLVM version: 9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-trait-systemArea: Trait systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleI-compiletimeIssue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler 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