Skip to content

Commit

Permalink
update several version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Dec 15, 2018
1 parent f63b244 commit 9c48d95
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 32 deletions.
27 changes: 1 addition & 26 deletions src/editions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,4 @@ People using any edition of Rust will continue to see improvements as new
stable releases are made. In some cases however, mainly when new keywords are
added, but sometimes for other reasons, there may be new features that are only
available in later editions. You only need to upgrade if you want to take
advantage of such features.

## Trying out the 2018 edition

At the time of writing, there are two editions: 2015 and 2018. 2015 is today's
Rust; Rust 2018 is currently in beta, and will land in stable in Rust 1.31, on December 6, 2018.

To give the 2018 edition a try, install the beta toolchain:

```console
> rustup install beta
````

If you want the really bleeding edge, you can try nightly:

```console
> rustup install nightly
```

When you see commands like `cargo fix` elsewhere in this guide, you may
need to preface them with the toolchain:

```console
> cargo +beta fix --edition
> cargo +nightly fix --edition
```
advantage of such features.
2 changes: 1 addition & 1 deletion src/rust-2018/macros/macro-changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Macro changes

![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
![Minimum Rust version: 1.31](https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg)

## `macro_rules!` style macros

Expand Down
2 changes: 1 addition & 1 deletion src/rust-2018/module-system/path-clarity.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Path clarity

![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
![Minimum Rust version: 1.31](https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg)
![Minimum Rust version: nightly](https://img.shields.io/badge/Minimum%20Rust%20Version-nightly-red.svg) for "uniform paths"

The module system is often one of the hardest things for people new to Rust. Everyone
Expand Down
2 changes: 1 addition & 1 deletion src/rust-2018/module-system/raw-identifiers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Raw identifiers

![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
![Minimum Rust version: 1.30](https://img.shields.io/badge/Minimum%20Rust%20Version-1.30-brightgreen.svg)

Rust, like many programming languages, has the concept of "keywords".
These identifiers mean something to the language, and so you cannot use them in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `T: 'a` inference in structs

![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
![Minimum Rust version: 1.31](https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg)

An annotation in the form of `T: 'a`, where `T` is either a type or another
lifetime, is called an *"outlives"* requirement. Note that *"outlives"* also
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Non-lexical lifetimes

![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
![Minimum Rust version: 1.31](https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg)

The borrow checker has been enhanced to accept more code, via a mechanism
called "non-lexical lifetimes." Consider this example:
Expand Down
2 changes: 1 addition & 1 deletion src/rust-2018/trait-system/no-anon-params.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# No more anonymous trait parameters

![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
![Minimum Rust version: 1.31](https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg)

In accordance with RFC [#1685](https://github.com/rust-lang/rfcs/pull/1685),
parameters in trait method declarations are no longer allowed to be anonymous.
Expand Down

0 comments on commit 9c48d95

Please sign in to comment.