-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Update RELEASES.md for 1.48.0 #78364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2b1fa1f
Update RELEASES.md for 1.48.0
XAMPPRocky ff89b80
Update RELEASES.md
XAMPPRocky a268264
Update RELEASES.md
XAMPPRocky 149ca76
Apply suggestions from code review
XAMPPRocky 3cb0775
Apply suggestions from code review
XAMPPRocky a9a26b8
Update RELEASES.md
XAMPPRocky e6bf0c3
Update RELEASES.md
XAMPPRocky 1186f28
Update RELEASES.md
XAMPPRocky 3f6726d
Update RELEASES.md
XAMPPRocky 1c6d4d2
Update RELEASES.md
XAMPPRocky c899998
Update RELEASES.md
XAMPPRocky 0a9cf84
Update RELEASES.md
XAMPPRocky a81a64e
Update RELEASES.md
XAMPPRocky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,128 @@ | ||
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-self-contained=<yes|no>`][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 | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
`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] | ||
|
||
\* 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`, | ||
and `&Stderr`.][76275] | ||
- [All arrays now implement `TryFrom<Vec<T>>`.][76310] | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- [The `matches!` macro now supports having a trailing comma.][74880] | ||
- [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194] | ||
- [Nearly all of `Cell`'s panicking functions now use the `#[track_caller]` | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 | ||
---- | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- [You can now link to different items in `rustdoc` using the intra-doc link | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎉 🎉 🎉
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 = "<alias>")]` on items to add search aliases | ||
when searching through `rustdoc`'s UI.][75740] | ||
- [You can now use `rustup install <major>.<minor>` to specify installing the | ||
latest available patch of that minor version of the toolchain.][76107] E.g. | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
`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. | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- [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 | ||
compiler no longer makes an arbitrary choice on which bound to use.][54121] | ||
- [Fixed recursive nonterminals not being expended in macros during | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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] | ||
- [`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 | ||
jyn514 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[`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) | ||
========================== | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.