Skip to content

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

Closed
rust-lang/rust
#140707
@compiler-errors

Description

@compiler-errors

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 => {}
        _ => {}
    }
}

Metadata

Metadata

Labels

from-craterA regression found via a crater run, not part of our test suite

Type

No type

Projects

Status

done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions