Skip to content

Commit 3d2b8a2

Browse files
tmandryjoshtriplettpthariensflame
authored
Apply suggestions from code review
Co-authored-by: Josh Triplett <[email protected]> Co-authored-by: Alexander Ronald Altman <[email protected]>
1 parent e2c659b commit 3d2b8a2

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

RELEASES.md

+9-18
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ Version 1.58.0 (2022-01-13)
44
Language
55
--------
66

7-
- [Format strings can now capture arguments simply by writing `{ident}` in the string.][90473]
7+
- [Format strings can now capture arguments simply by writing `{ident}` in the string.][90473] This works in all macros accepting format strings. Support for this in `panic!` (`panic!("{ident}")`) requires the 2021 edition; panic invocations in previous editions that appear to be trying to use this will result in a warning lint about not having the intended effect.
88
- [`*const T` pointers can now be dereferenced in const contexts.][89551]
99
- [The rules for when a generic struct implements `Unsize` have been relaxed.][90417]
1010

1111
Compiler
1212
--------
1313

1414
- [Add LLVM CFI support to the Rust compiler][89652]
15-
- [Stabilize -Z strip as -C strip][90058]
15+
- [Stabilize -Z strip as -C strip][90058]. Note that while release builds already don't add debug symbols for the code you compile, the compiled standard library that ships with Rust includes debug symbols, so you may want to use the `strip` option to remove these symbols to produce smaller release binaries.
1616
- [Add support for LLVM coverage mapping format versions 5 and 6][91207]
1717
- [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
1818
- [Update the minimum external LLVM to 12][90175]
1919
- [Add `x86_64-unknown-none` at Tier 3*][89062]
20-
- [Build musl dist artifacts with debuginfo enabled][90733]
20+
- [Build musl dist artifacts with debuginfo enabled][90733]. When building release binaries using musl, you may want to use the newly stabilized strip option to remove these debug symbols, reducing the size of your binaries.
2121
- [Don't abort compilation after giving a lint error][87337]
2222
- [Error messages point at the source of trait bound obligations in more places][89580]
2323

@@ -27,21 +27,12 @@ Compiler
2727
Libraries
2828
---------
2929

30-
- [Add #[must_use] to Rc::downgrade][89833]
31-
- [Add #[must_use] to expensive computations][89835]
32-
- [Add #[must_use] to mem/ptr functions][89839]
33-
- [Add #[must_use] to remaining core functions][89897]
34-
- [Add #[must_use] to remaining alloc functions][89899]
35-
- [Add #[must_use] to len and is_empty][89786]
36-
- [Add #[must_use] to thread::Builder][89789]
37-
- [Add #[must_use] to alloc functions that would leak memory][90427]
38-
- [Add #[must_use] to remaining std functions (A-N)][90430]
39-
- [Add #[must_use] to remaining std functions (O-Z)][90431]
30+
- [All remaining functions in the standard library have `#[must_use]` annotations where appropriate][89692], producing a warning when ignoring their return value. This helps catch mistakes such as expecting a function to mutate a value in place rather than return a new value.
4031
- [Paths are automatically canonicalized on Windows for operations that support it][89174]
41-
- [Re-enable `copy[_nonoverlapping]()` debug-checks][90041]
32+
- [Re-enable debug checks for `copy` and `copy_nonoverlapping`][90041]
4233
- [Implement `RefUnwindSafe` for `Rc<T>`][87467]
4334
- [Make RSplit<T, P>: Clone not require T: Clone][90117]
44-
- [Implement `Termination` for `Result<Infallible, E>`][88601]
35+
- [Implement `Termination` for `Result<Infallible, E>`][88601]. This allows writing `fn main() -> Result<Infallible, ErrorType>`, for a program whose successful exits never involve returning from `main` (for instance, a program that calls `exit`, or that uses `exec` to run another program).
4536

4637
Stabilized APIs
4738
---------------
@@ -95,7 +86,7 @@ Compatibility Notes
9586
- Windows: [`std::process::Command` will no longer search the current directory for executables.][87704]
9687
- [All proc-macro backward-compatibility lints are now deny-by-default.][88041]
9788
- [proc_macro: Append .0 to unsuffixed float if it would otherwise become int token][90297]
98-
- [Refactor weak symbols in std::sys::unix][90846]
89+
- [Refactor weak symbols in std::sys::unix][90846]. This optimizes accesses to glibc functions, by avoiding the use of dlopen. This does not increase the [minimum expected version of glibc](https://doc.rust-lang.org/nightly/rustc/platform-support.html). However, software distributions that use symbol versions to detect library dependencies, and which take weak symbols into account in that analysis, may detect rust binaries as requiring newer versions of glibc.
9990
- [rustdoc now rejects some unexpected semicolons in doctests][91026]
10091

10192
Internal Changes
@@ -105,11 +96,11 @@ These changes provide no direct user facing benefits, but represent significant
10596
improvements to the internals and overall performance of rustc
10697
and related tools.
10798

108-
- [Try all stable method candidates first before trying unstable ones][90329]
99+
- [Try all stable method candidates first before trying unstable ones][90329]. This change ensures that adding new nightly-only methods to the Rust standard library will not break code invoking methods of the same name from traits outside the standard library.
109100
- [Implement coherence checks for negative trait impls][90104]
110101
- [Add rustc lint, warning when iterating over hashmaps][89558]
111102
- [Optimize live point computation][90491]
112-
- [Enable verification for 1/32th of queries loaded from disk][90361]
103+
- [Enable verification for 1/32nd of queries loaded from disk][90361]
113104
- [Implement version of normalize_erasing_regions that allows for normalization failure][91255]
114105

115106
[87337]: https://github.com/rust-lang/rust/pull/87337/

0 commit comments

Comments
 (0)