@@ -4,10 +4,10 @@ Version 1.33.0 (2019-02-28)
4
4
Language
5
5
--------
6
6
- [ You can now use the ` cfg(target_vendor) ` attribute.] [ 57465 ] E.g.
7
- ` #[cfg(target_vendor="linux ")] fn main() { println!("Hello Linux !"); } `
7
+ ` #[cfg(target_vendor="apple ")] fn main() { println!("Hello Apple !"); } `
8
8
- [ Integer patterns such as in a match expression can now be exhaustive.] [ 56362 ]
9
9
E.g. You can have match statement on a ` u8 ` that covers ` 0..=255 ` and
10
- you would no longer be required to have a ` _ => unreachable!() ` case.
10
+ you would no longer be required to have a ` _ => unreachable!() ` case.
11
11
- [ You can now have multiple patterns in ` if let ` and ` while let `
12
12
expressions.] [ 57532 ] You can do this with the same syntax as a ` match `
13
13
expression. E.g.
@@ -51,8 +51,7 @@ Language
51
51
// Allowed as there is only one `Read` in the module.
52
52
pub trait Read {}
53
53
```
54
- - [ ` extern ` functions will now abort by default when panicking.] [ 55982 ]
55
- This was previously undefined behaviour.
54
+ - [ You may now use ` Rc ` , ` Arc ` , and ` Pin ` as method receivers] [ 56805 ] .
56
55
57
56
Compiler
58
57
--------
@@ -109,27 +108,30 @@ Compatibility Notes
109
108
are now deprecated in the standard library, and their usage will now produce a warning.
110
109
Please use the ` str::{trim_start, trim_end, trim_start_matches, trim_end_matches} `
111
110
methods instead.
111
+ - The ` Error::cause ` method has been deprecated in favor of ` Error::source ` which supports
112
+ downcasting.
112
113
113
- [ 57615 ] : https://github.com/rust-lang/rust/pull/57615/
114
- [ 57465 ] : https://github.com/rust-lang/rust/pull/57465/
115
- [ 57532 ] : https://github.com/rust-lang/rust/pull/57532/
116
- [ 57535 ] : https://github.com/rust-lang/rust/pull/57535/
117
- [ 57566 ] : https://github.com/rust-lang/rust/pull/57566/
114
+ [ 55982 ] : https://github.com/rust-lang/rust/pull/55982/
115
+ [ 56303 ] : https://github.com/rust-lang/rust/pull/56303/
116
+ [ 56351 ] : https://github.com/rust-lang/rust/pull/56351/
117
+ [ 56362 ] : https://github.com/rust-lang/rust/pull/56362
118
+ [ 56642 ] : https://github.com/rust-lang/rust/pull/56642/
119
+ [ 56769 ] : https://github.com/rust-lang/rust/pull/56769/
120
+ [ 56805 ] : https://github.com/rust-lang/rust/pull/56805
121
+ [ 56947 ] : https://github.com/rust-lang/rust/pull/56947/
122
+ [ 57049 ] : https://github.com/rust-lang/rust/pull/57049/
123
+ [ 57067 ] : https://github.com/rust-lang/rust/pull/57067/
124
+ [ 57105 ] : https://github.com/rust-lang/rust/pull/57105
118
125
[ 57130 ] : https://github.com/rust-lang/rust/pull/57130/
119
126
[ 57167 ] : https://github.com/rust-lang/rust/pull/57167/
120
127
[ 57175 ] : https://github.com/rust-lang/rust/pull/57175/
121
128
[ 57234 ] : https://github.com/rust-lang/rust/pull/57234/
122
129
[ 57332 ] : https://github.com/rust-lang/rust/pull/57332/
123
- [ 56947 ] : https://github.com/rust-lang/rust/pull/56947/
124
- [ 57049 ] : https://github.com/rust-lang/rust/pull/57049/
125
- [ 57067 ] : https://github.com/rust-lang/rust/pull/57067/
126
- [ 56769 ] : https://github.com/rust-lang/rust/pull/56769/
127
- [ 56642 ] : https://github.com/rust-lang/rust/pull/56642/
128
- [ 56303 ] : https://github.com/rust-lang/rust/pull/56303/
129
- [ 56351 ] : https://github.com/rust-lang/rust/pull/56351/
130
- [ 55982 ] : https://github.com/rust-lang/rust/pull/55982/
131
- [ 56362 ] : https://github.com/rust-lang/rust/pull/56362
132
- [ 57105 ] : https://github.com/rust-lang/rust/pull/57105
130
+ [ 57465 ] : https://github.com/rust-lang/rust/pull/57465/
131
+ [ 57532 ] : https://github.com/rust-lang/rust/pull/57532/
132
+ [ 57535 ] : https://github.com/rust-lang/rust/pull/57535/
133
+ [ 57566 ] : https://github.com/rust-lang/rust/pull/57566/
134
+ [ 57615 ] : https://github.com/rust-lang/rust/pull/57615/
133
135
[ cargo/6484 ] : https://github.com/rust-lang/cargo/pull/6484/
134
136
[ `unix::FileExt::read_exact_at` ] : https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
135
137
[ `unix::FileExt::write_all_at` ] : https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
@@ -170,7 +172,7 @@ Language
170
172
- [ You can now match against literals in macros with the ` literal `
171
173
specifier.] [ 56072 ] This will match against a literal of any type.
172
174
E.g. ` 1 ` , ` 'A' ` , ` "Hello World" `
173
- - [ Self can now be used as a constructor and pattern for unit and tuple structs.] [ 56365 ] E.g.
175
+ - [ Self can now be used as a constructor and pattern for unit and tuple structs.] [ 56365 ] E.g.
174
176
``` rust
175
177
struct Point (i32 , i32 );
176
178
@@ -460,7 +462,7 @@ Version 1.31.0 (2018-12-06)
460
462
461
463
Language
462
464
--------
463
- - 🎉 [ This version marks the release of the 2018 edition of Rust.] [ 54057 ] 🎉
465
+ - 🎉 [ This version marks the release of the 2018 edition of Rust.] [ 54057 ] 🎉
464
466
- [ New lifetime elision rules now allow for eliding lifetimes in functions and
465
467
impl headers.] [ 54778 ] E.g. ` impl<'a> Reader for BufReader<'a> {} ` can now be
466
468
` impl Reader for BufReader<'_> {} ` . Lifetimes are still required to be defined
0 commit comments