@@ -23,9 +23,10 @@ appropriate page on our website, and check out the [detailed release notes for
23
23
24
24
## What's in 1.23.0 stable
25
25
26
- New year, new Rust! For our first improvement today, we now [ avoid some uneccesary
26
+ New year, new Rust! For our first improvement today, we now [ avoid some unnecessary
27
27
copies] ( https://github.com/rust-lang/rust/pull/45380 ) in certain situations.
28
- We've seen memory usage drop 5-10% with this change.
28
+ We've seen memory usage of using ` rustc ` to drop 5-10% with this change; it may
29
+ be different with your programs.
29
30
30
31
The documentation team has been on a long journey to move ` rustdoc ` to use
31
32
[ CommonMark] . Previously, ` rustdoc ` never guaranteed which markdown rendering
@@ -80,19 +81,19 @@ to import the trait. Thanks to our stability guarantees, this trait still exists
80
81
like to still support Rust versions before Rust 1.23, you can do this:
81
82
82
83
``` rust
83
- #[warn (unused_imports)]
84
+ #[allow (unused_imports)]
84
85
use std :: ascii :: AsciiExt ;
85
86
```
86
87
87
- To supress the related warning. Once you drop support for older Rusts, you
88
+ …to suppress the related warning. Once you drop support for older Rusts, you
88
89
can remove both lines, and everything will continue to work.
89
90
90
91
[ `AsciiExt` ] : https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html
91
92
92
93
Additionally, a few new APIs were stabilized this release:
93
94
94
95
* The various [ `std::sync::atomic
95
- types`] ( https://doc.rust-lang.org/beta/ std/sync/atomic/index.html#structs )
96
+ types`] ( https://doc.rust-lang.org/std/sync/atomic/index.html#structs )
96
97
now implement ` From ` their non-atomic types. For example, ` let x = AtomicBool::from(true); ` .
97
98
* [ ` () ` now implements ` FromIterator<()> ` ] ( https://github.com/rust-lang/rust/pull/45379 ) ; check the PR for
98
99
a neat use-case.
0 commit comments