@@ -40,11 +40,11 @@ Language
4040 Cons (T , Box <Self >) // likewise here
4141 }
4242 ```
43+ - [ You can now mark traits with ` #[must_use] ` .] [ 55663 ] This provides a warning if
44+ a ` impl Trait ` or ` dyn Trait ` is returned and unused in the program.
4345
4446Compiler
4547--------
46- - [ You can now mark traits with ` #[must_use] ` .] [ 55663 ] Providing a warning if
47- they unused in a program.
4848- [ The default allocator has changed from jemalloc to the default allocator on
4949 your system.] [ 55238 ] The compiler itself on Linux & macOS will still use
5050 jemalloc, but programs compiled with them will use the system allocator.
@@ -75,7 +75,7 @@ The following APIs are now `const` functions and can be used in a
7575- [ ` RangeInclusive::start ` ]
7676- [ ` RangeInclusive::end ` ]
7777- [ ` NonNull::as_ptr ` ]
78- - [ ` [T] ::as_ptr` ]
78+ - [ ` slice ::as_ptr` ]
7979- [ ` str::as_ptr ` ]
8080- [ ` Duration::as_secs ` ]
8181- [ ` Duration::subsec_millis ` ]
@@ -165,6 +165,7 @@ Compatibility Notes
165165 been changed from ` *const ` to ` *mut ` as the previous implementation
166166 was unsound.
167167
168+
168169[ 55148 ] : https://github.com/rust-lang/rust/pull/55148/
169170[ 55238 ] : https://github.com/rust-lang/rust/pull/55238/
170171[ 55280 ] : https://github.com/rust-lang/rust/pull/55280/
@@ -195,7 +196,7 @@ Compatibility Notes
195196[ `RangeInclusive::end` ] : https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
196197[ `RangeInclusive::start` ] : https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
197198[ `UnsafeCell::get` ] : https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html#method.get
198- [ ` [T] ::as_ptr` ] : https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
199+ [ `slice ::as_ptr` ] : https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
199200[ `char::is_ascii` ] : https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
200201[ `i16::from_be_bytes` ] : https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
201202[ `i16::from_le_bytes` ] : https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
0 commit comments