Skip to content

Commit a9e8317

Browse files
Updates
1 parent ca4eeaa commit a9e8317

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

posts/2020-10-05-Rust-1.47.md renamed to posts/2020-10-08-Rust-1.47.md

+17-16
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ practice is that if you try to do something like this on Rust 1.46:
5252
```rust
5353
fn main() {
5454
let xs = [0; 34];
55-
55+
5656
println!("{:?}", xs);
5757
}
5858
```
@@ -71,12 +71,12 @@ error[E0277]: arrays only have std trait implementations for lengths 0..=32
7171
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
7272
```
7373

74-
But with Rust 1.47, it will properly print out.
74+
But with Rust 1.47, it will properly print out the array.
7575

7676
This should make arrays significantly more useful to folks, though it will
77-
take until the const generics feature stabilizes for libraries to fully be
78-
able to do this kind of implementation for their own traits. We do not have
79-
a current estimated date for the stabilization of const generics.
77+
take until the const generics feature stabilizes for libraries to be able to do
78+
this kind of implementation for their own traits. We do not have a current
79+
estimated date for the stabilization of const generics.
8080

8181
#### Shorter backtraces
8282

@@ -176,8 +176,6 @@ on Windows. Other platforms ignore this flag.
176176

177177
### Library changes
178178

179-
[Rustdoc has gained support for the Ayu theme](https://github.com/rust-lang/rust/pull/71237/).
180-
181179
Additionally, nine new APIs were stabilized this release:
182180

183181
- [`Ident::new_raw`]
@@ -203,21 +201,24 @@ The following previously stable APIs have now been made `const`:
203201
`is_ascii_punctuation`, `is_ascii_graphic`, `is_ascii_whitespace`, and
204202
`is_ascii_control` methods for `char` and `u8`.][73858]
205203

206-
[`Ident::new_raw`]: https://doc.rust-lang.org/nightly/proc_macro/struct.Ident.html#method.new_raw
207-
[`Range::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.Range.html#method.is_empty
208-
[`RangeInclusive::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html#method.is_empty
209-
[`Result::as_deref_mut`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref_mut
210-
[`Result::as_deref`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref
211-
[`TypeId::of`]: https://doc.rust-lang.org/nightly/std/any/struct.TypeId.html#method.of
212-
[`Vec::leak`]: https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.leak
213-
[`f32::TAU`]: https://doc.rust-lang.org/nightly/std/f32/consts/constant.TAU.html
214-
[`f64::TAU`]: https://doc.rust-lang.org/nightly/std/f64/consts/constant.TAU.html
204+
[`Ident::new_raw`]: https://doc.rust-lang.org/stable/proc_macro/struct.Ident.html#method.new_raw
205+
[`Range::is_empty`]: https://doc.rust-lang.org/stable/std/ops/struct.Range.html#method.is_empty
206+
[`RangeInclusive::is_empty`]: https://doc.rust-lang.org/stable/std/ops/struct.RangeInclusive.html#method.is_empty
207+
[`Result::as_deref_mut`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.as_deref_mut
208+
[`Result::as_deref`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.as_deref
209+
[`TypeId::of`]: https://doc.rust-lang.org/stable/std/any/struct.TypeId.html#method.of
210+
[`Vec::leak`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.leak
211+
[`f32::TAU`]: https://doc.rust-lang.org/stable/std/f32/consts/constant.TAU.html
212+
[`f64::TAU`]: https://doc.rust-lang.org/stable/std/f64/consts/constant.TAU.html
213+
[`pointer::offset_from`]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.offset_from
215214
[73858]: https://github.com/rust-lang/rust/pull/73858/
216215

217216
See the [detailed release notes][notes] for more.
218217

219218
### Other changes
220219

220+
[Rustdoc has gained support for the Ayu theme](https://github.com/rust-lang/rust/pull/71237/).
221+
221222
[relnotes-cargo]: https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-147-2020-10-08
222223
[relnotes-clippy]: https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-147
223224

0 commit comments

Comments
 (0)