Skip to content

coerce fndef to ptr ignores nested alias relate #212

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
lcnr opened this issue May 21, 2025 · 0 comments · Fixed by rust-lang/rust#141334
Closed

coerce fndef to ptr ignores nested alias relate #212

lcnr opened this issue May 21, 2025 · 0 comments · Fixed by rust-lang/rust#141334
Labels
from-crater A regression found via a crater run, not part of our test suite

Comments

@lcnr
Copy link
Contributor

lcnr commented May 21, 2025

fn foo<const N: usize>() {}
fn main() {
    let _ = if true { foo::<{ 0 + 0 }> } else { foo::<1> };
}
@compiler-errors compiler-errors added the from-crater A regression found via a crater run, not part of our test suite label May 21, 2025
@lcnr lcnr moved this from unknown to in progress in -Znext-solver=globally May 21, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this issue May 21, 2025
Rollup merge of rust-lang#141334 - lcnr:coerce-nested-obligations, r=compiler-errors

eagerly check nested obligations when coercing fndefs

fixes rust-lang/trait-system-refactor-initiative#212

r? `@compiler-errors`
@lcnr lcnr moved this from in progress to done in -Znext-solver=globally May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from-crater A regression found via a crater run, not part of our test suite
Projects
Development

Successfully merging a pull request may close this issue.

2 participants