Skip to content

Path and module changes (RFC 2126) #291

Description

@matthewjasper

See rust-lang/rust#44660.

  • Paths starting with crate
  • Not needing extern crate
  • crate visibility modifier - not stabilizing in initial release
  • Not using mod.rs
  • Any edition lints
  • Update existing examples

Activity

  1. added this to the Rust 2018 milestone on Apr 3, 2018
  2. ehuss commented on Oct 14, 2018

    @ehuss
    Contributor

    I have a branch for the extern crate changes, but it is blocked waiting on #415 (I either need to link to or write something that explains the extern prelude). crate visibility is not stable (rust-lang/rust#53120) so I don't think that's relevant here. I opened PR #450 for mod.rs changes.

    I'm not sure what is meant by "edition lints". My extern crate changes note that it is unidiomatic in 2018, but I'm not sure what other lints are relevant. Also, I was under the impression lints aren't generally documented here and deferred to the rustc user guide. Are there specific rust_2018_idioms you want to call out?

  3. ehuss commented on Oct 14, 2018

    @ehuss
    Contributor

    Regarding updating the examples, AFAIK the mdbook playpen links don't support changing the edition, so those links will always break. I can't find this being tracked or mentioned anywhere. I imagine they aren't used very often, but I think it should be tracked somewhere (should I file an mdbook issue?).

  4. removed
    S-waiting-on-stabilizationWaiting for a stabilization PR to be merged in the main Rust repository
    on Sep 2, 2020
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

    RFC Stabilization DocsDocumentation required for stabilizing a feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions