Skip to content

Commit 2fcf178

Browse files
committed
update minimum versions of rc features
1 parent cf51fb7 commit 2fcf178

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

src/rust-2018/macros/macro-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Macro changes
22

3-
![Minimum Rust version: nightly](https://img.shields.io/badge/Minimum%20Rust%20Version-nightly-red.svg)
3+
![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
44

55
In Rust 2018, you can import specific macros from external crates via `use`
66
statements, rather than the old `#[macro_use]` attribute.

src/rust-2018/module-system/path-clarity.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Path clarity
22

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

66
The module system is often one of the hardest things for people new to Rust. Everyone
@@ -224,7 +224,6 @@ and the submodule is still `foo/bar.rs`. This eliminates the special
224224
name, and if you have a bunch of files open in your editor, you can clearly
225225
see their names, instead of having a bunch of tabs named `mod.rs`.
226226

227-
228227
# Uniform paths
229228

230229
> Uniform paths are a nightly-only feature.

src/rust-2018/module-system/raw-identifiers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Raw identifiers
22

3-
![Minimum Rust version: nightly](https://img.shields.io/badge/Minimum%20Rust%20Version-nightly-red.svg)
3+
![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
44

55
Rust, like many programming languages, has the concept of "keywords".
66
These identifiers mean something to the language, and so you cannot use them in

src/rust-2018/ownership-and-lifetimes/inference-in-structs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `T: 'a` inference in structs
22

3-
![Minimum Rust version: nightly](https://img.shields.io/badge/Minimum%20Rust%20Version-nightly-red.svg)
3+
![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
44

55
An annotation in the form of `T: 'a`, where `T` is either a type or another
66
lifetime, is called an *"outlives"* requirement. Note that *"outlives"* also

src/rust-2018/ownership-and-lifetimes/lifetime-elision-in-impl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lifetime elision in impl
22

3-
![Minimum Rust version: nightly](https://img.shields.io/badge/Minimum%20Rust%20Version-nightly-red.svg)
3+
![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
44

55
When writing `impl` blocks, you can now elide lifetime annotations in some
66
situations.

src/rust-2018/ownership-and-lifetimes/the-anonymous-lifetime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ impl Foo<'_, '_> {
100100
This is the same, because for each `'_`, a fresh lifetime is generated.
101101
Finally, the relationship `'a: 'b` which the struct requires must be upheld.
102102

103-
For more details, see the [tracking issue on In-band lifetime bindings](https://github.com/rust-lang/rust/issues/44524).
103+
For more details, see the [tracking issue on In-band lifetime bindings](https://github.com/rust-lang/rust/issues/44524).

src/rust-2018/trait-system/no-anon-params.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# No more anonymous trait parameters
22

3+
![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
4+
35
In accordance with RFC [#1685](https://github.com/rust-lang/rfcs/pull/1685),
46
parameters in trait method declarations are no longer allowed to be anonymous.
57

68
For example, in the 2015 edition, this was allowed:
9+
710
```rust
811
trait Foo {
912
fn foo(&self, u8);

0 commit comments

Comments
 (0)