From 2b1fa1fece80daa9685698a3ba08f8f71249dc60 Mon Sep 17 00:00:00 2001 From: Erin Power Date: Sun, 25 Oct 2020 18:09:28 +0100 Subject: [PATCH 01/13] Update RELEASES.md for 1.48.0 --- RELEASES.md | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/RELEASES.md b/RELEASES.md index ce11a74b71f53..be80dc4e906d1 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,125 @@ +Version 1.48.0 (2020-11-19) +========================== + +Language +-------- + +- [The `unsafe` keyword is now syntactically permitted on modules.][75857] This + is still rejected *semantically*, but can now be parsed by procedural macros. + +Compiler +-------- +- [Stabilised the `-C link=`][76158] Which tells `rustc` whether to link + its own libraries or to rely on a external linker. (supported only on + `windows-gnu`, `linux-musl`, and `wasi` platforms.) +- [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386] +- [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420] + +Libraries +--------- +- [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`, + and `&Stderr`.][76275] +- [All arrays now implement `TryFrom>`.][76310] +- [The `matches!` macro now supports having a trailing comma.][74880] +- [`Vec` now implements `PartialEq<[B]>` where `A: PartialEq`.][74194] +- [Nearly all of `Cell`'s panicking functions now use the `#[track_caller]` + attribute.][77055] + +Stabilized APIs +--------------- +- [`slice::as_ptr_range`] +- [`slice::as_mut_ptr_range`] +- [`VecDeque::make_contiguous`] +- [`future::pending`] +- [`future::ready`] + +The following previously stable methods are now `const fn`'s: + +- [`Option::is_some`] +- [`Option::is_none`] +- [`Option::as_ref`] +- [`Result::is_ok`] +- [`Result::is_err`] +- [`Result::as_ref`] +- [`Ordering::reverse`] +- [`Ordering::then`] + +Cargo +----- + +Misc +---- +- [You can now link to different items in `rustdoc` using the intra-doc link + syntax.][74430] E.g. ``/// Uses [`std::future`] `` will automatically generate + a link to `std::future`'s documentation. See ["Linking to items by + name"][intradoc-links] for more information. +- [You can now specify `#[doc(alias = "")]` on items to add search aliases + when searching through `rustdoc`'s UI.][75740] +- [You can now use `rustup install .` to specify installing the + latest availeble patch of that minor version of the toolchain.][76107] E.g. + `rustup install 1.45` would install `1.45.2`, and `1.46` would install `1.46.0`. + +Compatibility Notes +------------------- +- [`const fn`s are now implicitly promoted to `const`.][75502] Meaning that it + will only warn if your code fails `const` evaluation, and not produce an error. +- [Associated type bindings on trait objects are now verified to meet the bounds + declared on the trait when checking that they implement the trait.][27675] +- [When traits bounds on associated types or opaque types are ambiguous the + compiler no longer makes an arbitrary choice on which bound to use.][54121] +- [Fixed recursive nonterminals not being expended in macros during + pretty-print/reparse check.][77153] This may cause errors if your macro wasn't + correctly handling recursive nonterminal tokens. +- [`&mut` references to non zero-sized types are not longer promoted.][75585] +- [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]` + in places where they have no effect.][73461] +- [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in + `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166] + + + +Internal Only +------------- +- [Building `rustc` from source now uses `ninja` by default over `make`.][74922] + You can continue building with `make` by setting `ninja=false` in + your `config.toml`. + +[27675]: https://github.com/rust-lang/rust/issues/27675/ +[54121]: https://github.com/rust-lang/rust/issues/54121/ +[77386]: https://github.com/rust-lang/rust/pull/77386/ +[77153]: https://github.com/rust-lang/rust/pull/77153/ +[77055]: https://github.com/rust-lang/rust/pull/77055/ +[76275]: https://github.com/rust-lang/rust/pull/76275/ +[76310]: https://github.com/rust-lang/rust/pull/76310/ +[76420]: https://github.com/rust-lang/rust/pull/76420/ +[76107]: https://github.com/rust-lang/rust/pull/76107/ +[76158]: https://github.com/rust-lang/rust/pull/76158/ +[75857]: https://github.com/rust-lang/rust/pull/75857/ +[75585]: https://github.com/rust-lang/rust/pull/75585/ +[75740]: https://github.com/rust-lang/rust/pull/75740/ +[75502]: https://github.com/rust-lang/rust/pull/75502/ +[74880]: https://github.com/rust-lang/rust/pull/74880/ +[74922]: https://github.com/rust-lang/rust/pull/74922/ +[74430]: https://github.com/rust-lang/rust/pull/74430/ +[74194]: https://github.com/rust-lang/rust/pull/74194/ +[73461]: https://github.com/rust-lang/rust/pull/73461/ +[73166]: https://github.com/rust-lang/rust/pull/73166/ +[intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html +[`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some +[`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none +[`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref +[`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok +[`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err +[`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref +[`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse +[`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then +[`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range +[`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range +[`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous +[`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html +[`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html + + Version 1.47.0 (2020-10-08) ========================== From ff89b801df29c4b281e9a9fa5ad8289f204a54b7 Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Sun, 25 Oct 2020 18:12:40 +0100 Subject: [PATCH 02/13] Update RELEASES.md --- RELEASES.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RELEASES.md b/RELEASES.md index be80dc4e906d1..645eac3ceadea 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -15,6 +15,9 @@ Compiler - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386] - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420] +\* Refer to Rust's [platform support page][forge-platform-support] for more +information on Rust's tiered platform support. + Libraries --------- - [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`, From a268264073d5341869348a5ac9c98905c2d658fa Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Sun, 25 Oct 2020 20:43:00 +0100 Subject: [PATCH 03/13] Update RELEASES.md Co-authored-by: Vadim Petrochenkov --- RELEASES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASES.md b/RELEASES.md index 645eac3ceadea..292c7170ddb62 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -9,7 +9,7 @@ Language Compiler -------- -- [Stabilised the `-C link=`][76158] Which tells `rustc` whether to link +- [Stabilised the `-C link-self-contained=`][76158] Which tells `rustc` whether to link its own libraries or to rely on a external linker. (supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.) - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386] From 149ca76440c60a882db2ad9615869319ff31d1cc Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Sun, 25 Oct 2020 20:43:44 +0100 Subject: [PATCH 04/13] Apply suggestions from code review Co-authored-by: Vadim Petrochenkov Co-authored-by: Jonas Schievink Co-authored-by: Yuki Okushi --- RELEASES.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 292c7170ddb62..7fbf0b8621e72 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -10,10 +10,10 @@ Language Compiler -------- - [Stabilised the `-C link-self-contained=`][76158] Which tells `rustc` whether to link - its own libraries or to rely on a external linker. (supported only on + its own C runtime and libraries or to rely on a external linker to find them. (supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.) - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386] -- [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420] +- [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420] \* Refer to Rust's [platform support page][forge-platform-support] for more information on Rust's tiered platform support. @@ -53,13 +53,13 @@ Cargo Misc ---- - [You can now link to different items in `rustdoc` using the intra-doc link - syntax.][74430] E.g. ``/// Uses [`std::future`] `` will automatically generate + syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate a link to `std::future`'s documentation. See ["Linking to items by name"][intradoc-links] for more information. - [You can now specify `#[doc(alias = "")]` on items to add search aliases when searching through `rustdoc`'s UI.][75740] - [You can now use `rustup install .` to specify installing the - latest availeble patch of that minor version of the toolchain.][76107] E.g. + latest available patch of that minor version of the toolchain.][76107] E.g. `rustup install 1.45` would install `1.45.2`, and `1.46` would install `1.46.0`. Compatibility Notes @@ -68,12 +68,12 @@ Compatibility Notes will only warn if your code fails `const` evaluation, and not produce an error. - [Associated type bindings on trait objects are now verified to meet the bounds declared on the trait when checking that they implement the trait.][27675] -- [When traits bounds on associated types or opaque types are ambiguous the +- [When trait bounds on associated types or opaque types are ambiguous, the compiler no longer makes an arbitrary choice on which bound to use.][54121] - [Fixed recursive nonterminals not being expended in macros during pretty-print/reparse check.][77153] This may cause errors if your macro wasn't correctly handling recursive nonterminal tokens. -- [`&mut` references to non zero-sized types are not longer promoted.][75585] +- [`&mut` references to non zero-sized types are no longer promoted.][75585] - [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]` in places where they have no effect.][73461] - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in From 3cb07753ccb145056f90fc638f21da0ad8c1685b Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Mon, 26 Oct 2020 07:11:03 +0100 Subject: [PATCH 05/13] Apply suggestions from code review Co-authored-by: Camelid Co-authored-by: Mark Rousskov --- RELEASES.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 7fbf0b8621e72..a546938ca73e6 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -9,8 +9,8 @@ Language Compiler -------- -- [Stabilised the `-C link-self-contained=`][76158] Which tells `rustc` whether to link - its own C runtime and libraries or to rely on a external linker to find them. (supported only on +- [Stabilised the `-C link-self-contained=`.][76158] This tells `rustc` whether to link + its own C runtime and libraries or to rely on a external linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.) - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386] - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420] @@ -52,14 +52,14 @@ Cargo Misc ---- -- [You can now link to different items in `rustdoc` using the intra-doc link +- [You can now link to items in `rustdoc` using the intra-doc link syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate a link to `std::future`'s documentation. See ["Linking to items by name"][intradoc-links] for more information. - [You can now specify `#[doc(alias = "")]` on items to add search aliases when searching through `rustdoc`'s UI.][75740] - [You can now use `rustup install .` to specify installing the - latest available patch of that minor version of the toolchain.][76107] E.g. + latest available patch of the specified minor version of the toolchain.][76107] E.g. `rustup install 1.45` would install `1.45.2`, and `1.46` would install `1.46.0`. Compatibility Notes @@ -70,7 +70,7 @@ Compatibility Notes declared on the trait when checking that they implement the trait.][27675] - [When trait bounds on associated types or opaque types are ambiguous, the compiler no longer makes an arbitrary choice on which bound to use.][54121] -- [Fixed recursive nonterminals not being expended in macros during +- [Fixed recursive nonterminals not being expanded in macros during pretty-print/reparse check.][77153] This may cause errors if your macro wasn't correctly handling recursive nonterminal tokens. - [`&mut` references to non zero-sized types are no longer promoted.][75585] From a9a26b8e86b4c3a41b3c531af41f182259d4cea6 Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Mon, 26 Oct 2020 11:23:54 +0100 Subject: [PATCH 06/13] Update RELEASES.md --- RELEASES.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index a546938ca73e6..dce605b8b30ae 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -50,14 +50,17 @@ The following previously stable methods are now `const fn`'s: Cargo ----- -Misc ----- +Rustdoc +------- - [You can now link to items in `rustdoc` using the intra-doc link syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate a link to `std::future`'s documentation. See ["Linking to items by name"][intradoc-links] for more information. - [You can now specify `#[doc(alias = "")]` on items to add search aliases when searching through `rustdoc`'s UI.][75740] + +Rustup +------ - [You can now use `rustup install .` to specify installing the latest available patch of the specified minor version of the toolchain.][76107] E.g. `rustup install 1.45` would install `1.45.2`, and `1.46` would install `1.46.0`. @@ -78,8 +81,8 @@ Compatibility Notes in places where they have no effect.][73461] - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166] - - +- [`mem::uninitialized` will now panic if any inner types inside a struct or enum + disallow zero-initialization].[71274] Internal Only ------------- @@ -88,7 +91,8 @@ Internal Only your `config.toml`. [27675]: https://github.com/rust-lang/rust/issues/27675/ -[54121]: https://github.com/rust-lang/rust/issues/54121/ +[54121]: https://github.com/rust-lang/rust/issues/54121/ +[71274]: https://github.com/rust-lang/rust/pull/71274/ [77386]: https://github.com/rust-lang/rust/pull/77386/ [77153]: https://github.com/rust-lang/rust/pull/77153/ [77055]: https://github.com/rust-lang/rust/pull/77055/ From e6bf0c3e7fff63eac2b9a18ed266919cd1524226 Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Mon, 26 Oct 2020 11:24:31 +0100 Subject: [PATCH 07/13] Update RELEASES.md --- RELEASES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASES.md b/RELEASES.md index dce605b8b30ae..91ec16f2df295 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -82,7 +82,7 @@ Compatibility Notes - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166] - [`mem::uninitialized` will now panic if any inner types inside a struct or enum - disallow zero-initialization].[71274] + disallow zero-initialization.][71274] Internal Only ------------- From 1186f28861b0cffd42e6d9a4e895db4b901ddd86 Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Mon, 26 Oct 2020 11:30:23 +0100 Subject: [PATCH 08/13] Update RELEASES.md --- RELEASES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASES.md b/RELEASES.md index 91ec16f2df295..a24e2534fd674 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -22,7 +22,7 @@ Libraries --------- - [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`, and `&Stderr`.][76275] -- [All arrays now implement `TryFrom>`.][76310] +- [All arrays of any length now implement `TryFrom>`.][76310] - [The `matches!` macro now supports having a trailing comma.][74880] - [`Vec` now implements `PartialEq<[B]>` where `A: PartialEq`.][74194] - [Nearly all of `Cell`'s panicking functions now use the `#[track_caller]` From 3f6726dba61b68eb72019d7a9d14f95972e99519 Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Tue, 27 Oct 2020 11:00:07 +0100 Subject: [PATCH 09/13] Update RELEASES.md --- RELEASES.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index a24e2534fd674..069006775cc07 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -58,12 +58,6 @@ Rustdoc name"][intradoc-links] for more information. - [You can now specify `#[doc(alias = "")]` on items to add search aliases when searching through `rustdoc`'s UI.][75740] - -Rustup ------- -- [You can now use `rustup install .` to specify installing the - latest available patch of the specified minor version of the toolchain.][76107] E.g. - `rustup install 1.45` would install `1.45.2`, and `1.46` would install `1.46.0`. Compatibility Notes ------------------- @@ -83,6 +77,9 @@ Compatibility Notes `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166] - [`mem::uninitialized` will now panic if any inner types inside a struct or enum disallow zero-initialization.][71274] +- [`#[target_feature]` will now error if used in a place where it has no effect.][78143] + +[78143]: https://github.com/rust-lang/rust/issues/78143 Internal Only ------------- @@ -99,7 +96,6 @@ Internal Only [76275]: https://github.com/rust-lang/rust/pull/76275/ [76310]: https://github.com/rust-lang/rust/pull/76310/ [76420]: https://github.com/rust-lang/rust/pull/76420/ -[76107]: https://github.com/rust-lang/rust/pull/76107/ [76158]: https://github.com/rust-lang/rust/pull/76158/ [75857]: https://github.com/rust-lang/rust/pull/75857/ [75585]: https://github.com/rust-lang/rust/pull/75585/ From 1c6d4d27b9200cb81e84cf249275a0c441770522 Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Tue, 27 Oct 2020 13:04:05 +0100 Subject: [PATCH 10/13] Update RELEASES.md --- RELEASES.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 069006775cc07..f3833054eaa20 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -25,8 +25,7 @@ Libraries - [All arrays of any length now implement `TryFrom>`.][76310] - [The `matches!` macro now supports having a trailing comma.][74880] - [`Vec` now implements `PartialEq<[B]>` where `A: PartialEq`.][74194] -- [Nearly all of `Cell`'s panicking functions now use the `#[track_caller]` - attribute.][77055] +- [The `RefCell::{replace, replace_with, clone}` methods now all use `#[track_caller]`.][77055] Stabilized APIs --------------- @@ -61,8 +60,9 @@ Rustdoc Compatibility Notes ------------------- -- [`const fn`s are now implicitly promoted to `const`.][75502] Meaning that it - will only warn if your code fails `const` evaluation, and not produce an error. +- [Promotion of references to `'static` lifetime inside `const fn` now follows the + same rules as inside a `fn` body.][75502] In particular, `&foo()` will not be + promoted to `'static` lifetime any more inside `const fn`s. - [Associated type bindings on trait objects are now verified to meet the bounds declared on the trait when checking that they implement the trait.][27675] - [When trait bounds on associated types or opaque types are ambiguous, the From c899998fa2d4c4ac10e7d5431cc14489b92da808 Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Tue, 27 Oct 2020 13:07:14 +0100 Subject: [PATCH 11/13] Update RELEASES.md --- RELEASES.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index f3833054eaa20..057129a51a07c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -9,9 +9,9 @@ Language Compiler -------- -- [Stabilised the `-C link-self-contained=`.][76158] This tells `rustc` whether to link - its own C runtime and libraries or to rely on a external linker to find them. (Supported only on - `windows-gnu`, `linux-musl`, and `wasi` platforms.) +- [Stabilised the `-C link-self-contained=` compiler flag.][76158] This tells + `rustc` whether to link its own C runtime and libraries or to rely on a external + linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.) - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386] - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420] From 0a9cf84225f9df4179eae0db243315136c4ba667 Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Thu, 29 Oct 2020 16:28:17 +0100 Subject: [PATCH 12/13] Update RELEASES.md --- RELEASES.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/RELEASES.md b/RELEASES.md index 057129a51a07c..5346df3862337 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -78,15 +78,25 @@ Compatibility Notes - [`mem::uninitialized` will now panic if any inner types inside a struct or enum disallow zero-initialization.][71274] - [`#[target_feature]` will now error if used in a place where it has no effect.][78143] +- [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212] [78143]: https://github.com/rust-lang/rust/issues/78143 Internal Only ------------- +These changes provide no direct user facing benefits, but represent significant +improvements to the internals and overall performance of rustc and +related tools. + - [Building `rustc` from source now uses `ninja` by default over `make`.][74922] You can continue building with `make` by setting `ninja=false` in your `config.toml`. +- [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030] +- [Made `ensure_sufficient_stack()` non-generic][76680] +[76680]: https://github.com/rust-lang/rust/pull/76680/ +[76030]: https://github.com/rust-lang/rust/pull/76030/ +[70212]: https://github.com/rust-lang/rust/pull/70212/ [27675]: https://github.com/rust-lang/rust/issues/27675/ [54121]: https://github.com/rust-lang/rust/issues/54121/ [71274]: https://github.com/rust-lang/rust/pull/71274/ @@ -215,6 +225,7 @@ Compatibility Notes Internal Only -------- + - [Improved default settings for bootstrapping in `x.py`.][73964] You can read details about this change in the ["Changes to `x.py` defaults"](https://blog.rust-lang.org/inside-rust/2020/08/30/changes-to-x-py-defaults.html) post on the Inside Rust blog. [1.47.0-cfg]: https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard From a81a64e42cffec5d126e9afe092f51f822ac4ff1 Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Thu, 12 Nov 2020 16:20:22 +0100 Subject: [PATCH 13/13] Update RELEASES.md --- RELEASES.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASES.md b/RELEASES.md index 5346df3862337..90faf4d3d4799 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -13,6 +13,7 @@ Compiler `rustc` whether to link its own C runtime and libraries or to rely on a external linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.) - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386] + Note: If you're using cargo you must explicitly pass the `--target` flag. - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420] \* Refer to Rust's [platform support page][forge-platform-support] for more @@ -79,8 +80,10 @@ Compatibility Notes disallow zero-initialization.][71274] - [`#[target_feature]` will now error if used in a place where it has no effect.][78143] - [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212] + Note: This behaviour is not guaranteed and is still considered undefined behaviour, + see the [`catch_unwind`] documentation for further information. + -[78143]: https://github.com/rust-lang/rust/issues/78143 Internal Only ------------- @@ -94,6 +97,7 @@ related tools. - [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030] - [Made `ensure_sufficient_stack()` non-generic][76680] +[78143]: https://github.com/rust-lang/rust/issues/78143 [76680]: https://github.com/rust-lang/rust/pull/76680/ [76030]: https://github.com/rust-lang/rust/pull/76030/ [70212]: https://github.com/rust-lang/rust/pull/70212/ @@ -118,6 +122,7 @@ related tools. [73461]: https://github.com/rust-lang/rust/pull/73461/ [73166]: https://github.com/rust-lang/rust/pull/73166/ [intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html +[`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html [`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some [`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none [`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref