-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
A-nameresname, path and module resolutionname, path and module resolutionA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug
Description
rust-analyzer version: rust-analyzer version: faaec86 2022-04-12 nightly
rustc version: rustc 1.60.0 (7737e0b5c 2022-04-04)
rust-analyzer/crates/hir/src/lib.rs
Lines 3159 to 3164 in 13f36e7
| it.into_iter().filter_map(|pred| match pred.skip_binders() { | |
| hir_ty::WhereClause::Implemented(trait_ref) => { | |
| Some(Trait::from(trait_ref.hir_trait_id())) | |
| } | |
| _ => None, | |
| }) |
hir_ty::WhereClause::Implemented is unresolved:
Minimized:
mod m {
pub enum Enum {
Foo(u8),
}
pub type Alias = Enum;
}
fn f() {
let e = m::Alias::Foo(0);
let m::Alias::Foo(x) = &e;
}Metadata
Metadata
Assignees
Labels
A-nameresname, path and module resolutionname, path and module resolutionA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug