Skip to content

1.31.1 announcement #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions posts/2018-12-20-Rust-1.31.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
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 `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.
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
```