Skip to content

enumoid regression: not structurally normalizing type in hir typeck pattern checking #200

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
compiler-errors opened this issue May 6, 2025 · 1 comment · Fixed by rust-lang/rust#140707
Assignees
Labels
from-crater A regression found via a crater run, not part of our test suite

Comments

@compiler-errors
Copy link
Member

https://crater-reports.s3.amazonaws.com/pr-133502-11/try%2328f13ad7c79d80decb5a3d54595a8b4105f397a3/reg/enumoid-0.4.0/log.txt

minimal:

trait Foo {
    type Bar;
}

impl Foo for () {
    type Bar = i32;
}

fn main() {
    const X: <() as Foo>::Bar = 0;

    match 0 {
        X..=X => {}
        _ => {}
    }
}
@compiler-errors compiler-errors self-assigned this May 6, 2025
@lcnr lcnr added the from-crater A regression found via a crater run, not part of our test suite label May 6, 2025
@lcnr lcnr moved this from unknown to in progress in -Znext-solver=globally May 6, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue May 8, 2025
…orm, r=lcnr

Structurally normalize in range pattern checking in HIR typeck

Fixes rust-lang/trait-system-refactor-initiative#200

r? lcnr
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue May 8, 2025
…orm, r=lcnr

Structurally normalize in range pattern checking in HIR typeck

Fixes rust-lang/trait-system-refactor-initiative#200

r? lcnr
rust-timer added a commit to rust-lang-ci/rust that referenced this issue May 9, 2025
Rollup merge of rust-lang#140707 - compiler-errors:range-pat-struct-norm, r=lcnr

Structurally normalize in range pattern checking in HIR typeck

Fixes rust-lang/trait-system-refactor-initiative#200

r? lcnr
@lcnr
Copy link
Contributor

lcnr commented May 9, 2025

fixed by rust-lang/rust#140707

@lcnr lcnr moved this from in progress to done in -Znext-solver=globally May 9, 2025
@lcnr lcnr closed this as completed by moving to done in -Znext-solver=globally May 9, 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