-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
requirement solver overflow involving proptest::sugar::NamedArguments #123493
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I have a full repro in https://github.com/SohumB/proptest_sugar_rustc_overflow, but the short version is, it seems like some cases of code that look like an omitted type should be inferrable:
while certain dependencies, leading to
proptest, are in the compile pathway (I could only get it to reproduce via a weird dependency chain via a workspace and a couple of public crates), can leadrustcto an overflow:If the dependency chain is altered in any way that I could divine, the expected error is output:
Meta
I've reproduced this bug both in
nightly-2024-04-05and innightly-2024-03-12.rustc --version --verbose: