@@ -40,11 +40,11 @@ Language
40
40
Cons (T , Box <Self >) // likewise here
41
41
}
42
42
```
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.
43
45
44
46
Compiler
45
47
--------
46
- - [ You can now mark traits with ` #[must_use] ` .] [ 55663 ] Providing a warning if
47
- they unused in a program.
48
48
- [ The default allocator has changed from jemalloc to the default allocator on
49
49
your system.] [ 55238 ] The compiler itself on Linux & macOS will still use
50
50
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
75
75
- [ ` RangeInclusive::start ` ]
76
76
- [ ` RangeInclusive::end ` ]
77
77
- [ ` NonNull::as_ptr ` ]
78
- - [ ` [T] ::as_ptr` ]
78
+ - [ ` slice ::as_ptr` ]
79
79
- [ ` str::as_ptr ` ]
80
80
- [ ` Duration::as_secs ` ]
81
81
- [ ` Duration::subsec_millis ` ]
@@ -165,6 +165,7 @@ Compatibility Notes
165
165
been changed from ` *const ` to ` *mut ` as the previous implementation
166
166
was unsound.
167
167
168
+
168
169
[ 55148 ] : https://github.com/rust-lang/rust/pull/55148/
169
170
[ 55238 ] : https://github.com/rust-lang/rust/pull/55238/
170
171
[ 55280 ] : https://github.com/rust-lang/rust/pull/55280/
@@ -195,7 +196,7 @@ Compatibility Notes
195
196
[ `RangeInclusive::end` ] : https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
196
197
[ `RangeInclusive::start` ] : https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
197
198
[ `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
199
200
[ `char::is_ascii` ] : https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
200
201
[ `i16::from_be_bytes` ] : https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
201
202
[ `i16::from_le_bytes` ] : https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
0 commit comments