-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requirement solver overflow involving proptest::sugar::NamedArguments
#123493
Labels
C-bug
Category: This is a bug.
P-medium
Medium priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Apr 5, 2024
jieyouxu
added
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
and removed
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
labels
Apr 5, 2024
Bisects to nightly-2023-10-07. In nightly-2023-10-06, we get "the expected error" shown above. |
dtolnay
added
the
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
label
Apr 7, 2024
rustbot
added
the
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
label
Apr 7, 2024
dtolnay
added
the
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
label
Apr 7, 2024
Minimal: trait Hello {}
struct Foo<'a, T: ?Sized>(&'a T);
impl<'a, T: ?Sized> Hello for Foo<'a, &'a T> where Foo<'a, T>: Hello {}
fn hello<T: ?Sized + Hello>() {}
fn main() {
hello::<_>();
} |
I'll put up a fix in a sec |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
rustbot
added
P-medium
Medium priority
and removed
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
labels
Apr 8, 2024
apiraino
removed
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Apr 8, 2024
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 14, 2024
Rollup merge of rust-lang#123618 - compiler-errors:overflow-ambig, r=spastorino Discard overflow obligations in `impl_may_apply` Hacky fix for rust-lang#123493. Throws away obligations that are overflowing in `impl_may_apply` when we recompute if an impl applies, since those will lead to fatal overflow if processed during fulfillment. Something about rust-lang#114811 (I think it's the predicate reordering) caused us to evaluate predicates differently in error reporting leading to fatal overflow, though I believe the underlying overflow is possible to hit since this code was rewritten to use fulfillment. Fixes rust-lang#123493
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
P-medium
Medium priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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 leadrustc
to 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-05
and innightly-2024-03-12
.rustc --version --verbose
:The text was updated successfully, but these errors were encountered: