@@ -17,15 +17,15 @@ Language
17
17
fn main () {
18
18
let state = Creature :: Crab (" Ferrous" );
19
19
20
- if let Creature :: Crab (name ) | Creature :: Person (name ) {
20
+ if let Creature :: Crab (name ) | Creature :: Person (name ) = state {
21
21
println! (" This creature's name is: {}" , name );
22
22
}
23
23
}
24
24
```
25
25
- [ You can now have irrefutable ` if let ` and ` while let ` patterns.] [ 57535 ] Using
26
26
this feature will by default produce a warning as this behaviour can be
27
27
unintuitive. E.g. ` if let _ = 5 {} `
28
- - [ You can now use ` let ` bindings and pattern destructurcting in
28
+ - [ You can now use ` let ` bindings and pattern destructuring in
29
29
constant functions.] [ 57175 ]
30
30
- [ You can now specify multiple attributes in a ` cfg_attr ` attribute.] [ 57332 ]
31
31
E.g. ` #[cfg_attr(all(), must_use, optimize)] `
@@ -34,7 +34,7 @@ Language
34
34
with an alignment of 2 bytes and a size of 6 bytes.
35
35
- [ You can now call unsafe constant functions.] [ 57067 ] E.g.
36
36
``` rust
37
- unsafe const fn foo () -> i32 { 5 }
37
+ const unsafe fn foo () -> i32 { 5 }
38
38
const fn bar () -> i32 {
39
39
unsafe { foo () }
40
40
}
@@ -56,8 +56,8 @@ Compiler
56
56
- [ The mininum required LLVM version has been bumped to 6.0.] [ 56642 ]
57
57
- [ Added support for the PowerPC64 architecture on FreeBSD.] [ 57615 ]
58
58
- [ The ` x86_64-fortanix-unknown-sgx ` target support has been upgraded to
59
- tier 2 support.] [ 57130 ] Visit the [ platform support] page for information on
60
- Rust's platform support.
59
+ tier 2 support.] [ 57130 ] Visit the [ platform support] [ platform-support ] page for
60
+ information on Rust's platform support.
61
61
- [ Added support for the ` thumbv7neon-linux-androideabi ` and
62
62
` thumbv7neon-unknown-linux-gnueabihf ` targets.] [ 56947 ]
63
63
- [ Added support for the ` x86_64-unknown-uefi ` target.] [ 56769 ]
@@ -122,7 +122,7 @@ Cargo
122
122
[ `Duration::as_millis` ] : https://doc.rust-lang.org/std/time/struct.Duration.html#as_millis
123
123
[ `Duration::as_micros` ] : https://doc.rust-lang.org/std/time/struct.Duration.html#as_micros
124
124
[ `Duration::as_nanos` ] : https://doc.rust-lang.org/std/time/struct.Duration.html#as_millis
125
-
125
+ [ platform-support ] : https://forge.rust-lang.org/platform-support.html
126
126
127
127
Version 1.32.0 (2019-01-17)
128
128
==========================
0 commit comments