From afa007c0f3f8187adbe2ab042eb467b0bad63261 Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Sun, 10 Sep 2017 23:24:10 +0100 Subject: [PATCH 1/8] Updated RELEASES.md for 1.21.0 --- RELEASES.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/RELEASES.md b/RELEASES.md index 2979ffe136c90..b5c45c2495701 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,61 @@ +Version 1.21.0 (2017-10-12) +========================== + +Language +-------- +- [Relaxed path syntax. You can now add type parameters to values][43540] + Example: `struct Foo(T); let bar = Foo::(0);`. + +Compiler +-------- +- [Upgraded jemalloc to 4.5.0][43911] +- [Enabled unwinding panics on Redox][43917] + +Libraries +--------- +- [Generate builtin impls for `Clone` for `[T: N]` where `N` is between 0 + and 32][43690] +- [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459] +- [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From`, + `From`, `From> where T: ?Sized`, and `From>`.][42565] + +Stabilized APIs +--------------- + +Cargo +----- +- [You can now call `cargo install` with multiple package names][cargo/4216] +- [Cargo commands inside a virtual workspace will now implicitly + pass `--all`][cargo/4335] + +Misc +---- +- [Cargo docs are moving][43916] + to [doc.rust-lang.org/cargo](//doc.rust-lang.org/cargo) +- [The rustdoc book is now available][43863] + at [doc.rust-lang.org/rustdoc](//doc.rust-lang.org/rustdoc) + +Compatibility Notes +------------------- +- [Remove the trait selection impl in method::probe][43880] This may cause + breakage in subtyping corner cases. +- [make JSON error's byte position start at top of file.][42973] Was previously + relative to the `CodeMap` which required unstable code. + +[42565]: https://github.com/rust-lang/rust/pull/42565 +[42973]: https://github.com/rust-lang/rust/pull/42973 +[43459]: https://github.com/rust-lang/rust/pull/43459 +[43540]: https://github.com/rust-lang/rust/pull/43540 +[43690]: https://github.com/rust-lang/rust/pull/43690 +[43863]: https://github.com/rust-lang/rust/pull/43863 +[43880]: https://github.com/rust-lang/rust/pull/43880 +[43911]: https://github.com/rust-lang/rust/pull/43911 +[43916]: https://github.com/rust-lang/rust/pull/43916 +[43917]: https://github.com/rust-lang/rust/pull/43917 +[cargo/4216]: https://github.com/rust-lang/cargo/pull/4216 +[cargo/4335]: https://github.com/rust-lang/cargo/pull/4335 + + Version 1.20.0 (2017-08-31) =========================== @@ -110,7 +168,7 @@ Compatibility Notes - [Functions with `'static` in their return types will now not be as usable as if they were using lifetime parameters instead.][42417] - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now - takes the sign of NaN into account where previously didn't.][42430] + takes the sign of NaN into account where previously didn't.][42430] [42033]: https://github.com/rust-lang/rust/pull/42033 [42155]: https://github.com/rust-lang/rust/pull/42155 From 8b5ca089a2d11fa3697376fcee6b69dcc17b7d57 Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Mon, 11 Sep 2017 14:55:56 +0100 Subject: [PATCH 2/8] Update RELEASES.md --- RELEASES.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index b5c45c2495701..4ea96a5a64cfe 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4,8 +4,11 @@ Version 1.21.0 (2017-10-12) Language -------- - [Relaxed path syntax. You can now add type parameters to values][43540] - Example: `struct Foo(T); let bar = Foo::(0);`. - + Example: + ``` + my_macro!(Vec::new); // Always worked + my_macro!(Vec::::new); // Now works aswell + ``` Compiler -------- - [Upgraded jemalloc to 4.5.0][43911] @@ -13,7 +16,7 @@ Compiler Libraries --------- -- [Generate builtin impls for `Clone` for `[T: N]` where `N` is between 0 +- [Generate builtin impls for `Clone` for `[T; N]` where `N` is between 0 and 32][43690] - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459] - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From`, @@ -31,16 +34,17 @@ Cargo Misc ---- - [Cargo docs are moving][43916] - to [doc.rust-lang.org/cargo](//doc.rust-lang.org/cargo) + to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo) - [The rustdoc book is now available][43863] - at [doc.rust-lang.org/rustdoc](//doc.rust-lang.org/rustdoc) + at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc) Compatibility Notes ------------------- - [Remove the trait selection impl in method::probe][43880] This may cause breakage in subtyping corner cases. -- [make JSON error's byte position start at top of file.][42973] Was previously - relative to the `CodeMap` which required unstable code. +- [rustc's JSON error output's byte position start at top of file.][42973] + Was previously relative to the rustc's internal `CodeMap` struct which + required the unstable library `libsyntax` to correctly use. [42565]: https://github.com/rust-lang/rust/pull/42565 [42973]: https://github.com/rust-lang/rust/pull/42973 From 3c6a8006527648240c41291e14ffc202e710544a Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Mon, 11 Sep 2017 17:49:33 +0100 Subject: [PATCH 3/8] Update RELEASES.md --- RELEASES.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 4ea96a5a64cfe..18437a2ee5966 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -7,12 +7,14 @@ Language Example: ``` my_macro!(Vec::new); // Always worked - my_macro!(Vec::::new); // Now works aswell + my_macro!(Vec::::new); // Now works ``` + Compiler -------- - [Upgraded jemalloc to 4.5.0][43911] - [Enabled unwinding panics on Redox][43917] +- [Now emits a warning when you have an unused `extern crate`][42588] Libraries --------- @@ -30,6 +32,14 @@ Cargo - [You can now call `cargo install` with multiple package names][cargo/4216] - [Cargo commands inside a virtual workspace will now implicitly pass `--all`][cargo/4335] +- [Added a `[patch]` section to `Cargo.toml` to handle + prepublication dependencies][cargo/4123] [RFC 1969] +- [`include` & `exclude` fields in `Cargo.toml` now accept gitignore + like patterns][cargo/4270] +- [Added the `--all-targets` option][cargo/4400] +- [Using required dependencies as a feature is now deprecated and emits + a warning][cargo/] + Misc ---- @@ -44,9 +54,10 @@ Compatibility Notes breakage in subtyping corner cases. - [rustc's JSON error output's byte position start at top of file.][42973] Was previously relative to the rustc's internal `CodeMap` struct which - required the unstable library `libsyntax` to correctly use. + required the unstable library `libsyntax` to correctly use. [42565]: https://github.com/rust-lang/rust/pull/42565 +[42588]: https://github.com/rust-lang/rust/pull/42588 [42973]: https://github.com/rust-lang/rust/pull/42973 [43459]: https://github.com/rust-lang/rust/pull/43459 [43540]: https://github.com/rust-lang/rust/pull/43540 @@ -56,8 +67,13 @@ Compatibility Notes [43911]: https://github.com/rust-lang/rust/pull/43911 [43916]: https://github.com/rust-lang/rust/pull/43916 [43917]: https://github.com/rust-lang/rust/pull/43917 +[cargo/4123]: https://github.com/rust-lang/cargo/pull/4123 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216 +[cargo/4270]: https://github.com/rust-lang/cargo/pull/4270 [cargo/4335]: https://github.com/rust-lang/cargo/pull/4335 +[cargo/4364]: https://github.com/rust-lang/cargo/pull/4364 +[cargo/4400]: https://github.com/rust-lang/cargo/pull/4400 +[RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969 Version 1.20.0 (2017-08-31) From 045b4f1cd5910a208e6a8b58cf1a59fc0d4fc3a3 Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Mon, 18 Sep 2017 19:08:53 +0100 Subject: [PATCH 4/8] Update RELEASES.md --- RELEASES.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 18437a2ee5966..eb13e15464288 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -9,6 +9,13 @@ Language my_macro!(Vec::new); // Always worked my_macro!(Vec::::new); // Now works ``` +- [You can now use static references for literals.][43838] + Example: + ``` + fn main() { + let x: &'static u32 = 0; + } + ``` Compiler -------- @@ -18,8 +25,8 @@ Compiler Libraries --------- -- [Generate builtin impls for `Clone` for `[T; N]` where `N` is between 0 - and 32][43690] +- [Generate builtin impls for `Clone` for all arrays and tuples that + are `T: Clone`][43690] - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459] - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From`, `From`, `From> where T: ?Sized`, and `From>`.][42565] @@ -38,7 +45,7 @@ Cargo like patterns][cargo/4270] - [Added the `--all-targets` option][cargo/4400] - [Using required dependencies as a feature is now deprecated and emits - a warning][cargo/] + a warning][cargo/4364] Misc @@ -50,11 +57,12 @@ Misc Compatibility Notes ------------------- -- [Remove the trait selection impl in method::probe][43880] This may cause - breakage in subtyping corner cases. +- [Changes in method matching against higher-ranked types][43880] This may cause + breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880] - [rustc's JSON error output's byte position start at top of file.][42973] Was previously relative to the rustc's internal `CodeMap` struct which required the unstable library `libsyntax` to correctly use. +- [`unused_results` lint no longer ignores booleans][43728] [42565]: https://github.com/rust-lang/rust/pull/42565 [42588]: https://github.com/rust-lang/rust/pull/42588 @@ -62,6 +70,8 @@ Compatibility Notes [43459]: https://github.com/rust-lang/rust/pull/43459 [43540]: https://github.com/rust-lang/rust/pull/43540 [43690]: https://github.com/rust-lang/rust/pull/43690 +[43728]: https://github.com/rust-lang/rust/pull/43728 +[43838]: https://github.com/rust-lang/rust/pull/43838 [43863]: https://github.com/rust-lang/rust/pull/43863 [43880]: https://github.com/rust-lang/rust/pull/43880 [43911]: https://github.com/rust-lang/rust/pull/43911 @@ -74,7 +84,7 @@ Compatibility Notes [cargo/4364]: https://github.com/rust-lang/cargo/pull/4364 [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969 - +[info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902 Version 1.20.0 (2017-08-31) =========================== From f3c316d553d83ef640c636bf26c1d881a0f542b9 Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Mon, 18 Sep 2017 19:10:01 +0100 Subject: [PATCH 5/8] Update RELEASES.md --- RELEASES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index eb13e15464288..46e897ea35974 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5,13 +5,13 @@ Language -------- - [Relaxed path syntax. You can now add type parameters to values][43540] Example: - ``` + ```rust my_macro!(Vec::new); // Always worked my_macro!(Vec::::new); // Now works ``` - [You can now use static references for literals.][43838] Example: - ``` + ```rust fn main() { let x: &'static u32 = 0; } From 8f424f273908745ca16c69c90fdaee8ba235d2ec Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Wed, 20 Sep 2017 21:28:17 +0100 Subject: [PATCH 6/8] Update RELEASES.md --- RELEASES.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RELEASES.md b/RELEASES.md index 46e897ea35974..63fa95b91589d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -63,6 +63,8 @@ Compatibility Notes Was previously relative to the rustc's internal `CodeMap` struct which required the unstable library `libsyntax` to correctly use. - [`unused_results` lint no longer ignores booleans][43728] +- [Added a preview of RLS has been made available through rustup][44204] + Install with `rustup component add rls-preview` [42565]: https://github.com/rust-lang/rust/pull/42565 [42588]: https://github.com/rust-lang/rust/pull/42588 @@ -77,6 +79,7 @@ Compatibility Notes [43911]: https://github.com/rust-lang/rust/pull/43911 [43916]: https://github.com/rust-lang/rust/pull/43916 [43917]: https://github.com/rust-lang/rust/pull/43917 +[44204]: https://github.com/rust-lang/rust/pull/44204 [cargo/4123]: https://github.com/rust-lang/cargo/pull/4123 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270 From e68c20ef625488bde9f2b48b137fe02d63c60938 Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Wed, 20 Sep 2017 21:29:16 +0100 Subject: [PATCH 7/8] Update RELEASES.md --- RELEASES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 63fa95b91589d..4f8f83062c5bb 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -54,6 +54,8 @@ Misc to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo) - [The rustdoc book is now available][43863] at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc) +- [Added a preview of RLS has been made available through rustup][44204] + Install with `rustup component add rls-preview` Compatibility Notes ------------------- @@ -63,8 +65,6 @@ Compatibility Notes Was previously relative to the rustc's internal `CodeMap` struct which required the unstable library `libsyntax` to correctly use. - [`unused_results` lint no longer ignores booleans][43728] -- [Added a preview of RLS has been made available through rustup][44204] - Install with `rustup component add rls-preview` [42565]: https://github.com/rust-lang/rust/pull/42565 [42588]: https://github.com/rust-lang/rust/pull/42588 From 7ed23f1349220f02813cdce6f159fad912c07b0d Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Sat, 30 Sep 2017 11:36:49 +0100 Subject: [PATCH 8/8] Update RELEASES.md --- RELEASES.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 4f8f83062c5bb..e65934a89e6d5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -13,7 +13,7 @@ Language Example: ```rust fn main() { - let x: &'static u32 = 0; + let x: &'static u32 = &0; } ``` @@ -21,7 +21,8 @@ Compiler -------- - [Upgraded jemalloc to 4.5.0][43911] - [Enabled unwinding panics on Redox][43917] -- [Now emits a warning when you have an unused `extern crate`][42588] +- [Now runs LLVM in parallel during translation phase.][43506] + This should reduce peak memory usage. Libraries --------- @@ -34,6 +35,8 @@ Libraries Stabilized APIs --------------- +[`std::mem::discriminant`] + Cargo ----- - [You can now call `cargo install` with multiple package names][cargo/4216] @@ -56,6 +59,8 @@ Misc at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc) - [Added a preview of RLS has been made available through rustup][44204] Install with `rustup component add rls-preview` +- [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348] + Previously only showed `std::os::unix`. Compatibility Notes ------------------- @@ -67,9 +72,10 @@ Compatibility Notes - [`unused_results` lint no longer ignores booleans][43728] [42565]: https://github.com/rust-lang/rust/pull/42565 -[42588]: https://github.com/rust-lang/rust/pull/42588 [42973]: https://github.com/rust-lang/rust/pull/42973 +[43348]: https://github.com/rust-lang/rust/pull/43348 [43459]: https://github.com/rust-lang/rust/pull/43459 +[43506]: https://github.com/rust-lang/rust/pull/43506 [43540]: https://github.com/rust-lang/rust/pull/43540 [43690]: https://github.com/rust-lang/rust/pull/43690 [43728]: https://github.com/rust-lang/rust/pull/43728 @@ -88,6 +94,7 @@ Compatibility Notes [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969 [info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902 +[`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html Version 1.20.0 (2017-08-31) ===========================