Skip to content

Commit 287eb2a

Browse files
committed
Reformat Part of 1.7 Release Notes
- Use unordered nested list for stabilised APIs to improve readability - Add link to `u32::checked_neg` - Remove trailing back tick from BTreeMap line
1 parent acdd3b9 commit 287eb2a

File tree

1 file changed

+47
-55
lines changed

1 file changed

+47
-55
lines changed

RELEASES.md

+47-55
Original file line numberDiff line numberDiff line change
@@ -14,60 +14,51 @@ Language
1414
Libraries
1515
---------
1616

17-
* Stabilized APIs:
18-
[`Path::strip_prefix`][] (renamed from relative_from),
19-
[`path::StripPrefixError`][] (new error type returned from strip_prefix),
20-
[`Ipv4Addr::is_loopback`],
21-
[`Ipv4Addr::is_private`],
22-
[`Ipv4Addr::is_link_local`],
23-
[`Ipv4Addr::is_multicast`],
24-
[`Ipv4Addr::is_broadcast`],
25-
[`Ipv4Addr::is_documentation`],
26-
[`Ipv6Addr::is_unspecified`],
27-
[`Ipv6Addr::is_loopback`],
28-
[`Ipv6Addr::is_multicast`],
29-
[`Vec::as_slice`],
30-
[`Vec::as_mut_slice`],
31-
[`String::as_str`],
32-
[`String::as_mut_str`],
33-
`<[T]>::`[`clone_from_slice`], which now requires the two slices to
34-
be the same length
35-
`<[T]>::`[`sort_by_key`],
36-
[`i32::checked_rem`],
37-
[`i32::checked_neg`],
38-
[`i32::checked_shl`],
39-
[`i32::checked_shr`],
40-
[`i32::saturating_mul`],
41-
[`i32::overflowing_add`],
42-
[`i32::overflowing_sub`],
43-
[`i32::overflowing_mul`],
44-
[`i32::overflowing_div`],
45-
[`i32::overflowing_rem`],
46-
[`i32::overflowing_neg`],
47-
[`i32::overflowing_shl`],
48-
[`i32::overflowing_shr`],
49-
[`u32::checked_rem`],
50-
[`u32::checked_neg`],
51-
[`u32::checked_shl`],
52-
[`u32::checked_shl`],
53-
[`u32::saturating_mul`],
54-
[`u32::overflowing_add`],
55-
[`u32::overflowing_sub`],
56-
[`u32::overflowing_mul`],
57-
[`u32::overflowing_div`],
58-
[`u32::overflowing_rem`],
59-
[`u32::overflowing_neg`],
60-
[`u32::overflowing_shl`],
61-
[`u32::overflowing_shr`],
62-
checked, saturated, and overflowing operations for other primitive types,
63-
[`ffi::IntoStringError`],
64-
[`CString::into_string`],
65-
[`CString::into_bytes`],
66-
[`CString::into_bytes_with_nul`],
67-
`From<CString> for Vec<u8>`,
68-
[`IntoStringError::into_cstring`],
69-
[`IntoStringError::utf8_error`],
70-
`Error for IntoStringError`.
17+
* Stabilized APIs
18+
* `Path`
19+
* [`Path::strip_prefix`][] (renamed from relative_from)
20+
* [`path::StripPrefixError`][] (new error type returned from strip_prefix)
21+
* `Ipv4Addr`
22+
* [`Ipv4Addr::is_loopback`]
23+
* [`Ipv4Addr::is_private`]
24+
* [`Ipv4Addr::is_link_local`]
25+
* [`Ipv4Addr::is_multicast`]
26+
* [`Ipv4Addr::is_broadcast`]
27+
* [`Ipv4Addr::is_documentation`]
28+
* `Ipv6Addr`
29+
* [`Ipv6Addr::is_unspecified`]
30+
* [`Ipv6Addr::is_loopback`]
31+
* [`Ipv6Addr::is_multicast`]
32+
* `Vec`
33+
* [`Vec::as_slice`]
34+
* [`Vec::as_mut_slice`]
35+
* `String`
36+
* [`String::as_str`]
37+
* [`String::as_mut_str`]
38+
* Slices
39+
* `<[T]>::`[`clone_from_slice`], which now requires the two slices to
40+
be the same length
41+
* `<[T]>::`[`sort_by_key`]
42+
* checked, saturated, and overflowing operations
43+
* [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
44+
* [`i32::saturating_mul`]
45+
* [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
46+
* [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
47+
* [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
48+
* [`u32::saturating_mul`]
49+
* [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
50+
* [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
51+
* and checked, saturated, and overflowing operations for other primitive types
52+
* FFI
53+
* [`ffi::IntoStringError`]
54+
* [`CString::into_string`]
55+
* [`CString::into_bytes`]
56+
* [`CString::into_bytes_with_nul`]
57+
* `From<CString> for Vec<u8>`
58+
* `IntoStringError`
59+
* [`IntoStringError::into_cstring`]
60+
* [`IntoStringError::utf8_error`]
61+
* `Error for IntoStringError`
7162
* [Validating UTF-8 is faster by a factor of between 7 and 14x for
7263
ASCII input][1.7utf8]. This means that creating `String`s and `str`s
7364
from bytes is faster.
@@ -76,7 +67,7 @@ Libraries
7667
* [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
7768
`f64` variants were stabilized previously.
7869
* [`BTreeMap` was rewritten to use less memory and improve the performance
79-
of insertion and iteration, the latter by as much as 5x`][1.7bm].
70+
of insertion and iteration, the latter by as much as 5x][1.7bm].
8071
* [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
8172
covariant over their contained type][1.7bt].
8273
* [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
@@ -182,6 +173,7 @@ Compatibility Notes
182173
[`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
183174
[`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
184175
[`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
176+
[`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
185177
[`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
186178
[`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
187179
[`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add

0 commit comments

Comments
 (0)