Skip to content

Commit 15d7086

Browse files
1.45.1 post
1 parent 1dea0f2 commit 15d7086

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

posts/2020-07-30-Rust-1.45.1.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
layout: post
3+
title: "Announcing Rust 1.45.1"
4+
author: The Rust Release Team
5+
release: true
6+
---
7+
8+
The Rust team is happy to announce a new version of Rust, 1.45.1. Rust is a
9+
programming language that is empowering everyone to build reliable and
10+
efficient software.
11+
12+
If you have a previous version of Rust installed via rustup, getting Rust
13+
1.45.1 is as easy as:
14+
15+
```console
16+
rustup update stable
17+
```
18+
19+
If you don't have it already, you can [get `rustup`][install] from the
20+
appropriate page on our website, and check out the [detailed release notes for
21+
1.45.1][notes] on GitHub.
22+
23+
[install]: https://www.rust-lang.org/install.html
24+
[notes]: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1451-2020-07-30
25+
26+
## What's in 1.45.1 stable
27+
28+
1.45.1 contains a collection of fixes, including one soundness fix. All patches
29+
in 1.45.1 affect only the 1.45.0 release; prior releases are not affected by the
30+
bugs this fixes.
31+
32+
### Fix const propagation with references
33+
34+
In Rust 1.45.0, `rustc`'s const propagation pass did not look properly handle
35+
encountering references, which could lead to incorrect behavior.
36+
37+
The conditions necessary to cause this bug are highly unlikely to occur in
38+
practice: the code must have inputs consisting of entirely constant values and
39+
no control flow or function calls in between.
40+
41+
```rust
42+
let mut foo = Foo { x: 42 };
43+
let x = &mut foo.x;
44+
*x = 13;
45+
let y = foo;
46+
println!("{}", y.x); // -> 42; expected result: 13
47+
```
48+
49+
## Contributors to 1.45.1
50+
51+
Many people came together to create Rust 1.45.1. We couldn't have done it
52+
without all of you. [Thanks!](https://thanks.rust-lang.org/rust/1.45.1/)

0 commit comments

Comments
 (0)