Skip to content

SelectionContext::evaluate_predicate_recursively ignores type paramters in outlive predicates #118901

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

Closed
aliemjay opened this issue Dec 13, 2023 · 2 comments
Labels
A-trait-system Area: Trait system C-bug Category: This is a bug. T-types Relevant to the types team, which will review and decide on the PR/issue.

Comments

@aliemjay
Copy link
Member

aliemjay commented Dec 13, 2023

I believe this is missing another special case for pred.0.has_params() as well as has_placeholders():

// A global type with no free lifetimes or generic parameters
// outlives anything.
if pred.0.has_free_regions()
|| pred.0.has_bound_regions()
|| pred.0.has_non_region_infer()
|| pred.0.has_non_region_infer()
{
Ok(EvaluatedToOkModuloRegions)
} else {
Ok(EvaluatedToOk)
}

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Dec 13, 2023
@aliemjay aliemjay added C-bug Category: This is a bug. T-types Relevant to the types team, which will review and decide on the PR/issue. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Dec 13, 2023
@Enselic
Copy link
Member

Enselic commented Nov 12, 2024

Triage: It would be great to have some more context here. Does this mean programs miscompile? Or that programs that should compile does not compile? Can you give an example program please? Thanks!

@Enselic Enselic added the A-trait-system Area: Trait system label Apr 10, 2025
@Enselic
Copy link
Member

Enselic commented Apr 10, 2025

Triage: closing as "not enough context"/"inactionable".

@Enselic Enselic closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-trait-system Area: Trait system C-bug Category: This is a bug. T-types Relevant to the types team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants