Skip to content

Commit ede1a70

Browse files
committed
Auto merge of #51593 - pietroalbini:beta-backports, r=Mark-Simulacrum
[beta] Rollup backports * #51261: Updated RELEASES.md for 1.27.0 * #51591: Remove `?` macro separator compatibility note from 1.27 release notes r? @Mark-Simulacrum
2 parents e38f06b + b090889 commit ede1a70

File tree

1 file changed

+158
-0
lines changed

1 file changed

+158
-0
lines changed

RELEASES.md

+158
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,161 @@
1+
Version 1.27.0 (2018-06-21)
2+
==========================
3+
4+
Language
5+
--------
6+
- [Removed 'proc' from the reserved keywords list.][49699] This allows `proc` to
7+
be used as an identifer.
8+
- [The dyn syntax is now available.][49968] This syntax is equivalent to the
9+
bare `Trait` syntax, and should make it clearer when being used in tandem with
10+
`impl Trait`. Since it is equivalent to the following syntax:
11+
`&Trait == &dyn Trait`, `&mut Trait == &mut dyn Trait`, and
12+
`Box<Trait> == Box<dyn Trait>`.
13+
- [Attributes on generic parameters such as types and lifetimes are
14+
now stable.][48851] e.g.
15+
`fn foo<#[lifetime_attr] 'a, #[type_attr] T: 'a>() {}`
16+
- [The `#[must_use]` attribute can now also be used on functions as well as
17+
types.][48925] It provides a lint that by default warns users when the
18+
value returned by a function has not been used.
19+
20+
Compiler
21+
--------
22+
- [Added the `armv5te-unknown-linux-musl` target.][50423]
23+
24+
Libraries
25+
---------
26+
- [SIMD (Single Instruction Multiple Data) on x86/x86_64 is now stable.][49664]
27+
This includes [`arch::x86`] & [`arch::x86_64`] modules which contain
28+
SIMD intrinsics, a new macro called `is_x86_feature_detected!`, the
29+
`#[target_feature(enable="")]` attribute, and adding `target_feature = ""` to
30+
the `cfg` attribute.
31+
- [A lot of methods for `[u8]`, `f32`, and `f64` previously only available in
32+
std are now available in core.][49896]
33+
- [The generic `Rhs` type parameter on `ops::{Shl, ShlAssign, Shr}` now defaults
34+
to `Self`.][49630]
35+
- [`std::str::replace` now has the `#[must_use]` attribute][50177] to clarify
36+
that the operation isn't done in place.
37+
- [`Clone::clone`, `Iterator::collect`, and `ToOwned::to_owned` now have
38+
the `#[must_use]` attribute][49533] to warn about unused potentially
39+
expensive allocations.
40+
41+
Stabilized APIs
42+
---------------
43+
- [`DoubleEndedIterator::rfind`]
44+
- [`DoubleEndedIterator::rfold`]
45+
- [`DoubleEndedIterator::try_rfold`]
46+
- [`Duration::from_micros`]
47+
- [`Duration::from_nanos`]
48+
- [`Duration::subsec_micros`]
49+
- [`Duration::subsec_millis`]
50+
- [`HashMap::remove_entry`]
51+
- [`Iterator::try_fold`]
52+
- [`Iterator::try_for_each`]
53+
- [`NonNull::cast`]
54+
- [`Option::filter`]
55+
- [`String::replace_range`]
56+
- [`Take::set_limit`]
57+
- [`hint::unreachable_unchecked`]
58+
- [`os::unix::process::parent_id`]
59+
- [`process::id`]
60+
- [`ptr::swap_nonoverlapping`]
61+
- [`slice::rsplit_mut`]
62+
- [`slice::rsplit`]
63+
- [`slice::swap_with_slice`]
64+
65+
Cargo
66+
-----
67+
- [`cargo-metadata` now includes `authors`, `categories`, `keywords`,
68+
`readme`, and `repository` fields.][cargo/5386]
69+
- [Added the `--target-dir` optional argument.][cargo/5393] This allows you to specify
70+
a different directory than `target` for placing compilation artifacts.
71+
- [Cargo will be adding automatic target inference for binaries, benchmarks,
72+
examples, and tests in the Rust 2018 edition.][cargo/5335] If your project specifies
73+
specific targets e.g. using `[[bin]]` and have other binaries in locations
74+
where cargo would infer a binary, Cargo will produce a warning. You can
75+
disable this feature ahead of time by setting any of the following `autobins`,
76+
`autobenches`, `autoexamples`, `autotests` to false.
77+
- [Cargo will now cache compiler information.][cargo/5359] This can be disabled by
78+
setting `CARGO_CACHE_RUSTC_INFO=0` in your environment.
79+
80+
Misc
81+
----
82+
- [Added “The Rustc book” into the official documentation.][49707]
83+
[“The Rustc book”] documents and teaches how to use the rustc compiler.
84+
- [All books available on `doc.rust-lang.org` are now searchable.][49623]
85+
86+
Compatibility Notes
87+
-------------------
88+
- [Calling a `CharExt` or `StrExt` method directly on core will no longer
89+
work.][49896] e.g. `::core::prelude::v1::StrExt::is_empty("")` will not
90+
compile, `"".is_empty()` will still compile.
91+
- [`Debug` output on `atomic::{AtomicBool, AtomicIsize, AtomicPtr, AtomicUsize}`
92+
will only print the inner type.][48553] e.g.
93+
`print!("{:?}", AtomicBool::new(true))` will print `true`
94+
not `AtomicBool(true)`.
95+
- [The maximum number for `repr(align(N))` is now 2²⁹.][50378] Previously you
96+
could enter higher numbers but they were not supported by LLVM. Up to 512MB
97+
alignment should cover all use cases.
98+
99+
[48553]: https://github.com/rust-lang/rust/pull/48553/
100+
[48851]: https://github.com/rust-lang/rust/pull/48851/
101+
[48925]: https://github.com/rust-lang/rust/pull/48925/
102+
[49533]: https://github.com/rust-lang/rust/pull/49533/
103+
[49623]: https://github.com/rust-lang/rust/pull/49623/
104+
[49630]: https://github.com/rust-lang/rust/pull/49630/
105+
[49664]: https://github.com/rust-lang/rust/pull/49664/
106+
[49699]: https://github.com/rust-lang/rust/pull/49699/
107+
[49707]: https://github.com/rust-lang/rust/pull/49707/
108+
[49719]: https://github.com/rust-lang/rust/pull/49719/
109+
[49896]: https://github.com/rust-lang/rust/pull/49896/
110+
[49968]: https://github.com/rust-lang/rust/pull/49968/
111+
[50177]: https://github.com/rust-lang/rust/pull/50177/
112+
[50378]: https://github.com/rust-lang/rust/pull/50378/
113+
[50398]: https://github.com/rust-lang/rust/pull/50398/
114+
[50423]: https://github.com/rust-lang/rust/pull/50423/
115+
[cargo/5203]: https://github.com/rust-lang/cargo/pull/5203/
116+
[cargo/5335]: https://github.com/rust-lang/cargo/pull/5335/
117+
[cargo/5359]: https://github.com/rust-lang/cargo/pull/5359/
118+
[cargo/5386]: https://github.com/rust-lang/cargo/pull/5386/
119+
[cargo/5393]: https://github.com/rust-lang/cargo/pull/5393/
120+
[`DoubleEndedIterator::rfind`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfind
121+
[`DoubleEndedIterator::rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfold
122+
[`DoubleEndedIterator::try_rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
123+
[`Duration::from_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_micros
124+
[`Duration::from_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_nanos
125+
[`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
126+
[`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
127+
[`HashMap::remove_entry`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.remove_entry
128+
[`Iterator::try_fold`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_fold
129+
[`Iterator::try_for_each`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
130+
[`NonNull::cast`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.cast
131+
[`Option::filter`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.filter
132+
[`String::replace_range`]: https://doc.rust-lang.org/std/string/struct.String.html#method.replace_range
133+
[`Take::set_limit`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.set_limit
134+
[`slice::rsplit_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit_mut
135+
[`slice::rsplit`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit
136+
[`slice::swap_with_slice`]: https://doc.rust-lang.org/std/primitive.slice.html#method.swap_with_slice
137+
[`arch::x86_64`]: https://doc.rust-lang.org/std/arch/x86_64/index.html
138+
[`arch::x86`]: https://doc.rust-lang.org/std/arch/x86/index.html
139+
[`fs::read`]:
140+
[`fs::write`]:
141+
[`hint::unreachable_unchecked`]: https://doc.rust-lang.org/std/hint/fn.unreachable_unchecked.html
142+
[`os::unix::process::parent_id`]: https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html
143+
[`ptr::swap_nonoverlapping`]: https://doc.rust-lang.org/std/ptr/fn.swap_nonoverlapping.html
144+
[`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
145+
[“The Rustc book”]: https://doc.rust-lang.org/rustc
146+
147+
148+
Version 1.26.2 (2018-06-05)
149+
==========================
150+
151+
Compatibility Notes
152+
-------------------
153+
154+
- [The borrow checker was fixed to avoid unsoundness when using match ergonomics][51117]
155+
156+
[51117]: https://github.com/rust-lang/rust/issues/51117
157+
158+
1159
Version 1.26.1 (2018-05-29)
2160
==========================
3161

0 commit comments

Comments
 (0)