From 7def305b9186cdfe81939f2a54de135768067588 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 19 Dec 2018 15:01:09 -0500 Subject: [PATCH 1/4] 1.31.1 announcement --- posts/2018-12-20-Rust-1.31.1.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 posts/2018-12-20-Rust-1.31.1.md diff --git a/posts/2018-12-20-Rust-1.31.1.md b/posts/2018-12-20-Rust-1.31.1.md new file mode 100644 index 000000000..d8932847a --- /dev/null +++ b/posts/2018-12-20-Rust-1.31.1.md @@ -0,0 +1,33 @@ +--- +layout: post +title: "Announcing Rust 1.31.1" +author: The Rust Release Team +--- + +The Rust team is happy to announce a new version of Rust, 1.31.1. Rust is a +systems programming language focused on safety, speed, and concurrency. + +If you have a previous version of Rust installed via rustup, getting Rust +1.31.1 is as easy as: + +``` +$ rustup update stable +``` + +If you don't have it already, you can [get `rustup`][install] from the +appropriate page on our website, and check out the [detailed release notes for +1.31.1][notes] on GitHub. + +[install]: https://www.rust-lang.org/install.html +[notes]: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1311-2018-12-20 + +## What's in 1.31.1 stable + +This patch release fixes a build failure on on `powerpc-unknown-netbsd` by +way of [an update to the `libc` +crate](https://github.com/rust-lang/rust/pull/56562). + +Additionally, the Rust Language Server was updated to fix two critical bugs: + +* +* \ No newline at end of file From 03b982f5a109d22f08d0316a1170e5c4e4256499 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Wed, 19 Dec 2018 17:48:46 -0500 Subject: [PATCH 2/4] Update posts/2018-12-20-Rust-1.31.1.md Co-Authored-By: steveklabnik --- posts/2018-12-20-Rust-1.31.1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts/2018-12-20-Rust-1.31.1.md b/posts/2018-12-20-Rust-1.31.1.md index d8932847a..fb585a1b6 100644 --- a/posts/2018-12-20-Rust-1.31.1.md +++ b/posts/2018-12-20-Rust-1.31.1.md @@ -25,9 +25,9 @@ appropriate page on our website, and check out the [detailed release notes for This patch release fixes a build failure on on `powerpc-unknown-netbsd` by way of [an update to the `libc` -crate](https://github.com/rust-lang/rust/pull/56562). +crate](https://github.com/rust-lang/rust/pull/56562) used by the compiler. Additionally, the Rust Language Server was updated to fix two critical bugs: * -* \ No newline at end of file +* From f3ec73f5a3574596b745dd9c97d77b64df186274 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 20 Dec 2018 12:38:01 -0500 Subject: [PATCH 3/4] expand on rls stuff thanks @xanewok! --- posts/2018-12-20-Rust-1.31.1.md | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/posts/2018-12-20-Rust-1.31.1.md b/posts/2018-12-20-Rust-1.31.1.md index fb585a1b6..5942a077b 100644 --- a/posts/2018-12-20-Rust-1.31.1.md +++ b/posts/2018-12-20-Rust-1.31.1.md @@ -27,7 +27,27 @@ This patch release fixes a build failure on on `powerpc-unknown-netbsd` by way of [an update to the `libc` crate](https://github.com/rust-lang/rust/pull/56562) used by the compiler. -Additionally, the Rust Language Server was updated to fix two critical bugs: +Additionally, the Rust Language Server was updated to fix two critical bugs. +First, [hovering over the type with documentation above single-line +attributes led to 100% CPU +usage:](https://github.com/rust-lang/rls/pull/1170) + +```rust +/// Some documentation +#[derive(Debug)] // Multiple, single-line +#[allow(missing_docs)] // atributes +pub struct MyStruct { /* ... */ } +``` + +[Go to definition was fixed for std types](https://github.com/rust-lang/rls/pull/1171): +Before, using the RLS on `HashMap`, for example, tried to open this file + +```text +~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/libstd/collections/hash/map.rs +``` + +and now RLS goes to the correct location (for Rust 1.31, note the extra `src`): -* -* +```text +~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/collections/hash/map.rs +``` \ No newline at end of file From b9c1ac20b29c9ddbdb3c71f4f4eb2aaac9c5a56f Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 20 Dec 2018 12:42:35 -0500 Subject: [PATCH 4/4] remove double on --- posts/2018-12-20-Rust-1.31.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/2018-12-20-Rust-1.31.1.md b/posts/2018-12-20-Rust-1.31.1.md index 5942a077b..f19050ba4 100644 --- a/posts/2018-12-20-Rust-1.31.1.md +++ b/posts/2018-12-20-Rust-1.31.1.md @@ -23,7 +23,7 @@ appropriate page on our website, and check out the [detailed release notes for ## What's in 1.31.1 stable -This patch release fixes a build failure on on `powerpc-unknown-netbsd` by +This patch release fixes a build failure on `powerpc-unknown-netbsd` by way of [an update to the `libc` crate](https://github.com/rust-lang/rust/pull/56562) used by the compiler.