|
| 1 | +Version 1.21.0 (2017-10-12) |
| 2 | +========================== |
| 3 | + |
| 4 | +Language |
| 5 | +-------- |
| 6 | +- [Relaxed path syntax. You can now add type parameters to values][43540] |
| 7 | + Example: |
| 8 | + ```rust |
| 9 | + my_macro!(Vec<i32>::new); // Always worked |
| 10 | + my_macro!(Vec::<i32>::new); // Now works |
| 11 | + ``` |
| 12 | +- [You can now use static references for literals.][43838] |
| 13 | + Example: |
| 14 | + ```rust |
| 15 | + fn main() { |
| 16 | + let x: &'static u32 = &0; |
| 17 | + } |
| 18 | + ``` |
| 19 | + |
| 20 | +Compiler |
| 21 | +-------- |
| 22 | +- [Upgraded jemalloc to 4.5.0][43911] |
| 23 | +- [Enabled unwinding panics on Redox][43917] |
| 24 | +- [Now runs LLVM in parallel during translation phase.][43506] |
| 25 | + This should reduce peak memory usage. |
| 26 | + |
| 27 | +Libraries |
| 28 | +--------- |
| 29 | +- [Generate builtin impls for `Clone` for all arrays and tuples that |
| 30 | + are `T: Clone`][43690] |
| 31 | +- [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459] |
| 32 | +- [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From<str>`, |
| 33 | + `From<String>`, `From<Box<T>> where T: ?Sized`, and `From<Vec<T>>`.][42565] |
| 34 | + |
| 35 | +Stabilized APIs |
| 36 | +--------------- |
| 37 | + |
| 38 | +[`std::mem::discriminant`] |
| 39 | + |
| 40 | +Cargo |
| 41 | +----- |
| 42 | +- [You can now call `cargo install` with multiple package names][cargo/4216] |
| 43 | +- [Cargo commands inside a virtual workspace will now implicitly |
| 44 | + pass `--all`][cargo/4335] |
| 45 | +- [Added a `[patch]` section to `Cargo.toml` to handle |
| 46 | + prepublication dependencies][cargo/4123] [RFC 1969] |
| 47 | +- [`include` & `exclude` fields in `Cargo.toml` now accept gitignore |
| 48 | + like patterns][cargo/4270] |
| 49 | +- [Added the `--all-targets` option][cargo/4400] |
| 50 | +- [Using required dependencies as a feature is now deprecated and emits |
| 51 | + a warning][cargo/4364] |
| 52 | + |
| 53 | + |
| 54 | +Misc |
| 55 | +---- |
| 56 | +- [Cargo docs are moving][43916] |
| 57 | + to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo) |
| 58 | +- [The rustdoc book is now available][43863] |
| 59 | + at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc) |
| 60 | +- [Added a preview of RLS has been made available through rustup][44204] |
| 61 | + Install with `rustup component add rls-preview` |
| 62 | +- [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348] |
| 63 | + Previously only showed `std::os::unix`. |
| 64 | + |
| 65 | +Compatibility Notes |
| 66 | +------------------- |
| 67 | +- [Changes in method matching against higher-ranked types][43880] This may cause |
| 68 | + breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880] |
| 69 | +- [rustc's JSON error output's byte position start at top of file.][42973] |
| 70 | + Was previously relative to the rustc's internal `CodeMap` struct which |
| 71 | + required the unstable library `libsyntax` to correctly use. |
| 72 | +- [`unused_results` lint no longer ignores booleans][43728] |
| 73 | + |
| 74 | +[42565]: https://github.com/rust-lang/rust/pull/42565 |
| 75 | +[42973]: https://github.com/rust-lang/rust/pull/42973 |
| 76 | +[43348]: https://github.com/rust-lang/rust/pull/43348 |
| 77 | +[43459]: https://github.com/rust-lang/rust/pull/43459 |
| 78 | +[43506]: https://github.com/rust-lang/rust/pull/43506 |
| 79 | +[43540]: https://github.com/rust-lang/rust/pull/43540 |
| 80 | +[43690]: https://github.com/rust-lang/rust/pull/43690 |
| 81 | +[43728]: https://github.com/rust-lang/rust/pull/43728 |
| 82 | +[43838]: https://github.com/rust-lang/rust/pull/43838 |
| 83 | +[43863]: https://github.com/rust-lang/rust/pull/43863 |
| 84 | +[43880]: https://github.com/rust-lang/rust/pull/43880 |
| 85 | +[43911]: https://github.com/rust-lang/rust/pull/43911 |
| 86 | +[43916]: https://github.com/rust-lang/rust/pull/43916 |
| 87 | +[43917]: https://github.com/rust-lang/rust/pull/43917 |
| 88 | +[44204]: https://github.com/rust-lang/rust/pull/44204 |
| 89 | +[cargo/4123]: https://github.com/rust-lang/cargo/pull/4123 |
| 90 | +[cargo/4216]: https://github.com/rust-lang/cargo/pull/4216 |
| 91 | +[cargo/4270]: https://github.com/rust-lang/cargo/pull/4270 |
| 92 | +[cargo/4335]: https://github.com/rust-lang/cargo/pull/4335 |
| 93 | +[cargo/4364]: https://github.com/rust-lang/cargo/pull/4364 |
| 94 | +[cargo/4400]: https://github.com/rust-lang/cargo/pull/4400 |
| 95 | +[RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969 |
| 96 | +[info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902 |
| 97 | +[`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html |
| 98 | + |
1 | 99 | Version 1.20.0 (2017-08-31)
|
2 | 100 | ===========================
|
3 | 101 |
|
@@ -110,7 +208,7 @@ Compatibility Notes
|
110 | 208 | - [Functions with `'static` in their return types will now not be as usable as
|
111 | 209 | if they were using lifetime parameters instead.][42417]
|
112 | 210 | - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now
|
113 |
| - takes the sign of NaN into account where previously didn't.][42430] |
| 211 | + takes the sign of NaN into account where previously didn't.][42430] |
114 | 212 |
|
115 | 213 | [42033]: https://github.com/rust-lang/rust/pull/42033
|
116 | 214 | [42155]: https://github.com/rust-lang/rust/pull/42155
|
|
0 commit comments