-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
error[E0275]: overflow evaluating the requirement… when importing bevy_ecs #123925
Copy link
Copy link
Closed
Labels
A-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The following code correctly results in a compile error:
Correct compile error
I tried to add an unused
usestatement:I expected to see this happen: The same compile error message.
Instead, this happened:
The exact type varies (e.g.
Mut,Res,Local).This happens for any
use x;wherexis or depends onbevy_ecsversion "^0.9".There is also a bevy_ecs-specifc workaround in the compiler, but its not related as it is part of well-formedness checking and the error persists when renaming
ParamSet.What makes this bug annoying is that the error message doesn't give any indication as to where the code that causes the error (line 2 into above example) is.
Meta
rustc --version --verbose:Also tried with
1.77.2.