@@ -50,8 +50,8 @@ but required a global allocator and other OS capabilities in return.
50
50
51
51
Starting with Rust 1.36.0, the parts of ` std ` that depend on a global allocator, e.g. ` Vec<T> ` ,
52
52
are now available in the ` alloc ` crate. The ` std ` crate then re-exports these parts.
53
- While ` #![no_std] ` binaries using ` alloc ` still require nightly Rust,
54
- ` #![no_std] ` library crates can use the ` alloc ` crate in stable Rust.
53
+ While ` #![no_std] ` * binaries* using ` alloc ` still require nightly Rust,
54
+ ` #![no_std] ` * library* crates can use the ` alloc ` crate in stable Rust.
55
55
Meanwhile, normal binaries, without ` #![no_std] ` , can depend on such library crates.
56
56
We hope this will facilitate the development of a ` #![no_std] ` compatible ecosystem of libraries
57
57
prior to stabilizing support for ` #![no_std] ` binaries using ` alloc ` .
@@ -82,7 +82,7 @@ However, [`mem::uninitialized`] is an incredibly dangerous operation that essent
82
82
cannot be used correctly as the Rust compiler assumes that values are properly initialized.
83
83
For example, calling ` mem::uninitialized::<bool>() ` causes * instantaneous __ undefined behavior__ *
84
84
as, from Rust's point of view, the uninitialized bits are neither ` 0 ` (for ` false ` )
85
- nor ` 1 ` (for ` true ` ) -- the only two allowed bit patterns for ` bool ` .
85
+ nor ` 1 ` (for ` true ` ) - the only two allowed bit patterns for ` bool ` .
86
86
87
87
To remedy this situation, in Rust 1.36.0, the type [ ` MaybeUninit<T> ` ] has been [ stabilized] [ pr-60445 ] .
88
88
The Rust compiler will understand that it should not assume that a [ ` MaybeUninit<T> ` ] is a properly initialized ` T ` .
0 commit comments