|
| 1 | +Version 1.25.0 (2018-03-29) |
| 2 | +========================== |
| 3 | + |
| 4 | +Language |
| 5 | +-------- |
| 6 | +- [Stabilised `#[repr(align(x))]`.][47006] [RFC 1358] |
| 7 | +- [You can now use nested groups of imports.][47948] |
| 8 | + e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};` |
| 9 | +- [You can now have `|` at the start of a match arm.][47947] e.g. |
| 10 | +```rust |
| 11 | +enum Foo { A, B, C } |
| 12 | + |
| 13 | +fn main() { |
| 14 | + let x = Foo::A; |
| 15 | + match x { |
| 16 | + | Foo::A |
| 17 | + | Foo::B => println!("AB"), |
| 18 | + | Foo::C => println!("C"), |
| 19 | + } |
| 20 | +} |
| 21 | +``` |
| 22 | + |
| 23 | +Compiler |
| 24 | +-------- |
| 25 | +- [Upgraded to LLVM 6.][47828] |
| 26 | +- [Added `-C lto=val` option.][47521] |
| 27 | +- [Added `i586-unknown-linux-musl` target][47282] |
| 28 | + |
| 29 | +Libraries |
| 30 | +--------- |
| 31 | +- [Impl Send for `process::Command` on Unix.][47760] |
| 32 | +- [Impl PartialEq and Eq for `ParseCharError`.][47790] |
| 33 | +- [`UnsafeCell::into_inner` is now safe.][47204] |
| 34 | +- [Implement libstd for CloudABI.][47268] |
| 35 | +- [`Float::{from_bits, to_bits}` is now available in libcore.][46931] |
| 36 | +- [Implement `AsRef<Path>` for Component][46985] |
| 37 | +- [Implemented `Write` for `Cursor<&mut Vec<T>>`][46830] |
| 38 | +- [Moved `Duration` to libcore.][46666] |
| 39 | + |
| 40 | +Stabilized APIs |
| 41 | +--------------- |
| 42 | +- [`Location::column`] |
| 43 | +- [`ptr::NonNull`] |
| 44 | + |
| 45 | +The following functions can now be used in a constant expression. |
| 46 | +eg. `static MINUTE: Duration = Duration::from_secs(60);` |
| 47 | +- [`Duration::new`][47300] |
| 48 | +- [`Duration::from_secs`][47300] |
| 49 | +- [`Duration::from_millis`][47300] |
| 50 | +- [`Duration::from_micros`][47300] |
| 51 | +- [`Duration::from_nanos`][47300] |
| 52 | + |
| 53 | +Cargo |
| 54 | +----- |
| 55 | +- [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013] |
| 56 | +- [`cargo new` now defaults to creating a binary crate, instead of a |
| 57 | + library crate.][cargo/5029] |
| 58 | + |
| 59 | +Misc |
| 60 | +---- |
| 61 | +- [Rust by example is now shipped with new releases][46196] |
| 62 | + |
| 63 | +Compatibility Notes |
| 64 | +------------------- |
| 65 | +- [Deprecated `net::lookup_host`.][47510] |
| 66 | +- [`rustdoc` has switched to pulldown as the default markdown renderer.][47398] |
| 67 | +- The borrow checker was sometimes incorrectly permitting overlapping borrows |
| 68 | + around indexing operations (see [#47349][47349]). This has been fixed (which also |
| 69 | + enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]). |
| 70 | +- [Removed deprecated unstable attribute `#[simd]`.][47251] |
| 71 | + |
| 72 | +[33903]: https://github.com/rust-lang/rust/pull/33903 |
| 73 | +[47947]: https://github.com/rust-lang/rust/pull/47947 |
| 74 | +[47948]: https://github.com/rust-lang/rust/pull/47948 |
| 75 | +[47760]: https://github.com/rust-lang/rust/pull/47760 |
| 76 | +[47790]: https://github.com/rust-lang/rust/pull/47790 |
| 77 | +[47828]: https://github.com/rust-lang/rust/pull/47828 |
| 78 | +[47398]: https://github.com/rust-lang/rust/pull/47398 |
| 79 | +[47510]: https://github.com/rust-lang/rust/pull/47510 |
| 80 | +[47521]: https://github.com/rust-lang/rust/pull/47521 |
| 81 | +[47204]: https://github.com/rust-lang/rust/pull/47204 |
| 82 | +[47251]: https://github.com/rust-lang/rust/pull/47251 |
| 83 | +[47268]: https://github.com/rust-lang/rust/pull/47268 |
| 84 | +[47282]: https://github.com/rust-lang/rust/pull/47282 |
| 85 | +[47300]: https://github.com/rust-lang/rust/pull/47300 |
| 86 | +[47349]: https://github.com/rust-lang/rust/pull/47349 |
| 87 | +[46931]: https://github.com/rust-lang/rust/pull/46931 |
| 88 | +[46985]: https://github.com/rust-lang/rust/pull/46985 |
| 89 | +[47006]: https://github.com/rust-lang/rust/pull/47006 |
| 90 | +[46830]: https://github.com/rust-lang/rust/pull/46830 |
| 91 | +[46095]: https://github.com/rust-lang/rust/pull/46095 |
| 92 | +[46666]: https://github.com/rust-lang/rust/pull/46666 |
| 93 | +[46196]: https://github.com/rust-lang/rust/pull/46196 |
| 94 | +[cargo/5013]: https://github.com/rust-lang/cargo/pull/5013 |
| 95 | +[cargo/5029]: https://github.com/rust-lang/cargo/pull/5029 |
| 96 | +[RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358 |
| 97 | +[`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column |
| 98 | +[`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html |
| 99 | + |
| 100 | + |
1 | 101 | Version 1.24.0 (2018-02-15)
|
2 | 102 | ==========================
|
3 | 103 |
|
|
0 commit comments