Skip to content

Document uniform_paths #487

Open
Open

Description

@petrochenkov

This is a documentation issue for rust-lang/rust#56759

Activity

  1. added
    S-waiting-on-stabilizationWaiting for a stabilization PR to be merged in the main Rust repository
    RFC Stabilization DocsDocumentation required for stabilizing a feature
    on Dec 28, 2018
  2. added this to the 1.32 milestone on Jan 12, 2019
  3. removed
    S-waiting-on-stabilizationWaiting for a stabilization PR to be merged in the main Rust repository
    on Jan 27, 2019
  4. added
    A-resolveName resolution, paths, namespaces, preludes, etc.
    on Aug 30, 2019
  5. estebank commented on Apr 23, 2020

    @estebank
    Contributor

    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?

  6. ehuss commented on Apr 23, 2020

    @ehuss
    Contributor

    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.

  7. bstrie commented on Apr 25, 2021

    @bstrie
    Contributor

    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 {
        pub enum MyEnum {
            MyVariant
        }
        pub type TypeAlias = MyEnum;
    }
    use my_mod::MyEnum; // OK
    use my_mod::MyEnum::MyVariant; // OK
    use my_mod::TypeAlias; // OK
    use my_mod::TypeAlias::MyVariant; // Doesn't work
    let _ = my_mod::TypeAlias::MyVariant; // OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveName resolution, paths, namespaces, preludes, etc.RFC Stabilization DocsDocumentation required for stabilizing a feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions