Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d2241e3

Browse files
committed
Update RELEASES.md for 1.53.0
1 parent f36b137 commit d2241e3

File tree

1 file changed

+184
-0
lines changed

1 file changed

+184
-0
lines changed

RELEASES.md

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,187 @@
1+
Version 1.53.0 (2021-06-17)
2+
============================
3+
4+
Language
5+
-----------------------
6+
- [You can now use unicode for identifiers.][83799] This allows multilingual
7+
identifiers but still doesn't allow glyphs that not considered characters
8+
such as `◆` or `🦀`. More specifically you can now use any identifier that
9+
matches the UAX #31 "Unicode Identifier and Pattern Syntax" standard. This
10+
is the same standard as languages like Python, however Rust uses NFC
11+
normalisation which may be different from other languages.
12+
- [You can now specify "or patterns" inside pattern matches.][79278]
13+
Previously you could only use `|` (OR) on complete patterns. E.g.
14+
```rust
15+
let x = Some(2u8);
16+
// Before
17+
matches!(x, Some(1) | Some(2));
18+
// Now
19+
matches!(x, Some(1 | 2));
20+
```
21+
- [Added the `:pat_param` `macro_rules!` matcher.][83386] This matcher
22+
has the same semantics as the `:pat` matcher. This is to allow `:pat`
23+
to change semantics to being a pattern fragment in a future edition.
24+
25+
Compiler
26+
-----------------------
27+
- [Updated to build with LLVM 12 by , and enabled `mutable-noalias` when
28+
built LLVM 12 or greater.][82834]
29+
- [Updated the minimum external LLVM version to LLVM 10.][83387]
30+
- [Added Tier 3\* support for the `wasm64-unknown-unknown` target.][80525]
31+
- [Improved debuginfo for closures and async functions on Windows MSVC.][83941]
32+
33+
Libraries
34+
-----------------------
35+
- [Abort messages will now forward to `android_set_abort_message` on
36+
Android platforms when available.][81469]
37+
- [`slice::IterMut<'_, T>` now implements `AsRef<[T]>`][82771]
38+
- [Arrays of any length now implement `IntoIterator`.][84147]
39+
Currently `.into_iter()` will return `slice::Iter` (`Item=&T`), but
40+
this may change in a future edition to return `Item=T`.
41+
- [`NonZero<T>::{leading_zeros, trailing_zeros}` is now `const`.][84082]
42+
- [`{f32, f64}::from_str` now parse and print special values
43+
(`NaN`, `-0`) according to IEEE RFC 754.][78618]
44+
- [You can now index into slices using `(Bound<usize>, Bound<usize>)`.][77704]
45+
- [Add the `BITS` associated constant to all numeric types.][82565]
46+
47+
Stabilised APIs
48+
---------------
49+
- [`AtomicBool::fetch_update`]
50+
- [`AtomicPtr::fetch_update`]
51+
- [`BTreeMap::retain`]
52+
- [`BTreeSet::retain`]
53+
- [`BufReader::seek_relative`]
54+
- [`DebugStruct::non_exhaustive`]
55+
- [`Duration::MAX`]
56+
- [`Duration::ZERO`]
57+
- [`Duration::is_zero`]
58+
- [`Duration::saturating_add`]
59+
- [`Duration::saturating_mul`]
60+
- [`Duration::saturating_sub`]
61+
- [`ErrorKind::Unsupported`]
62+
- [`Option::insert`]
63+
- [`Ordering::is_eq`]
64+
- [`Ordering::is_ge`]
65+
- [`Ordering::is_gt`]
66+
- [`Ordering::is_le`]
67+
- [`Ordering::is_lt`]
68+
- [`Ordering::is_ne`]
69+
- [`OsStr::is_ascii`]
70+
- [`OsStr::make_ascii_lowercase`]
71+
- [`OsStr::make_ascii_uppercase`]
72+
- [`OsStr::to_ascii_lowercase`]
73+
- [`OsStr::to_ascii_uppercase`]
74+
- [`Peekable::peek_mut`]
75+
- [`Rc::decrement_strong_count`]
76+
- [`Rc::increment_strong_count`]
77+
- [`Vec::extend_from_within`]
78+
- [`array::from_mut`]
79+
- [`array::from_ref`]
80+
- [`char::MAX`]
81+
- [`char::REPLACEMENT_CHARACTER`]
82+
- [`char::UNICODE_VERSION`]
83+
- [`char::decode_utf16`]
84+
- [`char::from_digit`]
85+
- [`char::from_u32_unchecked`]
86+
- [`char::from_u32`]
87+
- [`cmp::max_by_key`]
88+
- [`cmp::max_by`]
89+
- [`cmp::min_by_key`]
90+
- [`cmp::min_by`]
91+
- [`f32::is_subnormal`]
92+
- [`f64::is_subnormal`]
93+
94+
Cargo
95+
-----------------------
96+
- [Expose build.target .cargo/config setting as packages.target in Cargo.toml][cargo/9030]
97+
98+
Rustdoc
99+
-----------------------
100+
- [Added the `rustdoc::bare_urls` lint that warns when you have URLs
101+
without hyperlinks.][81764]
102+
103+
Compatibility Notes
104+
-------------------
105+
- [Implement token-based handling of attributes during expansion][82608]
106+
- [`Ipv4::from_str` will now reject octal format IP addresses.][83652] The octal format
107+
can lead confusion and potential security vulnerablities and is no longer recommended.
108+
109+
Internal Only
110+
-------------
111+
- [Rework the `std::sys::windows::alloc` implementation.][83065]
112+
- [rustdoc: Don't enter an infer_ctxt in get_blanket_impls for impls that aren't blanket impls.][82864]
113+
- [rustdoc: Only look at blanket impls in `get_blanket_impls`][83681]
114+
- [Rework rustdoc const type][82873]
115+
116+
[83386]: https://github.com/rust-lang/rust/pull/83386
117+
[82771]: https://github.com/rust-lang/rust/pull/82771
118+
[84147]: https://github.com/rust-lang/rust/pull/84147
119+
[84082]: https://github.com/rust-lang/rust/pull/84082
120+
[83799]: https://github.com/rust-lang/rust/pull/83799
121+
[83681]: https://github.com/rust-lang/rust/pull/83681
122+
[83652]: https://github.com/rust-lang/rust/pull/83652
123+
[83387]: https://github.com/rust-lang/rust/pull/83387
124+
[82873]: https://github.com/rust-lang/rust/pull/82873
125+
[82864]: https://github.com/rust-lang/rust/pull/82864
126+
[82608]: https://github.com/rust-lang/rust/pull/82608
127+
[82565]: https://github.com/rust-lang/rust/pull/82565
128+
[80525]: https://github.com/rust-lang/rust/pull/80525
129+
[79278]: https://github.com/rust-lang/rust/pull/79278
130+
[78618]: https://github.com/rust-lang/rust/pull/78618
131+
[77704]: https://github.com/rust-lang/rust/pull/77704
132+
[83941]: https://github.com/rust-lang/rust/pull/83941
133+
[83065]: https://github.com/rust-lang/rust/pull/83065
134+
[82834]: https://github.com/rust-lang/rust/pull/82834
135+
[81764]: https://github.com/rust-lang/rust/pull/81764
136+
[81469]: https://github.com/rust-lang/rust/pull/81469
137+
[cargo/9030]: https://github.com/rust-lang/cargo/pull/9030
138+
[`char::MAX`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.MAX
139+
[`char::REPLACEMENT_CHARACTER`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.REPLACEMENT_CHARACTER
140+
[`char::UNICODE_VERSION`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.UNICODE_VERSION
141+
[`char::decode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.decode_utf16
142+
[`char::from_u32`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32
143+
[`char::from_u32_unchecked`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32_unchecked
144+
[`char::from_digit`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_digit
145+
[`AtomicBool::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicBool.html#method.fetch_update
146+
[`AtomicPtr::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html#method.fetch_update
147+
[`BTreeMap::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.retain
148+
[`BTreeSet::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.retain
149+
[`BufReader::seek_relative`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.seek_relative
150+
[`DebugStruct::non_exhaustive`]: https://doc.rust-lang.org/std/fmt/struct.DebugStruct.html#method.finish_non_exhaustive
151+
[`Duration::MAX`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.MAX
152+
[`Duration::ZERO`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.ZERO
153+
[`Duration::is_zero`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.is_zero
154+
[`Duration::saturating_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_add
155+
[`Duration::saturating_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_mul
156+
[`Duration::saturating_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_sub
157+
[`ErrorKind::Unsupported`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.Unsupported
158+
[`Option::insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.insert
159+
[`Ordering::is_eq`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_eq
160+
[`Ordering::is_ge`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ge
161+
[`Ordering::is_gt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_gt
162+
[`Ordering::is_le`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_le
163+
[`Ordering::is_lt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_lt
164+
[`Ordering::is_ne`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ne
165+
[`OsStr::eq_ignore_ascii_case`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.eq_ignore_ascii_case
166+
[`OsStr::is_ascii`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.is_ascii
167+
[`OsStr::make_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_lowercase
168+
[`OsStr::make_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_uppercase
169+
[`OsStr::to_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_lowercase
170+
[`OsStr::to_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_uppercase
171+
[`Peekable::peek_mut`]: https://doc.rust-lang.org/std/iter/struct.Peekable.html#method.peek_mut
172+
[`Rc::decrement_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
173+
[`Rc::increment_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
174+
[`Vec::extend_from_within`]: https://doc.rust-lang.org/beta/std/vec/struct.Vec.html#method.extend_from_within
175+
[`array::from_mut`]: https://doc.rust-lang.org/beta/std/array/fn.from_mut.html
176+
[`array::from_ref`]: https://doc.rust-lang.org/beta/std/array/fn.from_ref.html
177+
[`cmp::max_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by_key.html
178+
[`cmp::max_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by.html
179+
[`cmp::min_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by_key.html
180+
[`cmp::min_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by.html
181+
[`f32::is_subnormal`]: https://doc.rust-lang.org/f32.html#method.is_subnormal
182+
[`f64::is_subnormal`]: https://doc.rust-lang.org/f64.html#method.is_subnormal
183+
184+
1185
Version 1.52.1 (2021-05-10)
2186
============================
3187

0 commit comments

Comments
 (0)