diff --git a/src/editions/transitioning-your-code-to-a-new-edition.md b/src/editions/transitioning-your-code-to-a-new-edition.md index c445e972..57af9671 100644 --- a/src/editions/transitioning-your-code-to-a-new-edition.md +++ b/src/editions/transitioning-your-code-to-a-new-edition.md @@ -43,6 +43,18 @@ require a Cargo.toml change to enable (described in the sections below). Also note that during the time the preview is available, we may continue to add/enable new features with this flag! +For Rust 2018 edition preview 2, we're also testing a [new module path +variant](rust-2018/path-clarity.html), "uniform paths", which we'd like to get +further testing and feedback on. Please try it out, by adding the following to +your `lib.rs` or `main.rs`: + +```rust +#![feature(rust_2018_preview,uniform_paths)] +``` + +The release of Rust 2018 will stabilize one of the two module path variants and +drop the other. + [status]: 2018/status.html ## Fix edition compatibility warnings diff --git a/src/rust-2018/path-clarity.md b/src/rust-2018/path-clarity.md index cfe18f83..092bb6fa 100644 --- a/src/rust-2018/path-clarity.md +++ b/src/rust-2018/path-clarity.md @@ -19,6 +19,10 @@ sections call out the differences between the two. We encourage testing of the new "uniform paths" variant introduced in edition preview 2. The release of Rust 2018 will stabilize one of these two variants and drop the other. +To test Rust 2018 with the new "uniform paths" variant, put +`#![feature(rust_2018_preview,uniform_paths)]` at the top of your `lib.rs` or +`main.rs`. + Here's a brief summary: * `extern crate` is no longer needed