You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We just undocumented it (#665), because it was wrong in several ways. There is an open PR #697 to update it, but I think the PR is still incomplete, and doesn't really address the underlying issue. Personally, I don't think it can be properly documented without documenting all of name resolution, which is a huge project.
One subtask of this is to document the limitations of type aliases WRT associated items (including enum variants, which are secretly associated items):
mod my_mod {pubenumMyEnum{MyVariant}pubtypeTypeAlias = MyEnum;}use my_mod::MyEnum;// OKuse my_mod::MyEnum::MyVariant;// OKuse my_mod::TypeAlias;// OKuse my_mod::TypeAlias::MyVariant;// Doesn't worklet _ = my_mod::TypeAlias::MyVariant;// OK
Activity
uniform_paths
rust-lang/rust#56759uniform_paths
#697estebank commentedon Apr 23, 2020
Some information around 2018 edition has been added to https://github.com/rust-lang/reference/blob/master/src/items/use-declarations.md. Is the current state of the documentation enough to close this ticket @petrochenkov?
ehuss commentedon Apr 23, 2020
We just undocumented it (#665), because it was wrong in several ways. There is an open PR #697 to update it, but I think the PR is still incomplete, and doesn't really address the underlying issue. Personally, I don't think it can be properly documented without documenting all of name resolution, which is a huge project.
bstrie commentedon Apr 25, 2021
One subtask of this is to document the limitations of type aliases WRT associated items (including enum variants, which are secretly associated items):