]> git.lizzy.rs Git - rust.git/blob - RELEASES.md
stop evaluating constants in `Relate`
[rust.git] / RELEASES.md
1 Version 1.63.0 (2022-08-11)
2 ==========================
3
4 Language
5 --------
6 - [Remove migrate borrowck mode for pre-NLL errors.][95565]
7 - [Modify MIR building to drop repeat expressions with length zero.][95953]
8 - [Remove label/lifetime shadowing warnings.][96296]
9 - [Allow explicit generic arguments in the presence of `impl Trait` args.][96868]
10 - [Make `cenum_impl_drop_cast` warnings deny-by-default.][97652]
11 - [Prevent unwinding when `-C panic=abort` is used regardless of declared ABI.][96959]
12 - [lub: don't bail out due to empty binders.][97867]
13
14 Compiler
15 --------
16 - [Stabilize the `bundle` native library modifier,][95818] also removing the
17   deprecated `static-nobundle` linking kind.
18 - [Add Apple WatchOS compile targets\*.][95243]
19 - [Add a Windows application manifest to rustc-main.][96737]
20
21 \* Refer to Rust's [platform support page][platform-support-doc] for more
22    information on Rust's tiered platform support.
23
24 Libraries
25 ---------
26 - [Implement `Copy`, `Clone`, `PartialEq` and `Eq` for `core::fmt::Alignment`.][94530]
27 - [Extend `ptr::null` and `null_mut` to all thin (including extern) types.][94954]
28 - [`impl Read and Write for VecDeque<u8>`.][95632]
29 - [STD support for the Nintendo 3DS.][95897]
30 - [Use rounding in float to Duration conversion methods.][96051]
31 - [Make write/print macros eagerly drop temporaries.][96455]
32 - [Implement internal traits that enable `[OsStr]::join`.][96881]
33 - [Implement `Hash` for `core::alloc::Layout`.][97034]
34 - [Add capacity documentation for `OsString`.][97202]
35 - [Put a bound on collection misbehavior.][97316]
36 - [Make `std::mem::needs_drop` accept `?Sized`.][97675]
37 - [`impl Termination for Infallible` and then make the `Result` impls of `Termination` more generic.][97803]
38 - [Document Rust's stance on `/proc/self/mem`.][97837]
39
40 Stabilized APIs
41 ---------------
42
43 - [`array::from_fn`]
44 - [`Box::into_pin`]
45 - [`BinaryHeap::try_reserve`]
46 - [`BinaryHeap::try_reserve_exact`]
47 - [`OsString::try_reserve`]
48 - [`OsString::try_reserve_exact`]
49 - [`PathBuf::try_reserve`]
50 - [`PathBuf::try_reserve_exact`]
51 - [`Path::try_exists`]
52 - [`Ref::filter_map`]
53 - [`RefMut::filter_map`]
54 - [`NonNull::<[T]>::len`][`NonNull::<slice>::len`]
55 - [`ToOwned::clone_into`]
56 - [`Ipv6Addr::to_ipv4_mapped`]
57 - [`unix::io::AsFd`]
58 - [`unix::io::BorrowedFd<'fd>`]
59 - [`unix::io::OwnedFd`]
60 - [`windows::io::AsHandle`]
61 - [`windows::io::BorrowedHandle<'handle>`]
62 - [`windows::io::OwnedHandle`]
63 - [`windows::io::HandleOrInvalid`]
64 - [`windows::io::HandleOrNull`]
65 - [`windows::io::InvalidHandleError`]
66 - [`windows::io::NullHandleError`]
67 - [`windows::io::AsSocket`]
68 - [`windows::io::BorrowedSocket<'handle>`]
69 - [`windows::io::OwnedSocket`]
70 - [`thread::scope`]
71 - [`thread::Scope`]
72 - [`thread::ScopedJoinHandle`]
73
74 These APIs are now usable in const contexts:
75
76 - [`array::from_ref`]
77 - [`slice::from_ref`]
78 - [`intrinsics::copy`]
79 - [`intrinsics::copy_nonoverlapping`]
80 - [`<*const T>::copy_to`]
81 - [`<*const T>::copy_to_nonoverlapping`]
82 - [`<*mut T>::copy_to`]
83 - [`<*mut T>::copy_to_nonoverlapping`]
84 - [`<*mut T>::copy_from`]
85 - [`<*mut T>::copy_from_nonoverlapping`]
86 - [`str::from_utf8`]
87 - [`Utf8Error::error_len`]
88 - [`Utf8Error::valid_up_to`]
89 - [`Condvar::new`]
90 - [`Mutex::new`]
91 - [`RwLock::new`]
92
93 Cargo
94 -----
95 - [Stabilize the `--config path` command-line argument.][cargo/10755]
96 - [Expose rust-version in the environment as `CARGO_PKG_RUST_VERSION`.][cargo/10713]
97
98 Compatibility Notes
99 -------------------
100
101 - [`#[link]` attributes are now checked more strictly,][96885] which may introduce
102   errors for invalid attribute arguments that were previously ignored.
103 - [Rounding is now used when converting a float to a `Duration`.][96051] The converted
104   duration can differ slightly from what it was.
105
106 Internal Changes
107 ----------------
108
109 These changes provide no direct user facing benefits, but represent significant
110 improvements to the internals and overall performance of rustc
111 and related tools.
112
113 - [Prepare Rust for LLVM opaque pointers.][94214]
114
115 [94214]: https://github.com/rust-lang/rust/pull/94214/
116 [94530]: https://github.com/rust-lang/rust/pull/94530/
117 [94954]: https://github.com/rust-lang/rust/pull/94954/
118 [95243]: https://github.com/rust-lang/rust/pull/95243/
119 [95565]: https://github.com/rust-lang/rust/pull/95565/
120 [95632]: https://github.com/rust-lang/rust/pull/95632/
121 [95818]: https://github.com/rust-lang/rust/pull/95818/
122 [95897]: https://github.com/rust-lang/rust/pull/95897/
123 [95953]: https://github.com/rust-lang/rust/pull/95953/
124 [96051]: https://github.com/rust-lang/rust/pull/96051/
125 [96296]: https://github.com/rust-lang/rust/pull/96296/
126 [96455]: https://github.com/rust-lang/rust/pull/96455/
127 [96737]: https://github.com/rust-lang/rust/pull/96737/
128 [96868]: https://github.com/rust-lang/rust/pull/96868/
129 [96881]: https://github.com/rust-lang/rust/pull/96881/
130 [96885]: https://github.com/rust-lang/rust/pull/96885/
131 [96959]: https://github.com/rust-lang/rust/pull/96959/
132 [97034]: https://github.com/rust-lang/rust/pull/97034/
133 [97202]: https://github.com/rust-lang/rust/pull/97202/
134 [97316]: https://github.com/rust-lang/rust/pull/97316/
135 [97652]: https://github.com/rust-lang/rust/pull/97652/
136 [97675]: https://github.com/rust-lang/rust/pull/97675/
137 [97803]: https://github.com/rust-lang/rust/pull/97803/
138 [97837]: https://github.com/rust-lang/rust/pull/97837/
139 [97867]: https://github.com/rust-lang/rust/pull/97867/
140 [cargo/10713]: https://github.com/rust-lang/cargo/pull/10713/
141 [cargo/10755]: https://github.com/rust-lang/cargo/pull/10755/
142
143 [`array::from_fn`]: https://doc.rust-lang.org/stable/std/array/fn.from_fn.html
144 [`Box::into_pin`]: https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#method.into_pin
145 [`BinaryHeap::try_reserve_exact`]: https://doc.rust-lang.org/stable/alloc/collections/binary_heap/struct.BinaryHeap.html#method.try_reserve_exact
146 [`BinaryHeap::try_reserve`]: https://doc.rust-lang.org/stable/std/collections/struct.BinaryHeap.html#method.try_reserve
147 [`OsString::try_reserve`]: https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.try_reserve
148 [`OsString::try_reserve_exact`]: https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.try_reserve_exact
149 [`PathBuf::try_reserve`]: https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.try_reserve
150 [`PathBuf::try_reserve_exact`]: https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.try_reserve_exact
151 [`Path::try_exists`]: https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.try_exists
152 [`Ref::filter_map`]: https://doc.rust-lang.org/stable/std/cell/struct.Ref.html#method.filter_map
153 [`RefMut::filter_map`]: https://doc.rust-lang.org/stable/std/cell/struct.RefMut.html#method.filter_map
154 [`NonNull::<slice>::len`]: https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.len
155 [`ToOwned::clone_into`]: https://doc.rust-lang.org/stable/std/borrow/trait.ToOwned.html#method.clone_into
156 [`Ipv6Addr::to_ipv4_mapped`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.to_ipv4_mapped
157 [`unix::io::AsFd`]: https://doc.rust-lang.org/stable/std/os/unix/io/trait.AsFd.html
158 [`unix::io::BorrowedFd<'fd>`]: https://doc.rust-lang.org/stable/std/os/unix/io/struct.BorrowedFd.html
159 [`unix::io::OwnedFd`]: https://doc.rust-lang.org/stable/std/os/unix/io/struct.OwnedFd.html
160 [`windows::io::AsHandle`]: https://doc.rust-lang.org/stable/std/os/windows/io/trait.AsHandle.html
161 [`windows::io::BorrowedHandle<'handle>`]: https://doc.rust-lang.org/stable/std/os/windows/io/struct.BorrowedHandle.html
162 [`windows::io::OwnedHandle`]: https://doc.rust-lang.org/stable/std/os/windows/io/struct.OwnedHandle.html
163 [`windows::io::HandleOrInvalid`]: https://doc.rust-lang.org/stable/std/os/windows/io/struct.HandleOrInvalid.html
164 [`windows::io::HandleOrNull`]: https://doc.rust-lang.org/stable/std/os/windows/io/struct.HandleOrNull.html
165 [`windows::io::InvalidHandleError`]: https://doc.rust-lang.org/stable/std/os/windows/io/struct.InvalidHandleError.html
166 [`windows::io::NullHandleError`]: https://doc.rust-lang.org/stable/std/os/windows/io/struct.NullHandleError.html
167 [`windows::io::AsSocket`]: https://doc.rust-lang.org/stable/std/os/windows/io/trait.AsSocket.html
168 [`windows::io::BorrowedSocket<'handle>`]: https://doc.rust-lang.org/stable/std/os/windows/io/struct.BorrowedSocket.html
169 [`windows::io::OwnedSocket`]: https://doc.rust-lang.org/stable/std/os/windows/io/struct.OwnedSocket.html
170 [`thread::scope`]: https://doc.rust-lang.org/stable/std/thread/fn.scope.html
171 [`thread::Scope`]: https://doc.rust-lang.org/stable/std/thread/struct.Scope.html
172 [`thread::ScopedJoinHandle`]: https://doc.rust-lang.org/stable/std/thread/struct.ScopedJoinHandle.html
173
174 [`array::from_ref`]: https://doc.rust-lang.org/stable/std/array/fn.from_ref.html
175 [`slice::from_ref`]: https://doc.rust-lang.org/stable/std/slice/fn.from_ref.html
176 [`intrinsics::copy`]: https://doc.rust-lang.org/stable/std/intrinsics/fn.copy.html
177 [`intrinsics::copy_nonoverlapping`]: https://doc.rust-lang.org/stable/std/intrinsics/fn.copy_nonoverlapping.html
178 [`<*const T>::copy_to`]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.copy_to
179 [`<*const T>::copy_to_nonoverlapping`]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.copy_to_nonoverlapping
180 [`<*mut T>::copy_to`]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.copy_to-1
181 [`<*mut T>::copy_to_nonoverlapping`]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.copy_to_nonoverlapping-1
182 [`<*mut T>::copy_from`]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.copy_from
183 [`<*mut T>::copy_from_nonoverlapping`]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.copy_from_nonoverlapping
184 [`str::from_utf8`]: https://doc.rust-lang.org/stable/std/str/fn.from_utf8.html
185 [`Utf8Error::error_len`]: https://doc.rust-lang.org/stable/std/str/struct.Utf8Error.html#method.error_len
186 [`Utf8Error::valid_up_to`]: https://doc.rust-lang.org/stable/std/str/struct.Utf8Error.html#method.valid_up_to
187 [`Condvar::new`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.new
188 [`Mutex::new`]: https://doc.rust-lang.org/stable/std/sync/struct.Mutex.html#method.new
189 [`RwLock::new`]: https://doc.rust-lang.org/stable/std/sync/struct.RwLock.html#method.new
190
191 Version 1.62.1 (2022-07-19)
192 ==========================
193
194 Rust 1.62.1 addresses a few recent regressions in the compiler and standard
195 library, and also mitigates a CPU vulnerability on Intel SGX.
196
197 * [The compiler fixed unsound function coercions involving `impl Trait` return types.][98608]
198 * [The compiler fixed an incremental compilation bug with `async fn` lifetimes.][98890]
199 * [Windows added a fallback for overlapped I/O in synchronous reads and writes.][98950]
200 * [The `x86_64-fortanix-unknown-sgx` target added a mitigation for the
201   MMIO stale data vulnerability][98126], advisory [INTEL-SA-00615].
202
203 [98608]: https://github.com/rust-lang/rust/issues/98608
204 [98890]: https://github.com/rust-lang/rust/issues/98890
205 [98950]: https://github.com/rust-lang/rust/pull/98950
206 [98126]: https://github.com/rust-lang/rust/pull/98126
207 [INTEL-SA-00615]: https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00615.html
208
209 Version 1.62.0 (2022-06-30)
210 ==========================
211
212 Language
213 --------
214
215 - [Stabilize `#[derive(Default)]` on enums with a `#[default]` variant][94457]
216 - [Teach flow sensitive checks that visibly uninhabited call expressions never return][93313]
217 - [Fix constants not getting dropped if part of a diverging expression][94775]
218 - [Support unit struct/enum variant in destructuring assignment][95380]
219 - [Remove mutable_borrow_reservation_conflict lint and allow the code pattern][96268]
220
221 Compiler
222 --------
223
224 - [linker: Stop using whole-archive on dependencies of dylibs][96436]
225 - [Make `unaligned_references` lint deny-by-default][95372]
226   This lint is also a future compatibility lint, and is expected to eventually
227   become a hard error.
228 - [Only add codegen backend to dep info if -Zbinary-dep-depinfo is used][93969]
229 - [Reject `#[thread_local]` attribute on non-static items][95006]
230 - [Add tier 3 `aarch64-pc-windows-gnullvm` and `x86_64-pc-windows-gnullvm` targets\*][94872]
231 - [Implement a lint to warn about unused macro rules][96150]
232 - [Promote `x86_64-unknown-none` target to Tier 2\*][95705]
233
234 \* Refer to Rust's [platform support page][platform-support-doc] for more
235    information on Rust's tiered platform support.
236
237 Libraries
238 ---------
239
240 - [Windows: Use a pipe relay for chaining pipes][95841]
241 - [Replace Linux Mutex and Condvar with futex based ones.][95035]
242 - [Replace RwLock by a futex based one on Linux][95801]
243 - [std: directly use pthread in UNIX parker implementation][96393]
244
245 Stabilized APIs
246 ---------------
247
248 - [`bool::then_some`]
249 - [`f32::total_cmp`]
250 - [`f64::total_cmp`]
251 - [`Stdin::lines`]
252 - [`windows::CommandExt::raw_arg`]
253 - [`impl<T: Default> Default for AssertUnwindSafe<T>`]
254 - [`From<Rc<str>> for Rc<[u8]>`][rc-u8-from-str]
255 - [`From<Arc<str>> for Arc<[u8]>`][arc-u8-from-str]
256 - [`FusedIterator for EncodeWide`]
257 - [RDM intrinsics on aarch64][stdarch/1285]
258
259 Clippy
260 ------
261
262 - [Create clippy lint against unexpectedly late drop for temporaries in match scrutinee expressions][94206]
263
264 Cargo
265 -----
266
267 - Added the `cargo add` command for adding dependencies to `Cargo.toml` from
268   the command-line.
269   [docs](https://doc.rust-lang.org/nightly/cargo/commands/cargo-add.html)
270 - Package ID specs now support `name@version` syntax in addition to the
271   previous `name:version` to align with the behavior in `cargo add` and other
272   tools. `cargo install` and `cargo yank` also now support this syntax so the
273   version does not need to passed as a separate flag.
274 - The `git` and `registry` directories in Cargo's home directory (usually
275   `~/.cargo`) are now marked as cache directories so that they are not
276   included in backups or content indexing (on Windows).
277 - Added automatic `@` argfile support, which will use "response files" if the
278   command-line to `rustc` exceeds the operating system's limit.
279
280 Compatibility Notes
281 -------------------
282
283 - `cargo test` now passes `--target` to `rustdoc` if the specified target is
284   the same as the host target.
285   [#10594](https://github.com/rust-lang/cargo/pull/10594)
286 - [rustdoc: doctests are now run on unexported `macro_rules!` macros, matching other private items][96630]
287 - [rustdoc: Remove .woff font files][96279]
288 - [Enforce Copy bounds for repeat elements while considering lifetimes][95819]
289 - [Windows: Fix potentinal unsoundness by aborting if `File` reads or writes cannot
290   complete synchronously][95469].
291
292 Internal Changes
293 ----------------
294
295 - [Unify ReentrantMutex implementations across all platforms][96042]
296
297 These changes provide no direct user facing benefits, but represent significant
298 improvements to the internals and overall performance of rustc
299 and related tools.
300
301 [93313]: https://github.com/rust-lang/rust/pull/93313/
302 [93969]: https://github.com/rust-lang/rust/pull/93969/
303 [94206]: https://github.com/rust-lang/rust/pull/94206/
304 [94457]: https://github.com/rust-lang/rust/pull/94457/
305 [94775]: https://github.com/rust-lang/rust/pull/94775/
306 [94872]: https://github.com/rust-lang/rust/pull/94872/
307 [95006]: https://github.com/rust-lang/rust/pull/95006/
308 [95035]: https://github.com/rust-lang/rust/pull/95035/
309 [95372]: https://github.com/rust-lang/rust/pull/95372/
310 [95380]: https://github.com/rust-lang/rust/pull/95380/
311 [95431]: https://github.com/rust-lang/rust/pull/95431/
312 [95469]: https://github.com/rust-lang/rust/pull/95469/
313 [95705]: https://github.com/rust-lang/rust/pull/95705/
314 [95801]: https://github.com/rust-lang/rust/pull/95801/
315 [95819]: https://github.com/rust-lang/rust/pull/95819/
316 [95841]: https://github.com/rust-lang/rust/pull/95841/
317 [96042]: https://github.com/rust-lang/rust/pull/96042/
318 [96150]: https://github.com/rust-lang/rust/pull/96150/
319 [96268]: https://github.com/rust-lang/rust/pull/96268/
320 [96279]: https://github.com/rust-lang/rust/pull/96279/
321 [96393]: https://github.com/rust-lang/rust/pull/96393/
322 [96436]: https://github.com/rust-lang/rust/pull/96436/
323 [96557]: https://github.com/rust-lang/rust/pull/96557/
324 [96630]: https://github.com/rust-lang/rust/pull/96630/
325
326 [`bool::then_some`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then_some
327 [`f32::total_cmp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.total_cmp
328 [`f64::total_cmp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.total_cmp
329 [`Stdin::lines`]: https://doc.rust-lang.org/stable/std/io/struct.Stdin.html#method.lines
330 [`impl<T: Default> Default for AssertUnwindSafe<T>`]: https://doc.rust-lang.org/stable/std/panic/struct.AssertUnwindSafe.html#impl-Default
331 [rc-u8-from-str]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#impl-From%3CRc%3Cstr%3E%3E
332 [arc-u8-from-str]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#impl-From%3CArc%3Cstr%3E%3E
333 [stdarch/1285]: https://github.com/rust-lang/stdarch/pull/1285
334 [`windows::CommandExt::raw_arg`]: https://doc.rust-lang.org/stable/std/os/windows/process/trait.CommandExt.html#tymethod.raw_arg
335 [`FusedIterator for EncodeWide`]: https://doc.rust-lang.org/stable/std/os/windows/ffi/struct.EncodeWide.html#impl-FusedIterator
336
337 Version 1.61.0 (2022-05-19)
338 ==========================
339
340 Language
341 --------
342
343 - [`const fn` signatures can now include generic trait bounds][93827]
344 - [`const fn` signatures can now use `impl Trait` in argument and return position][93827]
345 - [Function pointers can now be created, cast, and passed around in a `const fn`][93827]
346 - [Recursive calls can now set the value of a function's opaque `impl Trait` return type][94081]
347
348 Compiler
349 --------
350
351 - [Linking modifier syntax in `#[link]` attributes and on the command line, as well as the `whole-archive` modifier specifically, are now supported][93901]
352 - [The `char` type is now described as UTF-32 in debuginfo][89887]
353 - The [`#[target_feature]`][target_feature] attribute [can now be used with aarch64 features][90621]
354 - X86 [`#[target_feature = "adx"]` is now stable][93745]
355
356 Libraries
357 ---------
358
359 - [`ManuallyDrop<T>` is now documented to have the same layout as `T`][88375]
360 - [`#[ignore = "…"]` messages are printed when running tests][92714]
361 - [Consistently show absent stdio handles on Windows as NULL handles][93263]
362 - [Make `std::io::stdio::lock()` return `'static` handles.][93965] Previously, the creation of locked handles to stdin/stdout/stderr would borrow the handles being locked, which prevented writing `let out = std::io::stdout().lock();` because `out` would outlive the return value of `stdout()`. Such code now works, eliminating a common pitfall that affected many Rust users.
363 - [`Vec::from_raw_parts` is now less restrictive about its inputs][95016]
364 - [`std::thread::available_parallelism` now takes cgroup quotas into account.][92697] Since `available_parallelism` is often used to create a thread pool for parallel computation, which may be CPU-bound for performance, `available_parallelism` will return a value consistent with the ability to use that many threads continuously, if possible. For instance, in a container with 8 virtual CPUs but quotas only allowing for 50% usage, `available_parallelism` will return 4.
365
366 Stabilized APIs
367 ---------------
368
369 - [`Pin::static_mut`]
370 - [`Pin::static_ref`]
371 - [`Vec::retain_mut`]
372 - [`VecDeque::retain_mut`]
373 - [`Write` for `Cursor<[u8; N]>`][cursor-write-array]
374 - [`std::os::unix::net::SocketAddr::from_pathname`]
375 - [`std::process::ExitCode`] and [`std::process::Termination`]. The stabilization of these two APIs now makes it possible for programs to return errors from `main` with custom exit codes.
376 - [`std::thread::JoinHandle::is_finished`]
377
378 These APIs are now usable in const contexts:
379
380 - [`<*const T>::offset` and `<*mut T>::offset`][ptr-offset]
381 - [`<*const T>::wrapping_offset` and `<*mut T>::wrapping_offset`][ptr-wrapping_offset]
382 - [`<*const T>::add` and `<*mut T>::add`][ptr-add]
383 - [`<*const T>::sub` and `<*mut T>::sub`][ptr-sub]
384 - [`<*const T>::wrapping_add` and `<*mut T>::wrapping_add`][ptr-wrapping_add]
385 - [`<*const T>::wrapping_sub` and `<*mut T>::wrapping_sub`][ptr-wrapping_sub]
386 - [`<[T]>::as_mut_ptr`][slice-as_mut_ptr]
387 - [`<[T]>::as_ptr_range`][slice-as_ptr_range]
388 - [`<[T]>::as_mut_ptr_range`][slice-as_mut_ptr_range]
389
390 Cargo
391 -----
392
393 No feature changes, but see compatibility notes.
394
395 Compatibility Notes
396 -------------------
397
398 - Previously native static libraries were linked as `whole-archive` in some cases, but now rustc tries not to use `whole-archive` unless explicitly requested. This [change][93901] may result in linking errors in some cases. To fix such errors, native libraries linked from the command line, build scripts, or [`#[link]` attributes][link-attr] need to
399   - (more common) either be reordered to respect dependencies between them (if `a` depends on `b` then `a` should go first and `b` second)
400   - (less common) or be updated to use the [`+whole-archive`] modifier.
401 - [Catching a second unwind from FFI code while cleaning up from a Rust panic now causes the process to abort][92911]
402 - [Proc macros no longer see `ident` matchers wrapped in groups][92472]
403 - [The number of `#` in `r#` raw string literals is now required to be less than 256][95251]
404 - [When checking that a dyn type satisfies a trait bound, supertrait bounds are now enforced][92285]
405 - [`cargo vendor` now only accepts one value for each `--sync` flag][cargo/10448]
406 - [`cfg` predicates in `all()` and `any()` are always evaluated to detect errors, instead of short-circuiting.][94295] The compatibility considerations here arise in nightly-only code that used the short-circuiting behavior of `all` to write something like `cfg(all(feature = "nightly", syntax-requiring-nightly))`, which will now fail to compile. Instead, use either `cfg_attr(feature = "nightly", ...)` or nested uses of `cfg`.
407 - [bootstrap: static-libstdcpp is now enabled by default, and can now be disabled when llvm-tools is enabled][94832]
408
409 Internal Changes
410 ----------------
411
412 These changes provide no direct user facing benefits, but represent significant
413 improvements to the internals and overall performance of rustc
414 and related tools.
415
416 - [debuginfo: Refactor debuginfo generation for types][94261]
417 - [Remove the everybody loops pass][93913]
418
419 [88375]: https://github.com/rust-lang/rust/pull/88375/
420 [89887]: https://github.com/rust-lang/rust/pull/89887/
421 [90621]: https://github.com/rust-lang/rust/pull/90621/
422 [92285]: https://github.com/rust-lang/rust/pull/92285/
423 [92472]: https://github.com/rust-lang/rust/pull/92472/
424 [92697]: https://github.com/rust-lang/rust/pull/92697/
425 [92714]: https://github.com/rust-lang/rust/pull/92714/
426 [92911]: https://github.com/rust-lang/rust/pull/92911/
427 [93263]: https://github.com/rust-lang/rust/pull/93263/
428 [93745]: https://github.com/rust-lang/rust/pull/93745/
429 [93827]: https://github.com/rust-lang/rust/pull/93827/
430 [93901]: https://github.com/rust-lang/rust/pull/93901/
431 [93913]: https://github.com/rust-lang/rust/pull/93913/
432 [93965]: https://github.com/rust-lang/rust/pull/93965/
433 [94081]: https://github.com/rust-lang/rust/pull/94081/
434 [94261]: https://github.com/rust-lang/rust/pull/94261/
435 [94295]: https://github.com/rust-lang/rust/pull/94295/
436 [94832]: https://github.com/rust-lang/rust/pull/94832/
437 [95016]: https://github.com/rust-lang/rust/pull/95016/
438 [95251]: https://github.com/rust-lang/rust/pull/95251/
439 [`+whole-archive`]: https://doc.rust-lang.org/stable/rustc/command-line-arguments.html#linking-modifiers-whole-archive
440 [`Pin::static_mut`]: https://doc.rust-lang.org/stable/std/pin/struct.Pin.html#method.static_mut
441 [`Pin::static_ref`]: https://doc.rust-lang.org/stable/std/pin/struct.Pin.html#method.static_ref
442 [`Vec::retain_mut`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.retain_mut
443 [`VecDeque::retain_mut`]: https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.retain_mut
444 [`std::os::unix::net::SocketAddr::from_pathname`]: https://doc.rust-lang.org/stable/std/os/unix/net/struct.SocketAddr.html#method.from_pathname
445 [`std::process::ExitCode`]: https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html
446 [`std::process::Termination`]: https://doc.rust-lang.org/stable/std/process/trait.Termination.html
447 [`std::thread::JoinHandle::is_finished`]: https://doc.rust-lang.org/stable/std/thread/struct.JoinHandle.html#method.is_finished
448 [cargo/10448]: https://github.com/rust-lang/cargo/pull/10448/
449 [cursor-write-array]: https://doc.rust-lang.org/stable/std/io/struct.Cursor.html#impl-Write-4
450 [link-attr]: https://doc.rust-lang.org/stable/reference/items/external-blocks.html#the-link-attribute
451 [ptr-add]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.add
452 [ptr-offset]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.offset
453 [ptr-sub]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.sub
454 [ptr-wrapping_add]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.wrapping_add
455 [ptr-wrapping_offset]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.wrapping_offset
456 [ptr-wrapping_sub]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.wrapping_sub
457 [slice-as_mut_ptr]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_mut_ptr
458 [slice-as_mut_ptr_range]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_mut_ptr_range
459 [slice-as_ptr_range]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_ptr_range
460 [target_feature]: https://doc.rust-lang.org/reference/attributes/codegen.html#the-target_feature-attribute
461
462
463 Version 1.60.0 (2022-04-07)
464 ==========================
465
466 Language
467 --------
468 - [Stabilize `#[cfg(panic = "...")]` for either `"unwind"` or `"abort"`.][93658]
469 - [Stabilize `#[cfg(target_has_atomic = "...")]` for each integer size and `"ptr"`.][93824]
470
471 Compiler
472 --------
473 - [Enable combining `+crt-static` and `relocation-model=pic` on `x86_64-unknown-linux-gnu`][86374]
474 - [Fixes wrong `unreachable_pub` lints on nested and glob public reexport][87487]
475 - [Stabilize `-Z instrument-coverage` as `-C instrument-coverage`][90132]
476 - [Stabilize `-Z print-link-args` as `--print link-args`][91606]
477 - [Add new Tier 3 target `mips64-openwrt-linux-musl`\*][92300]
478 - [Add new Tier 3 target `armv7-unknown-linux-uclibceabi` (softfloat)\*][92383]
479 - [Fix invalid removal of newlines from doc comments][92357]
480 - [Add kernel target for RustyHermit][92670]
481 - [Deny mixing bin crate type with lib crate types][92933]
482 - [Make rustc use `RUST_BACKTRACE=full` by default][93566]
483 - [Upgrade to LLVM 14][93577]
484
485 \* Refer to Rust's [platform support page][platform-support-doc] for more
486    information on Rust's tiered platform support.
487
488 Libraries
489 ---------
490 - [Guarantee call order for `sort_by_cached_key`][89621]
491 - [Improve `Duration::try_from_secs_f32`/`f64` accuracy by directly processing exponent and mantissa][90247]
492 - [Make `Instant::{duration_since, elapsed, sub}` saturating][89926]
493 - [Remove non-monotonic clocks workarounds in `Instant::now`][89926]
494 - [Make `BuildHasherDefault`, `iter::Empty` and `future::Pending` covariant][92630]
495
496 Stabilized APIs
497 ---------------
498 - [`Arc::new_cyclic`][arc_new_cyclic]
499 - [`Rc::new_cyclic`][rc_new_cyclic]
500 - [`slice::EscapeAscii`][slice_escape_ascii]
501 - [`<[u8]>::escape_ascii`][slice_u8_escape_ascii]
502 - [`u8::escape_ascii`][u8_escape_ascii]
503 - [`Vec::spare_capacity_mut`][vec_spare_capacity_mut]
504 - [`MaybeUninit::assume_init_drop`][assume_init_drop]
505 - [`MaybeUninit::assume_init_read`][assume_init_read]
506 - [`i8::abs_diff`][i8_abs_diff]
507 - [`i16::abs_diff`][i16_abs_diff]
508 - [`i32::abs_diff`][i32_abs_diff]
509 - [`i64::abs_diff`][i64_abs_diff]
510 - [`i128::abs_diff`][i128_abs_diff]
511 - [`isize::abs_diff`][isize_abs_diff]
512 - [`u8::abs_diff`][u8_abs_diff]
513 - [`u16::abs_diff`][u16_abs_diff]
514 - [`u32::abs_diff`][u32_abs_diff]
515 - [`u64::abs_diff`][u64_abs_diff]
516 - [`u128::abs_diff`][u128_abs_diff]
517 - [`usize::abs_diff`][usize_abs_diff]
518 - [`Display for io::ErrorKind`][display_error_kind]
519 - [`From<u8> for ExitCode`][from_u8_exit_code]
520 - [`Not for !` (the "never" type)][not_never]
521 - [_Op_`Assign<$t> for Wrapping<$t>`][wrapping_assign_ops]
522 - [`arch::is_aarch64_feature_detected!`][is_aarch64_feature_detected]
523
524 Cargo
525 -----
526 - [Port cargo from `toml-rs` to `toml_edit`][cargo/10086]
527 - [Stabilize `-Ztimings` as `--timings`][cargo/10245]
528 - [Stabilize namespaced and weak dependency features.][cargo/10269]
529 - [Accept more `cargo:rustc-link-arg-*` types from build script output.][cargo/10274]
530 - [cargo-new should not add ignore rule on Cargo.lock inside subdirs][cargo/10379]
531
532 Misc
533 ----
534 - [Ship docs on Tier 2 platforms by reusing the closest Tier 1 platform docs][92800]
535 - [Drop rustc-docs from complete profile][93742]
536 - [bootstrap: tidy up flag handling for llvm build][93918]
537
538 Compatibility Notes
539 -------------------
540 - [Remove compiler-rt linking hack on Android][83822]
541 - [Mitigations for platforms with non-monotonic clocks have been removed from
542   `Instant::now`][89926]. On platforms that don't provide monotonic clocks, an
543   instant is not guaranteed to be greater than an earlier instant anymore.
544 - [`Instant::{duration_since, elapsed, sub}` do not panic anymore on underflow,
545   saturating to `0` instead][89926]. In the real world the panic happened mostly
546   on platforms with buggy monotonic clock implementations rather than catching
547   programming errors like reversing the start and end times. Such programming
548   errors will now results in `0` rather than a panic.
549 - In a future release we're planning to increase the baseline requirements for
550   the Linux kernel to version 3.2, and for glibc to version 2.17. We'd love
551   your feedback in [PR #95026][95026].
552
553 Internal Changes
554 ----------------
555
556 These changes provide no direct user facing benefits, but represent significant
557 improvements to the internals and overall performance of rustc
558 and related tools.
559
560 - [Switch all libraries to the 2021 edition][92068]
561
562 [83822]: https://github.com/rust-lang/rust/pull/83822
563 [86374]: https://github.com/rust-lang/rust/pull/86374
564 [87487]: https://github.com/rust-lang/rust/pull/87487
565 [89621]: https://github.com/rust-lang/rust/pull/89621
566 [89926]: https://github.com/rust-lang/rust/pull/89926
567 [90132]: https://github.com/rust-lang/rust/pull/90132
568 [90247]: https://github.com/rust-lang/rust/pull/90247
569 [91606]: https://github.com/rust-lang/rust/pull/91606
570 [92068]: https://github.com/rust-lang/rust/pull/92068
571 [92300]: https://github.com/rust-lang/rust/pull/92300
572 [92357]: https://github.com/rust-lang/rust/pull/92357
573 [92383]: https://github.com/rust-lang/rust/pull/92383
574 [92630]: https://github.com/rust-lang/rust/pull/92630
575 [92670]: https://github.com/rust-lang/rust/pull/92670
576 [92800]: https://github.com/rust-lang/rust/pull/92800
577 [92933]: https://github.com/rust-lang/rust/pull/92933
578 [93566]: https://github.com/rust-lang/rust/pull/93566
579 [93577]: https://github.com/rust-lang/rust/pull/93577
580 [93658]: https://github.com/rust-lang/rust/pull/93658
581 [93742]: https://github.com/rust-lang/rust/pull/93742
582 [93824]: https://github.com/rust-lang/rust/pull/93824
583 [93918]: https://github.com/rust-lang/rust/pull/93918
584 [95026]: https://github.com/rust-lang/rust/pull/95026
585
586 [cargo/10086]: https://github.com/rust-lang/cargo/pull/10086
587 [cargo/10245]: https://github.com/rust-lang/cargo/pull/10245
588 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269
589 [cargo/10274]: https://github.com/rust-lang/cargo/pull/10274
590 [cargo/10379]: https://github.com/rust-lang/cargo/pull/10379
591
592 [arc_new_cyclic]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.new_cyclic
593 [rc_new_cyclic]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.new_cyclic
594 [slice_escape_ascii]: https://doc.rust-lang.org/stable/std/slice/struct.EscapeAscii.html
595 [slice_u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.escape_ascii
596 [u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.escape_ascii
597 [vec_spare_capacity_mut]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.spare_capacity_mut
598 [assume_init_drop]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_drop
599 [assume_init_read]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_read
600 [i8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.abs_diff
601 [i16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.abs_diff
602 [i32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.abs_diff
603 [i64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.abs_diff
604 [i128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.abs_diff
605 [isize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.abs_diff
606 [u8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.abs_diff
607 [u16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.abs_diff
608 [u32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.abs_diff
609 [u64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.abs_diff
610 [u128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.abs_diff
611 [usize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.abs_diff
612 [display_error_kind]: https://doc.rust-lang.org/stable/std/io/enum.ErrorKind.html#impl-Display
613 [from_u8_exit_code]: https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html#impl-From%3Cu8%3E
614 [not_never]: https://doc.rust-lang.org/stable/std/primitive.never.html#impl-Not
615 [wrapping_assign_ops]: https://doc.rust-lang.org/stable/std/num/struct.Wrapping.html#trait-implementations
616 [is_aarch64_feature_detected]: https://doc.rust-lang.org/stable/std/arch/macro.is_aarch64_feature_detected.html
617
618 Version 1.59.0 (2022-02-24)
619 ==========================
620
621 Language
622 --------
623
624 - [Stabilize default arguments for const parameters and remove the ordering restriction for type and const parameters][90207]
625 - [Stabilize destructuring assignment][90521]
626 - [Relax private in public lint on generic bounds and where clauses of trait impls][90586]
627 - [Stabilize asm! and global_asm! for x86, x86_64, ARM, Aarch64, and RISC-V][91728]
628
629 Compiler
630 --------
631
632 - [Stabilize new symbol mangling format, leaving it opt-in (-Csymbol-mangling-version=v0)][90128]
633 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
634 - [Fix sparc64 ABI for aggregates with floating point members][91003]
635 - [Warn when a `#[test]`-like built-in attribute macro is present multiple times.][91172]
636 - [Add support for riscv64gc-unknown-freebsd][91284]
637 - [Stabilize `-Z emit-future-incompat` as `--json future-incompat`][91535]
638 - [Soft disable incremental compilation][94124]
639
640 This release disables incremental compilation, unless the user has explicitly
641 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
642 This is due to a known and relatively frequently occurring bug in incremental
643 compilation, which causes builds to issue internal compiler errors. This
644 particular bug is already fixed on nightly, but that fix has not yet rolled out
645 to stable and is deemed too risky for a direct stable backport.
646
647 As always, we encourage users to test with nightly and report bugs so that we
648 can track failures and fix issues earlier.
649
650 See [94124] for more details.
651
652 [94124]: https://github.com/rust-lang/rust/issues/94124
653
654 Libraries
655 ---------
656
657 - [Remove unnecessary bounds for some Hash{Map,Set} methods][91593]
658
659 Stabilized APIs
660 ---------------
661
662 - [`std::thread::available_parallelism`][available_parallelism]
663 - [`Result::copied`][result-copied]
664 - [`Result::cloned`][result-cloned]
665 - [`arch::asm!`][asm]
666 - [`arch::global_asm!`][global_asm]
667 - [`ops::ControlFlow::is_break`][is_break]
668 - [`ops::ControlFlow::is_continue`][is_continue]
669 - [`TryFrom<char> for u8`][try_from_char_u8]
670 - [`char::TryFromCharError`][try_from_char_err]
671   implementing `Clone`, `Debug`, `Display`, `PartialEq`, `Copy`, `Eq`, `Error`
672 - [`iter::zip`][zip]
673 - [`NonZeroU8::is_power_of_two`][is_power_of_two8]
674 - [`NonZeroU16::is_power_of_two`][is_power_of_two16]
675 - [`NonZeroU32::is_power_of_two`][is_power_of_two32]
676 - [`NonZeroU64::is_power_of_two`][is_power_of_two64]
677 - [`NonZeroU128::is_power_of_two`][is_power_of_two128]
678 - [`NonZeroUsize::is_power_of_two`][is_power_of_two_usize]
679 - [`DoubleEndedIterator for ToLowercase`][lowercase]
680 - [`DoubleEndedIterator for ToUppercase`][uppercase]
681 - [`TryFrom<&mut [T]> for [T; N]`][tryfrom_ref_arr]
682 - [`UnwindSafe for Once`][unwindsafe_once]
683 - [`RefUnwindSafe for Once`][refunwindsafe_once]
684 - [armv8 neon intrinsics for aarch64][stdarch/1266]
685
686 Const-stable:
687
688 - [`mem::MaybeUninit::as_ptr`][muninit_ptr]
689 - [`mem::MaybeUninit::assume_init`][muninit_init]
690 - [`mem::MaybeUninit::assume_init_ref`][muninit_init_ref]
691 - [`ffi::CStr::from_bytes_with_nul_unchecked`][cstr_from_bytes]
692
693 Cargo
694 -----
695
696 - [Stabilize the `strip` profile option][cargo/10088]
697 - [Stabilize future-incompat-report][cargo/10165]
698 - [Support abbreviating `--release` as `-r`][cargo/10133]
699 - [Support `term.quiet` configuration][cargo/10152]
700 - [Remove `--host` from cargo {publish,search,login}][cargo/10145]
701
702 Compatibility Notes
703 -------------------
704
705 - [Refactor weak symbols in std::sys::unix][90846]
706   This may add new, versioned, symbols when building with a newer glibc, as the
707   standard library uses weak linkage rather than dynamically attempting to load
708   certain symbols at runtime.
709 - [Deprecate crate_type and crate_name nested inside `#![cfg_attr]`][83744]
710   This adds a future compatibility lint to supporting the use of cfg_attr
711   wrapping either crate_type or crate_name specification within Rust files;
712   it is recommended that users migrate to setting the equivalent command line
713   flags.
714 - [Remove effect of `#[no_link]` attribute on name resolution][92034]
715   This may expose new names, leading to conflicts with preexisting names in a
716   given namespace and a compilation failure.
717 - [Cargo will document libraries before binaries.][cargo/10172]
718 - [Respect doc=false in dependencies, not just the root crate][cargo/10201]
719 - [Weaken guarantee around advancing underlying iterators in zip][83791]
720 - [Make split_inclusive() on an empty slice yield an empty output][89825]
721 - [Update std::env::temp_dir to use GetTempPath2 on Windows when available.][89999]
722 - [unreachable! was updated to match other formatting macro behavior on Rust 2021][92137]
723
724 Internal Changes
725 ----------------
726
727 These changes provide no direct user facing benefits, but represent significant
728 improvements to the internals and overall performance of rustc
729 and related tools.
730
731 - [Fix many cases of normalization-related ICEs][91255]
732 - [Replace dominators algorithm with simple Lengauer-Tarjan][85013]
733 - [Store liveness in interval sets for region inference][90637]
734
735 - [Remove `in_band_lifetimes` from the compiler and standard library, in preparation for removing this
736   unstable feature.][91867]
737
738 [91867]: https://github.com/rust-lang/rust/issues/91867
739 [83744]: https://github.com/rust-lang/rust/pull/83744/
740 [83791]: https://github.com/rust-lang/rust/pull/83791/
741 [85013]: https://github.com/rust-lang/rust/pull/85013/
742 [89825]: https://github.com/rust-lang/rust/pull/89825/
743 [89999]: https://github.com/rust-lang/rust/pull/89999/
744 [90128]: https://github.com/rust-lang/rust/pull/90128/
745 [90207]: https://github.com/rust-lang/rust/pull/90207/
746 [90521]: https://github.com/rust-lang/rust/pull/90521/
747 [90586]: https://github.com/rust-lang/rust/pull/90586/
748 [90637]: https://github.com/rust-lang/rust/pull/90637/
749 [90833]: https://github.com/rust-lang/rust/pull/90833/
750 [90846]: https://github.com/rust-lang/rust/pull/90846/
751 [91003]: https://github.com/rust-lang/rust/pull/91003/
752 [91172]: https://github.com/rust-lang/rust/pull/91172/
753 [91255]: https://github.com/rust-lang/rust/pull/91255/
754 [91284]: https://github.com/rust-lang/rust/pull/91284/
755 [91535]: https://github.com/rust-lang/rust/pull/91535/
756 [91593]: https://github.com/rust-lang/rust/pull/91593/
757 [91728]: https://github.com/rust-lang/rust/pull/91728/
758 [91878]: https://github.com/rust-lang/rust/pull/91878/
759 [91896]: https://github.com/rust-lang/rust/pull/91896/
760 [91926]: https://github.com/rust-lang/rust/pull/91926/
761 [91984]: https://github.com/rust-lang/rust/pull/91984/
762 [92020]: https://github.com/rust-lang/rust/pull/92020/
763 [92034]: https://github.com/rust-lang/rust/pull/92034/
764 [92137]: https://github.com/rust-lang/rust/pull/92137/
765 [92483]: https://github.com/rust-lang/rust/pull/92483/
766 [cargo/10088]: https://github.com/rust-lang/cargo/pull/10088/
767 [cargo/10133]: https://github.com/rust-lang/cargo/pull/10133/
768 [cargo/10145]: https://github.com/rust-lang/cargo/pull/10145/
769 [cargo/10152]: https://github.com/rust-lang/cargo/pull/10152/
770 [cargo/10165]: https://github.com/rust-lang/cargo/pull/10165/
771 [cargo/10172]: https://github.com/rust-lang/cargo/pull/10172/
772 [cargo/10201]: https://github.com/rust-lang/cargo/pull/10201/
773 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269/
774
775 [cstr_from_bytes]: https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked
776 [muninit_ptr]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.as_ptr
777 [muninit_init]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init
778 [muninit_init_ref]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
779 [unwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-UnwindSafe
780 [refunwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-RefUnwindSafe
781 [tryfrom_ref_arr]: https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html#impl-TryFrom%3C%26%27_%20mut%20%5BT%5D%3E
782 [lowercase]: https://doc.rust-lang.org/stable/std/char/struct.ToLowercase.html#impl-DoubleEndedIterator
783 [uppercase]: https://doc.rust-lang.org/stable/std/char/struct.ToUppercase.html#impl-DoubleEndedIterator
784 [try_from_char_err]: https://doc.rust-lang.org/stable/std/char/struct.TryFromCharError.html
785 [available_parallelism]: https://doc.rust-lang.org/stable/std/thread/fn.available_parallelism.html
786 [result-copied]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.copied
787 [result-cloned]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.cloned
788 [asm]: https://doc.rust-lang.org/stable/core/arch/macro.asm.html
789 [global_asm]: https://doc.rust-lang.org/stable/core/arch/macro.global_asm.html
790 [is_break]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_break
791 [is_continue]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_continue
792 [try_from_char_u8]: https://doc.rust-lang.org/stable/std/primitive.char.html#impl-TryFrom%3Cchar%3E
793 [zip]: https://doc.rust-lang.org/stable/std/iter/fn.zip.html
794 [is_power_of_two8]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU8.html#method.is_power_of_two
795 [is_power_of_two16]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU16.html#method.is_power_of_two
796 [is_power_of_two32]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU32.html#method.is_power_of_two
797 [is_power_of_two64]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU64.html#method.is_power_of_two
798 [is_power_of_two128]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU128.html#method.is_power_of_two
799 [is_power_of_two_usize]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroUsize.html#method.is_power_of_two
800 [stdarch/1266]: https://github.com/rust-lang/stdarch/pull/1266
801
802 Version 1.58.1 (2022-01-19)
803 ===========================
804
805 * Fix race condition in `std::fs::remove_dir_all` ([CVE-2022-21658])
806 * [Handle captured arguments in the `useless_format` Clippy lint][clippy/8295]
807 * [Move `non_send_fields_in_send_ty` Clippy lint to nursery][clippy/8075]
808 * [Fix wrong error message displayed when some imports are missing][91254]
809 * [Fix rustfmt not formatting generated files from stdin][92912]
810
811 [CVE-2022-21658]: https://www.cve.org/CVERecord?id=CVE-2022-21658
812 [91254]: https://github.com/rust-lang/rust/pull/91254
813 [92912]: https://github.com/rust-lang/rust/pull/92912
814 [clippy/8075]: https://github.com/rust-lang/rust-clippy/pull/8075
815 [clippy/8295]: https://github.com/rust-lang/rust-clippy/pull/8295
816
817 Version 1.58.0 (2022-01-13)
818 ==========================
819
820 Language
821 --------
822
823 - [Format strings can now capture arguments simply by writing `{ident}` in the string.][90473] This works in all macros accepting format strings. Support for this in `panic!` (`panic!("{ident}")`) requires the 2021 edition; panic invocations in previous editions that appear to be trying to use this will result in a warning lint about not having the intended effect.
824 - [`*const T` pointers can now be dereferenced in const contexts.][89551]
825 - [The rules for when a generic struct implements `Unsize` have been relaxed.][90417]
826
827 Compiler
828 --------
829
830 - [Add LLVM CFI support to the Rust compiler][89652]
831 - [Stabilize -Z strip as -C strip][90058]. Note that while release builds already don't add debug symbols for the code you compile, the compiled standard library that ships with Rust includes debug symbols, so you may want to use the `strip` option to remove these symbols to produce smaller release binaries. Note that this release only includes support in rustc, not directly in cargo.
832 - [Add support for LLVM coverage mapping format versions 5 and 6][91207]
833 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
834 - [Update the minimum external LLVM to 12][90175]
835 - [Add `x86_64-unknown-none` at Tier 3*][89062]
836 - [Build musl dist artifacts with debuginfo enabled][90733]. When building release binaries using musl, you may want to use the newly stabilized strip option to remove these debug symbols, reducing the size of your binaries.
837 - [Don't abort compilation after giving a lint error][87337]
838 - [Error messages point at the source of trait bound obligations in more places][89580]
839
840 \* Refer to Rust's [platform support page][platform-support-doc] for more
841    information on Rust's tiered platform support.
842
843 Libraries
844 ---------
845
846 - [All remaining functions in the standard library have `#[must_use]` annotations where appropriate][89692], producing a warning when ignoring their return value. This helps catch mistakes such as expecting a function to mutate a value in place rather than return a new value.
847 - [Paths are automatically canonicalized on Windows for operations that support it][89174]
848 - [Re-enable debug checks for `copy` and `copy_nonoverlapping`][90041]
849 - [Implement `RefUnwindSafe` for `Rc<T>`][87467]
850 - [Make RSplit<T, P>: Clone not require T: Clone][90117]
851 - [Implement `Termination` for `Result<Infallible, E>`][88601]. This allows writing `fn main() -> Result<Infallible, ErrorType>`, for a program whose successful exits never involve returning from `main` (for instance, a program that calls `exit`, or that uses `exec` to run another program).
852
853 Stabilized APIs
854 ---------------
855
856 - [`Metadata::is_symlink`]
857 - [`Path::is_symlink`]
858 - [`{integer}::saturating_div`]
859 - [`Option::unwrap_unchecked`]
860 - [`Result::unwrap_unchecked`]
861 - [`Result::unwrap_err_unchecked`]
862 - [`File::options`]
863
864 These APIs are now usable in const contexts:
865
866 - [`Duration::new`]
867 - [`Duration::checked_add`]
868 - [`Duration::saturating_add`]
869 - [`Duration::checked_sub`]
870 - [`Duration::saturating_sub`]
871 - [`Duration::checked_mul`]
872 - [`Duration::saturating_mul`]
873 - [`Duration::checked_div`]
874
875 Cargo
876 -----
877
878 - [Add --message-format for install command][cargo/10107]
879 - [Warn when alias shadows external subcommand][cargo/10082]
880
881 Rustdoc
882 -------
883
884 - [Show all Deref implementations recursively in rustdoc][90183]
885 - [Use computed visibility in rustdoc][88447]
886
887 Compatibility Notes
888 -------------------
889
890 - [Try all stable method candidates first before trying unstable ones][90329]. This change ensures that adding new nightly-only methods to the Rust standard library will not break code invoking methods of the same name from traits outside the standard library.
891 - Windows: [`std::process::Command` will no longer search the current directory for executables.][87704]
892 - [All proc-macro backward-compatibility lints are now deny-by-default.][88041]
893 - [proc_macro: Append .0 to unsuffixed float if it would otherwise become int token][90297]
894 - [Refactor weak symbols in std::sys::unix][90846]. This optimizes accesses to glibc functions, by avoiding the use of dlopen. This does not increase the [minimum expected version of glibc](https://doc.rust-lang.org/nightly/rustc/platform-support.html). However, software distributions that use symbol versions to detect library dependencies, and which take weak symbols into account in that analysis, may detect rust binaries as requiring newer versions of glibc.
895 - [rustdoc now rejects some unexpected semicolons in doctests][91026]
896
897 Internal Changes
898 ----------------
899
900 These changes provide no direct user facing benefits, but represent significant
901 improvements to the internals and overall performance of rustc
902 and related tools.
903
904 - [Implement coherence checks for negative trait impls][90104]
905 - [Add rustc lint, warning when iterating over hashmaps][89558]
906 - [Optimize live point computation][90491]
907 - [Enable verification for 1/32nd of queries loaded from disk][90361]
908 - [Implement version of normalize_erasing_regions that allows for normalization failure][91255]
909
910 [87337]: https://github.com/rust-lang/rust/pull/87337/
911 [87467]: https://github.com/rust-lang/rust/pull/87467/
912 [87704]: https://github.com/rust-lang/rust/pull/87704/
913 [88041]: https://github.com/rust-lang/rust/pull/88041/
914 [88447]: https://github.com/rust-lang/rust/pull/88447/
915 [88601]: https://github.com/rust-lang/rust/pull/88601/
916 [89062]: https://github.com/rust-lang/rust/pull/89062/
917 [89174]: https://github.com/rust-lang/rust/pull/89174/
918 [89551]: https://github.com/rust-lang/rust/pull/89551/
919 [89558]: https://github.com/rust-lang/rust/pull/89558/
920 [89580]: https://github.com/rust-lang/rust/pull/89580/
921 [89652]: https://github.com/rust-lang/rust/pull/89652/
922 [90041]: https://github.com/rust-lang/rust/pull/90041/
923 [90058]: https://github.com/rust-lang/rust/pull/90058/
924 [90104]: https://github.com/rust-lang/rust/pull/90104/
925 [90117]: https://github.com/rust-lang/rust/pull/90117/
926 [90175]: https://github.com/rust-lang/rust/pull/90175/
927 [90183]: https://github.com/rust-lang/rust/pull/90183/
928 [90297]: https://github.com/rust-lang/rust/pull/90297/
929 [90329]: https://github.com/rust-lang/rust/pull/90329/
930 [90361]: https://github.com/rust-lang/rust/pull/90361/
931 [90417]: https://github.com/rust-lang/rust/pull/90417/
932 [90473]: https://github.com/rust-lang/rust/pull/90473/
933 [90491]: https://github.com/rust-lang/rust/pull/90491/
934 [90733]: https://github.com/rust-lang/rust/pull/90733/
935 [90833]: https://github.com/rust-lang/rust/pull/90833/
936 [90846]: https://github.com/rust-lang/rust/pull/90846/
937 [91026]: https://github.com/rust-lang/rust/pull/91026/
938 [91207]: https://github.com/rust-lang/rust/pull/91207/
939 [91255]: https://github.com/rust-lang/rust/pull/91255/
940 [cargo/10082]: https://github.com/rust-lang/cargo/pull/10082/
941 [cargo/10107]: https://github.com/rust-lang/cargo/pull/10107/
942 [`Metadata::is_symlink`]: https://doc.rust-lang.org/stable/std/fs/struct.Metadata.html#method.is_symlink
943 [`Path::is_symlink`]: https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.is_symlink
944 [`{integer}::saturating_div`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.saturating_div
945 [`Option::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unwrap_unchecked
946 [`Result::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_unchecked
947 [`Result::unwrap_err_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_err_unchecked
948 [`File::options`]: https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.options
949 [`Duration::new`]: https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.new
950
951 Version 1.57.0 (2021-12-02)
952 ==========================
953
954 Language
955 --------
956
957 - [Macro attributes may follow `#[derive]` and will see the original (pre-`cfg`) input.][87220]
958 - [Accept curly-brace macros in expressions, like `m!{ .. }.method()` and `m!{ .. }?`.][88690]
959 - [Allow panicking in constant evaluation.][89508]
960 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
961
962 Compiler
963 --------
964
965 - [Create more accurate debuginfo for vtables.][89597]
966 - [Add `armv6k-nintendo-3ds` at Tier 3\*.][88529]
967 - [Add `armv7-unknown-linux-uclibceabihf` at Tier 3\*.][88952]
968 - [Add `m68k-unknown-linux-gnu` at Tier 3\*.][88321]
969 - [Add SOLID targets at Tier 3\*:][86191] `aarch64-kmc-solid_asp3`, `armv7a-kmc-solid_asp3-eabi`, `armv7a-kmc-solid_asp3-eabihf`
970
971 \* Refer to Rust's [platform support page][platform-support-doc] for more
972    information on Rust's tiered platform support.
973
974 Libraries
975 ---------
976
977 - [Avoid allocations and copying in `Vec::leak`][89337]
978 - [Add `#[repr(i8)]` to `Ordering`][89507]
979 - [Optimize `File::read_to_end` and `read_to_string`][89582]
980 - [Update to Unicode 14.0][89614]
981 - [Many more functions are marked `#[must_use]`][89692], producing a warning
982   when ignoring their return value. This helps catch mistakes such as expecting
983   a function to mutate a value in place rather than return a new value.
984
985 Stabilised APIs
986 ---------------
987
988 - [`[T; N]::as_mut_slice`][`array::as_mut_slice`]
989 - [`[T; N]::as_slice`][`array::as_slice`]
990 - [`collections::TryReserveError`]
991 - [`HashMap::try_reserve`]
992 - [`HashSet::try_reserve`]
993 - [`String::try_reserve`]
994 - [`String::try_reserve_exact`]
995 - [`Vec::try_reserve`]
996 - [`Vec::try_reserve_exact`]
997 - [`VecDeque::try_reserve`]
998 - [`VecDeque::try_reserve_exact`]
999 - [`Iterator::map_while`]
1000 - [`iter::MapWhile`]
1001 - [`proc_macro::is_available`]
1002 - [`Command::get_program`]
1003 - [`Command::get_args`]
1004 - [`Command::get_envs`]
1005 - [`Command::get_current_dir`]
1006 - [`CommandArgs`]
1007 - [`CommandEnvs`]
1008
1009 These APIs are now usable in const contexts:
1010
1011 - [`hint::unreachable_unchecked`]
1012
1013 Cargo
1014 -----
1015
1016 - [Stabilize custom profiles][cargo/9943]
1017
1018 Compatibility notes
1019 -------------------
1020
1021 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
1022   This will break some builds that set `#![deny(dead_code)]`.
1023
1024 Internal changes
1025 ----------------
1026 These changes provide no direct user facing benefits, but represent significant
1027 improvements to the internals and overall performance of rustc
1028 and related tools.
1029
1030 - [Added an experimental backend for codegen with `libgccjit`.][87260]
1031
1032 [85200]: https://github.com/rust-lang/rust/pull/85200/
1033 [86191]: https://github.com/rust-lang/rust/pull/86191/
1034 [87220]: https://github.com/rust-lang/rust/pull/87220/
1035 [87260]: https://github.com/rust-lang/rust/pull/87260/
1036 [88321]: https://github.com/rust-lang/rust/pull/88321/
1037 [88529]: https://github.com/rust-lang/rust/pull/88529/
1038 [88690]: https://github.com/rust-lang/rust/pull/88690/
1039 [88952]: https://github.com/rust-lang/rust/pull/88952/
1040 [89337]: https://github.com/rust-lang/rust/pull/89337/
1041 [89507]: https://github.com/rust-lang/rust/pull/89507/
1042 [89508]: https://github.com/rust-lang/rust/pull/89508/
1043 [89582]: https://github.com/rust-lang/rust/pull/89582/
1044 [89597]: https://github.com/rust-lang/rust/pull/89597/
1045 [89614]: https://github.com/rust-lang/rust/pull/89614/
1046 [89692]: https://github.com/rust-lang/rust/issues/89692/
1047 [cargo/9943]: https://github.com/rust-lang/cargo/pull/9943/
1048 [`array::as_mut_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_mut_slice
1049 [`array::as_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_slice
1050 [`collections::TryReserveError`]: https://doc.rust-lang.org/std/collections/struct.TryReserveError.html
1051 [`HashMap::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_map/struct.HashMap.html#method.try_reserve
1052 [`HashSet::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_set/struct.HashSet.html#method.try_reserve
1053 [`String::try_reserve`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve
1054 [`String::try_reserve_exact`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve_exact
1055 [`Vec::try_reserve`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve
1056 [`Vec::try_reserve_exact`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve_exact
1057 [`VecDeque::try_reserve`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve
1058 [`VecDeque::try_reserve_exact`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve_exact
1059 [`Iterator::map_while`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.map_while
1060 [`iter::MapWhile`]: https://doc.rust-lang.org/std/iter/struct.MapWhile.html
1061 [`proc_macro::is_available`]: https://doc.rust-lang.org/proc_macro/fn.is_available.html
1062 [`Command::get_program`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program
1063 [`Command::get_args`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_args
1064 [`Command::get_envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_envs
1065 [`Command::get_current_dir`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_current_dir
1066 [`CommandArgs`]: https://doc.rust-lang.org/std/process/struct.CommandArgs.html
1067 [`CommandEnvs`]: https://doc.rust-lang.org/std/process/struct.CommandEnvs.html
1068
1069 Version 1.56.1 (2021-11-01)
1070 ===========================
1071
1072 - New lints to detect the presence of bidirectional-override Unicode
1073   codepoints in the compiled source code ([CVE-2021-42574])
1074
1075 [CVE-2021-42574]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42574
1076
1077 Version 1.56.0 (2021-10-21)
1078 ========================
1079
1080 Language
1081 --------
1082
1083 - [The 2021 Edition is now stable.][rust#88100]
1084   See [the edition guide][rust-2021-edition-guide] for more details.
1085 - [The pattern in `binding @ pattern` can now also introduce new bindings.][rust#85305]
1086 - [Union field access is permitted in `const fn`.][rust#85769]
1087
1088 [rust-2021-edition-guide]: https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html
1089
1090 Compiler
1091 --------
1092
1093 - [Upgrade to LLVM 13.][rust#87570]
1094 - [Support memory, address, and thread sanitizers on aarch64-unknown-freebsd.][rust#88023]
1095 - [Allow specifying a deployment target version for all iOS targets][rust#87699]
1096 - [Warnings can be forced on with `--force-warn`.][rust#87472]
1097   This feature is primarily intended for usage by `cargo fix`, rather than end users.
1098 - [Promote `aarch64-apple-ios-sim` to Tier 2\*.][rust#87760]
1099 - [Add `powerpc-unknown-freebsd` at Tier 3\*.][rust#87370]
1100 - [Add `riscv32imc-esp-espidf` at Tier 3\*.][rust#87666]
1101
1102 \* Refer to Rust's [platform support page][platform-support-doc] for more
1103 information on Rust's tiered platform support.
1104
1105 Libraries
1106 ---------
1107
1108 - [Allow writing of incomplete UTF-8 sequences via stdout/stderr on Windows.][rust#83342]
1109   The Windows console still requires valid Unicode, but this change allows
1110   splitting a UTF-8 character across multiple write calls. This allows, for
1111   instance, programs that just read and write data buffers (e.g. copying a file
1112   to stdout) without regard for Unicode or character boundaries.
1113 - [Prefer `AtomicU{64,128}` over Mutex for Instant backsliding protection.][rust#83093]
1114   For this use case, atomics scale much better under contention.
1115 - [Implement `Extend<(A, B)>` for `(Extend<A>, Extend<B>)`][rust#85835]
1116 - [impl Default, Copy, Clone for std::io::Sink and std::io::Empty][rust#86744]
1117 - [`impl From<[(K, V); N]>` for all collections.][rust#84111]
1118 - [Remove `P: Unpin` bound on impl Future for Pin.][rust#81363]
1119 - [Treat invalid environment variable names as non-existent.][rust#86183]
1120   Previously, the environment functions would panic if given a variable name
1121   with an internal null character or equal sign (`=`). Now, these functions will
1122   just treat such names as non-existent variables, since the OS cannot represent
1123   the existence of a variable with such a name.
1124
1125 Stabilised APIs
1126 ---------------
1127
1128 - [`std::os::unix::fs::chroot`]
1129 - [`UnsafeCell::raw_get`]
1130 - [`BufWriter::into_parts`]
1131 - [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]
1132   These APIs were previously stable in `std`, but are now also available in `core`.
1133 - [`Vec::shrink_to`]
1134 - [`String::shrink_to`]
1135 - [`OsString::shrink_to`]
1136 - [`PathBuf::shrink_to`]
1137 - [`BinaryHeap::shrink_to`]
1138 - [`VecDeque::shrink_to`]
1139 - [`HashMap::shrink_to`]
1140 - [`HashSet::shrink_to`]
1141
1142 These APIs are now usable in const contexts:
1143
1144 - [`std::mem::transmute`]
1145 - [`[T]::first`][`slice::first`]
1146 - [`[T]::split_first`][`slice::split_first`]
1147 - [`[T]::last`][`slice::last`]
1148 - [`[T]::split_last`][`slice::split_last`]
1149
1150 Cargo
1151 -----
1152
1153 - [Cargo supports specifying a minimum supported Rust version in Cargo.toml.][`rust-version`]
1154   This has no effect at present on dependency version selection.
1155   We encourage crates to specify their minimum supported Rust version, and we encourage CI systems
1156   that support Rust code to include a crate's specified minimum version in the test matrix for that
1157   crate by default.
1158
1159 Compatibility notes
1160 -------------------
1161
1162 - [Update to new argument parsing rules on Windows.][rust#87580]
1163   This adjusts Rust's standard library to match the behavior of the standard
1164   libraries for C/C++. The rules have changed slightly over time, and this PR
1165   brings us to the latest set of rules (changed in 2008).
1166 - [Disallow the aapcs calling convention on aarch64][rust#88399]
1167   This was already not supported by LLVM; this change surfaces this lack of
1168   support with a better error message.
1169 - [Make `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` warn by default][rust#87385]
1170 - [Warn when an escaped newline skips multiple lines.][rust#87671]
1171 - [Calls to `libc::getpid` / `std::process::id` from `Command::pre_exec`
1172    may return different values on glibc <= 2.24.][rust#81825]
1173    Rust now invokes the `clone3` system call directly, when available, to use new functionality
1174    available via that system call. Older versions of glibc cache the result of `getpid`, and only
1175    update that cache when calling glibc's clone/fork functions, so a direct system call bypasses
1176    that cache update. glibc 2.25 and newer no longer cache `getpid` for exactly this reason.
1177
1178 Internal changes
1179 ----------------
1180 These changes provide no direct user facing benefits, but represent significant
1181 improvements to the internals and overall performance of rustc
1182 and related tools.
1183
1184 - [LLVM is compiled with PGO in published x86_64-unknown-linux-gnu artifacts.][rust#88069]
1185   This improves the performance of most Rust builds.
1186 - [Unify representation of macros in internal data structures.][rust#88019]
1187   This change fixes a host of bugs with the handling of macros by the compiler,
1188   as well as rustdoc.
1189
1190 [`std::os::unix::fs::chroot`]: https://doc.rust-lang.org/stable/std/os/unix/fs/fn.chroot.html
1191 [`UnsafeCell::raw_get`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.raw_get
1192 [`BufWriter::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.BufWriter.html#method.into_parts
1193 [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]: https://github.com/rust-lang/rust/pull/84662
1194 [`Vec::shrink_to`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.shrink_to
1195 [`String::shrink_to`]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.shrink_to
1196 [`OsString::shrink_to`]: https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.shrink_to
1197 [`PathBuf::shrink_to`]: https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.shrink_to
1198 [`BinaryHeap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.BinaryHeap.html#method.shrink_to
1199 [`VecDeque::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.shrink_to
1200 [`HashMap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_map/struct.HashMap.html#method.shrink_to
1201 [`HashSet::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_set/struct.HashSet.html#method.shrink_to
1202 [`std::mem::transmute`]: https://doc.rust-lang.org/stable/std/mem/fn.transmute.html
1203 [`slice::first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.first
1204 [`slice::split_first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_first
1205 [`slice::last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.last
1206 [`slice::split_last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_last
1207 [`rust-version`]: https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field
1208 [rust#87671]: https://github.com/rust-lang/rust/pull/87671
1209 [rust#86183]: https://github.com/rust-lang/rust/pull/86183
1210 [rust#87385]: https://github.com/rust-lang/rust/pull/87385
1211 [rust#88100]: https://github.com/rust-lang/rust/pull/88100
1212 [rust#85305]: https://github.com/rust-lang/rust/pull/85305
1213 [rust#88069]: https://github.com/rust-lang/rust/pull/88069
1214 [rust#87472]: https://github.com/rust-lang/rust/pull/87472
1215 [rust#87699]: https://github.com/rust-lang/rust/pull/87699
1216 [rust#87570]: https://github.com/rust-lang/rust/pull/87570
1217 [rust#88023]: https://github.com/rust-lang/rust/pull/88023
1218 [rust#87760]: https://github.com/rust-lang/rust/pull/87760
1219 [rust#87370]: https://github.com/rust-lang/rust/pull/87370
1220 [rust#87580]: https://github.com/rust-lang/rust/pull/87580
1221 [rust#83342]: https://github.com/rust-lang/rust/pull/83342
1222 [rust#83093]: https://github.com/rust-lang/rust/pull/83093
1223 [rust#85835]: https://github.com/rust-lang/rust/pull/85835
1224 [rust#86744]: https://github.com/rust-lang/rust/pull/86744
1225 [rust#81363]: https://github.com/rust-lang/rust/pull/81363
1226 [rust#84111]: https://github.com/rust-lang/rust/pull/84111
1227 [rust#85769]: https://github.com/rust-lang/rust/pull/85769#issuecomment-854363720
1228 [rust#88399]: https://github.com/rust-lang/rust/pull/88399
1229 [rust#81825]: https://github.com/rust-lang/rust/pull/81825#issuecomment-808406918
1230 [rust#88019]: https://github.com/rust-lang/rust/pull/88019
1231 [rust#87666]: https://github.com/rust-lang/rust/pull/87666
1232
1233 Version 1.55.0 (2021-09-09)
1234 ============================
1235
1236 Language
1237 --------
1238 - [You can now write open "from" range patterns (`X..`), which will start at `X` and
1239   will end at the maximum value of the integer.][83918]
1240 - [You can now explicitly import the prelude of different editions
1241   through `std::prelude` (e.g. `use std::prelude::rust_2021::*;`).][86294]
1242
1243 Compiler
1244 --------
1245 - [Added tier 3\* support for `powerpc64le-unknown-freebsd`.][83572]
1246
1247 \* Refer to Rust's [platform support page][platform-support-doc] for more
1248    information on Rust's tiered platform support.
1249
1250 Libraries
1251 ---------
1252
1253 - [Updated std's float parsing to use the Eisel-Lemire algorithm.][86761]
1254   These improvements should in general provide faster string parsing of floats,
1255   no longer reject certain valid floating point values, and reduce
1256   the produced code size for non-stripped artifacts.
1257 - [`string::Drain` now implements `AsRef<str>` and `AsRef<[u8]>`.][86858]
1258
1259 Stabilised APIs
1260 ---------------
1261
1262 - [`Bound::cloned`]
1263 - [`Drain::as_str`]
1264 - [`IntoInnerError::into_error`]
1265 - [`IntoInnerError::into_parts`]
1266 - [`MaybeUninit::assume_init_mut`]
1267 - [`MaybeUninit::assume_init_ref`]
1268 - [`MaybeUninit::write`]
1269 - [`array::map`]
1270 - [`ops::ControlFlow`]
1271 - [`x86::_bittest`]
1272 - [`x86::_bittestandcomplement`]
1273 - [`x86::_bittestandreset`]
1274 - [`x86::_bittestandset`]
1275 - [`x86_64::_bittest64`]
1276 - [`x86_64::_bittestandcomplement64`]
1277 - [`x86_64::_bittestandreset64`]
1278 - [`x86_64::_bittestandset64`]
1279
1280 The following previously stable functions are now `const`.
1281
1282 - [`str::from_utf8_unchecked`]
1283
1284
1285 Cargo
1286 -----
1287 - [Cargo will now deduplicate compiler diagnostics to the terminal when invoking
1288   rustc in parallel such as when using `cargo test`.][cargo/9675]
1289 - [The package definition in `cargo metadata` now includes the `"default_run"`
1290   field from the manifest.][cargo/9550]
1291 - [Added `cargo d` as an alias for `cargo doc`.][cargo/9680]
1292 - [Added `{lib}` as formatting option for `cargo tree` to print the `"lib_name"`
1293   of packages.][cargo/9663]
1294
1295 Rustdoc
1296 -------
1297 - [Added "Go to item on exact match" search option.][85876]
1298 - [The "Implementors" section on traits no longer shows redundant
1299   method definitions.][85970]
1300 - [Trait implementations are toggled open by default.][86260] This should make the
1301   implementations more searchable by tools like `CTRL+F` in your browser.
1302 - [Intra-doc links should now correctly resolve associated items (e.g. methods)
1303   through type aliases.][86334]
1304 - [Traits which are marked with `#[doc(hidden)]` will no longer appear in the
1305   "Trait Implementations" section.][86513]
1306
1307
1308 Compatibility Notes
1309 -------------------
1310 - [std functions that return an `io::Error` will no longer use the
1311   `ErrorKind::Other` variant.][85746] This is to better reflect that these
1312   kinds of errors could be categorised [into newer more specific `ErrorKind`
1313   variants][79965], and that they do not represent a user error.
1314 - [Using environment variable names with `process::Command` on Windows now
1315   behaves as expected.][85270] Previously using envionment variables with
1316   `Command` would cause them to be ASCII-uppercased.
1317 - [Rustdoc will now warn on using rustdoc lints that aren't prefixed
1318   with `rustdoc::`][86849]
1319 - `RUSTFLAGS` is no longer set for build scripts. Build scripts
1320   should use `CARGO_ENCODED_RUSTFLAGS` instead. See the
1321   [documentation](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts)
1322   for more details.
1323
1324 [86849]: https://github.com/rust-lang/rust/pull/86849
1325 [86513]: https://github.com/rust-lang/rust/pull/86513
1326 [86334]: https://github.com/rust-lang/rust/pull/86334
1327 [86260]: https://github.com/rust-lang/rust/pull/86260
1328 [85970]: https://github.com/rust-lang/rust/pull/85970
1329 [85876]: https://github.com/rust-lang/rust/pull/85876
1330 [83572]: https://github.com/rust-lang/rust/pull/83572
1331 [86294]: https://github.com/rust-lang/rust/pull/86294
1332 [86858]: https://github.com/rust-lang/rust/pull/86858
1333 [86761]: https://github.com/rust-lang/rust/pull/86761
1334 [85746]: https://github.com/rust-lang/rust/pull/85746
1335 [85270]: https://github.com/rust-lang/rust/pull/85270
1336 [83918]: https://github.com/rust-lang/rust/pull/83918
1337 [79965]: https://github.com/rust-lang/rust/pull/79965
1338 [cargo/9663]: https://github.com/rust-lang/cargo/pull/9663
1339 [cargo/9675]: https://github.com/rust-lang/cargo/pull/9675
1340 [cargo/9550]: https://github.com/rust-lang/cargo/pull/9550
1341 [cargo/9680]: https://github.com/rust-lang/cargo/pull/9680
1342 [`array::map`]: https://doc.rust-lang.org/stable/std/primitive.array.html#method.map
1343 [`Bound::cloned`]: https://doc.rust-lang.org/stable/std/ops/enum.Bound.html#method.cloned
1344 [`Drain::as_str`]: https://doc.rust-lang.org/stable/std/string/struct.Drain.html#method.as_str
1345 [`IntoInnerError::into_error`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_error
1346 [`IntoInnerError::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_parts
1347 [`MaybeUninit::assume_init_mut`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_mut
1348 [`MaybeUninit::assume_init_ref`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
1349 [`MaybeUninit::write`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.write
1350 [`ops::ControlFlow`]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html
1351 [`str::from_utf8_unchecked`]: https://doc.rust-lang.org/stable/std/str/fn.from_utf8_unchecked.html
1352 [`x86::_bittest`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittest.html
1353 [`x86::_bittestandcomplement`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandcomplement.html
1354 [`x86::_bittestandreset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandreset.html
1355 [`x86::_bittestandset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandset.html
1356 [`x86_64::_bittest64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittest64.html
1357 [`x86_64::_bittestandcomplement64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandcomplement64.html
1358 [`x86_64::_bittestandreset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandreset64.html
1359 [`x86_64::_bittestandset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandset64.html
1360
1361
1362 Version 1.54.0 (2021-07-29)
1363 ============================
1364
1365 Language
1366 -----------------------
1367
1368 - [You can now use macros for values in some built-in attributes.][83366]
1369   This primarily allows you to call macros within the `#[doc]` attribute. For
1370   example, to include external documentation in your crate, you can now write
1371   the following:
1372   ```rust
1373   #![doc = include_str!("README.md")]
1374   ```
1375
1376 - [You can now cast between unsized slice types (and types which contain
1377   unsized slices) in `const fn`.][85078]
1378 - [You can now use multiple generic lifetimes with `impl Trait` where the
1379    lifetimes don't explicitly outlive another.][84701] In code this means
1380    that you can now have `impl Trait<'a, 'b>` where as before you could
1381    only have `impl Trait<'a, 'b> where 'b: 'a`.
1382
1383 Compiler
1384 -----------------------
1385
1386 - [Rustc will now search for custom JSON targets in
1387   `/lib/rustlib/<target-triple>/target.json` where `/` is the "sysroot"
1388   directory.][83800] You can find your sysroot directory by running
1389   `rustc --print sysroot`.
1390 - [Added `wasm` as a `target_family` for WebAssembly platforms.][84072]
1391 - [You can now use `#[target_feature]` on safe functions when targeting
1392   WebAssembly platforms.][84988]
1393 - [Improved debugger output for enums on Windows MSVC platforms.][85292]
1394 - [Added tier 3\* support for `bpfel-unknown-none`
1395    and `bpfeb-unknown-none`.][79608]
1396 - [`-Zmutable-noalias=yes`][82834] is enabled by default when using LLVM 12 or above.
1397
1398 \* Refer to Rust's [platform support page][platform-support-doc] for more
1399    information on Rust's tiered platform support.
1400
1401 Libraries
1402 -----------------------
1403
1404 - [`panic::panic_any` will now `#[track_caller]`.][85745]
1405 - [Added `OutOfMemory` as a variant of `io::ErrorKind`.][84744]
1406 - [ `proc_macro::Literal` now implements `FromStr`.][84717]
1407 - [The implementations of vendor intrinsics in core::arch have been
1408    significantly refactored.][83278] The main user-visible changes are
1409    a 50% reduction in the size of libcore.rlib and stricter validation
1410    of constant operands passed to intrinsics. The latter is technically
1411    a breaking change, but allows Rust to more closely match the C vendor
1412    intrinsics API.
1413
1414 Stabilized APIs
1415 ---------------
1416
1417 - [`BTreeMap::into_keys`]
1418 - [`BTreeMap::into_values`]
1419 - [`HashMap::into_keys`]
1420 - [`HashMap::into_values`]
1421 - [`arch::wasm32`]
1422 - [`VecDeque::binary_search`]
1423 - [`VecDeque::binary_search_by`]
1424 - [`VecDeque::binary_search_by_key`]
1425 - [`VecDeque::partition_point`]
1426
1427 Cargo
1428 -----
1429
1430 - [Added the `--prune <spec>` option to `cargo-tree` to remove a package from
1431   the dependency graph.][cargo/9520]
1432 - [Added the `--depth` option to `cargo-tree` to print only to a certain depth
1433   in the tree ][cargo/9499]
1434 - [Added the `no-proc-macro` value to `cargo-tree --edges` to hide procedural
1435   macro dependencies.][cargo/9488]
1436 - [A new environment variable named `CARGO_TARGET_TMPDIR` is available.][cargo/9375]
1437   This variable points to a directory that integration tests and benches
1438   can use as a "scratchpad" for testing filesystem operations.
1439
1440 Compatibility Notes
1441 -------------------
1442 - [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
1443 - [Previously unsound code is no longer permitted where different constructors in branches
1444   could require different lifetimes.][85574]
1445 - As previously mentioned the [`std::arch` intrinsics now uses stricter const checking][83278]
1446   than before and may reject some previously accepted code.
1447 - [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
1448    when compiled with `codegen-units = 1`.][86063]
1449
1450 [85574]: https://github.com/rust-lang/rust/issues/85574
1451 [86831]: https://github.com/rust-lang/rust/issues/86831
1452 [86063]: https://github.com/rust-lang/rust/issues/86063
1453 [79608]: https://github.com/rust-lang/rust/pull/79608
1454 [84988]: https://github.com/rust-lang/rust/pull/84988
1455 [84701]: https://github.com/rust-lang/rust/pull/84701
1456 [84072]: https://github.com/rust-lang/rust/pull/84072
1457 [85745]: https://github.com/rust-lang/rust/pull/85745
1458 [84744]: https://github.com/rust-lang/rust/pull/84744
1459 [85078]: https://github.com/rust-lang/rust/pull/85078
1460 [84717]: https://github.com/rust-lang/rust/pull/84717
1461 [83800]: https://github.com/rust-lang/rust/pull/83800
1462 [83366]: https://github.com/rust-lang/rust/pull/83366
1463 [83278]: https://github.com/rust-lang/rust/pull/83278
1464 [85292]: https://github.com/rust-lang/rust/pull/85292
1465 [82834]: https://github.com/rust-lang/rust/pull/82834
1466 [cargo/9520]: https://github.com/rust-lang/cargo/pull/9520
1467 [cargo/9499]: https://github.com/rust-lang/cargo/pull/9499
1468 [cargo/9488]: https://github.com/rust-lang/cargo/pull/9488
1469 [cargo/9375]: https://github.com/rust-lang/cargo/pull/9375
1470 [`BTreeMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_keys
1471 [`BTreeMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_values
1472 [`HashMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_keys
1473 [`HashMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_values
1474 [`arch::wasm32`]: https://doc.rust-lang.org/core/arch/wasm32/index.html
1475 [`VecDeque::binary_search`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search
1476 [`VecDeque::binary_search_by`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by
1477
1478 [`VecDeque::binary_search_by_key`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by_key
1479
1480 [`VecDeque::partition_point`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.partition_point
1481
1482 Version 1.53.0 (2021-06-17)
1483 ============================
1484
1485 Language
1486 -----------------------
1487 - [You can now use unicode for identifiers.][83799] This allows multilingual
1488   identifiers but still doesn't allow glyphs that are not considered characters
1489   such as `◆` or `🦀`. More specifically you can now use any identifier that
1490   matches the UAX #31 "Unicode Identifier and Pattern Syntax" standard. This
1491   is the same standard as languages like Python, however Rust uses NFC
1492   normalization which may be different from other languages.
1493 - [You can now specify "or patterns" inside pattern matches.][79278]
1494   Previously you could only use `|` (OR) on complete patterns. E.g.
1495   ```rust
1496   let x = Some(2u8);
1497   // Before
1498   matches!(x, Some(1) | Some(2));
1499   // Now
1500   matches!(x, Some(1 | 2));
1501   ```
1502 - [Added the `:pat_param` `macro_rules!` matcher.][83386] This matcher
1503   has the same semantics as the `:pat` matcher. This is to allow `:pat`
1504   to change semantics to being a pattern fragment in a future edition.
1505
1506 Compiler
1507 -----------------------
1508 - [Updated the minimum external LLVM version to LLVM 10.][83387]
1509 - [Added Tier 3\* support for the `wasm64-unknown-unknown` target.][80525]
1510 - [Improved debuginfo for closures and async functions on Windows MSVC.][83941]
1511
1512 \* Refer to Rust's [platform support page][platform-support-doc] for more
1513 information on Rust's tiered platform support.
1514
1515 Libraries
1516 -----------------------
1517 - [Abort messages will now forward to `android_set_abort_message` on
1518   Android platforms when available.][81469]
1519 - [`slice::IterMut<'_, T>` now implements `AsRef<[T]>`][82771]
1520 - [Arrays of any length now implement `IntoIterator`.][84147]
1521   Currently calling `.into_iter()` as a method on an array will
1522   return `impl Iterator<Item=&T>`, but this may change in a
1523   future edition to change `Item` to `T`. Calling `IntoIterator::into_iter`
1524   directly on arrays will provide `impl Iterator<Item=T>` as expected.
1525 - [`leading_zeros`, and `trailing_zeros` are now available on all
1526   `NonZero` integer types.][84082]
1527 - [`{f32, f64}::from_str` now parse and print special values
1528   (`NaN`, `-0`) according to IEEE 754.][78618]
1529 - [You can now index into slices using `(Bound<usize>, Bound<usize>)`.][77704]
1530 - [Add the `BITS` associated constant to all numeric types.][82565]
1531
1532 Stabilised APIs
1533 ---------------
1534 - [`AtomicBool::fetch_update`]
1535 - [`AtomicPtr::fetch_update`]
1536 - [`BTreeMap::retain`]
1537 - [`BTreeSet::retain`]
1538 - [`BufReader::seek_relative`]
1539 - [`DebugStruct::non_exhaustive`]
1540 - [`Duration::MAX`]
1541 - [`Duration::ZERO`]
1542 - [`Duration::is_zero`]
1543 - [`Duration::saturating_add`]
1544 - [`Duration::saturating_mul`]
1545 - [`Duration::saturating_sub`]
1546 - [`ErrorKind::Unsupported`]
1547 - [`Option::insert`]
1548 - [`Ordering::is_eq`]
1549 - [`Ordering::is_ge`]
1550 - [`Ordering::is_gt`]
1551 - [`Ordering::is_le`]
1552 - [`Ordering::is_lt`]
1553 - [`Ordering::is_ne`]
1554 - [`OsStr::is_ascii`]
1555 - [`OsStr::make_ascii_lowercase`]
1556 - [`OsStr::make_ascii_uppercase`]
1557 - [`OsStr::to_ascii_lowercase`]
1558 - [`OsStr::to_ascii_uppercase`]
1559 - [`Peekable::peek_mut`]
1560 - [`Rc::decrement_strong_count`]
1561 - [`Rc::increment_strong_count`]
1562 - [`Vec::extend_from_within`]
1563 - [`array::from_mut`]
1564 - [`array::from_ref`]
1565 - [`cmp::max_by_key`]
1566 - [`cmp::max_by`]
1567 - [`cmp::min_by_key`]
1568 - [`cmp::min_by`]
1569 - [`f32::is_subnormal`]
1570 - [`f64::is_subnormal`]
1571
1572 Cargo
1573 -----------------------
1574 - [Cargo now supports git repositories where the default `HEAD` branch is not
1575   "master".][cargo/9392] This also includes a switch to the version 3 `Cargo.lock` format
1576   which can handle default branches correctly.
1577 - [macOS targets now default to `unpacked` split-debuginfo.][cargo/9298]
1578 - [The `authors` field is no longer included in `Cargo.toml` for new
1579   projects.][cargo/9282]
1580
1581 Rustdoc
1582 -----------------------
1583 - [Added the `rustdoc::bare_urls` lint that warns when you have URLs
1584   without hyperlinks.][81764]
1585
1586 Compatibility Notes
1587 -------------------
1588 - [Implement token-based handling of attributes during expansion][82608]
1589 - [`Ipv4::from_str` will now reject octal format IP addresses in addition
1590   to rejecting hexadecimal IP addresses.][83652] The octal format can lead
1591   to confusion and potential security vulnerabilities and [is no
1592   longer recommended][ietf6943].
1593 - [The added `BITS` constant may conflict with external definitions.][85667]
1594   In particular, this was known to be a problem in the `lexical-core` crate,
1595   but they have published fixes for semantic versions 0.4 through 0.7. To
1596   update this dependency alone, use `cargo update -p lexical-core`.
1597 - Incremental compilation remains off by default, unless one uses the `RUSTC_FORCE_INCREMENTAL=1` environment variable added in 1.52.1.
1598
1599 Internal Only
1600 -------------
1601 These changes provide no direct user facing benefits, but represent significant
1602 improvements to the internals and overall performance of rustc and
1603 related tools.
1604
1605 - [Rework the `std::sys::windows::alloc` implementation.][83065]
1606 - [rustdoc: Don't enter an infer_ctxt in get_blanket_impls for impls that aren't blanket impls.][82864]
1607 - [rustdoc: Only look at blanket impls in `get_blanket_impls`][83681]
1608 - [Rework rustdoc const type][82873]
1609
1610 [85667]: https://github.com/rust-lang/rust/pull/85667
1611 [83386]: https://github.com/rust-lang/rust/pull/83386
1612 [82771]: https://github.com/rust-lang/rust/pull/82771
1613 [84147]: https://github.com/rust-lang/rust/pull/84147
1614 [84082]: https://github.com/rust-lang/rust/pull/84082
1615 [83799]: https://github.com/rust-lang/rust/pull/83799
1616 [83681]: https://github.com/rust-lang/rust/pull/83681
1617 [83652]: https://github.com/rust-lang/rust/pull/83652
1618 [83387]: https://github.com/rust-lang/rust/pull/83387
1619 [82873]: https://github.com/rust-lang/rust/pull/82873
1620 [82864]: https://github.com/rust-lang/rust/pull/82864
1621 [82608]: https://github.com/rust-lang/rust/pull/82608
1622 [82565]: https://github.com/rust-lang/rust/pull/82565
1623 [80525]: https://github.com/rust-lang/rust/pull/80525
1624 [79278]: https://github.com/rust-lang/rust/pull/79278
1625 [78618]: https://github.com/rust-lang/rust/pull/78618
1626 [77704]: https://github.com/rust-lang/rust/pull/77704
1627 [83941]: https://github.com/rust-lang/rust/pull/83941
1628 [83065]: https://github.com/rust-lang/rust/pull/83065
1629 [81764]: https://github.com/rust-lang/rust/pull/81764
1630 [81469]: https://github.com/rust-lang/rust/pull/81469
1631 [cargo/9298]: https://github.com/rust-lang/cargo/pull/9298
1632 [cargo/9282]: https://github.com/rust-lang/cargo/pull/9282
1633 [cargo/9392]: https://github.com/rust-lang/cargo/pull/9392
1634 [`AtomicBool::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicBool.html#method.fetch_update
1635 [`AtomicPtr::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html#method.fetch_update
1636 [`BTreeMap::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.retain
1637 [`BTreeSet::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.retain
1638 [`BufReader::seek_relative`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.seek_relative
1639 [`DebugStruct::non_exhaustive`]: https://doc.rust-lang.org/std/fmt/struct.DebugStruct.html#method.finish_non_exhaustive
1640 [`Duration::MAX`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.MAX
1641 [`Duration::ZERO`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.ZERO
1642 [`Duration::is_zero`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.is_zero
1643 [`Duration::saturating_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_add
1644 [`Duration::saturating_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_mul
1645 [`Duration::saturating_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_sub
1646 [`ErrorKind::Unsupported`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.Unsupported
1647 [`Option::insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.insert
1648 [`Ordering::is_eq`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_eq
1649 [`Ordering::is_ge`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ge
1650 [`Ordering::is_gt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_gt
1651 [`Ordering::is_le`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_le
1652 [`Ordering::is_lt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_lt
1653 [`Ordering::is_ne`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ne
1654 [`OsStr::is_ascii`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.is_ascii
1655 [`OsStr::make_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_lowercase
1656 [`OsStr::make_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_uppercase
1657 [`OsStr::to_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_lowercase
1658 [`OsStr::to_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_uppercase
1659 [`Peekable::peek_mut`]: https://doc.rust-lang.org/std/iter/struct.Peekable.html#method.peek_mut
1660 [`Rc::decrement_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1661 [`Rc::increment_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1662 [`Vec::extend_from_within`]: https://doc.rust-lang.org/beta/std/vec/struct.Vec.html#method.extend_from_within
1663 [`array::from_mut`]: https://doc.rust-lang.org/beta/std/array/fn.from_mut.html
1664 [`array::from_ref`]: https://doc.rust-lang.org/beta/std/array/fn.from_ref.html
1665 [`cmp::max_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by_key.html
1666 [`cmp::max_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by.html
1667 [`cmp::min_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by_key.html
1668 [`cmp::min_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by.html
1669 [`f32::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1670 [`f64::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1671 [ietf6943]: https://datatracker.ietf.org/doc/html/rfc6943#section-3.1.1
1672
1673
1674 Version 1.52.1 (2021-05-10)
1675 ============================
1676
1677 This release disables incremental compilation, unless the user has explicitly
1678 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
1679
1680 This is due to the widespread, and frequently occurring, breakage encountered by
1681 Rust users due to newly enabled incremental verification in 1.52.0. Notably,
1682 Rust users **should** upgrade to 1.52.0 or 1.52.1: the bugs that are detected by
1683 newly added incremental verification are still present in past stable versions,
1684 and are not yet fixed on any channel. These bugs can lead to miscompilation of
1685 Rust binaries.
1686
1687 These problems only affect incremental builds, so release builds with Cargo
1688 should not be affected unless the user has explicitly opted into incremental.
1689 Debug and check builds are affected.
1690
1691 See [84970] for more details.
1692
1693 [84970]: https://github.com/rust-lang/rust/issues/84970
1694
1695 Version 1.52.0 (2021-05-06)
1696 ============================
1697
1698 Language
1699 --------
1700 - [Added the `unsafe_op_in_unsafe_fn` lint, which checks whether the unsafe code
1701   in an `unsafe fn` is wrapped in a `unsafe` block.][79208] This lint
1702   is allowed by default, and may become a warning or hard error in a
1703   future edition.
1704 - [You can now cast mutable references to arrays to a pointer of the same type as
1705   the element.][81479]
1706
1707 Compiler
1708 --------
1709 - [Upgraded the default LLVM to LLVM 12.][81451]
1710
1711 Added tier 3\* support for the following targets.
1712
1713 - [`s390x-unknown-linux-musl`][82166]
1714 - [`riscv32gc-unknown-linux-musl` & `riscv64gc-unknown-linux-musl`][82202]
1715 - [`powerpc-unknown-openbsd`][82733]
1716
1717 \* Refer to Rust's [platform support page][platform-support-doc] for more
1718 information on Rust's tiered platform support.
1719
1720 Libraries
1721 ---------
1722 - [`OsString` now implements `Extend` and `FromIterator`.][82121]
1723 - [`cmp::Reverse` now has `#[repr(transparent)]` representation.][81879]
1724 - [`Arc<impl Error>` now implements `error::Error`.][80553]
1725 - [All integer division and remainder operations are now `const`.][80962]
1726
1727 Stabilised APIs
1728 -------------
1729 - [`Arguments::as_str`]
1730 - [`char::MAX`]
1731 - [`char::REPLACEMENT_CHARACTER`]
1732 - [`char::UNICODE_VERSION`]
1733 - [`char::decode_utf16`]
1734 - [`char::from_digit`]
1735 - [`char::from_u32_unchecked`]
1736 - [`char::from_u32`]
1737 - [`slice::partition_point`]
1738 - [`str::rsplit_once`]
1739 - [`str::split_once`]
1740
1741 The following previously stable APIs are now `const`.
1742
1743 - [`char::len_utf8`]
1744 - [`char::len_utf16`]
1745 - [`char::to_ascii_uppercase`]
1746 - [`char::to_ascii_lowercase`]
1747 - [`char::eq_ignore_ascii_case`]
1748 - [`u8::to_ascii_uppercase`]
1749 - [`u8::to_ascii_lowercase`]
1750 - [`u8::eq_ignore_ascii_case`]
1751
1752 Rustdoc
1753 -------
1754 - [Rustdoc lints are now treated as a tool lint, meaning that
1755   lints are now prefixed with `rustdoc::` (e.g. `#[warn(rustdoc::broken_intra_doc_links)]`).][80527]
1756   Using the old style is still allowed, and will become a warning in
1757   a future release.
1758 - [Rustdoc now supports argument files.][82261]
1759 - [Rustdoc now generates smart punctuation for documentation.][79423]
1760 - [You can now use "task lists" in Rustdoc Markdown.][81766] E.g.
1761   ```markdown
1762   - [x] Complete
1763   - [ ] Todo
1764   ```
1765
1766 Misc
1767 ----
1768 - [You can now pass multiple filters to tests.][81356] E.g.
1769   `cargo test -- foo bar` will run all tests that match `foo` and `bar`.
1770 - [Rustup now distributes PDB symbols for the `std` library on Windows,
1771   allowing you to see `std` symbols when debugging.][82218]
1772
1773 Internal Only
1774 -------------
1775 These changes provide no direct user facing benefits, but represent significant
1776 improvements to the internals and overall performance of rustc and
1777 related tools.
1778
1779 - [Check the result cache before the DepGraph when ensuring queries][81855]
1780 - [Try fast_reject::simplify_type in coherence before doing full check][81744]
1781 - [Only store a LocalDefId in some HIR nodes][81611]
1782 - [Store HIR attributes in a side table][79519]
1783
1784 Compatibility Notes
1785 -------------------
1786 - [Cargo build scripts are now forbidden from setting `RUSTC_BOOTSTRAP`.][cargo/9181]
1787 - [Removed support for the `x86_64-rumprun-netbsd` target.][82594]
1788 - [Deprecated the `x86_64-sun-solaris` target in favor of `x86_64-pc-solaris`.][82216]
1789 - [Rustdoc now only accepts `,`, ` `, and `\t` as delimiters for specifying
1790   languages in code blocks.][78429]
1791 - [Rustc now catches more cases of `pub_use_of_private_extern_crate`][80763]
1792 - [Changes in how proc macros handle whitespace may lead to panics when used
1793   with older `proc-macro-hack` versions. A `cargo update` should be sufficient to fix this in all cases.][84136]
1794 - [Turn `#[derive]` into a regular macro attribute][79078]
1795
1796 [84136]: https://github.com/rust-lang/rust/issues/84136
1797 [80763]: https://github.com/rust-lang/rust/pull/80763
1798 [82166]: https://github.com/rust-lang/rust/pull/82166
1799 [82121]: https://github.com/rust-lang/rust/pull/82121
1800 [81879]: https://github.com/rust-lang/rust/pull/81879
1801 [82261]: https://github.com/rust-lang/rust/pull/82261
1802 [82218]: https://github.com/rust-lang/rust/pull/82218
1803 [82216]: https://github.com/rust-lang/rust/pull/82216
1804 [82202]: https://github.com/rust-lang/rust/pull/82202
1805 [81855]: https://github.com/rust-lang/rust/pull/81855
1806 [81766]: https://github.com/rust-lang/rust/pull/81766
1807 [81744]: https://github.com/rust-lang/rust/pull/81744
1808 [81611]: https://github.com/rust-lang/rust/pull/81611
1809 [81479]: https://github.com/rust-lang/rust/pull/81479
1810 [81451]: https://github.com/rust-lang/rust/pull/81451
1811 [81356]: https://github.com/rust-lang/rust/pull/81356
1812 [80962]: https://github.com/rust-lang/rust/pull/80962
1813 [80553]: https://github.com/rust-lang/rust/pull/80553
1814 [80527]: https://github.com/rust-lang/rust/pull/80527
1815 [79519]: https://github.com/rust-lang/rust/pull/79519
1816 [79423]: https://github.com/rust-lang/rust/pull/79423
1817 [79208]: https://github.com/rust-lang/rust/pull/79208
1818 [78429]: https://github.com/rust-lang/rust/pull/78429
1819 [82733]: https://github.com/rust-lang/rust/pull/82733
1820 [82594]: https://github.com/rust-lang/rust/pull/82594
1821 [79078]: https://github.com/rust-lang/rust/pull/79078
1822 [cargo/9181]: https://github.com/rust-lang/cargo/pull/9181
1823 [`char::MAX`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.MAX
1824 [`char::REPLACEMENT_CHARACTER`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.REPLACEMENT_CHARACTER
1825 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.UNICODE_VERSION
1826 [`char::decode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.decode_utf16
1827 [`char::from_u32`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32
1828 [`char::from_u32_unchecked`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32_unchecked
1829 [`char::from_digit`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_digit
1830 [`Peekable::next_if`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if
1831 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_eq
1832 [`Arguments::as_str`]: https://doc.rust-lang.org/stable/std/fmt/struct.Arguments.html#method.as_str
1833 [`str::split_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_once
1834 [`str::rsplit_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.rsplit_once
1835 [`slice::partition_point`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.partition_point
1836 [`char::len_utf8`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf8
1837 [`char::len_utf16`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf16
1838 [`char::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_uppercase
1839 [`char::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_lowercase
1840 [`char::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.eq_ignore_ascii_case
1841 [`u8::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_uppercase
1842 [`u8::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_lowercase
1843 [`u8::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.eq_ignore_ascii_case
1844
1845 Version 1.51.0 (2021-03-25)
1846 ============================
1847
1848 Language
1849 --------
1850 - [You can now parameterize items such as functions, traits, and `struct`s by constant
1851   values in addition to by types and lifetimes.][79135] Also known as "const generics"
1852   E.g. you can now write the following. Note: Only values of primitive integers,
1853   `bool`, or `char` types are currently permitted.
1854   ```rust
1855   struct GenericArray<T, const LENGTH: usize> {
1856       inner: [T; LENGTH]
1857   }
1858
1859   impl<T, const LENGTH: usize> GenericArray<T, LENGTH> {
1860       const fn last(&self) -> Option<&T> {
1861           if LENGTH == 0 {
1862               None
1863           } else {
1864               Some(&self.inner[LENGTH - 1])
1865           }
1866       }
1867   }
1868   ```
1869
1870
1871 Compiler
1872 --------
1873
1874 - [Added the `-Csplit-debuginfo` codegen option for macOS platforms.][79570]
1875   This option controls whether debug information is split across multiple files
1876   or packed into a single file. **Note** This option is unstable on other platforms.
1877 - [Added tier 3\* support for `aarch64_be-unknown-linux-gnu`,
1878   `aarch64-unknown-linux-gnu_ilp32`, and `aarch64_be-unknown-linux-gnu_ilp32` targets.][81455]
1879 - [Added tier 3 support for `i386-unknown-linux-gnu` and `i486-unknown-linux-gnu` targets.][80662]
1880 - [The `target-cpu=native` option will now detect individual features of CPUs.][80749]
1881
1882 \* Refer to Rust's [platform support page][platform-support-doc] for more
1883 information on Rust's tiered platform support.
1884
1885 Libraries
1886 ---------
1887
1888 - [`Box::downcast` is now also implemented for any `dyn Any + Send + Sync` object.][80945]
1889 - [`str` now implements `AsMut<str>`.][80279]
1890 - [`u64` and `u128` now implement `From<char>`.][79502]
1891 - [`Error` is now implemented for `&T` where `T` implements `Error`.][75180]
1892 - [`Poll::{map_ok, map_err}` are now implemented for `Poll<Option<Result<T, E>>>`.][80968]
1893 - [`unsigned_abs` is now implemented for all signed integer types.][80959]
1894 - [`io::Empty` now implements `io::Seek`.][78044]
1895 - [`rc::Weak<T>` and `sync::Weak<T>`'s methods such as `as_ptr` are now implemented for
1896   `T: ?Sized` types.][80764]
1897 - [`Div` and `Rem` by their `NonZero` variant is now implemented for all unsigned integers.][79134]
1898
1899
1900 Stabilized APIs
1901 ---------------
1902
1903 - [`Arc::decrement_strong_count`]
1904 - [`Arc::increment_strong_count`]
1905 - [`Once::call_once_force`]
1906 - [`Peekable::next_if_eq`]
1907 - [`Peekable::next_if`]
1908 - [`Seek::stream_position`]
1909 - [`array::IntoIter`]
1910 - [`panic::panic_any`]
1911 - [`ptr::addr_of!`]
1912 - [`ptr::addr_of_mut!`]
1913 - [`slice::fill_with`]
1914 - [`slice::split_inclusive_mut`]
1915 - [`slice::split_inclusive`]
1916 - [`slice::strip_prefix`]
1917 - [`slice::strip_suffix`]
1918 - [`str::split_inclusive`]
1919 - [`sync::OnceState`]
1920 - [`task::Wake`]
1921 - [`VecDeque::range`]
1922 - [`VecDeque::range_mut`]
1923
1924 Cargo
1925 -----
1926 - [Added the `split-debuginfo` profile option to control the -Csplit-debuginfo
1927   codegen option.][cargo/9112]
1928 - [Added the `resolver` field to `Cargo.toml` to enable the new feature resolver
1929   and CLI option behavior.][cargo/8997] Version 2 of the feature resolver will try
1930   to avoid unifying features of dependencies where that unification could be unwanted.
1931   Such as using the same dependency with a `std` feature in a build scripts and
1932   proc-macros, while using the `no-std` feature in the final binary. See the
1933   [Cargo book documentation][feature-resolver@2.0] for more information on the feature.
1934
1935 Rustdoc
1936 -------
1937
1938 - [Rustdoc will now include documentation for methods available from _nested_ `Deref` traits.][80653]
1939 - [You can now provide a `--default-theme` flag which sets the default theme to use for
1940   documentation.][79642]
1941
1942 Various improvements to intra-doc links:
1943
1944 - [You can link to non-path primitives such as `slice`.][80181]
1945 - [You can link to associated items.][74489]
1946 - [You can now include generic parameters when linking to items, like `Vec<T>`.][76934]
1947
1948 Misc
1949 ----
1950 - [You can now pass `--include-ignored` to tests (e.g. with
1951   `cargo test -- --include-ignored`) to include testing tests marked `#[ignore]`.][80053]
1952
1953 Compatibility Notes
1954 -------------------
1955
1956 - [WASI platforms no longer use the `wasm-bindgen` ABI, and instead use the wasm32 ABI.][79998]
1957 - [`rustc` no longer promotes division, modulo and indexing operations to `const` that
1958   could fail.][80579]
1959 - [The minimum version of glibc for the following platforms has been bumped to version 2.31
1960   for the distributed artifacts.][81521]
1961     - `armv5te-unknown-linux-gnueabi`
1962     - `sparc64-unknown-linux-gnu`
1963     - `thumbv7neon-unknown-linux-gnueabihf`
1964     - `armv7-unknown-linux-gnueabi`
1965     - `x86_64-unknown-linux-gnux32`
1966 - [`atomic::spin_loop_hint` has been deprecated.][80966] It's recommended to use `hint::spin_loop` instead.
1967
1968 Internal Only
1969 -------------
1970
1971 - [Consistently avoid constructing optimized MIR when not doing codegen][80718]
1972
1973 [79135]: https://github.com/rust-lang/rust/pull/79135
1974 [74489]: https://github.com/rust-lang/rust/pull/74489
1975 [76934]: https://github.com/rust-lang/rust/pull/76934
1976 [79570]: https://github.com/rust-lang/rust/pull/79570
1977 [80181]: https://github.com/rust-lang/rust/pull/80181
1978 [79642]: https://github.com/rust-lang/rust/pull/79642
1979 [80945]: https://github.com/rust-lang/rust/pull/80945
1980 [80279]: https://github.com/rust-lang/rust/pull/80279
1981 [80053]: https://github.com/rust-lang/rust/pull/80053
1982 [79502]: https://github.com/rust-lang/rust/pull/79502
1983 [75180]: https://github.com/rust-lang/rust/pull/75180
1984 [81521]: https://github.com/rust-lang/rust/pull/81521
1985 [80968]: https://github.com/rust-lang/rust/pull/80968
1986 [80959]: https://github.com/rust-lang/rust/pull/80959
1987 [80718]: https://github.com/rust-lang/rust/pull/80718
1988 [80653]: https://github.com/rust-lang/rust/pull/80653
1989 [80579]: https://github.com/rust-lang/rust/pull/80579
1990 [79998]: https://github.com/rust-lang/rust/pull/79998
1991 [78044]: https://github.com/rust-lang/rust/pull/78044
1992 [81455]: https://github.com/rust-lang/rust/pull/81455
1993 [80764]: https://github.com/rust-lang/rust/pull/80764
1994 [80749]: https://github.com/rust-lang/rust/pull/80749
1995 [80662]: https://github.com/rust-lang/rust/pull/80662
1996 [79134]: https://github.com/rust-lang/rust/pull/79134
1997 [80966]: https://github.com/rust-lang/rust/pull/80966
1998 [cargo/8997]: https://github.com/rust-lang/cargo/pull/8997
1999 [cargo/9112]: https://github.com/rust-lang/cargo/pull/9112
2000 [feature-resolver@2.0]: https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
2001 [`Once::call_once_force`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.call_once_force
2002 [`sync::OnceState`]: https://doc.rust-lang.org/stable/std/sync/struct.OnceState.html
2003 [`panic::panic_any`]: https://doc.rust-lang.org/stable/std/panic/fn.panic_any.html
2004 [`slice::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
2005 [`slice::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
2006 [`Arc::increment_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.increment_strong_count
2007 [`Arc::decrement_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.decrement_strong_count
2008 [`slice::fill_with`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.fill_with
2009 [`ptr::addr_of!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of.html
2010 [`ptr::addr_of_mut!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of_mut.html
2011 [`array::IntoIter`]: https://doc.rust-lang.org/nightly/std/array/struct.IntoIter.html
2012 [`slice::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive
2013 [`slice::split_inclusive_mut`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive_mut
2014 [`str::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_inclusive
2015 [`task::Wake`]: https://doc.rust-lang.org/nightly/std/task/trait.Wake.html
2016 [`Seek::stream_position`]: https://doc.rust-lang.org/nightly/std/io/trait.Seek.html#method.stream_position
2017 [`Peekable::next_if`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if
2018 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if_eq
2019 [`VecDeque::range`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range
2020 [`VecDeque::range_mut`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range_mut
2021
2022 Version 1.50.0 (2021-02-11)
2023 ============================
2024
2025 Language
2026 -----------------------
2027 - [You can now use `const` values for `x` in `[x; N]` array expressions.][79270]
2028   This has been technically possible since 1.38.0, as it was unintentionally stabilized.
2029 - [Assignments to `ManuallyDrop<T>` union fields are now considered safe.][78068]
2030
2031 Compiler
2032 -----------------------
2033 - [Added tier 3\* support for the `armv5te-unknown-linux-uclibceabi` target.][78142]
2034 - [Added tier 3 support for the `aarch64-apple-ios-macabi` target.][77484]
2035 - [The `x86_64-unknown-freebsd` is now built with the full toolset.][79484]
2036 - [Dropped support for all cloudabi targets.][78439]
2037
2038 \* Refer to Rust's [platform support page][platform-support-doc] for more
2039 information on Rust's tiered platform support.
2040
2041 Libraries
2042 -----------------------
2043
2044 - [`proc_macro::Punct` now implements `PartialEq<char>`.][78636]
2045 - [`ops::{Index, IndexMut}` are now implemented for fixed sized arrays of any length.][74989]
2046 - [On Unix platforms, the `std::fs::File` type now has a "niche" of `-1`.][74699]
2047   This value cannot be a valid file descriptor, and now means `Option<File>` takes
2048   up the same amount of space as `File`.
2049
2050 Stabilized APIs
2051 ---------------
2052
2053 - [`bool::then`]
2054 - [`btree_map::Entry::or_insert_with_key`]
2055 - [`f32::clamp`]
2056 - [`f64::clamp`]
2057 - [`hash_map::Entry::or_insert_with_key`]
2058 - [`Ord::clamp`]
2059 - [`RefCell::take`]
2060 - [`slice::fill`]
2061 - [`UnsafeCell::get_mut`]
2062
2063 The following previously stable methods are now `const`.
2064
2065 - [`IpAddr::is_ipv4`]
2066 - [`IpAddr::is_ipv6`]
2067 - [`IpAddr::is_unspecified`]
2068 - [`IpAddr::is_loopback`]
2069 - [`IpAddr::is_multicast`]
2070 - [`Ipv4Addr::octets`]
2071 - [`Ipv4Addr::is_loopback`]
2072 - [`Ipv4Addr::is_private`]
2073 - [`Ipv4Addr::is_link_local`]
2074 - [`Ipv4Addr::is_multicast`]
2075 - [`Ipv4Addr::is_broadcast`]
2076 - [`Ipv4Addr::is_documentation`]
2077 - [`Ipv4Addr::to_ipv6_compatible`]
2078 - [`Ipv4Addr::to_ipv6_mapped`]
2079 - [`Ipv6Addr::segments`]
2080 - [`Ipv6Addr::is_unspecified`]
2081 - [`Ipv6Addr::is_loopback`]
2082 - [`Ipv6Addr::is_multicast`]
2083 - [`Ipv6Addr::to_ipv4`]
2084 - [`Layout::size`]
2085 - [`Layout::align`]
2086 - [`Layout::from_size_align`]
2087 - `pow` for all integer types.
2088 - `checked_pow` for all integer types.
2089 - `saturating_pow` for all integer types.
2090 - `wrapping_pow` for all integer types.
2091 - `next_power_of_two` for all unsigned integer types.
2092 - `checked_next_power_of_two` for all unsigned integer types.
2093
2094 Cargo
2095 -----------------------
2096
2097 - [Added the `[build.rustc-workspace-wrapper]` option.][cargo/8976]
2098   This option sets a wrapper to execute instead of `rustc`, for workspace members only.
2099 - [`cargo:rerun-if-changed` will now, if provided a directory, scan the entire
2100   contents of that directory for changes.][cargo/8973]
2101 - [Added the `--workspace` flag to the `cargo update` command.][cargo/8725]
2102
2103 Misc
2104 ----
2105
2106 - [The search results tab and the help button are focusable with keyboard in rustdoc.][79896]
2107 - [Running tests will now print the total time taken to execute.][75752]
2108
2109 Compatibility Notes
2110 -------------------
2111
2112 - [The `compare_and_swap` method on atomics has been deprecated.][79261] It's
2113   recommended to use the `compare_exchange` and `compare_exchange_weak` methods instead.
2114 - [Changes in how `TokenStream`s are checked have fixed some cases where you could write
2115   unhygenic `macro_rules!` macros.][79472]
2116 - [`#![test]` as an inner attribute is now considered unstable like other inner macro
2117   attributes, and reports an error by default through the `soft_unstable` lint.][79003]
2118 - [Overriding a `forbid` lint at the same level that it was set is now a hard error.][78864]
2119 - [You can no longer intercept `panic!` calls by supplying your own macro.][78343] It's
2120   recommended to use the `#[panic_handler]` attribute to provide your own implementation.
2121 - [Semi-colons after item statements (e.g. `struct Foo {};`) now produce a warning.][78296]
2122
2123 [74989]: https://github.com/rust-lang/rust/pull/74989
2124 [79261]: https://github.com/rust-lang/rust/pull/79261
2125 [79896]: https://github.com/rust-lang/rust/pull/79896
2126 [79484]: https://github.com/rust-lang/rust/pull/79484
2127 [79472]: https://github.com/rust-lang/rust/pull/79472
2128 [79270]: https://github.com/rust-lang/rust/pull/79270
2129 [79003]: https://github.com/rust-lang/rust/pull/79003
2130 [78864]: https://github.com/rust-lang/rust/pull/78864
2131 [78636]: https://github.com/rust-lang/rust/pull/78636
2132 [78439]: https://github.com/rust-lang/rust/pull/78439
2133 [78343]: https://github.com/rust-lang/rust/pull/78343
2134 [78296]: https://github.com/rust-lang/rust/pull/78296
2135 [78068]: https://github.com/rust-lang/rust/pull/78068
2136 [75752]: https://github.com/rust-lang/rust/pull/75752
2137 [74699]: https://github.com/rust-lang/rust/pull/74699
2138 [78142]: https://github.com/rust-lang/rust/pull/78142
2139 [77484]: https://github.com/rust-lang/rust/pull/77484
2140 [cargo/8976]: https://github.com/rust-lang/cargo/pull/8976
2141 [cargo/8973]: https://github.com/rust-lang/cargo/pull/8973
2142 [cargo/8725]: https://github.com/rust-lang/cargo/pull/8725
2143 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv4
2144 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv6
2145 [`IpAddr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_unspecified
2146 [`IpAddr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_loopback
2147 [`IpAddr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_multicast
2148 [`Ipv4Addr::octets`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.octets
2149 [`Ipv4Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_loopback
2150 [`Ipv4Addr::is_private`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_private
2151 [`Ipv4Addr::is_link_local`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_link_local
2152 [`Ipv4Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_multicast
2153 [`Ipv4Addr::is_broadcast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_broadcast
2154 [`Ipv4Addr::is_documentation`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_documentation
2155 [`Ipv4Addr::to_ipv6_compatible`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_compatible
2156 [`Ipv4Addr::to_ipv6_mapped`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_mapped
2157 [`Ipv6Addr::segments`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.segments
2158 [`Ipv6Addr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_unspecified
2159 [`Ipv6Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_loopback
2160 [`Ipv6Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_multicast
2161 [`Ipv6Addr::to_ipv4`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.to_ipv4
2162 [`Layout::align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.align
2163 [`Layout::from_size_align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.from_size_align
2164 [`Layout::size`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.size
2165 [`Ord::clamp`]: https://doc.rust-lang.org/stable/std/cmp/trait.Ord.html#method.clamp
2166 [`RefCell::take`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.take
2167 [`UnsafeCell::get_mut`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.get_mut
2168 [`bool::then`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then
2169 [`btree_map::Entry::or_insert_with_key`]: https://doc.rust-lang.org/stable/std/collections/btree_map/enum.Entry.html#method.or_insert_with_key
2170 [`f32::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.clamp
2171 [`f64::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.clamp
2172 [`hash_map::Entry::or_insert_with_key`]: https://doc.rust-lang.org/stable/std/collections/hash_map/enum.Entry.html#method.or_insert_with_key
2173 [`slice::fill`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.fill
2174
2175
2176 Version 1.49.0 (2020-12-31)
2177 ============================
2178
2179 Language
2180 -----------------------
2181
2182 - [Unions can now implement `Drop`, and you can now have a field in a union
2183   with `ManuallyDrop<T>`.][77547]
2184 - [You can now cast uninhabited enums to integers.][76199]
2185 - [You can now bind by reference and by move in patterns.][76119] This
2186   allows you to selectively borrow individual components of a type. E.g.
2187   ```rust
2188   #[derive(Debug)]
2189   struct Person {
2190       name: String,
2191       age: u8,
2192   }
2193
2194   let person = Person {
2195       name: String::from("Alice"),
2196       age: 20,
2197   };
2198
2199   // `name` is moved out of person, but `age` is referenced.
2200   let Person { name, ref age } = person;
2201   println!("{} {}", name, age);
2202   ```
2203
2204 Compiler
2205 -----------------------
2206
2207 - [Added tier 1\* support for `aarch64-unknown-linux-gnu`.][78228]
2208 - [Added tier 2 support for `aarch64-apple-darwin`.][75991]
2209 - [Added tier 2 support for `aarch64-pc-windows-msvc`.][75914]
2210 - [Added tier 3 support for `mipsel-unknown-none`.][78676]
2211 - [Raised the minimum supported LLVM version to LLVM 9.][78848]
2212 - [Output from threads spawned in tests is now captured.][78227]
2213 - [Change os and vendor values to "none" and "unknown" for some targets][78951]
2214
2215 \* Refer to Rust's [platform support page][platform-support-doc] for more
2216 information on Rust's tiered platform support.
2217
2218 Libraries
2219 -----------------------
2220
2221 - [`RangeInclusive` now checks for exhaustion when calling `contains` and indexing.][78109]
2222 - [`ToString::to_string` now no longer shrinks the internal buffer in the default implementation.][77997]
2223
2224 Stabilized APIs
2225 ---------------
2226
2227 - [`slice::select_nth_unstable`]
2228 - [`slice::select_nth_unstable_by`]
2229 - [`slice::select_nth_unstable_by_key`]
2230
2231 The following previously stable methods are now `const`.
2232
2233 - [`Poll::is_ready`]
2234 - [`Poll::is_pending`]
2235
2236 Cargo
2237 -----------------------
2238 - [Building a crate with `cargo-package` should now be independently reproducible.][cargo/8864]
2239 - [`cargo-tree` now marks proc-macro crates.][cargo/8765]
2240 - [Added `CARGO_PRIMARY_PACKAGE` build-time environment variable.][cargo/8758] This
2241   variable will be set if the crate being built is one the user selected to build, either
2242   with `-p` or through defaults.
2243 - [You can now use glob patterns when specifying packages & targets.][cargo/8752]
2244
2245
2246 Compatibility Notes
2247 -------------------
2248
2249 - [Demoted `i686-unknown-freebsd` from host tier 2 to target tier 2 support.][78746]
2250 - [Macros that end with a semi-colon are now treated as statements even if they expand to nothing.][78376]
2251 - [Rustc will now check for the validity of some built-in attributes on enum variants.][77015]
2252   Previously such invalid or unused attributes could be ignored.
2253 - Leading whitespace is stripped more uniformly in documentation comments, which may change behavior. You
2254   read [this post about the changes][rustdoc-ws-post] for more details.
2255 - [Trait bounds are no longer inferred for associated types.][79904]
2256
2257 Internal Only
2258 -------------
2259 These changes provide no direct user facing benefits, but represent significant
2260 improvements to the internals and overall performance of rustc and
2261 related tools.
2262
2263 - [rustc's internal crates are now compiled using the `initial-exec` Thread
2264   Local Storage model.][78201]
2265 - [Calculate visibilities once in resolve.][78077]
2266 - [Added `system` to the `llvm-libunwind` bootstrap config option.][77703]
2267 - [Added `--color` for configuring terminal color support to bootstrap.][79004]
2268
2269
2270 [75991]: https://github.com/rust-lang/rust/pull/75991
2271 [78951]: https://github.com/rust-lang/rust/pull/78951
2272 [78848]: https://github.com/rust-lang/rust/pull/78848
2273 [78746]: https://github.com/rust-lang/rust/pull/78746
2274 [78376]: https://github.com/rust-lang/rust/pull/78376
2275 [78228]: https://github.com/rust-lang/rust/pull/78228
2276 [78227]: https://github.com/rust-lang/rust/pull/78227
2277 [78201]: https://github.com/rust-lang/rust/pull/78201
2278 [78109]: https://github.com/rust-lang/rust/pull/78109
2279 [78077]: https://github.com/rust-lang/rust/pull/78077
2280 [77997]: https://github.com/rust-lang/rust/pull/77997
2281 [77703]: https://github.com/rust-lang/rust/pull/77703
2282 [77547]: https://github.com/rust-lang/rust/pull/77547
2283 [77015]: https://github.com/rust-lang/rust/pull/77015
2284 [76199]: https://github.com/rust-lang/rust/pull/76199
2285 [76119]: https://github.com/rust-lang/rust/pull/76119
2286 [75914]: https://github.com/rust-lang/rust/pull/75914
2287 [79004]: https://github.com/rust-lang/rust/pull/79004
2288 [78676]: https://github.com/rust-lang/rust/pull/78676
2289 [79904]: https://github.com/rust-lang/rust/issues/79904
2290 [cargo/8864]: https://github.com/rust-lang/cargo/pull/8864
2291 [cargo/8765]: https://github.com/rust-lang/cargo/pull/8765
2292 [cargo/8758]: https://github.com/rust-lang/cargo/pull/8758
2293 [cargo/8752]: https://github.com/rust-lang/cargo/pull/8752
2294 [`slice::select_nth_unstable`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable
2295 [`slice::select_nth_unstable_by`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by
2296 [`slice::select_nth_unstable_by_key`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by_key
2297 [`Poll::is_ready`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_ready
2298 [`Poll::is_pending`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_pending
2299 [rustdoc-ws-post]: https://blog.guillaume-gomez.fr/articles/2020-11-11+New+doc+comment+handling+in+rustdoc
2300
2301 Version 1.48.0 (2020-11-19)
2302 ==========================
2303
2304 Language
2305 --------
2306
2307 - [The `unsafe` keyword is now syntactically permitted on modules.][75857] This
2308   is still rejected *semantically*, but can now be parsed by procedural macros.
2309
2310 Compiler
2311 --------
2312 - [Stabilised the `-C link-self-contained=<yes|no>` compiler flag.][76158] This tells
2313   `rustc` whether to link its own C runtime and libraries or to rely on a external
2314   linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.)
2315 - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386]
2316   Note: If you're using cargo you must explicitly pass the `--target` flag.
2317 - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420]
2318
2319 \* Refer to Rust's [platform support page][platform-support-doc] for more
2320 information on Rust's tiered platform support.
2321
2322 Libraries
2323 ---------
2324 - [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`,
2325   and `&Stderr`.][76275]
2326 - [All arrays of any length now implement `TryFrom<Vec<T>>`.][76310]
2327 - [The `matches!` macro now supports having a trailing comma.][74880]
2328 - [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194]
2329 - [The `RefCell::{replace, replace_with, clone}` methods now all use `#[track_caller]`.][77055]
2330
2331 Stabilized APIs
2332 ---------------
2333 - [`slice::as_ptr_range`]
2334 - [`slice::as_mut_ptr_range`]
2335 - [`VecDeque::make_contiguous`]
2336 - [`future::pending`]
2337 - [`future::ready`]
2338
2339 The following previously stable methods are now `const fn`'s:
2340
2341 - [`Option::is_some`]
2342 - [`Option::is_none`]
2343 - [`Option::as_ref`]
2344 - [`Result::is_ok`]
2345 - [`Result::is_err`]
2346 - [`Result::as_ref`]
2347 - [`Ordering::reverse`]
2348 - [`Ordering::then`]
2349
2350 Cargo
2351 -----
2352
2353 Rustdoc
2354 -------
2355 - [You can now link to items in `rustdoc` using the intra-doc link
2356   syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate
2357   a link to `std::future`'s documentation. See ["Linking to items by
2358   name"][intradoc-links] for more information.
2359 - [You can now specify `#[doc(alias = "<alias>")]` on items to add search aliases
2360   when searching through `rustdoc`'s UI.][75740]
2361
2362 Compatibility Notes
2363 -------------------
2364 - [Promotion of references to `'static` lifetime inside `const fn` now follows the
2365   same rules as inside a `fn` body.][75502] In particular, `&foo()` will not be
2366   promoted to `'static` lifetime any more inside `const fn`s.
2367 - [Associated type bindings on trait objects are now verified to meet the bounds
2368   declared on the trait when checking that they implement the trait.][27675]
2369 - [When trait bounds on associated types or opaque types are ambiguous, the
2370   compiler no longer makes an arbitrary choice on which bound to use.][54121]
2371 - [Fixed recursive nonterminals not being expanded in macros during
2372   pretty-print/reparse check.][77153] This may cause errors if your macro wasn't
2373   correctly handling recursive nonterminal tokens.
2374 - [`&mut` references to non zero-sized types are no longer promoted.][75585]
2375 - [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]`
2376   in places where they have no effect.][73461]
2377 - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in
2378   `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166]
2379 - [`mem::uninitialized` will now panic if any inner types inside a struct or enum
2380   disallow zero-initialization.][71274]
2381 - [`#[target_feature]` will now error if used in a place where it has no effect.][78143]
2382 - [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212]
2383   Note: This behaviour is not guaranteed and is still considered undefined behaviour,
2384   see the [`catch_unwind`] documentation for further information.
2385
2386
2387
2388 Internal Only
2389 -------------
2390 These changes provide no direct user facing benefits, but represent significant
2391 improvements to the internals and overall performance of rustc and
2392 related tools.
2393
2394 - [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
2395   You can continue building with `make` by setting `ninja=false` in
2396   your `config.toml`.
2397 - [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
2398 - [Made `ensure_sufficient_stack()` non-generic][76680]
2399
2400 [78143]: https://github.com/rust-lang/rust/issues/78143
2401 [76680]: https://github.com/rust-lang/rust/pull/76680/
2402 [76030]: https://github.com/rust-lang/rust/pull/76030/
2403 [70212]: https://github.com/rust-lang/rust/pull/70212/
2404 [27675]: https://github.com/rust-lang/rust/issues/27675/
2405 [54121]: https://github.com/rust-lang/rust/issues/54121/
2406 [71274]: https://github.com/rust-lang/rust/pull/71274/
2407 [77386]: https://github.com/rust-lang/rust/pull/77386/
2408 [77153]: https://github.com/rust-lang/rust/pull/77153/
2409 [77055]: https://github.com/rust-lang/rust/pull/77055/
2410 [76275]: https://github.com/rust-lang/rust/pull/76275/
2411 [76310]: https://github.com/rust-lang/rust/pull/76310/
2412 [76420]: https://github.com/rust-lang/rust/pull/76420/
2413 [76158]: https://github.com/rust-lang/rust/pull/76158/
2414 [75857]: https://github.com/rust-lang/rust/pull/75857/
2415 [75585]: https://github.com/rust-lang/rust/pull/75585/
2416 [75740]: https://github.com/rust-lang/rust/pull/75740/
2417 [75502]: https://github.com/rust-lang/rust/pull/75502/
2418 [74880]: https://github.com/rust-lang/rust/pull/74880/
2419 [74922]: https://github.com/rust-lang/rust/pull/74922/
2420 [74430]: https://github.com/rust-lang/rust/pull/74430/
2421 [74194]: https://github.com/rust-lang/rust/pull/74194/
2422 [73461]: https://github.com/rust-lang/rust/pull/73461/
2423 [73166]: https://github.com/rust-lang/rust/pull/73166/
2424 [intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
2425 [`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
2426 [`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some
2427 [`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none
2428 [`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref
2429 [`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok
2430 [`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err
2431 [`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref
2432 [`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse
2433 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
2434 [`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range
2435 [`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range
2436 [`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous
2437 [`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html
2438 [`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html
2439
2440
2441 Version 1.47.0 (2020-10-08)
2442 ==========================
2443
2444 Language
2445 --------
2446 - [Closures will now warn when not used.][74869]
2447
2448 Compiler
2449 --------
2450 - [Stabilized the `-C control-flow-guard` codegen option][73893], which enables
2451   [Control Flow Guard][1.47.0-cfg] for Windows platforms, and is ignored on other
2452   platforms.
2453 - [Upgraded to LLVM 11.][73526]
2454 - [Added tier 3\* support for the `thumbv4t-none-eabi` target.][74419]
2455 - [Upgrade the FreeBSD toolchain to version 11.4][75204]
2456 - [`RUST_BACKTRACE`'s output is now more compact.][75048]
2457
2458 \* Refer to Rust's [platform support page][platform-support-doc] for more
2459 information on Rust's tiered platform support.
2460
2461 Libraries
2462 ---------
2463 - [`CStr` now implements `Index<RangeFrom<usize>>`.][74021]
2464 - [Traits in `std`/`core` are now implemented for arrays of any length, not just
2465   those of length less than 33.][74060]
2466 - [`ops::RangeFull` and `ops::Range` now implement Default.][73197]
2467 - [`panic::Location` now implements `Copy`, `Clone`, `Eq`, `Hash`, `Ord`,
2468   `PartialEq`, and `PartialOrd`.][73583]
2469
2470 Stabilized APIs
2471 ---------------
2472 - [`Ident::new_raw`]
2473 - [`Range::is_empty`]
2474 - [`RangeInclusive::is_empty`]
2475 - [`Result::as_deref`]
2476 - [`Result::as_deref_mut`]
2477 - [`Vec::leak`]
2478 - [`pointer::offset_from`]
2479 - [`f32::TAU`]
2480 - [`f64::TAU`]
2481
2482 The following previously stable APIs have now been made const.
2483
2484 - [The `new` method for all `NonZero` integers.][73858]
2485 - [The `checked_add`,`checked_sub`,`checked_mul`,`checked_neg`, `checked_shl`,
2486   `checked_shr`, `saturating_add`, `saturating_sub`, and `saturating_mul`
2487   methods for all integers.][73858]
2488 - [The `checked_abs`, `saturating_abs`, `saturating_neg`, and `signum`  for all
2489   signed integers.][73858]
2490 - [The `is_ascii_alphabetic`, `is_ascii_uppercase`, `is_ascii_lowercase`,
2491   `is_ascii_alphanumeric`, `is_ascii_digit`, `is_ascii_hexdigit`,
2492   `is_ascii_punctuation`, `is_ascii_graphic`, `is_ascii_whitespace`, and
2493   `is_ascii_control` methods for `char` and `u8`.][73858]
2494
2495 Cargo
2496 -----
2497 - [`build-dependencies` are now built with opt-level 0 by default.][cargo/8500]
2498   You can override this by setting the following in your `Cargo.toml`.
2499   ```toml
2500   [profile.release.build-override]
2501   opt-level = 3
2502   ```
2503 - [`cargo-help` will now display man pages for commands rather just the
2504   `--help` text.][cargo/8456]
2505 - [`cargo-metadata` now emits a `test` field indicating if a target has
2506   tests enabled.][cargo/8478]
2507 - [`workspace.default-members` now respects `workspace.exclude`.][cargo/8485]
2508 - [`cargo-publish` will now use an alternative registry by default if it's the
2509   only registry specified in `package.publish`.][cargo/8571]
2510
2511 Misc
2512 ----
2513 - [Added a help button beside Rustdoc's searchbar that explains rustdoc's
2514   type based search.][75366]
2515 - [Added the Ayu theme to rustdoc.][71237]
2516
2517 Compatibility Notes
2518 -------------------
2519 - [Bumped the minimum supported Emscripten version to 1.39.20.][75716]
2520 - [Fixed a regression parsing `{} && false` in tail expressions.][74650]
2521 - [Added changes to how proc-macros are expanded in `macro_rules!` that should
2522   help to preserve more span information.][73084] These changes may cause
2523   compilation errors if your macro was unhygenic or didn't correctly handle
2524   `Delimiter::None`.
2525 - [Moved support for the CloudABI target to tier 3.][75568]
2526 - [`linux-gnu` targets now require minimum kernel 2.6.32 and glibc 2.11.][74163]
2527 - [Added the `rustc-docs` component.][75560] This allows you to install
2528   and read the documentation for the compiler internal APIs. (Currently only
2529   available for `x86_64-unknown-linux-gnu`.)
2530
2531 Internal Only
2532 --------
2533
2534 - [Improved default settings for bootstrapping in `x.py`.][73964] You can read details about this change in the ["Changes to `x.py` defaults"](https://blog.rust-lang.org/inside-rust/2020/08/30/changes-to-x-py-defaults.html) post on the Inside Rust blog.
2535
2536 [1.47.0-cfg]: https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard
2537 [75048]: https://github.com/rust-lang/rust/pull/75048/
2538 [74163]: https://github.com/rust-lang/rust/pull/74163/
2539 [71237]: https://github.com/rust-lang/rust/pull/71237/
2540 [74869]: https://github.com/rust-lang/rust/pull/74869/
2541 [73858]: https://github.com/rust-lang/rust/pull/73858/
2542 [75716]: https://github.com/rust-lang/rust/pull/75716/
2543 [75560]: https://github.com/rust-lang/rust/pull/75560/
2544 [75568]: https://github.com/rust-lang/rust/pull/75568/
2545 [75366]: https://github.com/rust-lang/rust/pull/75366/
2546 [75204]: https://github.com/rust-lang/rust/pull/75204/
2547 [74650]: https://github.com/rust-lang/rust/pull/74650/
2548 [74419]: https://github.com/rust-lang/rust/pull/74419/
2549 [73964]: https://github.com/rust-lang/rust/pull/73964/
2550 [74021]: https://github.com/rust-lang/rust/pull/74021/
2551 [74060]: https://github.com/rust-lang/rust/pull/74060/
2552 [73893]: https://github.com/rust-lang/rust/pull/73893/
2553 [73526]: https://github.com/rust-lang/rust/pull/73526/
2554 [73583]: https://github.com/rust-lang/rust/pull/73583/
2555 [73084]: https://github.com/rust-lang/rust/pull/73084/
2556 [73197]: https://github.com/rust-lang/rust/pull/73197/
2557 [cargo/8456]: https://github.com/rust-lang/cargo/pull/8456/
2558 [cargo/8478]: https://github.com/rust-lang/cargo/pull/8478/
2559 [cargo/8485]: https://github.com/rust-lang/cargo/pull/8485/
2560 [cargo/8500]: https://github.com/rust-lang/cargo/pull/8500/
2561 [cargo/8571]: https://github.com/rust-lang/cargo/pull/8571/
2562 [`Ident::new_raw`]:  https://doc.rust-lang.org/nightly/proc_macro/struct.Ident.html#method.new_raw
2563 [`Range::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.Range.html#method.is_empty
2564 [`RangeInclusive::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html#method.is_empty
2565 [`Result::as_deref_mut`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref_mut
2566 [`Result::as_deref`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref
2567 [`Vec::leak`]: https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.leak
2568 [`f32::TAU`]: https://doc.rust-lang.org/nightly/std/f32/consts/constant.TAU.html
2569 [`f64::TAU`]: https://doc.rust-lang.org/nightly/std/f64/consts/constant.TAU.html
2570 [`pointer::offset_from`]: https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset_from
2571
2572
2573 Version 1.46.0 (2020-08-27)
2574 ==========================
2575
2576 Language
2577 --------
2578 - [`if`, `match`, and `loop` expressions can now be used in const functions.][72437]
2579 - [Additionally you are now also able to coerce and cast to slices (`&[T]`) in
2580   const functions.][73862]
2581 - [The `#[track_caller]` attribute can now be added to functions to use the
2582   function's caller's location information for panic messages.][72445]
2583 - [Recursively indexing into tuples no longer needs parentheses.][71322] E.g.
2584   `x.0.0` over `(x.0).0`.
2585 - [`mem::transmute` can now be used in statics and constants.][72920] **Note**
2586   You currently can't use `mem::transmute` in constant functions.
2587
2588 Compiler
2589 --------
2590 - [You can now use the `cdylib` target on Apple iOS and tvOS platforms.][73516]
2591 - [Enabled static "Position Independent Executables" by default
2592   for `x86_64-unknown-linux-musl`.][70740]
2593
2594 Libraries
2595 ---------
2596 - [`mem::forget` is now a `const fn`.][73887]
2597 - [`String` now implements `From<char>`.][73466]
2598 - [The `leading_ones`, and `trailing_ones` methods have been stabilised for all
2599   integer types.][73032]
2600 - [`vec::IntoIter<T>` now implements `AsRef<[T]>`.][72583]
2601 - [All non-zero integer types (`NonZeroU8`) now implement `TryFrom` for their
2602   zero-able equivalent (e.g. `TryFrom<u8>`).][72717]
2603 - [`&[T]` and `&mut [T]` now implement `PartialEq<Vec<T>>`.][71660]
2604 - [`(String, u16)` now implements `ToSocketAddrs`.][73007]
2605 - [`vec::Drain<'_, T>` now implements `AsRef<[T]>`.][72584]
2606
2607 Stabilized APIs
2608 ---------------
2609 - [`Option::zip`]
2610 - [`vec::Drain::as_slice`]
2611
2612 Cargo
2613 -----
2614 Added a number of new environment variables that are now available when
2615 compiling your crate.
2616
2617 - [`CARGO_BIN_NAME` and `CARGO_CRATE_NAME`][cargo/8270] Providing the name of
2618   the specific binary being compiled and the name of the crate.
2619 - [`CARGO_PKG_LICENSE`][cargo/8325] The license from the manifest of the package.
2620 - [`CARGO_PKG_LICENSE_FILE`][cargo/8387] The path to the license file.
2621
2622 Compatibility Notes
2623 -------------------
2624 - [The target configuration option `abi_blacklist` has been renamed
2625   to `unsupported_abis`.][74150] The old name will still continue to work.
2626 - [Rustc will now warn if you cast a C-like enum that implements `Drop`.][72331]
2627   This was previously accepted but will become a hard error in a future release.
2628 - [Rustc will fail to compile if you have a struct with
2629   `#[repr(i128)]` or `#[repr(u128)]`.][74109] This representation is currently only
2630   allowed on `enum`s.
2631 - [Tokens passed to `macro_rules!` are now always captured.][73293] This helps
2632   ensure that spans have the correct information, and may cause breakage if you
2633   were relying on receiving spans with dummy information.
2634 - [The InnoSetup installer for Windows is no longer available.][72569] This was
2635   a legacy installer that was replaced by a MSI installer a few years ago but
2636   was still being built.
2637 - [`{f32, f64}::asinh` now returns the correct values for negative numbers.][72486]
2638 - [Rustc will no longer accept overlapping trait implementations that only
2639   differ in how the lifetime was bound.][72493]
2640 - [Rustc now correctly relates the lifetime of an existential associated
2641   type.][71896] This fixes some edge cases where `rustc` would erroneously allow
2642   you to pass a shorter lifetime than expected.
2643 - [Rustc now dynamically links to `libz` (also called `zlib`) on Linux.][74420]
2644   The library will need to be installed for `rustc` to work, even though we
2645   expect it to be already available on most systems.
2646 - [Tests annotated with `#[should_panic]` are broken on ARMv7 while running
2647   under QEMU.][74820]
2648 - [Pretty printing of some tokens in procedural macros changed.][75453] The
2649   exact output returned by rustc's pretty printing is an unstable
2650   implementation detail: we recommend any macro relying on it to switch to a
2651   more robust parsing system.
2652
2653 [75453]: https://github.com/rust-lang/rust/issues/75453/
2654 [74820]: https://github.com/rust-lang/rust/issues/74820/
2655 [74420]: https://github.com/rust-lang/rust/issues/74420/
2656 [74109]: https://github.com/rust-lang/rust/pull/74109/
2657 [74150]: https://github.com/rust-lang/rust/pull/74150/
2658 [73862]: https://github.com/rust-lang/rust/pull/73862/
2659 [73887]: https://github.com/rust-lang/rust/pull/73887/
2660 [73466]: https://github.com/rust-lang/rust/pull/73466/
2661 [73516]: https://github.com/rust-lang/rust/pull/73516/
2662 [73293]: https://github.com/rust-lang/rust/pull/73293/
2663 [73007]: https://github.com/rust-lang/rust/pull/73007/
2664 [73032]: https://github.com/rust-lang/rust/pull/73032/
2665 [72920]: https://github.com/rust-lang/rust/pull/72920/
2666 [72569]: https://github.com/rust-lang/rust/pull/72569/
2667 [72583]: https://github.com/rust-lang/rust/pull/72583/
2668 [72584]: https://github.com/rust-lang/rust/pull/72584/
2669 [72717]: https://github.com/rust-lang/rust/pull/72717/
2670 [72437]: https://github.com/rust-lang/rust/pull/72437/
2671 [72445]: https://github.com/rust-lang/rust/pull/72445/
2672 [72486]: https://github.com/rust-lang/rust/pull/72486/
2673 [72493]: https://github.com/rust-lang/rust/pull/72493/
2674 [72331]: https://github.com/rust-lang/rust/pull/72331/
2675 [71896]: https://github.com/rust-lang/rust/pull/71896/
2676 [71660]: https://github.com/rust-lang/rust/pull/71660/
2677 [71322]: https://github.com/rust-lang/rust/pull/71322/
2678 [70740]: https://github.com/rust-lang/rust/pull/70740/
2679 [cargo/8270]: https://github.com/rust-lang/cargo/pull/8270/
2680 [cargo/8325]: https://github.com/rust-lang/cargo/pull/8325/
2681 [cargo/8387]: https://github.com/rust-lang/cargo/pull/8387/
2682 [`Option::zip`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.zip
2683 [`vec::Drain::as_slice`]: https://doc.rust-lang.org/stable/std/vec/struct.Drain.html#method.as_slice
2684
2685
2686 Version 1.45.2 (2020-08-03)
2687 ==========================
2688
2689 * [Fix bindings in tuple struct patterns][74954]
2690 * [Fix track_caller integration with trait objects][74784]
2691
2692 [74954]: https://github.com/rust-lang/rust/issues/74954
2693 [74784]: https://github.com/rust-lang/rust/issues/74784
2694
2695
2696 Version 1.45.1 (2020-07-30)
2697 ==========================
2698
2699 * [Fix const propagation with references.][73613]
2700 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2701 * [Avoid spurious implicit region bound.][74509]
2702 * [Install clippy on x.py install][74457]
2703
2704 [73613]: https://github.com/rust-lang/rust/pull/73613
2705 [73078]: https://github.com/rust-lang/rust/issues/73078
2706 [74509]: https://github.com/rust-lang/rust/pull/74509
2707 [74457]: https://github.com/rust-lang/rust/pull/74457
2708
2709
2710 Version 1.45.0 (2020-07-16)
2711 ==========================
2712
2713 Language
2714 --------
2715 - [Out of range float to int conversions using `as` has been defined as a saturating
2716   conversion.][71269] This was previously undefined behaviour, but you can use the
2717    `{f64, f32}::to_int_unchecked` methods to continue using the current behaviour, which
2718    may be desirable in rare performance sensitive situations.
2719 - [`mem::Discriminant<T>` now uses `T`'s discriminant type instead of always
2720   using `u64`.][70705]
2721 - [Function like procedural macros can now be used in expression, pattern, and  statement
2722   positions.][68717] This means you can now use a function-like procedural macro
2723   anywhere you can use a declarative (`macro_rules!`) macro.
2724
2725 Compiler
2726 --------
2727 - [You can now override individual target features through the `target-feature`
2728   flag.][72094] E.g. `-C target-feature=+avx2 -C target-feature=+fma` is now
2729   equivalent to `-C target-feature=+avx2,+fma`.
2730 - [Added the `force-unwind-tables` flag.][69984] This option allows
2731   rustc to always generate unwind tables regardless of panic strategy.
2732 - [Added the `embed-bitcode` flag.][71716] This codegen flag allows rustc
2733   to include LLVM bitcode into generated `rlib`s (this is on by default).
2734 - [Added the `tiny` value to the `code-model` codegen flag.][72397]
2735 - [Added tier 3 support\* for the `mipsel-sony-psp` target.][72062]
2736 - [Added tier 3 support for the `thumbv7a-uwp-windows-msvc` target.][72133]
2737 - [Upgraded to LLVM 10.][67759]
2738
2739 \* Refer to Rust's [platform support page][platform-support-doc] for more
2740 information on Rust's tiered platform support.
2741
2742
2743 Libraries
2744 ---------
2745 - [`net::{SocketAddr, SocketAddrV4, SocketAddrV6}` now implements `PartialOrd`
2746   and `Ord`.][72239]
2747 - [`proc_macro::TokenStream` now implements `Default`.][72234]
2748 - [You can now use `char` with
2749   `ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeTo}` to iterate over
2750   a range of codepoints.][72413] E.g.
2751   you can now write the following;
2752   ```rust
2753   for ch in 'a'..='z' {
2754       print!("{}", ch);
2755   }
2756   println!();
2757   // Prints "abcdefghijklmnopqrstuvwxyz"
2758   ```
2759 - [`OsString` now implements `FromStr`.][71662]
2760 - [The `saturating_neg` method has been added to all signed integer primitive
2761   types, and the `saturating_abs` method has been added for all integer
2762   primitive types.][71886]
2763 - [`Arc<T>`, `Rc<T>` now implement  `From<Cow<'_, T>>`, and `Box` now
2764   implements `From<Cow>` when `T` is `[T: Copy]`, `str`, `CStr`, `OsStr`,
2765   or `Path`.][71447]
2766 - [`Box<[T]>` now implements `From<[T; N]>`.][71095]
2767 - [`BitOr` and `BitOrAssign` are implemented for all `NonZero`
2768   integer types.][69813]
2769 - [The `fetch_min`, and `fetch_max` methods have been added to all atomic
2770   integer types.][72324]
2771 - [The `fetch_update` method has been added to all atomic integer types.][71843]
2772
2773 Stabilized APIs
2774 ---------------
2775 - [`Arc::as_ptr`]
2776 - [`BTreeMap::remove_entry`]
2777 - [`Rc::as_ptr`]
2778 - [`rc::Weak::as_ptr`]
2779 - [`rc::Weak::from_raw`]
2780 - [`rc::Weak::into_raw`]
2781 - [`str::strip_prefix`]
2782 - [`str::strip_suffix`]
2783 - [`sync::Weak::as_ptr`]
2784 - [`sync::Weak::from_raw`]
2785 - [`sync::Weak::into_raw`]
2786 - [`char::UNICODE_VERSION`]
2787 - [`Span::resolved_at`]
2788 - [`Span::located_at`]
2789 - [`Span::mixed_site`]
2790 - [`unix::process::CommandExt::arg0`]
2791
2792 Cargo
2793 -----
2794
2795 - [Cargo uses the `embed-bitcode` flag to optimize disk usage and build
2796   time.][cargo/8066]
2797
2798 Misc
2799 ----
2800 - [Rustdoc now supports strikethrough text in Markdown.][71928] E.g.
2801   `~~outdated information~~` becomes "~~outdated information~~".
2802 - [Added an emoji to Rustdoc's deprecated API message.][72014]
2803
2804 Compatibility Notes
2805 -------------------
2806 - [Trying to self initialize a static value (that is creating a value using
2807   itself) is unsound and now causes a compile error.][71140]
2808 - [`{f32, f64}::powi` now returns a slightly different value on Windows.][73420]
2809   This is due to changes in LLVM's intrinsics which `{f32, f64}::powi` uses.
2810 - [Rustdoc's CLI's extra error exit codes have been removed.][71900] These were
2811   previously undocumented and not intended for public use. Rustdoc still provides
2812   a non-zero exit code on errors.
2813 - [Rustc's `lto` flag is incompatible with the new `embed-bitcode=no`.][71848]
2814   This may cause issues if LTO is enabled through `RUSTFLAGS` or `cargo rustc`
2815   flags while cargo is adding `embed-bitcode` itself. The recommended way to
2816   control LTO is with Cargo profiles, either in `Cargo.toml` or `.cargo/config`,
2817   or by setting `CARGO_PROFILE_<name>_LTO` in the environment.
2818
2819 Internals Only
2820 --------------
2821 - [Make clippy a git subtree instead of a git submodule][70655]
2822 - [Unify the undo log of all snapshot types][69464]
2823
2824 [71848]: https://github.com/rust-lang/rust/issues/71848/
2825 [73420]: https://github.com/rust-lang/rust/issues/73420/
2826 [72324]: https://github.com/rust-lang/rust/pull/72324/
2827 [71843]: https://github.com/rust-lang/rust/pull/71843/
2828 [71886]: https://github.com/rust-lang/rust/pull/71886/
2829 [72234]: https://github.com/rust-lang/rust/pull/72234/
2830 [72239]: https://github.com/rust-lang/rust/pull/72239/
2831 [72397]: https://github.com/rust-lang/rust/pull/72397/
2832 [72413]: https://github.com/rust-lang/rust/pull/72413/
2833 [72014]: https://github.com/rust-lang/rust/pull/72014/
2834 [72062]: https://github.com/rust-lang/rust/pull/72062/
2835 [72094]: https://github.com/rust-lang/rust/pull/72094/
2836 [72133]: https://github.com/rust-lang/rust/pull/72133/
2837 [67759]: https://github.com/rust-lang/rust/pull/67759/
2838 [71900]: https://github.com/rust-lang/rust/pull/71900/
2839 [71928]: https://github.com/rust-lang/rust/pull/71928/
2840 [71662]: https://github.com/rust-lang/rust/pull/71662/
2841 [71716]: https://github.com/rust-lang/rust/pull/71716/
2842 [71447]: https://github.com/rust-lang/rust/pull/71447/
2843 [71269]: https://github.com/rust-lang/rust/pull/71269/
2844 [71095]: https://github.com/rust-lang/rust/pull/71095/
2845 [71140]: https://github.com/rust-lang/rust/pull/71140/
2846 [70655]: https://github.com/rust-lang/rust/pull/70655/
2847 [70705]: https://github.com/rust-lang/rust/pull/70705/
2848 [69984]: https://github.com/rust-lang/rust/pull/69984/
2849 [69813]: https://github.com/rust-lang/rust/pull/69813/
2850 [69464]: https://github.com/rust-lang/rust/pull/69464/
2851 [68717]: https://github.com/rust-lang/rust/pull/68717/
2852 [cargo/8066]: https://github.com/rust-lang/cargo/pull/8066
2853 [`Arc::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.as_ptr
2854 [`BTreeMap::remove_entry`]: https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.remove_entry
2855 [`Rc::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.as_ptr
2856 [`rc::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.as_ptr
2857 [`rc::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.from_raw
2858 [`rc::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.into_raw
2859 [`sync::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.as_ptr
2860 [`sync::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.from_raw
2861 [`sync::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.into_raw
2862 [`str::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_prefix
2863 [`str::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_suffix
2864 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/stable/std/char/constant.UNICODE_VERSION.html
2865 [`Span::resolved_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.resolved_at
2866 [`Span::located_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.located_at
2867 [`Span::mixed_site`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.mixed_site
2868 [`unix::process::CommandExt::arg0`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.arg0
2869
2870
2871 Version 1.44.1 (2020-06-18)
2872 ===========================
2873
2874 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2875 * [Don't hash executable filenames on apple platforms, fixing backtraces.][cargo/8329]
2876 * [Fix crashes when finding backtrace on macOS.][71397]
2877 * [Clippy applies lint levels into different files.][clippy/5356]
2878
2879 [71397]: https://github.com/rust-lang/rust/issues/71397
2880 [73078]: https://github.com/rust-lang/rust/issues/73078
2881 [cargo/8329]: https://github.com/rust-lang/cargo/pull/8329
2882 [clippy/5356]: https://github.com/rust-lang/rust-clippy/issues/5356
2883
2884
2885 Version 1.44.0 (2020-06-04)
2886 ==========================
2887
2888 Language
2889 --------
2890 - [You can now use `async/.await` with `#[no_std]` enabled.][69033]
2891 - [Added the `unused_braces` lint.][70081]
2892
2893 **Syntax-only changes**
2894
2895 - [Expansion-driven outline module parsing][69838]
2896 ```rust
2897 #[cfg(FALSE)]
2898 mod foo {
2899     mod bar {
2900         mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
2901     }
2902 }
2903 ```
2904
2905 These are still rejected semantically, so you will likely receive an error but
2906 these changes can be seen and parsed by macros and conditional compilation.
2907
2908 Compiler
2909 --------
2910 - [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
2911   Additionally when in incremental mode rustc defaults to 256 codegen units.
2912 - [Refactored `catch_unwind` to have zero-cost, unless unwinding is enabled and
2913   a panic is thrown.][67502]
2914 - [Added tier 3\* support for the `aarch64-unknown-none` and
2915   `aarch64-unknown-none-softfloat` targets.][68334]
2916 - [Added tier 3 support for `arm64-apple-tvos` and
2917   `x86_64-apple-tvos` targets.][68191]
2918
2919
2920 Libraries
2921 ---------
2922 - [Special cased `vec![]` to map directly to `Vec::new()`.][70632] This allows
2923   `vec![]` to be able to be used in `const` contexts.
2924 - [`convert::Infallible` now implements `Hash`.][70281]
2925 - [`OsString` now implements `DerefMut` and `IndexMut` returning
2926   a `&mut OsStr`.][70048]
2927 - [Unicode 13 is now supported.][69929]
2928 - [`String` now implements `From<&mut str>`.][69661]
2929 - [`IoSlice` now implements `Copy`.][69403]
2930 - [`Vec<T>` now implements `From<[T; N]>`.][68692] Where `N` is at most 32.
2931 - [`proc_macro::LexError` now implements `fmt::Display` and `Error`.][68899]
2932 - [`from_le_bytes`, `to_le_bytes`, `from_be_bytes`, `to_be_bytes`,
2933   `from_ne_bytes`, and `to_ne_bytes` methods are now `const` for all
2934   integer types.][69373]
2935
2936 Stabilized APIs
2937 ---------------
2938 - [`PathBuf::with_capacity`]
2939 - [`PathBuf::capacity`]
2940 - [`PathBuf::clear`]
2941 - [`PathBuf::reserve`]
2942 - [`PathBuf::reserve_exact`]
2943 - [`PathBuf::shrink_to_fit`]
2944 - [`f32::to_int_unchecked`]
2945 - [`f64::to_int_unchecked`]
2946 - [`Layout::align_to`]
2947 - [`Layout::pad_to_align`]
2948 - [`Layout::array`]
2949 - [`Layout::extend`]
2950
2951 Cargo
2952 -----
2953 - [Added the `cargo tree` command which will print a tree graph of
2954   your dependencies.][cargo/8062] E.g.
2955   ```
2956     mdbook v0.3.2 (/Users/src/rust/mdbook)
2957   ├── ammonia v3.0.0
2958   │   ├── html5ever v0.24.0
2959   │   │   ├── log v0.4.8
2960   │   │   │   └── cfg-if v0.1.9
2961   │   │   ├── mac v0.1.1
2962   │   │   └── markup5ever v0.9.0
2963   │   │       ├── log v0.4.8 (*)
2964   │   │       ├── phf v0.7.24
2965   │   │       │   └── phf_shared v0.7.24
2966   │   │       │       ├── siphasher v0.2.3
2967   │   │       │       └── unicase v1.4.2
2968   │   │       │           [build-dependencies]
2969   │   │       │           └── version_check v0.1.5
2970   ...
2971   ```
2972   You can also display dependencies on multiple versions of the same crate with
2973   `cargo tree -d` (short for `cargo tree --duplicates`).
2974
2975 Misc
2976 ----
2977 - [Rustdoc now allows you to specify `--crate-version` to have rustdoc include
2978   the version in the sidebar.][69494]
2979
2980 Compatibility Notes
2981 -------------------
2982 - [Rustc now correctly generates static libraries on Windows GNU targets with
2983   the `.a` extension, rather than the previous `.lib`.][70937]
2984 - [Removed the `-C no_integrated_as` flag from rustc.][70345]
2985 - [The `file_name` property in JSON output of macro errors now points the actual
2986   source file rather than the previous format of `<NAME macros>`.][70969]
2987   **Note:** this may not point to a file that actually exists on the user's system.
2988 - [The minimum required external LLVM version has been bumped to LLVM 8.][71147]
2989 - [`mem::{zeroed, uninitialised}` will now panic when used with types that do
2990   not allow zero initialization such as `NonZeroU8`.][66059] This was
2991   previously a warning.
2992 - [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
2993   operator has been defined as a saturating operation.][71269] This was previously
2994   undefined behaviour, but you can use the `{f64, f32}::to_int_unchecked` methods to
2995   continue using the current behaviour, which may be desirable in rare performance
2996   sensitive situations.
2997
2998 Internal Only
2999 -------------
3000 These changes provide no direct user facing benefits, but represent significant
3001 improvements to the internals and overall performance of rustc and
3002 related tools.
3003
3004 - [dep_graph Avoid allocating a set on when the number reads are small.][69778]
3005 - [Replace big JS dict with JSON parsing.][71250]
3006
3007 [69373]: https://github.com/rust-lang/rust/pull/69373/
3008 [66059]: https://github.com/rust-lang/rust/pull/66059/
3009 [68191]: https://github.com/rust-lang/rust/pull/68191/
3010 [68899]: https://github.com/rust-lang/rust/pull/68899/
3011 [71147]: https://github.com/rust-lang/rust/pull/71147/
3012 [71250]: https://github.com/rust-lang/rust/pull/71250/
3013 [70937]: https://github.com/rust-lang/rust/pull/70937/
3014 [70969]: https://github.com/rust-lang/rust/pull/70969/
3015 [70632]: https://github.com/rust-lang/rust/pull/70632/
3016 [70281]: https://github.com/rust-lang/rust/pull/70281/
3017 [70345]: https://github.com/rust-lang/rust/pull/70345/
3018 [70048]: https://github.com/rust-lang/rust/pull/70048/
3019 [70081]: https://github.com/rust-lang/rust/pull/70081/
3020 [70156]: https://github.com/rust-lang/rust/pull/70156/
3021 [71269]: https://github.com/rust-lang/rust/pull/71269/
3022 [69838]: https://github.com/rust-lang/rust/pull/69838/
3023 [69929]: https://github.com/rust-lang/rust/pull/69929/
3024 [69661]: https://github.com/rust-lang/rust/pull/69661/
3025 [69778]: https://github.com/rust-lang/rust/pull/69778/
3026 [69494]: https://github.com/rust-lang/rust/pull/69494/
3027 [69403]: https://github.com/rust-lang/rust/pull/69403/
3028 [69033]: https://github.com/rust-lang/rust/pull/69033/
3029 [68692]: https://github.com/rust-lang/rust/pull/68692/
3030 [68334]: https://github.com/rust-lang/rust/pull/68334/
3031 [67502]: https://github.com/rust-lang/rust/pull/67502/
3032 [cargo/8062]: https://github.com/rust-lang/cargo/pull/8062/
3033 [`PathBuf::with_capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.with_capacity
3034 [`PathBuf::capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.capacity
3035 [`PathBuf::clear`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.clear
3036 [`PathBuf::reserve`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve
3037 [`PathBuf::reserve_exact`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve_exact
3038 [`PathBuf::shrink_to_fit`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.shrink_to_fit
3039 [`f32::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_int_unchecked
3040 [`f64::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_int_unchecked
3041 [`Layout::align_to`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.align_to
3042 [`Layout::pad_to_align`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.pad_to_align
3043 [`Layout::array`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.array
3044 [`Layout::extend`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.extend
3045
3046
3047 Version 1.43.1 (2020-05-07)
3048 ===========================
3049
3050 * [Updated openssl-src to 1.1.1g for CVE-2020-1967.][71430]
3051 * [Fixed the stabilization of AVX-512 features.][71473]
3052 * [Fixed `cargo package --list` not working with unpublished dependencies.][cargo/8151]
3053
3054 [71430]: https://github.com/rust-lang/rust/pull/71430
3055 [71473]: https://github.com/rust-lang/rust/issues/71473
3056 [cargo/8151]: https://github.com/rust-lang/cargo/issues/8151
3057
3058
3059 Version 1.43.0 (2020-04-23)
3060 ==========================
3061
3062 Language
3063 --------
3064 - [Fixed using binary operations with `&{number}` (e.g. `&1.0`) not having
3065   the type inferred correctly.][68129]
3066 - [Attributes such as `#[cfg()]` can now be used on `if` expressions.][69201]
3067
3068 **Syntax only changes**
3069 - [Allow `type Foo: Ord` syntactically.][69361]
3070 - [Fuse associated and extern items up to defaultness.][69194]
3071 - [Syntactically allow `self` in all `fn` contexts.][68764]
3072 - [Merge `fn` syntax + cleanup item parsing.][68728]
3073 - [`item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks.][69366]
3074   For example, you may now write:
3075   ```rust
3076   macro_rules! mac_trait {
3077       ($i:item) => {
3078           trait T { $i }
3079       }
3080   }
3081   mac_trait! {
3082       fn foo() {}
3083   }
3084   ```
3085
3086 These are still rejected *semantically*, so you will likely receive an error but
3087 these changes can be seen and parsed by macros and
3088 conditional compilation.
3089
3090
3091 Compiler
3092 --------
3093 - [You can now pass multiple lint flags to rustc to override the previous
3094   flags.][67885] For example; `rustc -D unused -A unused-variables` denies
3095   everything in the `unused` lint group except `unused-variables` which
3096   is explicitly allowed. However, passing `rustc -A unused-variables -D unused` denies
3097   everything in the `unused` lint group **including** `unused-variables` since
3098   the allow flag is specified before the deny flag (and therefore overridden).
3099 - [rustc will now prefer your system MinGW libraries over its bundled libraries
3100   if they are available on `windows-gnu`.][67429]
3101 - [rustc now buffers errors/warnings printed in JSON.][69227]
3102
3103 Libraries
3104 ---------
3105 - [`Arc<[T; N]>`, `Box<[T; N]>`, and `Rc<[T; N]>`, now implement
3106   `TryFrom<Arc<[T]>>`,`TryFrom<Box<[T]>>`, and `TryFrom<Rc<[T]>>`
3107   respectively.][69538] **Note** These conversions are only available when `N`
3108   is `0..=32`.
3109 - [You can now use associated constants on floats and integers directly, rather
3110   than having to import the module.][68952] e.g. You can now write `u32::MAX` or
3111   `f32::NAN` with no imports.
3112 - [`u8::is_ascii` is now `const`.][68984]
3113 - [`String` now implements `AsMut<str>`.][68742]
3114 - [Added the `primitive` module to `std` and `core`.][67637] This module
3115   reexports Rust's primitive types. This is mainly useful in macros
3116   where you want avoid these types being shadowed.
3117 - [Relaxed some of the trait bounds on `HashMap` and `HashSet`.][67642]
3118 - [`string::FromUtf8Error` now implements `Clone + Eq`.][68738]
3119
3120 Stabilized APIs
3121 ---------------
3122 - [`Once::is_completed`]
3123 - [`f32::LOG10_2`]
3124 - [`f32::LOG2_10`]
3125 - [`f64::LOG10_2`]
3126 - [`f64::LOG2_10`]
3127 - [`iter::once_with`]
3128
3129 Cargo
3130 -----
3131 - [You can now set config `[profile]`s in your `.cargo/config`, or through
3132   your environment.][cargo/7823]
3133 - [Cargo will now set `CARGO_BIN_EXE_<name>` pointing to a binary's
3134   executable path when running integration tests or benchmarks.][cargo/7697]
3135   `<name>` is the name of your binary as-is e.g. If you wanted the executable
3136   path for a binary named `my-program`you would use `env!("CARGO_BIN_EXE_my-program")`.
3137
3138 Misc
3139 ----
3140 - [Certain checks in the `const_err` lint were deemed unrelated to const
3141   evaluation][69185], and have been moved to the `unconditional_panic` and
3142   `arithmetic_overflow` lints.
3143
3144 Compatibility Notes
3145 -------------------
3146
3147 - [Having trailing syntax in the `assert!` macro is now a hard error.][69548] This
3148   has been a warning since 1.36.0.
3149 - [Fixed `Self` not having the correctly inferred type.][69340] This incorrectly
3150   led to some instances being accepted, and now correctly emits a hard error.
3151
3152 [69340]: https://github.com/rust-lang/rust/pull/69340
3153
3154 Internal Only
3155 -------------
3156 These changes provide no direct user facing benefits, but represent significant
3157 improvements to the internals and overall performance of `rustc` and
3158 related tools.
3159
3160 - [All components are now built with `opt-level=3` instead of `2`.][67878]
3161 - [Improved how rustc generates drop code.][67332]
3162 - [Improved performance from `#[inline]`-ing certain hot functions.][69256]
3163 - [traits: preallocate 2 Vecs of known initial size][69022]
3164 - [Avoid exponential behaviour when relating types][68772]
3165 - [Skip `Drop` terminators for enum variants without drop glue][68943]
3166 - [Improve performance of coherence checks][68966]
3167 - [Deduplicate types in the generator witness][68672]
3168 - [Invert control in struct_lint_level.][68725]
3169
3170 [67332]: https://github.com/rust-lang/rust/pull/67332/
3171 [67429]: https://github.com/rust-lang/rust/pull/67429/
3172 [67637]: https://github.com/rust-lang/rust/pull/67637/
3173 [67642]: https://github.com/rust-lang/rust/pull/67642/
3174 [67878]: https://github.com/rust-lang/rust/pull/67878/
3175 [67885]: https://github.com/rust-lang/rust/pull/67885/
3176 [68129]: https://github.com/rust-lang/rust/pull/68129/
3177 [68672]: https://github.com/rust-lang/rust/pull/68672/
3178 [68725]: https://github.com/rust-lang/rust/pull/68725/
3179 [68728]: https://github.com/rust-lang/rust/pull/68728/
3180 [68738]: https://github.com/rust-lang/rust/pull/68738/
3181 [68742]: https://github.com/rust-lang/rust/pull/68742/
3182 [68764]: https://github.com/rust-lang/rust/pull/68764/
3183 [68772]: https://github.com/rust-lang/rust/pull/68772/
3184 [68943]: https://github.com/rust-lang/rust/pull/68943/
3185 [68952]: https://github.com/rust-lang/rust/pull/68952/
3186 [68966]: https://github.com/rust-lang/rust/pull/68966/
3187 [68984]: https://github.com/rust-lang/rust/pull/68984/
3188 [69022]: https://github.com/rust-lang/rust/pull/69022/
3189 [69185]: https://github.com/rust-lang/rust/pull/69185/
3190 [69194]: https://github.com/rust-lang/rust/pull/69194/
3191 [69201]: https://github.com/rust-lang/rust/pull/69201/
3192 [69227]: https://github.com/rust-lang/rust/pull/69227/
3193 [69548]: https://github.com/rust-lang/rust/pull/69548/
3194 [69256]: https://github.com/rust-lang/rust/pull/69256/
3195 [69361]: https://github.com/rust-lang/rust/pull/69361/
3196 [69366]: https://github.com/rust-lang/rust/pull/69366/
3197 [69538]: https://github.com/rust-lang/rust/pull/69538/
3198 [cargo/7823]: https://github.com/rust-lang/cargo/pull/7823
3199 [cargo/7697]: https://github.com/rust-lang/cargo/pull/7697
3200 [`Once::is_completed`]: https://doc.rust-lang.org/std/sync/struct.Once.html#method.is_completed
3201 [`f32::LOG10_2`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG10_2.html
3202 [`f32::LOG2_10`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG2_10.html
3203 [`f64::LOG10_2`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG10_2.html
3204 [`f64::LOG2_10`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG2_10.html
3205 [`iter::once_with`]: https://doc.rust-lang.org/std/iter/fn.once_with.html
3206
3207
3208 Version 1.42.0 (2020-03-12)
3209 ==========================
3210
3211 Language
3212 --------
3213 - [You can now use the slice pattern syntax with subslices.][67712] e.g.
3214   ```rust
3215   fn foo(words: &[&str]) {
3216       match words {
3217           ["Hello", "World", "!", ..] => println!("Hello World!"),
3218           ["Foo", "Bar", ..] => println!("Baz"),
3219           rest => println!("{:?}", rest),
3220       }
3221   }
3222   ```
3223 - [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning
3224   that you can create an enum that has the exact layout and ABI of the type
3225   it contains.
3226 - [You can now use outer attribute procedural macros on inline modules.][64273]
3227 - [There are some *syntax-only* changes:][67131]
3228    - `default` is syntactically allowed before items in `trait` definitions.
3229    - Items in `impl`s (i.e. `const`s, `type`s, and `fn`s) may syntactically
3230      leave out their bodies in favor of `;`.
3231    - Bounds on associated types in `impl`s are now syntactically allowed
3232      (e.g. `type Foo: Ord;`).
3233    - `...` (the C-variadic type) may occur syntactically directly as the type of
3234       any function parameter.
3235
3236   These are still rejected *semantically*, so you will likely receive an error
3237   but these changes can be seen and parsed by procedural macros and
3238   conditional compilation.
3239
3240 Compiler
3241 --------
3242 - [Added tier 2\* support for `armv7a-none-eabi`.][68253]
3243 - [Added tier 2 support for `riscv64gc-unknown-linux-gnu`.][68339]
3244 - [`Option::{expect,unwrap}` and
3245    `Result::{expect, expect_err, unwrap, unwrap_err}` now produce panic messages
3246    pointing to the location where they were called, rather than
3247    `core`'s internals. ][67887]
3248
3249 \* Refer to Rust's [platform support page][platform-support-doc] for more
3250 information on Rust's tiered platform support.
3251
3252 Libraries
3253 ---------
3254 - [`iter::Empty<T>` now implements `Send` and `Sync` for any `T`.][68348]
3255 - [`Pin::{map_unchecked, map_unchecked_mut}` no longer require the return type
3256    to implement `Sized`.][67935]
3257 - [`io::Cursor` now derives `PartialEq` and `Eq`.][67233]
3258 - [`Layout::new` is now `const`.][66254]
3259 - [Added Standard Library support for `riscv64gc-unknown-linux-gnu`.][66899]
3260
3261
3262 Stabilized APIs
3263 ---------------
3264 - [`CondVar::wait_while`]
3265 - [`CondVar::wait_timeout_while`]
3266 - [`DebugMap::key`]
3267 - [`DebugMap::value`]
3268 - [`ManuallyDrop::take`]
3269 - [`matches!`]
3270 - [`ptr::slice_from_raw_parts_mut`]
3271 - [`ptr::slice_from_raw_parts`]
3272
3273 Cargo
3274 -----
3275 - [You no longer need to include `extern crate proc_macro;` to be able to
3276   `use proc_macro;` in the `2018` edition.][cargo/7700]
3277
3278 Compatibility Notes
3279 -------------------
3280 - [`Error::description` has been deprecated, and its use will now produce a
3281   warning.][66919] It's recommended to use `Display`/`to_string` instead.
3282
3283 [68253]: https://github.com/rust-lang/rust/pull/68253/
3284 [68348]: https://github.com/rust-lang/rust/pull/68348/
3285 [67935]: https://github.com/rust-lang/rust/pull/67935/
3286 [68339]: https://github.com/rust-lang/rust/pull/68339/
3287 [68122]: https://github.com/rust-lang/rust/pull/68122/
3288 [64273]: https://github.com/rust-lang/rust/pull/64273/
3289 [67712]: https://github.com/rust-lang/rust/pull/67712/
3290 [67887]: https://github.com/rust-lang/rust/pull/67887/
3291 [67131]: https://github.com/rust-lang/rust/pull/67131/
3292 [67233]: https://github.com/rust-lang/rust/pull/67233/
3293 [66899]: https://github.com/rust-lang/rust/pull/66899/
3294 [66919]: https://github.com/rust-lang/rust/pull/66919/
3295 [66254]: https://github.com/rust-lang/rust/pull/66254/
3296 [cargo/7700]: https://github.com/rust-lang/cargo/pull/7700
3297 [`DebugMap::key`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.key
3298 [`DebugMap::value`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.value
3299 [`ManuallyDrop::take`]: https://doc.rust-lang.org/stable/std/mem/struct.ManuallyDrop.html#method.take
3300 [`matches!`]: https://doc.rust-lang.org/stable/std/macro.matches.html
3301 [`ptr::slice_from_raw_parts_mut`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts_mut.html
3302 [`ptr::slice_from_raw_parts`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts.html
3303 [`CondVar::wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while
3304 [`CondVar::wait_timeout_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_timeout_while
3305
3306
3307 Version 1.41.1 (2020-02-27)
3308 ===========================
3309
3310 * [Always check types of static items][69145]
3311 * [Always check lifetime bounds of `Copy` impls][69145]
3312 * [Fix miscompilation in callers of `Layout::repeat`][69225]
3313
3314 [69225]: https://github.com/rust-lang/rust/issues/69225
3315 [69145]: https://github.com/rust-lang/rust/pull/69145
3316
3317
3318 Version 1.41.0 (2020-01-30)
3319 ===========================
3320
3321 Language
3322 --------
3323
3324 - [You can now pass type parameters to foreign items when implementing
3325   traits.][65879] E.g. You can now write `impl<T> From<Foo> for Vec<T> {}`.
3326 - [You can now arbitrarily nest receiver types in the `self` position.][64325] E.g. you can
3327   now write `fn foo(self: Box<Box<Self>>) {}`. Previously only `Self`, `&Self`,
3328   `&mut Self`, `Arc<Self>`, `Rc<Self>`, and `Box<Self>` were allowed.
3329 - [You can now use any valid identifier in a `format_args` macro.][66847]
3330   Previously identifiers starting with an underscore were not allowed.
3331 - [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
3332   enum variants.][66183] These are still rejected semantically, but
3333   can be seen and parsed by procedural macros and conditional compilation.
3334 - [You can now define a Rust `extern "C"` function with `Box<T>` and use `T*` as the corresponding
3335   type on the C side.][62514] Please see [the documentation][box-memory-layout] for more information,
3336   including the important caveat about preferring to avoid `Box<T>` in Rust signatures for functions defined in C.
3337
3338 [box-memory-layout]: https://doc.rust-lang.org/std/boxed/index.html#memory-layout
3339
3340 Compiler
3341 --------
3342
3343 - [Rustc will now warn if you have unused loop `'label`s.][66325]
3344 - [Removed support for the `i686-unknown-dragonfly` target.][67255]
3345 - [Added tier 3 support\* for the `riscv64gc-unknown-linux-gnu` target.][66661]
3346 - [You can now pass an arguments file passing the `@path` syntax
3347   to rustc.][66172] Note that the format differs somewhat from what is
3348   found in other tooling; please see [the documentation][argfile-docs] for
3349   more information.
3350 - [You can now provide `--extern` flag without a path, indicating that it is
3351   available from the search path or specified with an `-L` flag.][64882]
3352
3353 \* Refer to Rust's [platform support page][platform-support-doc] for more
3354 information on Rust's tiered platform support.
3355
3356 [argfile-docs]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#path-load-command-line-flags-from-a-path
3357
3358 Libraries
3359 ---------
3360
3361 - [The `core::panic` module is now stable.][66771] It was already stable
3362   through `std`.
3363 - [`NonZero*` numerics now implement `From<NonZero*>` if it's a smaller integer
3364   width.][66277] E.g. `NonZeroU16` now implements `From<NonZeroU8>`.
3365 - [`MaybeUninit<T>` now implements `fmt::Debug`.][65013]
3366
3367 Stabilized APIs
3368 ---------------
3369
3370 - [`Result::map_or`]
3371 - [`Result::map_or_else`]
3372 - [`std::rc::Weak::weak_count`]
3373 - [`std::rc::Weak::strong_count`]
3374 - [`std::sync::Weak::weak_count`]
3375 - [`std::sync::Weak::strong_count`]
3376
3377 Cargo
3378 -----
3379
3380 - [Cargo will now document all the private items for binary crates
3381   by default.][cargo/7593]
3382 - [`cargo-install` will now reinstall the package if it detects that it is out
3383   of date.][cargo/7560]
3384 - [Cargo.lock now uses a more git friendly format that should help to reduce
3385   merge conflicts.][cargo/7579]
3386 - [You can now override specific dependencies's build settings][cargo/7591] E.g.
3387   `[profile.dev.package.image] opt-level = 2` sets the `image` crate's
3388   optimisation level to `2` for debug builds. You can also use
3389   `[profile.<profile>.build-override]` to override build scripts and
3390   their dependencies.
3391
3392 Misc
3393 ----
3394
3395 - [You can now specify `edition` in documentation code blocks to compile the block
3396   for that edition.][66238] E.g. `edition2018` tells rustdoc that the code sample
3397   should be compiled the 2018 edition of Rust.
3398 - [You can now provide custom themes to rustdoc with `--theme`, and check the
3399   current theme with `--check-theme`.][54733]
3400 - [You can use `#[cfg(doc)]` to compile an item when building documentation.][61351]
3401
3402 Compatibility Notes
3403 -------------------
3404
3405 - [As previously announced 1.41.0 will be the last tier 1 release for 32-bit
3406   Apple targets.][apple-32bit-drop] This means that the source code is still
3407   available to build, but the targets are no longer being tested and release
3408   binaries for those platforms will no longer be distributed by the Rust project.
3409   Please refer to the linked blog post for more information.
3410
3411 [54733]: https://github.com/rust-lang/rust/pull/54733/
3412 [61351]: https://github.com/rust-lang/rust/pull/61351/
3413 [62514]: https://github.com/rust-lang/rust/pull/62514/
3414 [67255]: https://github.com/rust-lang/rust/pull/67255/
3415 [66661]: https://github.com/rust-lang/rust/pull/66661/
3416 [66771]: https://github.com/rust-lang/rust/pull/66771/
3417 [66847]: https://github.com/rust-lang/rust/pull/66847/
3418 [66238]: https://github.com/rust-lang/rust/pull/66238/
3419 [66277]: https://github.com/rust-lang/rust/pull/66277/
3420 [66325]: https://github.com/rust-lang/rust/pull/66325/
3421 [66172]: https://github.com/rust-lang/rust/pull/66172/
3422 [66183]: https://github.com/rust-lang/rust/pull/66183/
3423 [65879]: https://github.com/rust-lang/rust/pull/65879/
3424 [65013]: https://github.com/rust-lang/rust/pull/65013/
3425 [64882]: https://github.com/rust-lang/rust/pull/64882/
3426 [64325]: https://github.com/rust-lang/rust/pull/64325/
3427 [cargo/7560]: https://github.com/rust-lang/cargo/pull/7560/
3428 [cargo/7579]: https://github.com/rust-lang/cargo/pull/7579/
3429 [cargo/7591]: https://github.com/rust-lang/cargo/pull/7591/
3430 [cargo/7593]: https://github.com/rust-lang/cargo/pull/7593/
3431 [`Result::map_or_else`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or_else
3432 [`Result::map_or`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or
3433 [`std::rc::Weak::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.weak_count
3434 [`std::rc::Weak::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.strong_count
3435 [`std::sync::Weak::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.weak_count
3436 [`std::sync::Weak::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.strong_count
3437 [apple-32bit-drop]: https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html
3438
3439 Version 1.40.0 (2019-12-19)
3440 ===========================
3441
3442 Language
3443 --------
3444 - [You can now use tuple `struct`s and tuple `enum` variant's constructors in
3445   `const` contexts.][65188] e.g.
3446
3447   ```rust
3448   pub struct Point(i32, i32);
3449
3450   const ORIGIN: Point = {
3451       let constructor = Point;
3452
3453       constructor(0, 0)
3454   };
3455   ```
3456
3457 - [You can now mark `struct`s, `enum`s, and `enum` variants with the `#[non_exhaustive]` attribute to
3458   indicate that there may be variants or fields added in the future.][64639]
3459   For example this requires adding a wild-card branch (`_ => {}`) to any match
3460   statements on a non-exhaustive `enum`. [(RFC 2008)]
3461 - [You can now use function-like procedural macros in `extern` blocks and in
3462   type positions.][63931] e.g. `type Generated = macro!();`
3463 - [Function-like and attribute procedural macros can now emit
3464   `macro_rules!` items, so you can now have your macros generate macros.][64035]
3465 - [The `meta` pattern matcher in `macro_rules!` now correctly matches the modern
3466   attribute syntax.][63674] For example `(#[$m:meta])` now matches `#[attr]`,
3467   `#[attr{tokens}]`, `#[attr[tokens]]`, and `#[attr(tokens)]`.
3468
3469 Compiler
3470 --------
3471 - [Added tier 3 support\* for the
3472   `thumbv7neon-unknown-linux-musleabihf` target.][66103]
3473 - [Added tier 3 support for the
3474   `aarch64-unknown-none-softfloat` target.][64589]
3475 - [Added tier 3 support for the `mips64-unknown-linux-muslabi64`, and
3476   `mips64el-unknown-linux-muslabi64` targets.][65843]
3477
3478 \* Refer to Rust's [platform support page][platform-support-doc] for more
3479   information on Rust's tiered platform support.
3480
3481 Libraries
3482 ---------
3483 - [The `is_power_of_two` method on unsigned numeric types is now a `const` function.][65092]
3484
3485 Stabilized APIs
3486 ---------------
3487 - [`BTreeMap::get_key_value`]
3488 - [`HashMap::get_key_value`]
3489 - [`Option::as_deref_mut`]
3490 - [`Option::as_deref`]
3491 - [`Option::flatten`]
3492 - [`UdpSocket::peer_addr`]
3493 - [`f32::to_be_bytes`]
3494 - [`f32::to_le_bytes`]
3495 - [`f32::to_ne_bytes`]
3496 - [`f64::to_be_bytes`]
3497 - [`f64::to_le_bytes`]
3498 - [`f64::to_ne_bytes`]
3499 - [`f32::from_be_bytes`]
3500 - [`f32::from_le_bytes`]
3501 - [`f32::from_ne_bytes`]
3502 - [`f64::from_be_bytes`]
3503 - [`f64::from_le_bytes`]
3504 - [`f64::from_ne_bytes`]
3505 - [`mem::take`]
3506 - [`slice::repeat`]
3507 - [`todo!`]
3508
3509 Cargo
3510 -----
3511 - [Cargo will now always display warnings, rather than only on
3512   fresh builds.][cargo/7450]
3513 - [Feature flags (except `--all-features`) passed to a virtual workspace will
3514   now produce an error.][cargo/7507] Previously these flags were ignored.
3515 - [You can now publish `dev-dependencies` without including
3516   a `version`.][cargo/7333]
3517
3518 Misc
3519 ----
3520 - [You can now specify the `#[cfg(doctest)]` attribute to include an item only
3521   when running documentation tests with `rustdoc`.][63803]
3522
3523 Compatibility Notes
3524 -------------------
3525 - [As previously announced, any previous NLL warnings in the 2015 edition are
3526   now hard errors.][64221]
3527 - [The `include!` macro will now warn if it failed to include the
3528   entire file.][64284] The `include!` macro unintentionally only includes the
3529   first _expression_ in a file, and this can be unintuitive. This will become
3530   either a hard error in a future release, or the behavior may be fixed to include all expressions as expected.
3531 - [Using `#[inline]` on function prototypes and consts now emits a warning under
3532   `unused_attribute` lint.][65294] Using `#[inline]` anywhere else inside traits
3533   or `extern` blocks now correctly emits a hard error.
3534
3535 [65294]: https://github.com/rust-lang/rust/pull/65294/
3536 [66103]: https://github.com/rust-lang/rust/pull/66103/
3537 [65843]: https://github.com/rust-lang/rust/pull/65843/
3538 [65188]: https://github.com/rust-lang/rust/pull/65188/
3539 [65092]: https://github.com/rust-lang/rust/pull/65092/
3540 [64589]: https://github.com/rust-lang/rust/pull/64589/
3541 [64639]: https://github.com/rust-lang/rust/pull/64639/
3542 [64221]: https://github.com/rust-lang/rust/pull/64221/
3543 [64284]: https://github.com/rust-lang/rust/pull/64284/
3544 [63931]: https://github.com/rust-lang/rust/pull/63931/
3545 [64035]: https://github.com/rust-lang/rust/pull/64035/
3546 [63674]: https://github.com/rust-lang/rust/pull/63674/
3547 [63803]: https://github.com/rust-lang/rust/pull/63803/
3548 [cargo/7450]: https://github.com/rust-lang/cargo/pull/7450/
3549 [cargo/7507]: https://github.com/rust-lang/cargo/pull/7507/
3550 [cargo/7333]: https://github.com/rust-lang/cargo/pull/7333/
3551 [(rfc 2008)]: https://rust-lang.github.io/rfcs/2008-non-exhaustive.html
3552 [`f32::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_be_bytes
3553 [`f32::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_le_bytes
3554 [`f32::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_ne_bytes
3555 [`f64::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_be_bytes
3556 [`f64::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_le_bytes
3557 [`f64::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_ne_bytes
3558 [`f32::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_be_bytes
3559 [`f32::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_le_bytes
3560 [`f32::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_ne_bytes
3561 [`f64::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_be_bytes
3562 [`f64::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_le_bytes
3563 [`f64::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_ne_bytes
3564 [`option::flatten`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.flatten
3565 [`option::as_deref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref
3566 [`option::as_deref_mut`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref_mut
3567 [`hashmap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.get_key_value
3568 [`btreemap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.get_key_value
3569 [`slice::repeat`]: https://doc.rust-lang.org/std/primitive.slice.html#method.repeat
3570 [`mem::take`]: https://doc.rust-lang.org/std/mem/fn.take.html
3571 [`udpsocket::peer_addr`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peer_addr
3572 [`todo!`]: https://doc.rust-lang.org/std/macro.todo.html
3573
3574
3575 Version 1.39.0 (2019-11-07)
3576 ===========================
3577
3578 Language
3579 --------
3580 - [You can now create `async` functions and blocks with `async fn`, `async move {}`, and
3581   `async {}` respectively, and you can now call `.await` on async expressions.][63209]
3582 - [You can now use certain attributes on function, closure, and function pointer
3583   parameters.][64010] These attributes include `cfg`, `cfg_attr`, `allow`, `warn`,
3584   `deny`, `forbid` as well as inert helper attributes used by procedural macro
3585   attributes applied to items. e.g.
3586   ```rust
3587   fn len(
3588       #[cfg(windows)] slice: &[u16],
3589       #[cfg(not(windows))] slice: &[u8],
3590   ) -> usize {
3591       slice.len()
3592   }
3593   ```
3594 - [You can now take shared references to bind-by-move patterns in the `if` guards
3595   of `match` arms.][63118] e.g.
3596   ```rust
3597   fn main() {
3598       let array: Box<[u8; 4]> = Box::new([1, 2, 3, 4]);
3599
3600       match array {
3601           nums
3602   //      ---- `nums` is bound by move.
3603               if nums.iter().sum::<u8>() == 10
3604   //                 ^------ `.iter()` implicitly takes a reference to `nums`.
3605           => {
3606               drop(nums);
3607   //          ----------- Legal as `nums` was bound by move and so we have ownership.
3608           }
3609           _ => unreachable!(),
3610       }
3611   }
3612   ```
3613
3614
3615
3616 Compiler
3617 --------
3618 - [Added tier 3\* support for the `i686-unknown-uefi` target.][64334]
3619 - [Added tier 3 support for the `sparc64-unknown-openbsd` target.][63595]
3620 - [rustc will now trim code snippets in diagnostics to fit in your terminal.][63402]
3621   **Note** Cargo currently doesn't use this feature. Refer to
3622   [cargo#7315][cargo/7315] to track this feature's progress.
3623 - [You can now pass `--show-output` argument to test binaries to print the
3624   output of successful tests.][62600]
3625
3626
3627 \* Refer to Rust's [platform support page][platform-support-doc] for more
3628 information on Rust's tiered platform support.
3629
3630 Libraries
3631 ---------
3632 - [`Vec::new` and `String::new` are now `const` functions.][64028]
3633 - [`LinkedList::new` is now a `const` function.][63684]
3634 - [`str::len`, `[T]::len` and `str::as_bytes` are now `const` functions.][63770]
3635 - [The `abs`, `wrapping_abs`, and `overflowing_abs` numeric functions are
3636   now `const`.][63786]
3637
3638 Stabilized APIs
3639 ---------------
3640 - [`Pin::into_inner`]
3641 - [`Instant::checked_duration_since`]
3642 - [`Instant::saturating_duration_since`]
3643
3644 Cargo
3645 -----
3646 - [You can now publish git dependencies if supplied with a `version`.][cargo/7237]
3647 - [The `--all` flag has been renamed to `--workspace`.][cargo/7241] Using
3648   `--all` is now deprecated.
3649
3650 Misc
3651 ----
3652 - [You can now pass `-Clinker` to rustdoc to control the linker used
3653   for compiling doctests.][63834]
3654
3655 Compatibility Notes
3656 -------------------
3657 - [Code that was previously accepted by the old borrow checker, but rejected by
3658   the NLL borrow checker is now a hard error in Rust 2018.][63565] This was
3659   previously a warning, and will also become a hard error in the Rust 2015
3660   edition in the 1.40.0 release.
3661 - [`rustdoc` now requires `rustc` to be installed and in the same directory to
3662   run tests.][63827] This should improve performance when running a large
3663   amount of doctests.
3664 - [The `try!` macro will now issue a deprecation warning.][62672] It is
3665   recommended to use the `?` operator instead.
3666 - [`asinh(-0.0)` now correctly returns `-0.0`.][63698] Previously this
3667   returned `0.0`.
3668
3669 [62600]: https://github.com/rust-lang/rust/pull/62600/
3670 [62672]: https://github.com/rust-lang/rust/pull/62672/
3671 [63118]: https://github.com/rust-lang/rust/pull/63118/
3672 [63209]: https://github.com/rust-lang/rust/pull/63209/
3673 [63402]: https://github.com/rust-lang/rust/pull/63402/
3674 [63565]: https://github.com/rust-lang/rust/pull/63565/
3675 [63595]: https://github.com/rust-lang/rust/pull/63595/
3676 [63684]: https://github.com/rust-lang/rust/pull/63684/
3677 [63698]: https://github.com/rust-lang/rust/pull/63698/
3678 [63770]: https://github.com/rust-lang/rust/pull/63770/
3679 [63786]: https://github.com/rust-lang/rust/pull/63786/
3680 [63827]: https://github.com/rust-lang/rust/pull/63827/
3681 [63834]: https://github.com/rust-lang/rust/pull/63834/
3682 [64010]: https://github.com/rust-lang/rust/pull/64010/
3683 [64028]: https://github.com/rust-lang/rust/pull/64028/
3684 [64334]: https://github.com/rust-lang/rust/pull/64334/
3685 [cargo/7237]: https://github.com/rust-lang/cargo/pull/7237/
3686 [cargo/7241]: https://github.com/rust-lang/cargo/pull/7241/
3687 [cargo/7315]: https://github.com/rust-lang/cargo/pull/7315/
3688 [`Pin::into_inner`]: https://doc.rust-lang.org/std/pin/struct.Pin.html#method.into_inner
3689 [`Instant::checked_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_duration_since
3690 [`Instant::saturating_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.saturating_duration_since
3691
3692 Version 1.38.0 (2019-09-26)
3693 ==========================
3694
3695 Language
3696 --------
3697 - [The `#[global_allocator]` attribute can now be used in submodules.][62735]
3698 - [The `#[deprecated]` attribute can now be used on macros.][62042]
3699
3700 Compiler
3701 --------
3702 - [Added pipelined compilation support to `rustc`.][62766] This will
3703   improve compilation times in some cases. For further information please refer
3704   to the [_"Evaluating pipelined rustc compilation"_][pipeline-internals] thread.
3705 - [Added tier 3\* support for the `aarch64-uwp-windows-msvc`, `i686-uwp-windows-gnu`,
3706   `i686-uwp-windows-msvc`, `x86_64-uwp-windows-gnu`, and
3707   `x86_64-uwp-windows-msvc` targets.][60260]
3708 - [Added tier 3 support for the `armv7-unknown-linux-gnueabi` and
3709   `armv7-unknown-linux-musleabi` targets.][63107]
3710 - [Added tier 3 support for the `hexagon-unknown-linux-musl` target.][62814]
3711 - [Added tier 3 support for the `riscv32i-unknown-none-elf` target.][62784]
3712 - [Upgraded to LLVM 9.][62592]
3713
3714 \* Refer to Rust's [platform support page][platform-support-doc] for more
3715 information on Rust's tiered platform support.
3716
3717 Libraries
3718 ---------
3719 - [`ascii::EscapeDefault` now implements `Clone` and `Display`.][63421]
3720 - [Derive macros for prelude traits (e.g. `Clone`, `Debug`, `Hash`) are now
3721   available at the same path as the trait.][63056] (e.g. The `Clone` derive macro
3722   is available at `std::clone::Clone`). This also makes all built-in macros
3723   available in `std`/`core` root. e.g. `std::include_bytes!`.
3724 - [`str::Chars` now implements `Debug`.][63000]
3725 - [`slice::{concat, connect, join}` now accepts `&[T]` in addition to `&T`.][62528]
3726 - [`*const T` and `*mut T` now implement `marker::Unpin`.][62583]
3727 - [`Arc<[T]>` and `Rc<[T]>` now implement `FromIterator<T>`.][61953]
3728 - [Added euclidean remainder and division operations (`div_euclid`,
3729   `rem_euclid`) to all numeric primitives.][61884] Additionally `checked`,
3730   `overflowing`, and `wrapping` versions are available for all
3731   integer primitives.
3732 - [`thread::AccessError` now implements `Clone`, `Copy`, `Eq`, `Error`, and
3733   `PartialEq`.][61491]
3734 - [`iter::{StepBy, Peekable, Take}` now implement `DoubleEndedIterator`.][61457]
3735
3736 Stabilized APIs
3737 ---------------
3738 - [`<*const T>::cast`]
3739 - [`<*mut T>::cast`]
3740 - [`Duration::as_secs_f32`]
3741 - [`Duration::as_secs_f64`]
3742 - [`Duration::div_f32`]
3743 - [`Duration::div_f64`]
3744 - [`Duration::from_secs_f32`]
3745 - [`Duration::from_secs_f64`]
3746 - [`Duration::mul_f32`]
3747 - [`Duration::mul_f64`]
3748 - [`any::type_name`]
3749
3750 Cargo
3751 -----
3752 - [Added pipelined compilation support to `cargo`.][cargo/7143]
3753 - [You can now pass the `--features` option multiple times to enable
3754   multiple features.][cargo/7084]
3755
3756 Rustdoc
3757 -------
3758
3759 - [Documentation on `pub use` statements is prepended to the documentation of the re-exported item][63048]
3760
3761 Misc
3762 ----
3763 - [`rustc` will now warn about some incorrect uses of
3764   `mem::{uninitialized, zeroed}` that are known to cause undefined behaviour.][63346]
3765
3766 Compatibility Notes
3767 -------------------
3768 - The [`x86_64-unknown-uefi` platform can not be built][62785] with rustc
3769   1.38.0.
3770 - The [`armv7-unknown-linux-gnueabihf` platform is known to have
3771   issues][62896] with certain crates such as libc.
3772
3773 [60260]: https://github.com/rust-lang/rust/pull/60260/
3774 [61457]: https://github.com/rust-lang/rust/pull/61457/
3775 [61491]: https://github.com/rust-lang/rust/pull/61491/
3776 [61884]: https://github.com/rust-lang/rust/pull/61884/
3777 [61953]: https://github.com/rust-lang/rust/pull/61953/
3778 [62042]: https://github.com/rust-lang/rust/pull/62042/
3779 [62528]: https://github.com/rust-lang/rust/pull/62528/
3780 [62583]: https://github.com/rust-lang/rust/pull/62583/
3781 [62735]: https://github.com/rust-lang/rust/pull/62735/
3782 [62766]: https://github.com/rust-lang/rust/pull/62766/
3783 [62784]: https://github.com/rust-lang/rust/pull/62784/
3784 [62592]: https://github.com/rust-lang/rust/pull/62592/
3785 [62785]: https://github.com/rust-lang/rust/issues/62785/
3786 [62814]: https://github.com/rust-lang/rust/pull/62814/
3787 [62896]: https://github.com/rust-lang/rust/issues/62896/
3788 [63000]: https://github.com/rust-lang/rust/pull/63000/
3789 [63056]: https://github.com/rust-lang/rust/pull/63056/
3790 [63107]: https://github.com/rust-lang/rust/pull/63107/
3791 [63346]: https://github.com/rust-lang/rust/pull/63346/
3792 [63421]: https://github.com/rust-lang/rust/pull/63421/
3793 [cargo/7084]: https://github.com/rust-lang/cargo/pull/7084/
3794 [cargo/7143]: https://github.com/rust-lang/cargo/pull/7143/
3795 [63048]: https://github.com/rust-lang/rust/pull/63048
3796 [`<*const T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3797 [`<*mut T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3798 [`Duration::as_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f32
3799 [`Duration::as_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f64
3800 [`Duration::div_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f32
3801 [`Duration::div_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f64
3802 [`Duration::from_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f32
3803 [`Duration::from_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f64
3804 [`Duration::mul_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f32
3805 [`Duration::mul_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f64
3806 [`any::type_name`]: https://doc.rust-lang.org/std/any/fn.type_name.html
3807 [platform-support-doc]: https://doc.rust-lang.org/nightly/rustc/platform-support.html
3808 [pipeline-internals]: https://internals.rust-lang.org/t/evaluating-pipelined-rustc-compilation/10199
3809
3810 Version 1.37.0 (2019-08-15)
3811 ==========================
3812
3813 Language
3814 --------
3815 - `#[must_use]` will now warn if the type is contained in a [tuple][61100],
3816   [`Box`][62228], or an [array][62235] and unused.
3817 - [You can now use the `cfg` and `cfg_attr` attributes on
3818   generic parameters.][61547]
3819 - [You can now use enum variants through type alias.][61682] e.g. You can
3820   write the following:
3821   ```rust
3822   type MyOption = Option<u8>;
3823
3824   fn increment_or_zero(x: MyOption) -> u8 {
3825       match x {
3826           MyOption::Some(y) => y + 1,
3827           MyOption::None => 0,
3828       }
3829   }
3830   ```
3831 - [You can now use `_` as an identifier for consts.][61347] e.g. You can write
3832   `const _: u32 = 5;`.
3833 - [You can now use `#[repr(align(X)]` on enums.][61229]
3834 - [The  `?` Kleene macro operator is now available in the
3835   2015 edition.][60932]
3836
3837 Compiler
3838 --------
3839 - [You can now enable Profile-Guided Optimization with the `-C profile-generate`
3840   and `-C profile-use` flags.][61268] For more information on how to use profile
3841   guided optimization, please refer to the [rustc book][rustc-book-pgo].
3842 - [The `rust-lldb` wrapper script should now work again.][61827]
3843
3844 Libraries
3845 ---------
3846 - [`mem::MaybeUninit<T>` is now ABI-compatible with `T`.][61802]
3847
3848 Stabilized APIs
3849 ---------------
3850 - [`BufReader::buffer`]
3851 - [`BufWriter::buffer`]
3852 - [`Cell::from_mut`]
3853 - [`Cell<[T]>::as_slice_of_cells`][`Cell<slice>::as_slice_of_cells`]
3854 - [`DoubleEndedIterator::nth_back`]
3855 - [`Option::xor`]
3856 - [`Wrapping::reverse_bits`]
3857 - [`i128::reverse_bits`]
3858 - [`i16::reverse_bits`]
3859 - [`i32::reverse_bits`]
3860 - [`i64::reverse_bits`]
3861 - [`i8::reverse_bits`]
3862 - [`isize::reverse_bits`]
3863 - [`slice::copy_within`]
3864 - [`u128::reverse_bits`]
3865 - [`u16::reverse_bits`]
3866 - [`u32::reverse_bits`]
3867 - [`u64::reverse_bits`]
3868 - [`u8::reverse_bits`]
3869 - [`usize::reverse_bits`]
3870
3871 Cargo
3872 -----
3873 - [`Cargo.lock` files are now included by default when publishing executable crates
3874   with executables.][cargo/7026]
3875 - [You can now specify `default-run="foo"` in `[package]` to specify the
3876   default executable to use for `cargo run`.][cargo/7056]
3877
3878 Misc
3879 ----
3880
3881 Compatibility Notes
3882 -------------------
3883 - [Using `...` for inclusive range patterns will now warn by default.][61342]
3884   Please transition your code to using the `..=` syntax for inclusive
3885   ranges instead.
3886 - [Using a trait object without the `dyn` will now warn by default.][61203]
3887   Please transition your code to use `dyn Trait` for trait objects instead.
3888
3889 [62228]: https://github.com/rust-lang/rust/pull/62228/
3890 [62235]: https://github.com/rust-lang/rust/pull/62235/
3891 [61802]: https://github.com/rust-lang/rust/pull/61802/
3892 [61827]: https://github.com/rust-lang/rust/pull/61827/
3893 [61547]: https://github.com/rust-lang/rust/pull/61547/
3894 [61682]: https://github.com/rust-lang/rust/pull/61682/
3895 [61268]: https://github.com/rust-lang/rust/pull/61268/
3896 [61342]: https://github.com/rust-lang/rust/pull/61342/
3897 [61347]: https://github.com/rust-lang/rust/pull/61347/
3898 [61100]: https://github.com/rust-lang/rust/pull/61100/
3899 [61203]: https://github.com/rust-lang/rust/pull/61203/
3900 [61229]: https://github.com/rust-lang/rust/pull/61229/
3901 [60932]: https://github.com/rust-lang/rust/pull/60932/
3902 [cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/
3903 [cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/
3904 [`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer
3905 [`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer
3906 [`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut
3907 [`Cell<slice>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells
3908 [`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back
3909 [`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor
3910 [`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits
3911 [`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits
3912 [`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits
3913 [`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits
3914 [`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits
3915 [`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits
3916 [`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits
3917 [`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within
3918 [`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits
3919 [`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits
3920 [`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits
3921 [`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits
3922 [`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits
3923 [`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits
3924 [rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html
3925
3926
3927 Version 1.36.0 (2019-07-04)
3928 ==========================
3929
3930 Language
3931 --------
3932 - [Non-Lexical Lifetimes are now enabled on the 2015 edition.][59114]
3933 - [The order of traits in trait objects no longer affects the semantics of that
3934   object.][59445] e.g. `dyn Send + fmt::Debug` is now equivalent to
3935   `dyn fmt::Debug + Send`, where this was previously not the case.
3936
3937 Libraries
3938 ---------
3939 - [`HashMap`'s implementation has been replaced with `hashbrown::HashMap` implementation.][58623]
3940 - [`TryFromSliceError` now implements `From<Infallible>`.][60318]
3941 - [`mem::needs_drop` is now available as a const fn.][60364]
3942 - [`alloc::Layout::from_size_align_unchecked` is now available as a const fn.][60370]
3943 - [`String` now implements `BorrowMut<str>`.][60404]
3944 - [`io::Cursor` now implements `Default`.][60234]
3945 - [Both `NonNull::{dangling, cast}` are now const fns.][60244]
3946 - [The `alloc` crate is now stable.][59675] `alloc` allows you to use a subset
3947   of `std` (e.g. `Vec`, `Box`, `Arc`) in `#![no_std]` environments if the
3948   environment has access to heap memory allocation.
3949 - [`String` now implements `From<&String>`.][59825]
3950 - [You can now pass multiple arguments to the `dbg!` macro.][59826] `dbg!` will
3951   return a tuple of each argument when there is multiple arguments.
3952 - [`Result::{is_err, is_ok}` are now `#[must_use]` and will produce a warning if
3953   not used.][59648]
3954
3955 Stabilized APIs
3956 ---------------
3957 - [`VecDeque::rotate_left`]
3958 - [`VecDeque::rotate_right`]
3959 - [`Iterator::copied`]
3960 - [`io::IoSlice`]
3961 - [`io::IoSliceMut`]
3962 - [`Read::read_vectored`]
3963 - [`Write::write_vectored`]
3964 - [`str::as_mut_ptr`]
3965 - [`mem::MaybeUninit`]
3966 - [`pointer::align_offset`]
3967 - [`future::Future`]
3968 - [`task::Context`]
3969 - [`task::RawWaker`]
3970 - [`task::RawWakerVTable`]
3971 - [`task::Waker`]
3972 - [`task::Poll`]
3973
3974 Cargo
3975 -----
3976 - [Cargo will now produce an error if you attempt to use the name of a required dependency as a feature.][cargo/6860]
3977 - [You can now pass the `--offline` flag to run cargo without accessing the network.][cargo/6934]
3978
3979 You can find further change's in [Cargo's 1.36.0 release notes][cargo-1-36-0].
3980
3981 Clippy
3982 ------
3983 There have been numerous additions and fixes to clippy, see [Clippy's 1.36.0 release notes][clippy-1-36-0] for more details.
3984
3985 Misc
3986 ----
3987
3988 Compatibility Notes
3989 -------------------
3990 - With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no
3991   longer recommended, and will be deprecated in 1.39.0.
3992
3993 [60318]: https://github.com/rust-lang/rust/pull/60318/
3994 [60364]: https://github.com/rust-lang/rust/pull/60364/
3995 [60370]: https://github.com/rust-lang/rust/pull/60370/
3996 [60404]: https://github.com/rust-lang/rust/pull/60404/
3997 [60234]: https://github.com/rust-lang/rust/pull/60234/
3998 [60244]: https://github.com/rust-lang/rust/pull/60244/
3999 [58623]: https://github.com/rust-lang/rust/pull/58623/
4000 [59648]: https://github.com/rust-lang/rust/pull/59648/
4001 [59675]: https://github.com/rust-lang/rust/pull/59675/
4002 [59825]: https://github.com/rust-lang/rust/pull/59825/
4003 [59826]: https://github.com/rust-lang/rust/pull/59826/
4004 [59445]: https://github.com/rust-lang/rust/pull/59445/
4005 [59114]: https://github.com/rust-lang/rust/pull/59114/
4006 [cargo/6860]: https://github.com/rust-lang/cargo/pull/6860/
4007 [cargo/6934]: https://github.com/rust-lang/cargo/pull/6934/
4008 [`VecDeque::rotate_left`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_left
4009 [`VecDeque::rotate_right`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_right
4010 [`Iterator::copied`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#tymethod.copied
4011 [`io::IoSlice`]: https://doc.rust-lang.org/std/io/struct.IoSlice.html
4012 [`io::IoSliceMut`]: https://doc.rust-lang.org/std/io/struct.IoSliceMut.html
4013 [`Read::read_vectored`]: https://doc.rust-lang.org/std/io/trait.Read.html#method.read_vectored
4014 [`Write::write_vectored`]: https://doc.rust-lang.org/std/io/trait.Write.html#method.write_vectored
4015 [`str::as_mut_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_mut_ptr
4016 [`mem::MaybeUninit`]: https://doc.rust-lang.org/std/mem/union.MaybeUninit.html
4017 [`pointer::align_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.align_offset
4018 [`future::Future`]: https://doc.rust-lang.org/std/future/trait.Future.html
4019 [`task::Context`]: https://doc.rust-lang.org/beta/std/task/struct.Context.html
4020 [`task::RawWaker`]: https://doc.rust-lang.org/beta/std/task/struct.RawWaker.html
4021 [`task::RawWakerVTable`]: https://doc.rust-lang.org/beta/std/task/struct.RawWakerVTable.html
4022 [`task::Waker`]: https://doc.rust-lang.org/beta/std/task/struct.Waker.html
4023 [`task::Poll`]: https://doc.rust-lang.org/beta/std/task/enum.Poll.html
4024 [clippy-1-36-0]: https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-136
4025 [cargo-1-36-0]: https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-136-2019-07-04
4026
4027
4028 Version 1.35.0 (2019-05-23)
4029 ==========================
4030
4031 Language
4032 --------
4033 - [`FnOnce`, `FnMut`, and the `Fn` traits are now implemented for `Box<FnOnce>`,
4034   `Box<FnMut>`, and `Box<Fn>` respectively.][59500]
4035 - [You can now coerce closures into unsafe function pointers.][59580] e.g.
4036   ```rust
4037   unsafe fn call_unsafe(func: unsafe fn()) {
4038       func()
4039   }
4040
4041   pub fn main() {
4042       unsafe { call_unsafe(|| {}); }
4043   }
4044   ```
4045
4046
4047 Compiler
4048 --------
4049 - [Added the `armv6-unknown-freebsd-gnueabihf` and
4050   `armv7-unknown-freebsd-gnueabihf` targets.][58080]
4051 - [Added the `wasm32-unknown-wasi` target.][59464]
4052
4053
4054 Libraries
4055 ---------
4056 - [`Thread` will now show its ID in `Debug` output.][59460]
4057 - [`StdinLock`, `StdoutLock`, and `StderrLock` now implement `AsRawFd`.][59512]
4058 - [`alloc::System` now implements `Default`.][59451]
4059 - [Expanded `Debug` output (`{:#?}`) for structs now has a trailing comma on the
4060   last field.][59076]
4061 - [`char::{ToLowercase, ToUppercase}` now
4062   implement `ExactSizeIterator`.][58778]
4063 - [All `NonZero` numeric types now implement `FromStr`.][58717]
4064 - [Removed the `Read` trait bounds
4065   on the `BufReader::{get_ref, get_mut, into_inner}` methods.][58423]
4066 - [You can now call the `dbg!` macro without any parameters to print the file
4067   and line where it is called.][57847]
4068 - [In place ASCII case conversions are now up to 4× faster.][59283]
4069   e.g. `str::make_ascii_lowercase`
4070 - [`hash_map::{OccupiedEntry, VacantEntry}` now implement `Sync`
4071   and `Send`.][58369]
4072
4073 Stabilized APIs
4074 ---------------
4075 - [`f32::copysign`]
4076 - [`f64::copysign`]
4077 - [`RefCell::replace_with`]
4078 - [`RefCell::map_split`]
4079 - [`ptr::hash`]
4080 - [`Range::contains`]
4081 - [`RangeFrom::contains`]
4082 - [`RangeTo::contains`]
4083 - [`RangeInclusive::contains`]
4084 - [`RangeToInclusive::contains`]
4085 - [`Option::copied`]
4086
4087 Cargo
4088 -----
4089 - [You can now set `cargo:rustc-cdylib-link-arg` at build time to pass custom
4090   linker arguments when building a `cdylib`.][cargo/6298] Its usage is highly
4091   platform specific.
4092
4093 Misc
4094 ----
4095 - [The Rust toolchain is now available natively for musl based distros.][58575]
4096
4097 [59460]: https://github.com/rust-lang/rust/pull/59460/
4098 [59464]: https://github.com/rust-lang/rust/pull/59464/
4099 [59500]: https://github.com/rust-lang/rust/pull/59500/
4100 [59512]: https://github.com/rust-lang/rust/pull/59512/
4101 [59580]: https://github.com/rust-lang/rust/pull/59580/
4102 [59283]: https://github.com/rust-lang/rust/pull/59283/
4103 [59451]: https://github.com/rust-lang/rust/pull/59451/
4104 [59076]: https://github.com/rust-lang/rust/pull/59076/
4105 [58778]: https://github.com/rust-lang/rust/pull/58778/
4106 [58717]: https://github.com/rust-lang/rust/pull/58717/
4107 [58369]: https://github.com/rust-lang/rust/pull/58369/
4108 [58423]: https://github.com/rust-lang/rust/pull/58423/
4109 [58080]: https://github.com/rust-lang/rust/pull/58080/
4110 [57847]: https://github.com/rust-lang/rust/pull/57847/
4111 [58575]: https://github.com/rust-lang/rust/pull/58575
4112 [cargo/6298]: https://github.com/rust-lang/cargo/pull/6298/
4113 [`f32::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.copysign
4114 [`f64::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.copysign
4115 [`RefCell::replace_with`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.replace_with
4116 [`RefCell::map_split`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.map_split
4117 [`ptr::hash`]: https://doc.rust-lang.org/stable/std/ptr/fn.hash.html
4118 [`Range::contains`]: https://doc.rust-lang.org/std/ops/struct.Range.html#method.contains
4119 [`RangeFrom::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeFrom.html#method.contains
4120 [`RangeTo::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeTo.html#method.contains
4121 [`RangeInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.contains
4122 [`RangeToInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html#method.contains
4123 [`Option::copied`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.copied
4124
4125 Version 1.34.2 (2019-05-14)
4126 ===========================
4127
4128 * [Destabilize the `Error::type_id` function due to a security
4129    vulnerability][60785] ([CVE-2019-12083])
4130
4131 [60785]: https://github.com/rust-lang/rust/pull/60785
4132 [CVE-2019-12083]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12083
4133
4134 Version 1.34.1 (2019-04-25)
4135 ===========================
4136
4137 * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821]
4138 * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844]
4139 * [Fix Clippy panic when checking some macros][clippy/3805]
4140
4141 [clippy/3821]: https://github.com/rust-lang/rust-clippy/pull/3821
4142 [clippy/3844]: https://github.com/rust-lang/rust-clippy/pull/3844
4143 [clippy/3805]: https://github.com/rust-lang/rust-clippy/pull/3805
4144
4145 Version 1.34.0 (2019-04-11)
4146 ==========================
4147
4148 Language
4149 --------
4150 - [You can now use `#[deprecated = "reason"]`][58166] as a shorthand for
4151   `#[deprecated(note = "reason")]`. This was previously allowed by mistake
4152   but had no effect.
4153 - [You can now accept token streams in `#[attr()]`,`#[attr[]]`, and
4154   `#[attr{}]` procedural macros.][57367]
4155 - [You can now write `extern crate self as foo;`][57407] to import your
4156   crate's root into the extern prelude.
4157
4158
4159 Compiler
4160 --------
4161 - [You can now target `riscv64imac-unknown-none-elf` and
4162   `riscv64gc-unknown-none-elf`.][58406]
4163 - [You can now enable linker plugin LTO optimisations with
4164   `-C linker-plugin-lto`.][58057] This allows rustc to compile your Rust code
4165   into LLVM bitcode allowing LLVM to perform LTO optimisations across C/C++ FFI
4166   boundaries.
4167 - [You can now target `powerpc64-unknown-freebsd`.][57809]
4168
4169
4170 Libraries
4171 ---------
4172 - [The trait bounds have been removed on some of `HashMap<K, V, S>`'s and
4173   `HashSet<T, S>`'s basic methods.][58370] Most notably you no longer require
4174   the `Hash` trait to create an iterator.
4175 - [The `Ord` trait bounds have been removed on some of `BinaryHeap<T>`'s basic
4176   methods.][58421] Most notably you no longer require the `Ord` trait to create
4177   an iterator.
4178 - [The methods `overflowing_neg` and `wrapping_neg` are now `const` functions
4179   for all numeric types.][58044]
4180 - [Indexing a `str` is now generic over all types that
4181   implement `SliceIndex<str>`.][57604]
4182 - [`str::trim`, `str::trim_matches`, `str::trim_{start, end}`, and
4183   `str::trim_{start, end}_matches` are now `#[must_use]`][57106] and will
4184   produce a warning if their returning type is unused.
4185 - [The methods `checked_pow`, `saturating_pow`, `wrapping_pow`, and
4186   `overflowing_pow` are now available for all numeric types.][57873] These are
4187   equivalent to methods such as `wrapping_add` for the `pow` operation.
4188
4189
4190 Stabilized APIs
4191 ---------------
4192
4193 #### std & core
4194 * [`Any::type_id`]
4195 * [`Error::type_id`]
4196 * [`atomic::AtomicI16`]
4197 * [`atomic::AtomicI32`]
4198 * [`atomic::AtomicI64`]
4199 * [`atomic::AtomicI8`]
4200 * [`atomic::AtomicU16`]
4201 * [`atomic::AtomicU32`]
4202 * [`atomic::AtomicU64`]
4203 * [`atomic::AtomicU8`]
4204 * [`convert::Infallible`]
4205 * [`convert::TryFrom`]
4206 * [`convert::TryInto`]
4207 * [`iter::from_fn`]
4208 * [`iter::successors`]
4209 * [`num::NonZeroI128`]
4210 * [`num::NonZeroI16`]
4211 * [`num::NonZeroI32`]
4212 * [`num::NonZeroI64`]
4213 * [`num::NonZeroI8`]
4214 * [`num::NonZeroIsize`]
4215 * [`slice::sort_by_cached_key`]
4216 * [`str::escape_debug`]
4217 * [`str::escape_default`]
4218 * [`str::escape_unicode`]
4219 * [`str::split_ascii_whitespace`]
4220
4221 #### std
4222 * [`Instant::checked_add`]
4223 * [`Instant::checked_sub`]
4224 * [`SystemTime::checked_add`]
4225 * [`SystemTime::checked_sub`]
4226
4227 Cargo
4228 -----
4229 - [You can now use alternative registries to crates.io.][cargo/6654]
4230
4231 Misc
4232 ----
4233 - [You can now use the `?` operator in your documentation tests without manually
4234   adding `fn main() -> Result<(), _> {}`.][56470]
4235
4236 Compatibility Notes
4237 -------------------
4238 - [`Command::before_exec` is being replaced by the unsafe method
4239   `Command::pre_exec`][58059] and will be deprecated with Rust 1.37.0.
4240 - [Use of `ATOMIC_{BOOL, ISIZE, USIZE}_INIT` is now deprecated][57425] as you
4241   can now use `const` functions in `static` variables.
4242
4243 [58370]: https://github.com/rust-lang/rust/pull/58370/
4244 [58406]: https://github.com/rust-lang/rust/pull/58406/
4245 [58421]: https://github.com/rust-lang/rust/pull/58421/
4246 [58166]: https://github.com/rust-lang/rust/pull/58166/
4247 [58044]: https://github.com/rust-lang/rust/pull/58044/
4248 [58057]: https://github.com/rust-lang/rust/pull/58057/
4249 [58059]: https://github.com/rust-lang/rust/pull/58059/
4250 [57809]: https://github.com/rust-lang/rust/pull/57809/
4251 [57873]: https://github.com/rust-lang/rust/pull/57873/
4252 [57604]: https://github.com/rust-lang/rust/pull/57604/
4253 [57367]: https://github.com/rust-lang/rust/pull/57367/
4254 [57407]: https://github.com/rust-lang/rust/pull/57407/
4255 [57425]: https://github.com/rust-lang/rust/pull/57425/
4256 [57106]: https://github.com/rust-lang/rust/pull/57106/
4257 [56470]: https://github.com/rust-lang/rust/pull/56470/
4258 [cargo/6654]: https://github.com/rust-lang/cargo/pull/6654/
4259 [`Any::type_id`]: https://doc.rust-lang.org/std/any/trait.Any.html#tymethod.type_id
4260 [`Error::type_id`]: https://doc.rust-lang.org/std/error/trait.Error.html#method.type_id
4261 [`atomic::AtomicI16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI16.html
4262 [`atomic::AtomicI32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI32.html
4263 [`atomic::AtomicI64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI64.html
4264 [`atomic::AtomicI8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI8.html
4265 [`atomic::AtomicU16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU16.html
4266 [`atomic::AtomicU32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU32.html
4267 [`atomic::AtomicU64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html
4268 [`atomic::AtomicU8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html
4269 [`convert::Infallible`]: https://doc.rust-lang.org/std/convert/enum.Infallible.html
4270 [`convert::TryFrom`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html
4271 [`convert::TryInto`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html
4272 [`iter::from_fn`]: https://doc.rust-lang.org/std/iter/fn.from_fn.html
4273 [`iter::successors`]: https://doc.rust-lang.org/std/iter/fn.successors.html
4274 [`num::NonZeroI128`]: https://doc.rust-lang.org/std/num/struct.NonZeroI128.html
4275 [`num::NonZeroI16`]: https://doc.rust-lang.org/std/num/struct.NonZeroI16.html
4276 [`num::NonZeroI32`]: https://doc.rust-lang.org/std/num/struct.NonZeroI32.html
4277 [`num::NonZeroI64`]: https://doc.rust-lang.org/std/num/struct.NonZeroI64.html
4278 [`num::NonZeroI8`]: https://doc.rust-lang.org/std/num/struct.NonZeroI8.html
4279 [`num::NonZeroIsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroIsize.html
4280 [`slice::sort_by_cached_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key
4281 [`str::escape_debug`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_debug
4282 [`str::escape_default`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_default
4283 [`str::escape_unicode`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_unicode
4284 [`str::split_ascii_whitespace`]: https://doc.rust-lang.org/std/primitive.str.html#method.split_ascii_whitespace
4285 [`Instant::checked_add`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_add
4286 [`Instant::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_sub
4287 [`SystemTime::checked_add`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_add
4288 [`SystemTime::checked_sub`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_sub
4289
4290
4291 Version 1.33.0 (2019-02-28)
4292 ==========================
4293
4294 Language
4295 --------
4296 - [You can now use the `cfg(target_vendor)` attribute.][57465] E.g.
4297   `#[cfg(target_vendor="apple")] fn main() { println!("Hello Apple!"); }`
4298 - [Integer patterns such as in a match expression can now be exhaustive.][56362]
4299   E.g. You can have match statement on a `u8` that covers `0..=255` and
4300   you would no longer be required to have a `_ => unreachable!()` case.
4301 - [You can now have multiple patterns in `if let` and `while let`
4302   expressions.][57532] You can do this with the same syntax as a `match`
4303   expression. E.g.
4304   ```rust
4305   enum Creature {
4306       Crab(String),
4307       Lobster(String),
4308       Person(String),
4309   }
4310
4311   fn main() {
4312       let state = Creature::Crab("Ferris");
4313
4314       if let Creature::Crab(name) | Creature::Person(name) = state {
4315           println!("This creature's name is: {}", name);
4316       }
4317   }
4318   ```
4319 - [You can now have irrefutable `if let` and `while let` patterns.][57535] Using
4320   this feature will by default produce a warning as this behaviour can be
4321   unintuitive. E.g. `if let _ = 5 {}`
4322 - [You can now use `let` bindings, assignments, expression statements,
4323   and irrefutable pattern destructuring in const functions.][57175]
4324 - [You can now call unsafe const functions.][57067] E.g.
4325   ```rust
4326   const unsafe fn foo() -> i32 { 5 }
4327   const fn bar() -> i32 {
4328       unsafe { foo() }
4329   }
4330   ```
4331 - [You can now specify multiple attributes in a `cfg_attr` attribute.][57332]
4332   E.g. `#[cfg_attr(all(), must_use, optimize)]`
4333 - [You can now specify a specific alignment with the `#[repr(packed)]`
4334   attribute.][57049] E.g. `#[repr(packed(2))] struct Foo(i16, i32);` is a struct
4335   with an alignment of 2 bytes and a size of 6 bytes.
4336 - [You can now import an item from a module as an `_`.][56303] This allows you to
4337   import a trait's impls, and not have the name in the namespace. E.g.
4338   ```rust
4339   use std::io::Read as _;
4340
4341   // Allowed as there is only one `Read` in the module.
4342   pub trait Read {}
4343   ```
4344 - [You may now use `Rc`, `Arc`, and `Pin` as method receivers][56805].
4345
4346 Compiler
4347 --------
4348 - [You can now set a linker flavor for `rustc` with the `-Clinker-flavor`
4349   command line argument.][56351]
4350 - [The minimum required LLVM version has been bumped to 6.0.][56642]
4351 - [Added support for the PowerPC64 architecture on FreeBSD.][57615]
4352 - [The `x86_64-fortanix-unknown-sgx` target support has been upgraded to
4353   tier 2 support.][57130] Visit the [platform support][platform-support] page for
4354   information on Rust's platform support.
4355 - [Added support for the `thumbv7neon-linux-androideabi` and
4356   `thumbv7neon-unknown-linux-gnueabihf` targets.][56947]
4357 - [Added support for the `x86_64-unknown-uefi` target.][56769]
4358
4359 Libraries
4360 ---------
4361 - [The methods `overflowing_{add, sub, mul, shl, shr}` are now `const`
4362   functions for all numeric types.][57566]
4363 - [The methods `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
4364   are now `const` functions for all numeric types.][57105]
4365 - [The methods `is_positive` and `is_negative` are now `const` functions for
4366   all signed numeric types.][57105]
4367 - [The `get` method for all `NonZero` types is now `const`.][57167]
4368 - [The methods `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
4369   `swap_bytes`, `from_be`, `from_le`, `to_be`, `to_le` are now `const` for all
4370   numeric types.][57234]
4371 - [`Ipv4Addr::new` is now a `const` function][57234]
4372
4373 Stabilized APIs
4374 ---------------
4375 - [`unix::FileExt::read_exact_at`]
4376 - [`unix::FileExt::write_all_at`]
4377 - [`Option::transpose`]
4378 - [`Result::transpose`]
4379 - [`convert::identity`]
4380 - [`pin::Pin`]
4381 - [`marker::Unpin`]
4382 - [`marker::PhantomPinned`]
4383 - [`Vec::resize_with`]
4384 - [`VecDeque::resize_with`]
4385 - [`Duration::as_millis`]
4386 - [`Duration::as_micros`]
4387 - [`Duration::as_nanos`]
4388
4389
4390 Cargo
4391 -----
4392 - [You can now publish crates that require a feature flag to compile with
4393   `cargo publish --features` or `cargo publish --all-features`.][cargo/6453]
4394 - [Cargo should now rebuild a crate if a file was modified during the initial
4395   build.][cargo/6484]
4396
4397 Compatibility Notes
4398 -------------------
4399 - The methods `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
4400   are now deprecated in the standard library, and their usage will now produce a warning.
4401   Please use the `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}`
4402   methods instead.
4403 - The `Error::cause` method has been deprecated in favor of `Error::source` which supports
4404   downcasting.
4405 - [Libtest no longer creates a new thread for each test when
4406   `--test-threads=1`.  It also runs the tests in deterministic order][56243]
4407
4408 [56243]: https://github.com/rust-lang/rust/pull/56243
4409 [56303]: https://github.com/rust-lang/rust/pull/56303/
4410 [56351]: https://github.com/rust-lang/rust/pull/56351/
4411 [56362]: https://github.com/rust-lang/rust/pull/56362
4412 [56642]: https://github.com/rust-lang/rust/pull/56642/
4413 [56769]: https://github.com/rust-lang/rust/pull/56769/
4414 [56805]: https://github.com/rust-lang/rust/pull/56805
4415 [56947]: https://github.com/rust-lang/rust/pull/56947/
4416 [57049]: https://github.com/rust-lang/rust/pull/57049/
4417 [57067]: https://github.com/rust-lang/rust/pull/57067/
4418 [57105]: https://github.com/rust-lang/rust/pull/57105
4419 [57130]: https://github.com/rust-lang/rust/pull/57130/
4420 [57167]: https://github.com/rust-lang/rust/pull/57167/
4421 [57175]: https://github.com/rust-lang/rust/pull/57175/
4422 [57234]: https://github.com/rust-lang/rust/pull/57234/
4423 [57332]: https://github.com/rust-lang/rust/pull/57332/
4424 [57465]: https://github.com/rust-lang/rust/pull/57465/
4425 [57532]: https://github.com/rust-lang/rust/pull/57532/
4426 [57535]: https://github.com/rust-lang/rust/pull/57535/
4427 [57566]: https://github.com/rust-lang/rust/pull/57566/
4428 [57615]: https://github.com/rust-lang/rust/pull/57615/
4429 [cargo/6453]: https://github.com/rust-lang/cargo/pull/6453/
4430 [cargo/6484]: https://github.com/rust-lang/cargo/pull/6484/
4431 [`unix::FileExt::read_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
4432 [`unix::FileExt::write_all_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
4433 [`Option::transpose`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.transpose
4434 [`Result::transpose`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
4435 [`convert::identity`]: https://doc.rust-lang.org/std/convert/fn.identity.html
4436 [`pin::Pin`]: https://doc.rust-lang.org/std/pin/struct.Pin.html
4437 [`marker::Unpin`]: https://doc.rust-lang.org/stable/std/marker/trait.Unpin.html
4438 [`marker::PhantomPinned`]: https://doc.rust-lang.org/nightly/std/marker/struct.PhantomPinned.html
4439 [`Vec::resize_with`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize_with
4440 [`VecDeque::resize_with`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.resize_with
4441 [`Duration::as_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis
4442 [`Duration::as_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_micros
4443 [`Duration::as_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_nanos
4444 [platform-support]: https://forge.rust-lang.org/platform-support.html
4445
4446 Version 1.32.0 (2019-01-17)
4447 ==========================
4448
4449 Language
4450 --------
4451 #### 2018 edition
4452 - [You can now use the `?` operator in macro definitions.][56245] The `?`
4453   operator allows you to specify zero or one repetitions similar to the `*` and
4454   `+` operators.
4455 - [Module paths with no leading keyword like `super`, `self`, or `crate`, will
4456   now always resolve to the item (`enum`, `struct`, etc.) available in the
4457   module if present, before resolving to a external crate or an item the prelude.][56759]
4458   E.g.
4459   ```rust
4460   enum Color { Red, Green, Blue }
4461
4462   use Color::*;
4463   ```
4464
4465 #### All editions
4466 - [You can now match against `PhantomData<T>` types.][55837]
4467 - [You can now match against literals in macros with the `literal`
4468   specifier.][56072] This will match against a literal of any type.
4469   E.g. `1`, `'A'`, `"Hello World"`
4470 - [Self can now be used as a constructor and pattern for unit and tuple structs.][56365] E.g.
4471   ```rust
4472   struct Point(i32, i32);
4473
4474   impl Point {
4475       pub fn new(x: i32, y: i32) -> Self {
4476           Self(x, y)
4477       }
4478
4479       pub fn is_origin(&self) -> bool {
4480           match self {
4481               Self(0, 0) => true,
4482               _ => false,
4483           }
4484       }
4485   }
4486   ```
4487 - [Self can also now be used in type definitions.][56366] E.g.
4488   ```rust
4489   enum List<T>
4490   where
4491       Self: PartialOrd<Self> // can write `Self` instead of `List<T>`
4492   {
4493       Nil,
4494       Cons(T, Box<Self>) // likewise here
4495   }
4496   ```
4497 - [You can now mark traits with `#[must_use]`.][55663] This provides a warning if
4498   a `impl Trait` or `dyn Trait` is returned and unused in the program.
4499
4500 Compiler
4501 --------
4502 - [The default allocator has changed from jemalloc to the default allocator on
4503   your system.][55238] The compiler itself on Linux & macOS will still use
4504   jemalloc, but programs compiled with it will use the system allocator.
4505 - [Added the `aarch64-pc-windows-msvc` target.][55702]
4506
4507 Libraries
4508 ---------
4509 - [`PathBuf` now implements `FromStr`.][55148]
4510 - [`Box<[T]>` now implements `FromIterator<T>`.][55843]
4511 - [The `dbg!` macro has been stabilized.][56395] This macro enables you to
4512   easily debug expressions in your rust program. E.g.
4513   ```rust
4514   let a = 2;
4515   let b = dbg!(a * 2) + 1;
4516   //      ^-- prints: [src/main.rs:4] a * 2 = 4
4517   assert_eq!(b, 5);
4518   ```
4519
4520 The following APIs are now `const` functions and can be used in a
4521 `const` context.
4522
4523 - [`Cell::as_ptr`]
4524 - [`UnsafeCell::get`]
4525 - [`char::is_ascii`]
4526 - [`iter::empty`]
4527 - [`ManuallyDrop::new`]
4528 - [`ManuallyDrop::into_inner`]
4529 - [`RangeInclusive::start`]
4530 - [`RangeInclusive::end`]
4531 - [`NonNull::as_ptr`]
4532 - [`slice::as_ptr`]
4533 - [`str::as_ptr`]
4534 - [`Duration::as_secs`]
4535 - [`Duration::subsec_millis`]
4536 - [`Duration::subsec_micros`]
4537 - [`Duration::subsec_nanos`]
4538 - [`CStr::as_ptr`]
4539 - [`Ipv4Addr::is_unspecified`]
4540 - [`Ipv6Addr::new`]
4541 - [`Ipv6Addr::octets`]
4542
4543 Stabilized APIs
4544 ---------------
4545 - [`i8::to_be_bytes`]
4546 - [`i8::to_le_bytes`]
4547 - [`i8::to_ne_bytes`]
4548 - [`i8::from_be_bytes`]
4549 - [`i8::from_le_bytes`]
4550 - [`i8::from_ne_bytes`]
4551 - [`i16::to_be_bytes`]
4552 - [`i16::to_le_bytes`]
4553 - [`i16::to_ne_bytes`]
4554 - [`i16::from_be_bytes`]
4555 - [`i16::from_le_bytes`]
4556 - [`i16::from_ne_bytes`]
4557 - [`i32::to_be_bytes`]
4558 - [`i32::to_le_bytes`]
4559 - [`i32::to_ne_bytes`]
4560 - [`i32::from_be_bytes`]
4561 - [`i32::from_le_bytes`]
4562 - [`i32::from_ne_bytes`]
4563 - [`i64::to_be_bytes`]
4564 - [`i64::to_le_bytes`]
4565 - [`i64::to_ne_bytes`]
4566 - [`i64::from_be_bytes`]
4567 - [`i64::from_le_bytes`]
4568 - [`i64::from_ne_bytes`]
4569 - [`i128::to_be_bytes`]
4570 - [`i128::to_le_bytes`]
4571 - [`i128::to_ne_bytes`]
4572 - [`i128::from_be_bytes`]
4573 - [`i128::from_le_bytes`]
4574 - [`i128::from_ne_bytes`]
4575 - [`isize::to_be_bytes`]
4576 - [`isize::to_le_bytes`]
4577 - [`isize::to_ne_bytes`]
4578 - [`isize::from_be_bytes`]
4579 - [`isize::from_le_bytes`]
4580 - [`isize::from_ne_bytes`]
4581 - [`u8::to_be_bytes`]
4582 - [`u8::to_le_bytes`]
4583 - [`u8::to_ne_bytes`]
4584 - [`u8::from_be_bytes`]
4585 - [`u8::from_le_bytes`]
4586 - [`u8::from_ne_bytes`]
4587 - [`u16::to_be_bytes`]
4588 - [`u16::to_le_bytes`]
4589 - [`u16::to_ne_bytes`]
4590 - [`u16::from_be_bytes`]
4591 - [`u16::from_le_bytes`]
4592 - [`u16::from_ne_bytes`]
4593 - [`u32::to_be_bytes`]
4594 - [`u32::to_le_bytes`]
4595 - [`u32::to_ne_bytes`]
4596 - [`u32::from_be_bytes`]
4597 - [`u32::from_le_bytes`]
4598 - [`u32::from_ne_bytes`]
4599 - [`u64::to_be_bytes`]
4600 - [`u64::to_le_bytes`]
4601 - [`u64::to_ne_bytes`]
4602 - [`u64::from_be_bytes`]
4603 - [`u64::from_le_bytes`]
4604 - [`u64::from_ne_bytes`]
4605 - [`u128::to_be_bytes`]
4606 - [`u128::to_le_bytes`]
4607 - [`u128::to_ne_bytes`]
4608 - [`u128::from_be_bytes`]
4609 - [`u128::from_le_bytes`]
4610 - [`u128::from_ne_bytes`]
4611 - [`usize::to_be_bytes`]
4612 - [`usize::to_le_bytes`]
4613 - [`usize::to_ne_bytes`]
4614 - [`usize::from_be_bytes`]
4615 - [`usize::from_le_bytes`]
4616 - [`usize::from_ne_bytes`]
4617
4618 Cargo
4619 -----
4620 - [You can now run `cargo c` as an alias for `cargo check`.][cargo/6218]
4621 - [Usernames are now allowed in alt registry URLs.][cargo/6242]
4622
4623 Misc
4624 ----
4625 - [`libproc_macro` has been added to the `rust-src` distribution.][55280]
4626
4627 Compatibility Notes
4628 -------------------
4629 - [The argument types for AVX's
4630   `_mm256_stream_si256`, `_mm256_stream_pd`, `_mm256_stream_ps`][55610] have
4631   been changed from `*const` to `*mut` as the previous implementation
4632   was unsound.
4633
4634
4635 [55148]: https://github.com/rust-lang/rust/pull/55148/
4636 [55238]: https://github.com/rust-lang/rust/pull/55238/
4637 [55280]: https://github.com/rust-lang/rust/pull/55280/
4638 [55610]: https://github.com/rust-lang/rust/pull/55610/
4639 [55663]: https://github.com/rust-lang/rust/pull/55663/
4640 [55702]: https://github.com/rust-lang/rust/pull/55702/
4641 [55837]: https://github.com/rust-lang/rust/pull/55837/
4642 [55843]: https://github.com/rust-lang/rust/pull/55843/
4643 [56072]: https://github.com/rust-lang/rust/pull/56072/
4644 [56245]: https://github.com/rust-lang/rust/pull/56245/
4645 [56365]: https://github.com/rust-lang/rust/pull/56365/
4646 [56366]: https://github.com/rust-lang/rust/pull/56366/
4647 [56395]: https://github.com/rust-lang/rust/pull/56395/
4648 [56759]: https://github.com/rust-lang/rust/pull/56759/
4649 [cargo/6218]: https://github.com/rust-lang/cargo/pull/6218/
4650 [cargo/6242]: https://github.com/rust-lang/cargo/pull/6242/
4651 [`CStr::as_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.as_ptr
4652 [`Cell::as_ptr`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr
4653 [`Duration::as_secs`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs
4654 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4655 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4656 [`Duration::subsec_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_nanos
4657 [`Ipv4Addr::is_unspecified`]: https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified
4658 [`Ipv6Addr::new`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.new
4659 [`Ipv6Addr::octets`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets
4660 [`ManuallyDrop::into_inner`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.into_inner
4661 [`ManuallyDrop::new`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.new
4662 [`NonNull::as_ptr`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.as_ptr
4663 [`RangeInclusive::end`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
4664 [`RangeInclusive::start`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
4665 [`UnsafeCell::get`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html#method.get
4666 [`slice::as_ptr`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
4667 [`char::is_ascii`]: https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
4668 [`i128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_be_bytes
4669 [`i128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_le_bytes
4670 [`i128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_ne_bytes
4671 [`i128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_be_bytes
4672 [`i128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_le_bytes
4673 [`i128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_ne_bytes
4674 [`i16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
4675 [`i16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
4676 [`i16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_ne_bytes
4677 [`i16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_be_bytes
4678 [`i16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_le_bytes
4679 [`i16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_ne_bytes
4680 [`i32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_be_bytes
4681 [`i32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_le_bytes
4682 [`i32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_ne_bytes
4683 [`i32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_be_bytes
4684 [`i32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_le_bytes
4685 [`i32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_ne_bytes
4686 [`i64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_be_bytes
4687 [`i64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_le_bytes
4688 [`i64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_ne_bytes
4689 [`i64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_be_bytes
4690 [`i64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_le_bytes
4691 [`i64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_ne_bytes
4692 [`i8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_be_bytes
4693 [`i8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_le_bytes
4694 [`i8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_ne_bytes
4695 [`i8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_be_bytes
4696 [`i8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_le_bytes
4697 [`i8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_ne_bytes
4698 [`isize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_be_bytes
4699 [`isize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_le_bytes
4700 [`isize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_ne_bytes
4701 [`isize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_be_bytes
4702 [`isize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_le_bytes
4703 [`isize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_ne_bytes
4704 [`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
4705 [`str::as_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_ptr
4706 [`u128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_be_bytes
4707 [`u128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_le_bytes
4708 [`u128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_ne_bytes
4709 [`u128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_be_bytes
4710 [`u128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_le_bytes
4711 [`u128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_ne_bytes
4712 [`u16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_be_bytes
4713 [`u16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_le_bytes
4714 [`u16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_ne_bytes
4715 [`u16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_be_bytes
4716 [`u16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_le_bytes
4717 [`u16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_ne_bytes
4718 [`u32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_be_bytes
4719 [`u32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_le_bytes
4720 [`u32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_ne_bytes
4721 [`u32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_be_bytes
4722 [`u32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_le_bytes
4723 [`u32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_ne_bytes
4724 [`u64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_be_bytes
4725 [`u64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_le_bytes
4726 [`u64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_ne_bytes
4727 [`u64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_be_bytes
4728 [`u64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_le_bytes
4729 [`u64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_ne_bytes
4730 [`u8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_be_bytes
4731 [`u8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_le_bytes
4732 [`u8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_ne_bytes
4733 [`u8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_be_bytes
4734 [`u8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_le_bytes
4735 [`u8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ne_bytes
4736 [`usize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_be_bytes
4737 [`usize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_le_bytes
4738 [`usize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_ne_bytes
4739 [`usize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_be_bytes
4740 [`usize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_le_bytes
4741 [`usize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_ne_bytes
4742
4743
4744 Version 1.31.1 (2018-12-20)
4745 ===========================
4746
4747 - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562]
4748 - [Fix broken go-to-definition in RLS][rls/1171]
4749 - [Fix infinite loop on hover in RLS][rls/1170]
4750
4751 [56562]: https://github.com/rust-lang/rust/pull/56562
4752 [rls/1171]: https://github.com/rust-lang/rls/issues/1171
4753 [rls/1170]: https://github.com/rust-lang/rls/pull/1170
4754
4755 Version 1.31.0 (2018-12-06)
4756 ==========================
4757
4758 Language
4759 --------
4760 - 🎉 [This version marks the release of the 2018 edition of Rust.][54057] 🎉
4761 - [New lifetime elision rules now allow for eliding lifetimes in functions and
4762   impl headers.][54778] E.g. `impl<'a> Reader for BufReader<'a> {}` can now be
4763   `impl Reader for BufReader<'_> {}`. Lifetimes are still required to be defined
4764   in structs.
4765 - [You can now define and use `const` functions.][54835] These are currently
4766   a strict minimal subset of the [const fn RFC][RFC-911]. Refer to the
4767   [language reference][const-reference] for what exactly is available.
4768 - [You can now use tool lints, which allow you to scope lints from external
4769   tools using attributes.][54870] E.g. `#[allow(clippy::filter_map)]`.
4770 - [`#[no_mangle]` and `#[export_name]` attributes can now be located anywhere in
4771   a crate, not just in exported functions.][54451]
4772 - [You can now use parentheses in pattern matches.][54497]
4773
4774 Compiler
4775 --------
4776 - [Updated musl to 1.1.20][54430]
4777
4778 Libraries
4779 ---------
4780 - [You can now convert `num::NonZero*` types to their raw equivalents using the
4781   `From` trait.][54240] E.g. `u8` now implements `From<NonZeroU8>`.
4782 - [You can now convert a `&Option<T>` into `Option<&T>` and `&mut Option<T>`
4783   into `Option<&mut T>` using the `From` trait.][53218]
4784 - [You can now multiply (`*`) a `time::Duration` by a `u32`.][52813]
4785
4786
4787 Stabilized APIs
4788 ---------------
4789 - [`slice::align_to`]
4790 - [`slice::align_to_mut`]
4791 - [`slice::chunks_exact`]
4792 - [`slice::chunks_exact_mut`]
4793 - [`slice::rchunks`]
4794 - [`slice::rchunks_mut`]
4795 - [`slice::rchunks_exact`]
4796 - [`slice::rchunks_exact_mut`]
4797 - [`Option::replace`]
4798
4799 Cargo
4800 -----
4801 - [Cargo will now download crates in parallel using HTTP/2.][cargo/6005]
4802 - [You can now rename packages in your Cargo.toml][cargo/6319] We have a guide
4803   on [how to use the `package` key in your dependencies.][cargo-rename-reference]
4804
4805 [52813]: https://github.com/rust-lang/rust/pull/52813/
4806 [53218]: https://github.com/rust-lang/rust/pull/53218/
4807 [54057]: https://github.com/rust-lang/rust/pull/54057/
4808 [54240]: https://github.com/rust-lang/rust/pull/54240/
4809 [54430]: https://github.com/rust-lang/rust/pull/54430/
4810 [54451]: https://github.com/rust-lang/rust/pull/54451/
4811 [54497]: https://github.com/rust-lang/rust/pull/54497/
4812 [54778]: https://github.com/rust-lang/rust/pull/54778/
4813 [54835]: https://github.com/rust-lang/rust/pull/54835/
4814 [54870]: https://github.com/rust-lang/rust/pull/54870/
4815 [RFC-911]: https://github.com/rust-lang/rfcs/pull/911
4816 [`Option::replace`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.replace
4817 [`slice::align_to_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to_mut
4818 [`slice::align_to`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to
4819 [`slice::chunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact_mut
4820 [`slice::chunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact
4821 [`slice::rchunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4822 [`slice::rchunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_exact
4823 [`slice::rchunks_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4824 [`slice::rchunks`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks
4825 [cargo/6005]: https://github.com/rust-lang/cargo/pull/6005/
4826 [cargo/6319]: https://github.com/rust-lang/cargo/pull/6319/
4827 [cargo-rename-reference]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
4828 [const-reference]: https://doc.rust-lang.org/reference/items/functions.html#const-functions
4829
4830 Version 1.30.1 (2018-11-08)
4831 ===========================
4832
4833 - [Fixed overflow ICE in rustdoc][54199]
4834 - [Cap Cargo progress bar width at 60 in MSYS terminals][cargo/6122]
4835
4836 [54199]: https://github.com/rust-lang/rust/pull/54199
4837 [cargo/6122]: https://github.com/rust-lang/cargo/pull/6122
4838
4839 Version 1.30.0 (2018-10-25)
4840 ==========================
4841
4842 Language
4843 --------
4844 - [Procedural macros are now available.][52081] These kinds of macros allow for
4845   more powerful code generation. There is a [new chapter available][proc-macros]
4846   in the Rust Programming Language book that goes further in depth.
4847 - [You can now use keywords as identifiers using the raw identifiers
4848   syntax (`r#`),][53236] e.g. `let r#for = true;`
4849 - [Using anonymous parameters in traits is now deprecated with a warning and
4850   will be a hard error in the 2018 edition.][53272]
4851 - [You can now use `crate` in paths.][54404] This allows you to refer to the
4852   crate root in the path, e.g. `use crate::foo;` refers to `foo` in `src/lib.rs`.
4853 - [Using a external crate no longer requires being prefixed with `::`.][54404]
4854   Previously, using a external crate in a module without a use statement
4855   required `let json = ::serde_json::from_str(foo);` but can now be written
4856   as `let json = serde_json::from_str(foo);`.
4857 - [You can now apply the `#[used]` attribute to static items to prevent the
4858   compiler from optimising them away, even if they appear to be unused,][51363]
4859   e.g. `#[used] static FOO: u32 = 1;`
4860 - [You can now import and reexport macros from other crates with the `use`
4861   syntax.][50911] Macros exported with `#[macro_export]` are now placed into
4862   the root module of the crate. If your macro relies on calling other local
4863   macros, it is recommended to export with the
4864   `#[macro_export(local_inner_macros)]` attribute so users won't have to import
4865   those macros.
4866 - [You can now catch visibility keywords (e.g. `pub`, `pub(crate)`) in macros
4867   using the `vis` specifier.][53370]
4868 - [Non-macro attributes now allow all forms of literals, not just
4869   strings.][53044] Previously, you would write `#[attr("true")]`, and you can now
4870   write `#[attr(true)]`.
4871 - [You can now specify a function to handle a panic in the Rust runtime with the
4872   `#[panic_handler]` attribute.][51366]
4873
4874 Compiler
4875 --------
4876 - [Added the `riscv32imc-unknown-none-elf` target.][53822]
4877 - [Added the `aarch64-unknown-netbsd` target][53165]
4878 - [Upgraded to LLVM 8.][53611]
4879
4880 Libraries
4881 ---------
4882 - [`ManuallyDrop` now allows the inner type to be unsized.][53033]
4883
4884 Stabilized APIs
4885 ---------------
4886 - [`Ipv4Addr::BROADCAST`]
4887 - [`Ipv4Addr::LOCALHOST`]
4888 - [`Ipv4Addr::UNSPECIFIED`]
4889 - [`Ipv6Addr::LOCALHOST`]
4890 - [`Ipv6Addr::UNSPECIFIED`]
4891 - [`Iterator::find_map`]
4892
4893   The following methods are replacement methods for `trim_left`, `trim_right`,
4894   `trim_left_matches`, and `trim_right_matches`, which will be deprecated
4895   in 1.33.0:
4896 - [`str::trim_end_matches`]
4897 - [`str::trim_end`]
4898 - [`str::trim_start_matches`]
4899 - [`str::trim_start`]
4900
4901 Cargo
4902 ----
4903 - [`cargo run` doesn't require specifying a package in workspaces.][cargo/5877]
4904 - [`cargo doc` now supports `--message-format=json`.][cargo/5878] This is
4905   equivalent to calling `rustdoc --error-format=json`.
4906 - [Cargo will now provide a progress bar for builds.][cargo/5995]
4907
4908 Misc
4909 ----
4910 - [`rustdoc` allows you to specify what edition to treat your code as with the
4911   `--edition` option.][54057]
4912 - [`rustdoc` now has the `--color` (specify whether to output color) and
4913   `--error-format` (specify error format, e.g. `json`) options.][53003]
4914 - [We now distribute a `rust-gdbgui` script that invokes `gdbgui` with Rust
4915   debug symbols.][53774]
4916 - [Attributes from Rust tools such as `rustfmt` or `clippy` are now
4917   available,][53459] e.g. `#[rustfmt::skip]` will skip formatting the next item.
4918
4919 [50911]: https://github.com/rust-lang/rust/pull/50911/
4920 [51363]: https://github.com/rust-lang/rust/pull/51363/
4921 [51366]: https://github.com/rust-lang/rust/pull/51366/
4922 [52081]: https://github.com/rust-lang/rust/pull/52081/
4923 [53003]: https://github.com/rust-lang/rust/pull/53003/
4924 [53033]: https://github.com/rust-lang/rust/pull/53033/
4925 [53044]: https://github.com/rust-lang/rust/pull/53044/
4926 [53165]: https://github.com/rust-lang/rust/pull/53165/
4927 [53611]: https://github.com/rust-lang/rust/pull/53611/
4928 [53236]: https://github.com/rust-lang/rust/pull/53236/
4929 [53272]: https://github.com/rust-lang/rust/pull/53272/
4930 [53370]: https://github.com/rust-lang/rust/pull/53370/
4931 [53459]: https://github.com/rust-lang/rust/pull/53459/
4932 [53774]: https://github.com/rust-lang/rust/pull/53774/
4933 [53822]: https://github.com/rust-lang/rust/pull/53822/
4934 [54057]: https://github.com/rust-lang/rust/pull/54057/
4935 [54404]: https://github.com/rust-lang/rust/pull/54404/
4936 [cargo/5877]: https://github.com/rust-lang/cargo/pull/5877/
4937 [cargo/5878]: https://github.com/rust-lang/cargo/pull/5878/
4938 [cargo/5995]: https://github.com/rust-lang/cargo/pull/5995/
4939 [proc-macros]: https://doc.rust-lang.org/nightly/book/2018-edition/ch19-06-macros.html
4940
4941 [`Ipv4Addr::BROADCAST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.BROADCAST
4942 [`Ipv4Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.LOCALHOST
4943 [`Ipv4Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.UNSPECIFIED
4944 [`Ipv6Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.LOCALHOST
4945 [`Ipv6Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.UNSPECIFIED
4946 [`Iterator::find_map`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find_map
4947 [`str::trim_end_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end_matches
4948 [`str::trim_end`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end
4949 [`str::trim_start_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start_matches
4950 [`str::trim_start`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start
4951
4952
4953 Version 1.29.2 (2018-10-11)
4954 ===========================
4955
4956 - [Workaround for an aliasing-related LLVM bug, which caused miscompilation.][54639]
4957 - The `rls-preview` component on the windows-gnu targets has been restored.
4958
4959 [54639]: https://github.com/rust-lang/rust/pull/54639
4960
4961
4962 Version 1.29.1 (2018-09-25)
4963 ===========================
4964
4965 Security Notes
4966 --------------
4967
4968 - The standard library's `str::repeat` function contained an out of bounds write
4969   caused by an integer overflow. This has been fixed by deterministically
4970   panicking when an overflow happens.
4971
4972   Thank you to Scott McMurray for responsibly disclosing this vulnerability to
4973   us.
4974
4975
4976 Version 1.29.0 (2018-09-13)
4977 ==========================
4978
4979 Compiler
4980 --------
4981 - [Bumped minimum LLVM version to 5.0.][51899]
4982 - [Added `powerpc64le-unknown-linux-musl` target.][51619]
4983 - [Added `aarch64-unknown-hermit` and `x86_64-unknown-hermit` targets.][52861]
4984 - [Upgraded to LLVM 7.][51966]
4985
4986 Libraries
4987 ---------
4988 - [`Once::call_once` no longer requires `Once` to be `'static`.][52239]
4989 - [`BuildHasherDefault` now implements `PartialEq` and `Eq`.][52402]
4990 - [`Box<CStr>`, `Box<OsStr>`, and `Box<Path>` now implement `Clone`.][51912]
4991 - [Implemented `PartialEq<&str>` for `OsString` and `PartialEq<OsString>`
4992   for `&str`.][51178]
4993 - [`Cell<T>` now allows `T` to be unsized.][50494]
4994 - [`SocketAddr` is now stable on Redox.][52656]
4995
4996 Stabilized APIs
4997 ---------------
4998 - [`Arc::downcast`]
4999 - [`Iterator::flatten`]
5000 - [`Rc::downcast`]
5001
5002 Cargo
5003 -----
5004 - [Cargo can silently fix some bad lockfiles.][cargo/5831] You can use
5005   `--locked` to disable this behavior.
5006 - [`cargo-install` will now allow you to cross compile an install
5007   using `--target`.][cargo/5614]
5008 - [Added the `cargo-fix` subcommand to automatically move project code from
5009   2015 edition to 2018.][cargo/5723]
5010 - [`cargo doc` can now optionally document private types using the
5011   `--document-private-items` flag.][cargo/5543]
5012
5013 Misc
5014 ----
5015 - [`rustdoc` now has the `--cap-lints` option which demotes all lints above
5016   the specified level to that level.][52354] For example `--cap-lints warn`
5017   will demote `deny` and `forbid` lints to `warn`.
5018 - [`rustc` and `rustdoc` will now have the exit code of `1` if compilation
5019   fails and `101` if there is a panic.][52197]
5020 - [A preview of clippy has been made available through rustup.][51122]
5021   You can install the preview with `rustup component add clippy-preview`.
5022
5023 Compatibility Notes
5024 -------------------
5025 - [`str::{slice_unchecked, slice_unchecked_mut}` are now deprecated.][51807]
5026   Use `str::get_unchecked(begin..end)` instead.
5027 - [`std::env::home_dir` is now deprecated for its unintuitive behavior.][51656]
5028   Consider using the `home_dir` function from
5029   https://crates.io/crates/dirs instead.
5030 - [`rustc` will no longer silently ignore invalid data in target spec.][52330]
5031 - [`cfg` attributes and `--cfg` command line flags are now more
5032   strictly validated.][53893]
5033
5034 [53893]: https://github.com/rust-lang/rust/pull/53893/
5035 [52861]: https://github.com/rust-lang/rust/pull/52861/
5036 [51966]: https://github.com/rust-lang/rust/pull/51966/
5037 [52656]: https://github.com/rust-lang/rust/pull/52656/
5038 [52239]: https://github.com/rust-lang/rust/pull/52239/
5039 [52330]: https://github.com/rust-lang/rust/pull/52330/
5040 [52354]: https://github.com/rust-lang/rust/pull/52354/
5041 [52402]: https://github.com/rust-lang/rust/pull/52402/
5042 [52197]: https://github.com/rust-lang/rust/pull/52197/
5043 [51807]: https://github.com/rust-lang/rust/pull/51807/
5044 [51899]: https://github.com/rust-lang/rust/pull/51899/
5045 [51912]: https://github.com/rust-lang/rust/pull/51912/
5046 [51619]: https://github.com/rust-lang/rust/pull/51619/
5047 [51656]: https://github.com/rust-lang/rust/pull/51656/
5048 [51178]: https://github.com/rust-lang/rust/pull/51178/
5049 [51122]: https://github.com/rust-lang/rust/pull/51122
5050 [50494]: https://github.com/rust-lang/rust/pull/50494/
5051 [cargo/5543]: https://github.com/rust-lang/cargo/pull/5543
5052 [cargo/5614]: https://github.com/rust-lang/cargo/pull/5614/
5053 [cargo/5723]: https://github.com/rust-lang/cargo/pull/5723/
5054 [cargo/5831]: https://github.com/rust-lang/cargo/pull/5831/
5055 [`Arc::downcast`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.downcast
5056 [`Iterator::flatten`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flatten
5057 [`Rc::downcast`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.downcast
5058
5059
5060 Version 1.28.0 (2018-08-02)
5061 ===========================
5062
5063 Language
5064 --------
5065 - [The `#[repr(transparent)]` attribute is now stable.][51562] This attribute
5066   allows a Rust newtype wrapper (`struct NewType<T>(T);`) to be represented as
5067   the inner type across Foreign Function Interface (FFI) boundaries.
5068 - [The keywords `pure`, `sizeof`, `alignof`, and `offsetof` have been unreserved
5069   and can now be used as identifiers.][51196]
5070 - [The `GlobalAlloc` trait and `#[global_allocator]` attribute are now
5071   stable.][51241] This will allow users to specify a global allocator for
5072   their program.
5073 - [Unit test functions marked with the `#[test]` attribute can now return
5074   `Result<(), E: Debug>` in addition to `()`.][51298]
5075 - [The `lifetime` specifier for `macro_rules!` is now stable.][50385] This
5076   allows macros to easily target lifetimes.
5077
5078 Compiler
5079 --------
5080 - [The `s` and `z` optimisation levels are now stable.][50265] These optimisations
5081   prioritise making smaller binary sizes. `z` is the same as `s` with the
5082   exception that it does not vectorise loops, which typically results in an even
5083   smaller binary.
5084 - [The short error format is now stable.][49546] Specified with
5085   `--error-format=short` this option will provide a more compressed output of
5086   rust error messages.
5087 - [Added a lint warning when you have duplicated `macro_export`s.][50143]
5088 - [Reduced the number of allocations in the macro parser.][50855] This can
5089   improve compile times of macro heavy crates on average by 5%.
5090
5091 Libraries
5092 ---------
5093 - [Implemented `Default` for `&mut str`.][51306]
5094 - [Implemented `From<bool>` for all integer and unsigned number types.][50554]
5095 - [Implemented `Extend` for `()`.][50234]
5096 - [The `Debug` implementation of `time::Duration` should now be more easily
5097   human readable.][50364] Previously a `Duration` of one second would printed as
5098   `Duration { secs: 1, nanos: 0 }` and will now be printed as `1s`.
5099 - [Implemented `From<&String>` for `Cow<str>`, `From<&Vec<T>>` for `Cow<[T]>`,
5100   `From<Cow<CStr>>` for `CString`, `From<CString>, From<CStr>, From<&CString>`
5101   for `Cow<CStr>`, `From<OsString>, From<OsStr>, From<&OsString>` for
5102   `Cow<OsStr>`, `From<&PathBuf>` for `Cow<Path>`, and `From<Cow<Path>>`
5103   for `PathBuf`.][50170]
5104 - [Implemented `Shl` and `Shr` for `Wrapping<u128>`
5105   and `Wrapping<i128>`.][50465]
5106 - [`DirEntry::metadata` now uses `fstatat` instead of `lstat` when
5107   possible.][51050] This can provide up to a 40% speed increase.
5108 - [Improved error messages when using `format!`.][50610]
5109
5110 Stabilized APIs
5111 ---------------
5112 - [`Iterator::step_by`]
5113 - [`Path::ancestors`]
5114 - [`SystemTime::UNIX_EPOCH`]
5115 - [`alloc::GlobalAlloc`]
5116 - [`alloc::Layout`]
5117 - [`alloc::LayoutErr`]
5118 - [`alloc::System`]
5119 - [`alloc::alloc`]
5120 - [`alloc::alloc_zeroed`]
5121 - [`alloc::dealloc`]
5122 - [`alloc::realloc`]
5123 - [`alloc::handle_alloc_error`]
5124 - [`btree_map::Entry::or_default`]
5125 - [`fmt::Alignment`]
5126 - [`hash_map::Entry::or_default`]
5127 - [`iter::repeat_with`]
5128 - [`num::NonZeroUsize`]
5129 - [`num::NonZeroU128`]
5130 - [`num::NonZeroU16`]
5131 - [`num::NonZeroU32`]
5132 - [`num::NonZeroU64`]
5133 - [`num::NonZeroU8`]
5134 - [`ops::RangeBounds`]
5135 - [`slice::SliceIndex`]
5136 - [`slice::from_mut`]
5137 - [`slice::from_ref`]
5138 - [`{Any + Send + Sync}::downcast_mut`]
5139 - [`{Any + Send + Sync}::downcast_ref`]
5140 - [`{Any + Send + Sync}::is`]
5141
5142 Cargo
5143 -----
5144 - [Cargo will now no longer allow you to publish crates with build scripts that
5145   modify the `src` directory.][cargo/5584] The `src` directory in a crate should be
5146   considered to be immutable.
5147
5148 Misc
5149 ----
5150 - [The `suggestion_applicability` field in `rustc`'s json output is now
5151   stable.][50486] This will allow dev tools to check whether a code suggestion
5152   would apply to them.
5153
5154 Compatibility Notes
5155 -------------------
5156 - [Rust will consider trait objects with duplicated constraints to be the same
5157   type as without the duplicated constraint.][51276] For example the below code will
5158   now fail to compile.
5159   ```rust
5160   trait Trait {}
5161
5162   impl Trait + Send {
5163       fn test(&self) { println!("one"); } //~ ERROR duplicate definitions with name `test`
5164   }
5165
5166   impl Trait + Send + Send {
5167       fn test(&self) { println!("two"); }
5168   }
5169   ```
5170
5171 [49546]: https://github.com/rust-lang/rust/pull/49546/
5172 [50143]: https://github.com/rust-lang/rust/pull/50143/
5173 [50170]: https://github.com/rust-lang/rust/pull/50170/
5174 [50234]: https://github.com/rust-lang/rust/pull/50234/
5175 [50265]: https://github.com/rust-lang/rust/pull/50265/
5176 [50364]: https://github.com/rust-lang/rust/pull/50364/
5177 [50385]: https://github.com/rust-lang/rust/pull/50385/
5178 [50465]: https://github.com/rust-lang/rust/pull/50465/
5179 [50486]: https://github.com/rust-lang/rust/pull/50486/
5180 [50554]: https://github.com/rust-lang/rust/pull/50554/
5181 [50610]: https://github.com/rust-lang/rust/pull/50610/
5182 [50855]: https://github.com/rust-lang/rust/pull/50855/
5183 [51050]: https://github.com/rust-lang/rust/pull/51050/
5184 [51196]: https://github.com/rust-lang/rust/pull/51196/
5185 [51241]: https://github.com/rust-lang/rust/pull/51241/
5186 [51276]: https://github.com/rust-lang/rust/pull/51276/
5187 [51298]: https://github.com/rust-lang/rust/pull/51298/
5188 [51306]: https://github.com/rust-lang/rust/pull/51306/
5189 [51562]: https://github.com/rust-lang/rust/pull/51562/
5190 [cargo/5584]: https://github.com/rust-lang/cargo/pull/5584/
5191 [`Iterator::step_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by
5192 [`Path::ancestors`]: https://doc.rust-lang.org/std/path/struct.Path.html#method.ancestors
5193 [`SystemTime::UNIX_EPOCH`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#associatedconstant.UNIX_EPOCH
5194 [`alloc::GlobalAlloc`]: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html
5195 [`alloc::Layout`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html
5196 [`alloc::LayoutErr`]: https://doc.rust-lang.org/std/alloc/struct.LayoutErr.html
5197 [`alloc::System`]: https://doc.rust-lang.org/std/alloc/struct.System.html
5198 [`alloc::alloc`]: https://doc.rust-lang.org/std/alloc/fn.alloc.html
5199 [`alloc::alloc_zeroed`]: https://doc.rust-lang.org/std/alloc/fn.alloc_zeroed.html
5200 [`alloc::dealloc`]: https://doc.rust-lang.org/std/alloc/fn.dealloc.html
5201 [`alloc::realloc`]: https://doc.rust-lang.org/std/alloc/fn.realloc.html
5202 [`alloc::handle_alloc_error`]: https://doc.rust-lang.org/std/alloc/fn.handle_alloc_error.html
5203 [`btree_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.or_default
5204 [`fmt::Alignment`]: https://doc.rust-lang.org/std/fmt/enum.Alignment.html
5205 [`hash_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.or_default
5206 [`iter::repeat_with`]: https://doc.rust-lang.org/std/iter/fn.repeat_with.html
5207 [`num::NonZeroUsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroUsize.html
5208 [`num::NonZeroU128`]: https://doc.rust-lang.org/std/num/struct.NonZeroU128.html
5209 [`num::NonZeroU16`]: https://doc.rust-lang.org/std/num/struct.NonZeroU16.html
5210 [`num::NonZeroU32`]: https://doc.rust-lang.org/std/num/struct.NonZeroU32.html
5211 [`num::NonZeroU64`]: https://doc.rust-lang.org/std/num/struct.NonZeroU64.html
5212 [`num::NonZeroU8`]: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
5213 [`ops::RangeBounds`]: https://doc.rust-lang.org/std/ops/trait.RangeBounds.html
5214 [`slice::SliceIndex`]: https://doc.rust-lang.org/std/slice/trait.SliceIndex.html
5215 [`slice::from_mut`]: https://doc.rust-lang.org/std/slice/fn.from_mut.html
5216 [`slice::from_ref`]: https://doc.rust-lang.org/std/slice/fn.from_ref.html
5217 [`{Any + Send + Sync}::downcast_mut`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_mut-2
5218 [`{Any + Send + Sync}::downcast_ref`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_ref-2
5219 [`{Any + Send + Sync}::is`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.is-2
5220
5221 Version 1.27.2 (2018-07-20)
5222 ===========================
5223
5224 Compatibility Notes
5225 -------------------
5226
5227 - The borrow checker was fixed to avoid potential unsoundness when using
5228   match ergonomics: [#52213][52213].
5229
5230 [52213]: https://github.com/rust-lang/rust/issues/52213
5231
5232 Version 1.27.1 (2018-07-10)
5233 ===========================
5234
5235 Security Notes
5236 --------------
5237
5238 - rustdoc would execute plugins in the /tmp/rustdoc/plugins directory
5239   when running, which enabled executing code as some other user on a
5240   given machine. This release fixes that vulnerability; you can read
5241   more about this on the [blog][rustdoc-sec]. The associated CVE is [CVE-2018-1000622].
5242
5243   Thank you to Red Hat for responsibly disclosing this vulnerability to us.
5244
5245 Compatibility Notes
5246 -------------------
5247
5248 - The borrow checker was fixed to avoid an additional potential unsoundness when using
5249   match ergonomics: [#51415][51415], [#49534][49534].
5250
5251 [51415]: https://github.com/rust-lang/rust/issues/51415
5252 [49534]: https://github.com/rust-lang/rust/issues/49534
5253 [rustdoc-sec]: https://blog.rust-lang.org/2018/07/06/security-advisory-for-rustdoc.html
5254 [CVE-2018-1000622]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=%20CVE-2018-1000622
5255
5256 Version 1.27.0 (2018-06-21)
5257 ==========================
5258
5259 Language
5260 --------
5261 - [Removed 'proc' from the reserved keywords list.][49699] This allows `proc` to
5262   be used as an identifier.
5263 - [The dyn syntax is now available.][49968] This syntax is equivalent to the
5264   bare `Trait` syntax, and should make it clearer when being used in tandem with
5265   `impl Trait` because it is equivalent to the following syntax:
5266   `&Trait == &dyn Trait`, `&mut Trait == &mut dyn Trait`, and
5267   `Box<Trait> == Box<dyn Trait>`.
5268 - [Attributes on generic parameters such as types and lifetimes are
5269   now stable.][48851] e.g.
5270   `fn foo<#[lifetime_attr] 'a, #[type_attr] T: 'a>() {}`
5271 - [The `#[must_use]` attribute can now also be used on functions as well as
5272   types.][48925] It provides a lint that by default warns users when the
5273   value returned by a function has not been used.
5274
5275 Compiler
5276 --------
5277 - [Added the `armv5te-unknown-linux-musleabi` target.][50423]
5278
5279 Libraries
5280 ---------
5281 - [SIMD (Single Instruction Multiple Data) on x86/x86_64 is now stable.][49664]
5282   This includes [`arch::x86`] & [`arch::x86_64`] modules which contain
5283   SIMD intrinsics, a new macro called `is_x86_feature_detected!`, the
5284   `#[target_feature(enable="")]` attribute, and adding `target_feature = ""` to
5285   the `cfg` attribute.
5286 - [A lot of methods for `[u8]`, `f32`, and `f64` previously only available in
5287   std are now available in core.][49896]
5288 - [The generic `Rhs` type parameter on `ops::{Shl, ShlAssign, Shr}` now defaults
5289   to `Self`.][49630]
5290 - [`std::str::replace` now has the `#[must_use]` attribute][50177] to clarify
5291   that the operation isn't done in place.
5292 - [`Clone::clone`, `Iterator::collect`, and `ToOwned::to_owned` now have
5293   the `#[must_use]` attribute][49533] to warn about unused potentially
5294   expensive allocations.
5295
5296 Stabilized APIs
5297 ---------------
5298 - [`DoubleEndedIterator::rfind`]
5299 - [`DoubleEndedIterator::rfold`]
5300 - [`DoubleEndedIterator::try_rfold`]
5301 - [`Duration::from_micros`]
5302 - [`Duration::from_nanos`]
5303 - [`Duration::subsec_micros`]
5304 - [`Duration::subsec_millis`]
5305 - [`HashMap::remove_entry`]
5306 - [`Iterator::try_fold`]
5307 - [`Iterator::try_for_each`]
5308 - [`NonNull::cast`]
5309 - [`Option::filter`]
5310 - [`String::replace_range`]
5311 - [`Take::set_limit`]
5312 - [`hint::unreachable_unchecked`]
5313 - [`os::unix::process::parent_id`]
5314 - [`ptr::swap_nonoverlapping`]
5315 - [`slice::rsplit_mut`]
5316 - [`slice::rsplit`]
5317 - [`slice::swap_with_slice`]
5318
5319 Cargo
5320 -----
5321 - [`cargo-metadata` now includes `authors`, `categories`, `keywords`,
5322   `readme`, and `repository` fields.][cargo/5386]
5323 - [`cargo-metadata` now includes a package's `metadata` table.][cargo/5360]
5324 - [Added the `--target-dir` optional argument.][cargo/5393] This allows you to specify
5325   a different directory than `target` for placing compilation artifacts.
5326 - [Cargo will be adding automatic target inference for binaries, benchmarks,
5327   examples, and tests in the Rust 2018 edition.][cargo/5335] If your project specifies
5328   specific targets, e.g. using `[[bin]]`, and have other binaries in locations
5329   where cargo would infer a binary, Cargo will produce a warning. You can
5330   disable this feature ahead of time by setting any of the following to false:
5331   `autobins`, `autobenches`, `autoexamples`, `autotests`.
5332 - [Cargo will now cache compiler information.][cargo/5359] This can be disabled by
5333   setting `CARGO_CACHE_RUSTC_INFO=0` in your environment.
5334
5335 Misc
5336 ----
5337 - [Added “The Rustc book” into the official documentation.][49707]
5338   [“The Rustc book”] documents and teaches how to use the rustc compiler.
5339 - [All books available on `doc.rust-lang.org` are now searchable.][49623]
5340
5341 Compatibility Notes
5342 -------------------
5343 - [Calling a `CharExt` or `StrExt` method directly on core will no longer
5344   work.][49896] e.g. `::core::prelude::v1::StrExt::is_empty("")` will not
5345   compile, `"".is_empty()` will still compile.
5346 - [`Debug` output on `atomic::{AtomicBool, AtomicIsize, AtomicPtr, AtomicUsize}`
5347   will only print the inner type.][48553] E.g.
5348   `print!("{:?}", AtomicBool::new(true))` will print `true`,
5349   not `AtomicBool(true)`.
5350 - [The maximum number for `repr(align(N))` is now 2²⁹.][50378] Previously you
5351   could enter higher numbers but they were not supported by LLVM. Up to 512MB
5352   alignment should cover all use cases.
5353 - The `.description()` method on the `std::error::Error` trait
5354   [has been soft-deprecated][50163]. It is no longer required to implement it.
5355
5356 [48553]: https://github.com/rust-lang/rust/pull/48553/
5357 [48851]: https://github.com/rust-lang/rust/pull/48851/
5358 [48925]: https://github.com/rust-lang/rust/pull/48925/
5359 [49533]: https://github.com/rust-lang/rust/pull/49533/
5360 [49623]: https://github.com/rust-lang/rust/pull/49623/
5361 [49630]: https://github.com/rust-lang/rust/pull/49630/
5362 [49664]: https://github.com/rust-lang/rust/pull/49664/
5363 [49699]: https://github.com/rust-lang/rust/pull/49699/
5364 [49707]: https://github.com/rust-lang/rust/pull/49707/
5365 [49896]: https://github.com/rust-lang/rust/pull/49896/
5366 [49968]: https://github.com/rust-lang/rust/pull/49968/
5367 [50163]: https://github.com/rust-lang/rust/pull/50163
5368 [50177]: https://github.com/rust-lang/rust/pull/50177/
5369 [50378]: https://github.com/rust-lang/rust/pull/50378/
5370 [50423]: https://github.com/rust-lang/rust/pull/50423/
5371 [cargo/5335]: https://github.com/rust-lang/cargo/pull/5335/
5372 [cargo/5359]: https://github.com/rust-lang/cargo/pull/5359/
5373 [cargo/5360]: https://github.com/rust-lang/cargo/pull/5360/
5374 [cargo/5386]: https://github.com/rust-lang/cargo/pull/5386/
5375 [cargo/5393]: https://github.com/rust-lang/cargo/pull/5393/
5376 [`DoubleEndedIterator::rfind`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfind
5377 [`DoubleEndedIterator::rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfold
5378 [`DoubleEndedIterator::try_rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
5379 [`Duration::from_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_micros
5380 [`Duration::from_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_nanos
5381 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
5382 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
5383 [`HashMap::remove_entry`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.remove_entry
5384 [`Iterator::try_fold`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_fold
5385 [`Iterator::try_for_each`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
5386 [`NonNull::cast`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.cast
5387 [`Option::filter`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.filter
5388 [`String::replace_range`]: https://doc.rust-lang.org/std/string/struct.String.html#method.replace_range
5389 [`Take::set_limit`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.set_limit
5390 [`hint::unreachable_unchecked`]: https://doc.rust-lang.org/std/hint/fn.unreachable_unchecked.html
5391 [`os::unix::process::parent_id`]: https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html
5392 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
5393 [`ptr::swap_nonoverlapping`]: https://doc.rust-lang.org/std/ptr/fn.swap_nonoverlapping.html
5394 [`slice::rsplit_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit_mut
5395 [`slice::rsplit`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit
5396 [`slice::swap_with_slice`]: https://doc.rust-lang.org/std/primitive.slice.html#method.swap_with_slice
5397 [`arch::x86_64`]: https://doc.rust-lang.org/std/arch/x86_64/index.html
5398 [`arch::x86`]: https://doc.rust-lang.org/std/arch/x86/index.html
5399 [“The Rustc book”]: https://doc.rust-lang.org/rustc
5400
5401
5402 Version 1.26.2 (2018-06-05)
5403 ==========================
5404
5405 Compatibility Notes
5406 -------------------
5407
5408 - [The borrow checker was fixed to avoid unsoundness when using match ergonomics.][51117]
5409
5410 [51117]: https://github.com/rust-lang/rust/issues/51117
5411
5412
5413 Version 1.26.1 (2018-05-29)
5414 ==========================
5415
5416 Tools
5417 -----
5418
5419 - [RLS now works on Windows.][50646]
5420 - [Rustfmt stopped badly formatting text in some cases.][rustfmt/2695]
5421
5422
5423 Compatibility Notes
5424 --------
5425
5426 - [`fn main() -> impl Trait` no longer works for non-Termination
5427   trait.][50656]
5428   This reverts an accidental stabilization.
5429 - [`NaN > NaN` no longer returns true in const-fn contexts.][50812]
5430 - [Prohibit using turbofish for `impl Trait` in method arguments.][50950]
5431
5432 [50646]: https://github.com/rust-lang/rust/issues/50646
5433 [50656]: https://github.com/rust-lang/rust/pull/50656
5434 [50812]: https://github.com/rust-lang/rust/pull/50812
5435 [50950]: https://github.com/rust-lang/rust/issues/50950
5436 [rustfmt/2695]: https://github.com/rust-lang-nursery/rustfmt/issues/2695
5437
5438 Version 1.26.0 (2018-05-10)
5439 ==========================
5440
5441 Language
5442 --------
5443 - [Closures now implement `Copy` and/or `Clone` if all captured variables
5444   implement either or both traits.][49299]
5445 - [The inclusive range syntax e.g. `for x in 0..=10` is now stable.][47813]
5446 - [The `'_` lifetime is now stable. The underscore lifetime can be used anywhere a
5447   lifetime can be elided.][49458]
5448 - [`impl Trait` is now stable allowing you to have abstract types in returns
5449    or in function parameters.][49255] E.g. `fn foo() -> impl Iterator<Item=u8>` or
5450   `fn open(path: impl AsRef<Path>)`.
5451 - [Pattern matching will now automatically apply dereferences.][49394]
5452 - [128-bit integers in the form of `u128` and `i128` are now stable.][49101]
5453 - [`main` can now return `Result<(), E: Debug>`][49162] in addition to `()`.
5454 - [A lot of operations are now available in a const context.][46882] E.g. You
5455   can now index into constant arrays, reference and dereference into constants,
5456   and use tuple struct constructors.
5457 - [Fixed entry slice patterns are now stable.][48516] E.g.
5458   ```rust
5459   let points = [1, 2, 3, 4];
5460   match points {
5461       [1, 2, 3, 4] => println!("All points were sequential."),
5462       _ => println!("Not all points were sequential."),
5463   }
5464   ```
5465
5466
5467 Compiler
5468 --------
5469 - [LLD is now used as the default linker for `wasm32-unknown-unknown`.][48125]
5470 - [Fixed exponential projection complexity on nested types.][48296]
5471   This can provide up to a ~12% reduction in compile times for certain crates.
5472 - [Added the `--remap-path-prefix` option to rustc.][48359] Allowing you
5473   to remap path prefixes outputted by the compiler.
5474 - [Added `powerpc-unknown-netbsd` target.][48281]
5475
5476 Libraries
5477 ---------
5478 - [Implemented `From<u16> for usize` & `From<{u8, i16}> for isize`.][49305]
5479 - [Added hexadecimal formatting for integers with fmt::Debug][48978]
5480   e.g. `assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]")`
5481 - [Implemented `Default, Hash` for `cmp::Reverse`.][48628]
5482 - [Optimized `str::repeat` being 8x faster in large cases.][48657]
5483 - [`ascii::escape_default` is now available in libcore.][48735]
5484 - [Trailing commas are now supported in std and core macros.][48056]
5485 - [Implemented `Copy, Clone` for `cmp::Reverse`][47379]
5486 - [Implemented `Clone` for `char::{ToLowercase, ToUppercase}`.][48629]
5487
5488 Stabilized APIs
5489 ---------------
5490 - [`*const T::add`]
5491 - [`*const T::copy_to_nonoverlapping`]
5492 - [`*const T::copy_to`]
5493 - [`*const T::read_unaligned`]
5494 - [`*const T::read_volatile`]
5495 - [`*const T::read`]
5496 - [`*const T::sub`]
5497 - [`*const T::wrapping_add`]
5498 - [`*const T::wrapping_sub`]
5499 - [`*mut T::add`]
5500 - [`*mut T::copy_to_nonoverlapping`]
5501 - [`*mut T::copy_to`]
5502 - [`*mut T::read_unaligned`]
5503 - [`*mut T::read_volatile`]
5504 - [`*mut T::read`]
5505 - [`*mut T::replace`]
5506 - [`*mut T::sub`]
5507 - [`*mut T::swap`]
5508 - [`*mut T::wrapping_add`]
5509 - [`*mut T::wrapping_sub`]
5510 - [`*mut T::write_bytes`]
5511 - [`*mut T::write_unaligned`]
5512 - [`*mut T::write_volatile`]
5513 - [`*mut T::write`]
5514 - [`Box::leak`]
5515 - [`FromUtf8Error::as_bytes`]
5516 - [`LocalKey::try_with`]
5517 - [`Option::cloned`]
5518 - [`btree_map::Entry::and_modify`]
5519 - [`fs::read_to_string`]
5520 - [`fs::read`]
5521 - [`fs::write`]
5522 - [`hash_map::Entry::and_modify`]
5523 - [`iter::FusedIterator`]
5524 - [`ops::RangeInclusive`]
5525 - [`ops::RangeToInclusive`]
5526 - [`process::id`]
5527 - [`slice::rotate_left`]
5528 - [`slice::rotate_right`]
5529 - [`String::retain`]
5530
5531
5532 Cargo
5533 -----
5534 - [Cargo will now output path to custom commands when `-v` is
5535   passed with `--list`][cargo/5041]
5536 - [The Cargo binary version is now the same as the Rust version][cargo/5083]
5537
5538 Misc
5539 ----
5540 - [The second edition of "The Rust Programming Language" book is now recommended
5541   over the first.][48404]
5542
5543 Compatibility Notes
5544 -------------------
5545
5546 - [aliasing a `Fn` trait as `dyn` no longer works.][48481] E.g. the following
5547   syntax is now invalid.
5548   ```
5549   use std::ops::Fn as dyn;
5550   fn g(_: Box<dyn(std::fmt::Debug)>) {}
5551   ```
5552 - [The result of dereferences are no longer promoted to `'static`.][47408]
5553   e.g.
5554   ```rust
5555   fn main() {
5556       const PAIR: &(i32, i32) = &(0, 1);
5557       let _reversed_pair: &'static _ = &(PAIR.1, PAIR.0); // Doesn't work
5558   }
5559   ```
5560 - [Deprecate `AsciiExt` trait in favor of inherent methods.][49109]
5561 - [`".e0"` will now no longer parse as `0.0` and will instead cause
5562   an error.][48235]
5563 - [Removed hoedown from rustdoc.][48274]
5564 - [Bounds on higher-kinded lifetimes a hard error.][48326]
5565
5566 [46882]: https://github.com/rust-lang/rust/pull/46882
5567 [47379]: https://github.com/rust-lang/rust/pull/47379
5568 [47408]: https://github.com/rust-lang/rust/pull/47408
5569 [47813]: https://github.com/rust-lang/rust/pull/47813
5570 [48056]: https://github.com/rust-lang/rust/pull/48056
5571 [48125]: https://github.com/rust-lang/rust/pull/48125
5572 [48235]: https://github.com/rust-lang/rust/pull/48235
5573 [48274]: https://github.com/rust-lang/rust/pull/48274
5574 [48281]: https://github.com/rust-lang/rust/pull/48281
5575 [48296]: https://github.com/rust-lang/rust/pull/48296
5576 [48326]: https://github.com/rust-lang/rust/pull/48326
5577 [48359]: https://github.com/rust-lang/rust/pull/48359
5578 [48404]: https://github.com/rust-lang/rust/pull/48404
5579 [48481]: https://github.com/rust-lang/rust/pull/48481
5580 [48516]: https://github.com/rust-lang/rust/pull/48516
5581 [48628]: https://github.com/rust-lang/rust/pull/48628
5582 [48629]: https://github.com/rust-lang/rust/pull/48629
5583 [48657]: https://github.com/rust-lang/rust/pull/48657
5584 [48735]: https://github.com/rust-lang/rust/pull/48735
5585 [48978]: https://github.com/rust-lang/rust/pull/48978
5586 [49101]: https://github.com/rust-lang/rust/pull/49101
5587 [49109]: https://github.com/rust-lang/rust/pull/49109
5588 [49162]: https://github.com/rust-lang/rust/pull/49162
5589 [49255]: https://github.com/rust-lang/rust/pull/49255
5590 [49299]: https://github.com/rust-lang/rust/pull/49299
5591 [49305]: https://github.com/rust-lang/rust/pull/49305
5592 [49394]: https://github.com/rust-lang/rust/pull/49394
5593 [49458]: https://github.com/rust-lang/rust/pull/49458
5594 [`*const T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add
5595 [`*const T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping
5596 [`*const T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to
5597 [`*const T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned
5598 [`*const T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile
5599 [`*const T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read
5600 [`*const T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub
5601 [`*const T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add
5602 [`*const T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub
5603 [`*mut T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add-1
5604 [`*mut T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping-1
5605 [`*mut T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to-1
5606 [`*mut T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned-1
5607 [`*mut T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile-1
5608 [`*mut T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read-1
5609 [`*mut T::replace`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.replace
5610 [`*mut T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub-1
5611 [`*mut T::swap`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.swap
5612 [`*mut T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add-1
5613 [`*mut T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub-1
5614 [`*mut T::write_bytes`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_bytes
5615 [`*mut T::write_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_unaligned
5616 [`*mut T::write_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_volatile
5617 [`*mut T::write`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write
5618 [`Box::leak`]: https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak
5619 [`FromUtf8Error::as_bytes`]: https://doc.rust-lang.org/std/string/struct.FromUtf8Error.html#method.as_bytes
5620 [`LocalKey::try_with`]: https://doc.rust-lang.org/std/thread/struct.LocalKey.html#method.try_with
5621 [`Option::cloned`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.cloned
5622 [`btree_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.and_modify
5623 [`fs::read_to_string`]: https://doc.rust-lang.org/std/fs/fn.read_to_string.html
5624 [`fs::read`]: https://doc.rust-lang.org/std/fs/fn.read.html
5625 [`fs::write`]: https://doc.rust-lang.org/std/fs/fn.write.html
5626 [`hash_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.and_modify
5627 [`iter::FusedIterator`]: https://doc.rust-lang.org/std/iter/trait.FusedIterator.html
5628 [`ops::RangeInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html
5629 [`ops::RangeToInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html
5630 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
5631 [`slice::rotate_left`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_left
5632 [`slice::rotate_right`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_right
5633 [`String::retain`]: https://doc.rust-lang.org/std/string/struct.String.html#method.retain
5634 [cargo/5041]: https://github.com/rust-lang/cargo/pull/5041
5635 [cargo/5083]: https://github.com/rust-lang/cargo/pull/5083
5636
5637
5638 Version 1.25.0 (2018-03-29)
5639 ==========================
5640
5641 Language
5642 --------
5643 - [The `#[repr(align(x))]` attribute is now stable.][47006] [RFC 1358]
5644 - [You can now use nested groups of imports.][47948]
5645   e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};`
5646 - [You can now have `|` at the start of a match arm.][47947] e.g.
5647 ```rust
5648 enum Foo { A, B, C }
5649
5650 fn main() {
5651     let x = Foo::A;
5652     match x {
5653         | Foo::A
5654         | Foo::B => println!("AB"),
5655         | Foo::C => println!("C"),
5656     }
5657 }
5658 ```
5659
5660 Compiler
5661 --------
5662 - [Upgraded to LLVM 6.][47828]
5663 - [Added `-C lto=val` option.][47521]
5664 - [Added `i586-unknown-linux-musl` target][47282]
5665
5666 Libraries
5667 ---------
5668 - [Impl Send for `process::Command` on Unix.][47760]
5669 - [Impl PartialEq and Eq for `ParseCharError`.][47790]
5670 - [`UnsafeCell::into_inner` is now safe.][47204]
5671 - [Implement libstd for CloudABI.][47268]
5672 - [`Float::{from_bits, to_bits}` is now available in libcore.][46931]
5673 - [Implement `AsRef<Path>` for Component][46985]
5674 - [Implemented `Write` for `Cursor<&mut Vec<u8>>`][46830]
5675 - [Moved `Duration` to libcore.][46666]
5676
5677 Stabilized APIs
5678 ---------------
5679 - [`Location::column`]
5680 - [`ptr::NonNull`]
5681
5682 The following functions can now be used in a constant expression.
5683 eg. `static MINUTE: Duration = Duration::from_secs(60);`
5684 - [`Duration::new`][47300]
5685 - [`Duration::from_secs`][47300]
5686 - [`Duration::from_millis`][47300]
5687
5688 Cargo
5689 -----
5690 - [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
5691 - [`cargo new` now defaults to creating a binary crate, instead of a
5692   library crate.][cargo/5029]
5693
5694 Misc
5695 ----
5696 - [Rust by example is now shipped with new releases][46196]
5697
5698 Compatibility Notes
5699 -------------------
5700 - [Deprecated `net::lookup_host`.][47510]
5701 - [`rustdoc` has switched to pulldown as the default markdown renderer.][47398]
5702 - The borrow checker was sometimes incorrectly permitting overlapping borrows
5703   around indexing operations (see [#47349][47349]). This has been fixed (which also
5704   enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]).
5705 - [Removed deprecated unstable attribute `#[simd]`.][47251]
5706
5707 [33903]: https://github.com/rust-lang/rust/pull/33903
5708 [47947]: https://github.com/rust-lang/rust/pull/47947
5709 [47948]: https://github.com/rust-lang/rust/pull/47948
5710 [47760]: https://github.com/rust-lang/rust/pull/47760
5711 [47790]: https://github.com/rust-lang/rust/pull/47790
5712 [47828]: https://github.com/rust-lang/rust/pull/47828
5713 [47398]: https://github.com/rust-lang/rust/pull/47398
5714 [47510]: https://github.com/rust-lang/rust/pull/47510
5715 [47521]: https://github.com/rust-lang/rust/pull/47521
5716 [47204]: https://github.com/rust-lang/rust/pull/47204
5717 [47251]: https://github.com/rust-lang/rust/pull/47251
5718 [47268]: https://github.com/rust-lang/rust/pull/47268
5719 [47282]: https://github.com/rust-lang/rust/pull/47282
5720 [47300]: https://github.com/rust-lang/rust/pull/47300
5721 [47349]: https://github.com/rust-lang/rust/pull/47349
5722 [46931]: https://github.com/rust-lang/rust/pull/46931
5723 [46985]: https://github.com/rust-lang/rust/pull/46985
5724 [47006]: https://github.com/rust-lang/rust/pull/47006
5725 [46830]: https://github.com/rust-lang/rust/pull/46830
5726 [46095]: https://github.com/rust-lang/rust/pull/46095
5727 [46666]: https://github.com/rust-lang/rust/pull/46666
5728 [46196]: https://github.com/rust-lang/rust/pull/46196
5729 [cargo/5013]: https://github.com/rust-lang/cargo/pull/5013
5730 [cargo/5029]: https://github.com/rust-lang/cargo/pull/5029
5731 [RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358
5732 [`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column
5733 [`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
5734
5735
5736 Version 1.24.1 (2018-03-01)
5737 ==========================
5738
5739  - [Do not abort when unwinding through FFI][48251]
5740  - [Emit UTF-16 files for linker arguments on Windows][48318]
5741  - [Make the error index generator work again][48308]
5742  - [Cargo will warn on Windows 7 if an update is needed][cargo/5069].
5743
5744 [48251]: https://github.com/rust-lang/rust/issues/48251
5745 [48308]: https://github.com/rust-lang/rust/issues/48308
5746 [48318]: https://github.com/rust-lang/rust/issues/48318
5747 [cargo/5069]: https://github.com/rust-lang/cargo/pull/5069
5748
5749
5750 Version 1.24.0 (2018-02-15)
5751 ==========================
5752
5753 Language
5754 --------
5755 - [External `sysv64` ffi is now available.][46528]
5756   eg. `extern "sysv64" fn foo () {}`
5757
5758 Compiler
5759 --------
5760 - [rustc now uses 16 codegen units by default for release builds.][46910]
5761   For the fastest builds, utilize `codegen-units=1`.
5762 - [Added `armv4t-unknown-linux-gnueabi` target.][47018]
5763 - [Add `aarch64-unknown-openbsd` support][46760]
5764
5765 Libraries
5766 ---------
5767 - [`str::find::<char>` now uses memchr.][46735] This should lead to a 10x
5768   improvement in performance in the majority of cases.
5769 - [`OsStr`'s `Debug` implementation is now lossless and consistent
5770   with Windows.][46798]
5771 - [`time::{SystemTime, Instant}` now implement `Hash`.][46828]
5772 - [impl `From<bool>` for `AtomicBool`][46293]
5773 - [impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`][45990]
5774 - [impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`][45990]
5775 - [impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`][45990]
5776 - [float::from_bits now just uses transmute.][46012] This provides
5777   some optimisations from LLVM.
5778 - [Copied `AsciiExt` methods onto `char`][46077]
5779 - [Remove `T: Sized` requirement on `ptr::is_null()`][46094]
5780 - [impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`][45506]
5781 - [Optimised `f32::{min, max}` to generate more efficient x86 assembly][47080]
5782 - [`[u8]::contains` now uses memchr which provides a 3x speed improvement][46713]
5783
5784 Stabilized APIs
5785 ---------------
5786 - [`RefCell::replace`]
5787 - [`RefCell::swap`]
5788 - [`atomic::spin_loop_hint`]
5789
5790 The following functions can now be used in a constant expression.
5791 eg. `let buffer: [u8; size_of::<usize>()];`, `static COUNTER: AtomicUsize = AtomicUsize::new(1);`
5792
5793 - [`AtomicBool::new`][46287]
5794 - [`AtomicUsize::new`][46287]
5795 - [`AtomicIsize::new`][46287]
5796 - [`AtomicPtr::new`][46287]
5797 - [`Cell::new`][46287]
5798 - [`{integer}::min_value`][46287]
5799 - [`{integer}::max_value`][46287]
5800 - [`mem::size_of`][46287]
5801 - [`mem::align_of`][46287]
5802 - [`ptr::null`][46287]
5803 - [`ptr::null_mut`][46287]
5804 - [`RefCell::new`][46287]
5805 - [`UnsafeCell::new`][46287]
5806
5807 Cargo
5808 -----
5809 - [Added a `workspace.default-members` config that
5810   overrides implied `--all` in virtual workspaces.][cargo/4743]
5811 - [Enable incremental by default on development builds.][cargo/4817] Also added
5812   configuration keys to `Cargo.toml` and `.cargo/config` to disable on a
5813   per-project or global basis respectively.
5814
5815 Misc
5816 ----
5817
5818 Compatibility Notes
5819 -------------------
5820 - [Floating point types `Debug` impl now always prints a decimal point.][46831]
5821 - [`Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses][46671] This is
5822   in accordance with IETF RFC 4291 §2.2.
5823 - [Unwinding will no longer go past FFI boundaries, and will instead abort.][46833]
5824 - [`Formatter::flags` method is now deprecated.][46284] The `sign_plus`,
5825   `sign_minus`, `alternate`, and `sign_aware_zero_pad` should be used instead.
5826 - [Leading zeros in tuple struct members is now an error][47084]
5827 - [`column!()` macro is one-based instead of zero-based][46977]
5828 - [`fmt::Arguments` can no longer be shared across threads][45198]
5829 - [Access to `#[repr(packed)]` struct fields is now unsafe][44884]
5830 - [Cargo sets a different working directory for the compiler][cargo/4788]
5831
5832 [44884]: https://github.com/rust-lang/rust/pull/44884
5833 [45198]: https://github.com/rust-lang/rust/pull/45198
5834 [45506]: https://github.com/rust-lang/rust/pull/45506
5835 [45990]: https://github.com/rust-lang/rust/pull/45990
5836 [46012]: https://github.com/rust-lang/rust/pull/46012
5837 [46077]: https://github.com/rust-lang/rust/pull/46077
5838 [46094]: https://github.com/rust-lang/rust/pull/46094
5839 [46284]: https://github.com/rust-lang/rust/pull/46284
5840 [46287]: https://github.com/rust-lang/rust/pull/46287
5841 [46293]: https://github.com/rust-lang/rust/pull/46293
5842 [46528]: https://github.com/rust-lang/rust/pull/46528
5843 [46671]: https://github.com/rust-lang/rust/pull/46671
5844 [46713]: https://github.com/rust-lang/rust/pull/46713
5845 [46735]: https://github.com/rust-lang/rust/pull/46735
5846 [46760]: https://github.com/rust-lang/rust/pull/46760
5847 [46798]: https://github.com/rust-lang/rust/pull/46798
5848 [46828]: https://github.com/rust-lang/rust/pull/46828
5849 [46831]: https://github.com/rust-lang/rust/pull/46831
5850 [46833]: https://github.com/rust-lang/rust/pull/46833
5851 [46910]: https://github.com/rust-lang/rust/pull/46910
5852 [46977]: https://github.com/rust-lang/rust/pull/46977
5853 [47018]: https://github.com/rust-lang/rust/pull/47018
5854 [47080]: https://github.com/rust-lang/rust/pull/47080
5855 [47084]: https://github.com/rust-lang/rust/pull/47084
5856 [cargo/4743]: https://github.com/rust-lang/cargo/pull/4743
5857 [cargo/4788]: https://github.com/rust-lang/cargo/pull/4788
5858 [cargo/4817]: https://github.com/rust-lang/cargo/pull/4817
5859 [`RefCell::replace`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.replace
5860 [`RefCell::swap`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.swap
5861 [`atomic::spin_loop_hint`]: https://doc.rust-lang.org/std/sync/atomic/fn.spin_loop_hint.html
5862
5863
5864 Version 1.23.0 (2018-01-04)
5865 ==========================
5866
5867 Language
5868 --------
5869 - [Arbitrary `auto` traits are now permitted in trait objects.][45772]
5870 - [rustc now uses subtyping on the left hand side of binary operations.][45435]
5871   Which should fix some confusing errors in some operations.
5872
5873 Compiler
5874 --------
5875 - [Enabled `TrapUnreachable` in LLVM which should mitigate the impact of
5876   undefined behavior.][45920]
5877 - [rustc now suggests renaming import if names clash.][45660]
5878 - [Display errors/warnings correctly when there are zero-width or
5879   wide characters.][45711]
5880 - [rustc now avoids unnecessary copies of arguments that are
5881   simple bindings][45380] This should improve memory usage on average by 5-10%.
5882 - [Updated musl used to build musl rustc to 1.1.17][45393]
5883
5884 Libraries
5885 ---------
5886 - [Allow a trailing comma in `assert_eq/ne` macro][45887]
5887 - [Implement Hash for raw pointers to unsized types][45483]
5888 - [impl `From<*mut T>` for `AtomicPtr<T>`][45610]
5889 - [impl `From<usize/isize>` for `AtomicUsize/AtomicIsize`.][45610]
5890 - [Removed the `T: Sync` requirement for `RwLock<T>: Send`][45267]
5891 - [Removed `T: Sized` requirement for `{<*const T>, <*mut T>}::as_ref`
5892   and `<*mut T>::as_mut`][44932]
5893 - [Optimized `Thread::{park, unpark}` implementation][45524]
5894 - [Improved `SliceExt::binary_search` performance.][45333]
5895 - [impl `FromIterator<()>` for `()`][45379]
5896 - [Copied `AsciiExt` trait methods to primitive types.][44042] Use of `AsciiExt`
5897   is now deprecated.
5898
5899 Stabilized APIs
5900 ---------------
5901
5902 Cargo
5903 -----
5904 - [Cargo now supports uninstallation of multiple packages][cargo/4561]
5905   eg. `cargo uninstall foo bar` uninstalls `foo` and `bar`.
5906 - [Added unit test checking to `cargo check`][cargo/4592]
5907 - [Cargo now lets you install a specific version
5908   using `cargo install --version`][cargo/4637]
5909
5910 Misc
5911 ----
5912 - [Releases now ship with the Cargo book documentation.][45692]
5913 - [rustdoc now prints rendering warnings on every run.][45324]
5914
5915 Compatibility Notes
5916 -------------------
5917 - [Changes have been made to type equality to make it more correct,
5918   in rare cases this could break some code.][45853] [Tracking issue for
5919   further information][45852]
5920 - [`char::escape_debug` now uses Unicode 10 over 9.][45571]
5921 - [Upgraded Android SDK to 27, and NDK to r15c.][45580] This drops support for
5922   Android 9, the minimum supported version is Android 14.
5923 - [Bumped the minimum LLVM to 3.9][45326]
5924
5925 [44042]: https://github.com/rust-lang/rust/pull/44042
5926 [44932]: https://github.com/rust-lang/rust/pull/44932
5927 [45267]: https://github.com/rust-lang/rust/pull/45267
5928 [45324]: https://github.com/rust-lang/rust/pull/45324
5929 [45326]: https://github.com/rust-lang/rust/pull/45326
5930 [45333]: https://github.com/rust-lang/rust/pull/45333
5931 [45379]: https://github.com/rust-lang/rust/pull/45379
5932 [45380]: https://github.com/rust-lang/rust/pull/45380
5933 [45393]: https://github.com/rust-lang/rust/pull/45393
5934 [45435]: https://github.com/rust-lang/rust/pull/45435
5935 [45483]: https://github.com/rust-lang/rust/pull/45483
5936 [45524]: https://github.com/rust-lang/rust/pull/45524
5937 [45571]: https://github.com/rust-lang/rust/pull/45571
5938 [45580]: https://github.com/rust-lang/rust/pull/45580
5939 [45610]: https://github.com/rust-lang/rust/pull/45610
5940 [45660]: https://github.com/rust-lang/rust/pull/45660
5941 [45692]: https://github.com/rust-lang/rust/pull/45692
5942 [45711]: https://github.com/rust-lang/rust/pull/45711
5943 [45772]: https://github.com/rust-lang/rust/pull/45772
5944 [45852]: https://github.com/rust-lang/rust/issues/45852
5945 [45853]: https://github.com/rust-lang/rust/pull/45853
5946 [45887]: https://github.com/rust-lang/rust/pull/45887
5947 [45920]: https://github.com/rust-lang/rust/pull/45920
5948 [cargo/4561]: https://github.com/rust-lang/cargo/pull/4561
5949 [cargo/4592]: https://github.com/rust-lang/cargo/pull/4592
5950 [cargo/4637]: https://github.com/rust-lang/cargo/pull/4637
5951
5952
5953 Version 1.22.1 (2017-11-22)
5954 ==========================
5955
5956 - [Update Cargo to fix an issue with macOS 10.13 "High Sierra"][46183]
5957
5958 [46183]: https://github.com/rust-lang/rust/pull/46183
5959
5960 Version 1.22.0 (2017-11-22)
5961 ==========================
5962
5963 Language
5964 --------
5965 - [`non_snake_case` lint now allows extern no-mangle functions][44966]
5966 - [Now accepts underscores in unicode escapes][43716]
5967 - [`T op= &T` now works for numeric types.][44287] eg. `let mut x = 2; x += &8;`
5968 - [types that impl `Drop` are now allowed in `const` and `static` types][44456]
5969
5970 Compiler
5971 --------
5972 - [rustc now defaults to having 16 codegen units at debug on supported platforms.][45064]
5973 - [rustc will no longer inline in codegen units when compiling for debug][45075]
5974   This should decrease compile times for debug builds.
5975 - [strict memory alignment now enabled on ARMv6][45094]
5976 - [Remove support for the PNaCl target `le32-unknown-nacl`][45041]
5977
5978 Libraries
5979 ---------
5980 - [Allow atomic operations up to 32 bits
5981   on `armv5te_unknown_linux_gnueabi`][44978]
5982 - [`Box<Error>` now impls `From<Cow<str>>`][44466]
5983 - [`std::mem::Discriminant` is now guaranteed to be `Send + Sync`][45095]
5984 - [`fs::copy` now returns the length of the main stream on NTFS.][44895]
5985 - [Properly detect overflow in `Instant += Duration`.][44220]
5986 - [impl `Hasher` for `{&mut Hasher, Box<Hasher>}`][44015]
5987 - [impl `fmt::Debug` for `SplitWhitespace`.][44303]
5988 - [`Option<T>` now impls `Try`][42526] This allows for using `?` with `Option` types.
5989
5990 Stabilized APIs
5991 ---------------
5992
5993 Cargo
5994 -----
5995 - [Cargo will now build multi file examples in subdirectories of the `examples`
5996   folder that have a `main.rs` file.][cargo/4496]
5997 - [Changed `[root]` to `[package]` in `Cargo.lock`][cargo/4571] Packages with
5998   the old format will continue to work and can be updated with `cargo update`.
5999 - [Now supports vendoring git repositories][cargo/3992]
6000
6001 Misc
6002 ----
6003 - [`libbacktrace` is now available on Apple platforms.][44251]
6004 - [Stabilised the `compile_fail` attribute for code fences in doc-comments.][43949]
6005   This now lets you specify that a given code example will fail to compile.
6006
6007 Compatibility Notes
6008 -------------------
6009 - [The minimum Android version that rustc can build for has been bumped
6010   to `4.0` from `2.3`][45656]
6011 - [Allowing `T op= &T` for numeric types has broken some type
6012   inference cases][45480]
6013
6014
6015 [42526]: https://github.com/rust-lang/rust/pull/42526
6016 [43716]: https://github.com/rust-lang/rust/pull/43716
6017 [43949]: https://github.com/rust-lang/rust/pull/43949
6018 [44015]: https://github.com/rust-lang/rust/pull/44015
6019 [44220]: https://github.com/rust-lang/rust/pull/44220
6020 [44251]: https://github.com/rust-lang/rust/pull/44251
6021 [44287]: https://github.com/rust-lang/rust/pull/44287
6022 [44303]: https://github.com/rust-lang/rust/pull/44303
6023 [44456]: https://github.com/rust-lang/rust/pull/44456
6024 [44466]: https://github.com/rust-lang/rust/pull/44466
6025 [44895]: https://github.com/rust-lang/rust/pull/44895
6026 [44966]: https://github.com/rust-lang/rust/pull/44966
6027 [44978]: https://github.com/rust-lang/rust/pull/44978
6028 [45041]: https://github.com/rust-lang/rust/pull/45041
6029 [45064]: https://github.com/rust-lang/rust/pull/45064
6030 [45075]: https://github.com/rust-lang/rust/pull/45075
6031 [45094]: https://github.com/rust-lang/rust/pull/45094
6032 [45095]: https://github.com/rust-lang/rust/pull/45095
6033 [45480]: https://github.com/rust-lang/rust/issues/45480
6034 [45656]: https://github.com/rust-lang/rust/pull/45656
6035 [cargo/3992]: https://github.com/rust-lang/cargo/pull/3992
6036 [cargo/4496]: https://github.com/rust-lang/cargo/pull/4496
6037 [cargo/4571]: https://github.com/rust-lang/cargo/pull/4571
6038
6039
6040
6041
6042
6043
6044 Version 1.21.0 (2017-10-12)
6045 ==========================
6046
6047 Language
6048 --------
6049 - [You can now use static references for literals.][43838]
6050   Example:
6051   ```rust
6052   fn main() {
6053       let x: &'static u32 = &0;
6054   }
6055   ```
6056 - [Relaxed path syntax. Optional `::` before `<` is now allowed in all contexts.][43540]
6057   Example:
6058   ```rust
6059   my_macro!(Vec<i32>::new); // Always worked
6060   my_macro!(Vec::<i32>::new); // Now works
6061   ```
6062
6063 Compiler
6064 --------
6065 - [Upgraded jemalloc to 4.5.0][43911]
6066 - [Enabled unwinding panics on Redox][43917]
6067 - [Now runs LLVM in parallel during translation phase.][43506]
6068   This should reduce peak memory usage.
6069
6070 Libraries
6071 ---------
6072 - [Generate builtin impls for `Clone` for all arrays and tuples that
6073   are `T: Clone`][43690]
6074 - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459]
6075 - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From<str>`,
6076   `From<String>`, `From<Box<T>> where T: ?Sized`, and `From<Vec<T>>`.][42565]
6077
6078 Stabilized APIs
6079 ---------------
6080
6081 [`std::mem::discriminant`]
6082
6083 Cargo
6084 -----
6085 - [You can now call `cargo install` with multiple package names][cargo/4216]
6086 - [Cargo commands inside a virtual workspace will now implicitly
6087   pass `--all`][cargo/4335]
6088 - [Added a `[patch]` section to `Cargo.toml` to handle
6089   prepublication dependencies][cargo/4123] [RFC 1969]
6090 - [`include` & `exclude` fields in `Cargo.toml` now accept gitignore
6091   like patterns][cargo/4270]
6092 - [Added the `--all-targets` option][cargo/4400]
6093 - [Using required dependencies as a feature is now deprecated and emits
6094   a warning][cargo/4364]
6095
6096
6097 Misc
6098 ----
6099 - [Cargo docs are moving][43916]
6100   to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo)
6101 - [The rustdoc book is now available][43863]
6102   at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc)
6103 - [Added a preview of RLS has been made available through rustup][44204]
6104   Install with `rustup component add rls-preview`
6105 - [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348]
6106   Previously only showed `std::os::unix`.
6107
6108 Compatibility Notes
6109 -------------------
6110 - [Changes in method matching against higher-ranked types][43880] This may cause
6111   breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880]
6112 - [rustc's JSON error output's byte position start at top of file.][42973]
6113   Was previously relative to the rustc's internal `CodeMap` struct which
6114   required the unstable library `libsyntax` to correctly use.
6115 - [`unused_results` lint no longer ignores booleans][43728]
6116
6117 [42565]: https://github.com/rust-lang/rust/pull/42565
6118 [42973]: https://github.com/rust-lang/rust/pull/42973
6119 [43348]: https://github.com/rust-lang/rust/pull/43348
6120 [43459]: https://github.com/rust-lang/rust/pull/43459
6121 [43506]: https://github.com/rust-lang/rust/pull/43506
6122 [43540]: https://github.com/rust-lang/rust/pull/43540
6123 [43690]: https://github.com/rust-lang/rust/pull/43690
6124 [43728]: https://github.com/rust-lang/rust/pull/43728
6125 [43838]: https://github.com/rust-lang/rust/pull/43838
6126 [43863]: https://github.com/rust-lang/rust/pull/43863
6127 [43880]: https://github.com/rust-lang/rust/pull/43880
6128 [43911]: https://github.com/rust-lang/rust/pull/43911
6129 [43916]: https://github.com/rust-lang/rust/pull/43916
6130 [43917]: https://github.com/rust-lang/rust/pull/43917
6131 [44204]: https://github.com/rust-lang/rust/pull/44204
6132 [cargo/4123]: https://github.com/rust-lang/cargo/pull/4123
6133 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216
6134 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
6135 [cargo/4335]: https://github.com/rust-lang/cargo/pull/4335
6136 [cargo/4364]: https://github.com/rust-lang/cargo/pull/4364
6137 [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400
6138 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969
6139 [info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902
6140 [`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html
6141
6142 Version 1.20.0 (2017-08-31)
6143 ===========================
6144
6145 Language
6146 --------
6147 - [Associated constants are now stabilised.][42809]
6148 - [A lot of macro bugs are now fixed.][42913]
6149
6150 Compiler
6151 --------
6152
6153 - [Struct fields are now properly coerced to the expected field type.][42807]
6154 - [Enabled wasm LLVM backend][42571] WASM can now be built with the
6155   `wasm32-experimental-emscripten` target.
6156 - [Changed some of the error messages to be more helpful.][42033]
6157 - [Add support for RELRO(RELocation Read-Only) for platforms that support
6158   it.][43170]
6159 - [rustc now reports the total number of errors on compilation failure][43015]
6160   previously this was only the number of errors in the pass that failed.
6161 - [Expansion in rustc has been sped up 29x.][42533]
6162 - [added `msp430-none-elf` target.][43099]
6163 - [rustc will now suggest one-argument enum variant to fix type mismatch when
6164   applicable][43178]
6165 - [Fixes backtraces on Redox][43228]
6166 - [rustc now identifies different versions of same crate when absolute paths of
6167   different types match in an error message.][42826]
6168
6169 Libraries
6170 ---------
6171
6172
6173 - [Relaxed Debug constraints on `{HashMap,BTreeMap}::{Keys,Values}`.][42854]
6174 - [Impl `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Debug`, `Hash` for unsized
6175   tuples.][43011]
6176 - [Impl `fmt::{Display, Debug}` for `Ref`, `RefMut`, `MutexGuard`,
6177   `RwLockReadGuard`, `RwLockWriteGuard`][42822]
6178 - [Impl `Clone` for `DefaultHasher`.][42799]
6179 - [Impl `Sync` for `SyncSender`.][42397]
6180 - [Impl `FromStr` for `char`][42271]
6181 - [Fixed how `{f32, f64}::{is_sign_negative, is_sign_positive}` handles
6182   NaN.][42431]
6183 - [allow messages in the `unimplemented!()` macro.][42155]
6184   ie. `unimplemented!("Waiting for 1.21 to be stable")`
6185 - [`pub(restricted)` is now supported in the `thread_local!` macro.][43185]
6186 - [Upgrade to Unicode 10.0.0][42999]
6187 - [Reimplemented `{f32, f64}::{min, max}` in Rust instead of using CMath.][42430]
6188 - [Skip the main thread's manual stack guard on Linux][43072]
6189 - [Iterator::nth for `ops::{Range, RangeFrom}` is now done in *O*(1) time][43077]
6190 - [`#[repr(align(N))]` attribute max number is now 2^31 - 1.][43097] This was
6191   previously 2^15.
6192 - [`{OsStr, Path}::Display` now avoids allocations where possible][42613]
6193
6194 Stabilized APIs
6195 ---------------
6196
6197 - [`CStr::into_c_string`]
6198 - [`CString::as_c_str`]
6199 - [`CString::into_boxed_c_str`]
6200 - [`Chain::get_mut`]
6201 - [`Chain::get_ref`]
6202 - [`Chain::into_inner`]
6203 - [`Option::get_or_insert_with`]
6204 - [`Option::get_or_insert`]
6205 - [`OsStr::into_os_string`]
6206 - [`OsString::into_boxed_os_str`]
6207 - [`Take::get_mut`]
6208 - [`Take::get_ref`]
6209 - [`Utf8Error::error_len`]
6210 - [`char::EscapeDebug`]
6211 - [`char::escape_debug`]
6212 - [`compile_error!`]
6213 - [`f32::from_bits`]
6214 - [`f32::to_bits`]
6215 - [`f64::from_bits`]
6216 - [`f64::to_bits`]
6217 - [`mem::ManuallyDrop`]
6218 - [`slice::sort_unstable_by_key`]
6219 - [`slice::sort_unstable_by`]
6220 - [`slice::sort_unstable`]
6221 - [`str::from_boxed_utf8_unchecked`]
6222 - [`str::as_bytes_mut`]
6223 - [`str::as_bytes_mut`]
6224 - [`str::from_utf8_mut`]
6225 - [`str::from_utf8_unchecked_mut`]
6226 - [`str::get_mut`]
6227 - [`str::get_unchecked_mut`]
6228 - [`str::get_unchecked`]
6229 - [`str::get`]
6230 - [`str::into_boxed_bytes`]
6231
6232
6233 Cargo
6234 -----
6235 - [Cargo API token location moved from `~/.cargo/config` to
6236   `~/.cargo/credentials`.][cargo/3978]
6237 - [Cargo will now build `main.rs` binaries that are in sub-directories of
6238   `src/bin`.][cargo/4214] ie. Having `src/bin/server/main.rs` and
6239   `src/bin/client/main.rs` generates `target/debug/server` and `target/debug/client`
6240 - [You can now specify version of a binary when installed through
6241   `cargo install` using `--vers`.][cargo/4229]
6242 - [Added `--no-fail-fast` flag to cargo to run all benchmarks regardless of
6243   failure.][cargo/4248]
6244 - [Changed the convention around which file is the crate root.][cargo/4259]
6245
6246 Compatibility Notes
6247 -------------------
6248
6249 - [Functions with `'static` in their return types will now not be as usable as
6250   if they were using lifetime parameters instead.][42417]
6251 - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now
6252   takes the sign of NaN into account where previously didn't.][42430]
6253
6254 [42033]: https://github.com/rust-lang/rust/pull/42033
6255 [42155]: https://github.com/rust-lang/rust/pull/42155
6256 [42271]: https://github.com/rust-lang/rust/pull/42271
6257 [42397]: https://github.com/rust-lang/rust/pull/42397
6258 [42417]: https://github.com/rust-lang/rust/pull/42417
6259 [42430]: https://github.com/rust-lang/rust/pull/42430
6260 [42431]: https://github.com/rust-lang/rust/pull/42431
6261 [42533]: https://github.com/rust-lang/rust/pull/42533
6262 [42571]: https://github.com/rust-lang/rust/pull/42571
6263 [42613]: https://github.com/rust-lang/rust/pull/42613
6264 [42799]: https://github.com/rust-lang/rust/pull/42799
6265 [42807]: https://github.com/rust-lang/rust/pull/42807
6266 [42809]: https://github.com/rust-lang/rust/pull/42809
6267 [42822]: https://github.com/rust-lang/rust/pull/42822
6268 [42826]: https://github.com/rust-lang/rust/pull/42826
6269 [42854]: https://github.com/rust-lang/rust/pull/42854
6270 [42913]: https://github.com/rust-lang/rust/pull/42913
6271 [42999]: https://github.com/rust-lang/rust/pull/42999
6272 [43011]: https://github.com/rust-lang/rust/pull/43011
6273 [43015]: https://github.com/rust-lang/rust/pull/43015
6274 [43072]: https://github.com/rust-lang/rust/pull/43072
6275 [43077]: https://github.com/rust-lang/rust/pull/43077
6276 [43097]: https://github.com/rust-lang/rust/pull/43097
6277 [43099]: https://github.com/rust-lang/rust/pull/43099
6278 [43170]: https://github.com/rust-lang/rust/pull/43170
6279 [43178]: https://github.com/rust-lang/rust/pull/43178
6280 [43185]: https://github.com/rust-lang/rust/pull/43185
6281 [43228]: https://github.com/rust-lang/rust/pull/43228
6282 [cargo/3978]: https://github.com/rust-lang/cargo/pull/3978
6283 [cargo/4214]: https://github.com/rust-lang/cargo/pull/4214
6284 [cargo/4229]: https://github.com/rust-lang/cargo/pull/4229
6285 [cargo/4248]: https://github.com/rust-lang/cargo/pull/4248
6286 [cargo/4259]: https://github.com/rust-lang/cargo/pull/4259
6287 [`CStr::into_c_string`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.into_c_string
6288 [`CString::as_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.as_c_str
6289 [`CString::into_boxed_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str
6290 [`Chain::get_mut`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_mut
6291 [`Chain::get_ref`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_ref
6292 [`Chain::into_inner`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.into_inner
6293 [`Option::get_or_insert_with`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert_with
6294 [`Option::get_or_insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert
6295 [`OsStr::into_os_string`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.into_os_string
6296 [`OsString::into_boxed_os_str`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.into_boxed_os_str
6297 [`Take::get_mut`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_mut
6298 [`Take::get_ref`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_ref
6299 [`Utf8Error::error_len`]: https://doc.rust-lang.org/std/str/struct.Utf8Error.html#method.error_len
6300 [`char::EscapeDebug`]: https://doc.rust-lang.org/std/char/struct.EscapeDebug.html
6301 [`char::escape_debug`]: https://doc.rust-lang.org/std/primitive.char.html#method.escape_debug
6302 [`compile_error!`]: https://doc.rust-lang.org/std/macro.compile_error.html
6303 [`f32::from_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits
6304 [`f32::to_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_bits
6305 [`f64::from_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_bits
6306 [`f64::to_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_bits
6307 [`mem::ManuallyDrop`]: https://doc.rust-lang.org/std/mem/union.ManuallyDrop.html
6308 [`slice::sort_unstable_by_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by_key
6309 [`slice::sort_unstable_by`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by
6310 [`slice::sort_unstable`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable
6311 [`str::from_boxed_utf8_unchecked`]: https://doc.rust-lang.org/std/str/fn.from_boxed_utf8_unchecked.html
6312 [`str::as_bytes_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_bytes_mut
6313 [`str::from_utf8_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_mut.html
6314 [`str::from_utf8_unchecked_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_unchecked_mut.html
6315 [`str::get_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_mut
6316 [`str::get_unchecked_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked_mut
6317 [`str::get_unchecked`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked
6318 [`str::get`]: https://doc.rust-lang.org/std/primitive.str.html#method.get
6319 [`str::into_boxed_bytes`]: https://doc.rust-lang.org/std/primitive.str.html#method.into_boxed_bytes
6320
6321
6322 Version 1.19.0 (2017-07-20)
6323 ===========================
6324
6325 Language
6326 --------
6327
6328 - [Numeric fields can now be used for creating tuple structs.][41145] [RFC 1506]
6329   For example `struct Point(u32, u32); let x = Point { 0: 7, 1: 0 };`.
6330 - [Macro recursion limit increased to 1024 from 64.][41676]
6331 - [Added lint for detecting unused macros.][41907]
6332 - [`loop` can now return a value with `break`.][42016] [RFC 1624]
6333   For example: `let x = loop { break 7; };`
6334 - [C compatible `union`s are now available.][42068] [RFC 1444] They can only
6335   contain `Copy` types and cannot have a `Drop` implementation.
6336   Example: `union Foo { bar: u8, baz: usize }`
6337 - [Non capturing closures can now be coerced into `fn`s,][42162] [RFC 1558]
6338   Example: `let foo: fn(u8) -> u8 = |v: u8| { v };`
6339
6340 Compiler
6341 --------
6342
6343 - [Add support for bootstrapping the Rust compiler toolchain on Android.][41370]
6344 - [Change `arm-linux-androideabi` to correspond to the `armeabi`
6345   official ABI.][41656] If you wish to continue targeting the `armeabi-v7a` ABI
6346   you should use `--target armv7-linux-androideabi`.
6347 - [Fixed ICE when removing a source file between compilation sessions.][41873]
6348 - [Minor optimisation of string operations.][42037]
6349 - [Compiler error message is now `aborting due to previous error(s)` instead of
6350   `aborting due to N previous errors`][42150] This was previously inaccurate and
6351   would only count certain kinds of errors.
6352 - [The compiler now supports Visual Studio 2017][42225]
6353 - [The compiler is now built against LLVM 4.0.1 by default][42948]
6354 - [Added a lot][42264] of [new error codes][42302]
6355 - [Added `target-feature=+crt-static` option][37406] [RFC 1721] Which allows
6356   libraries with C Run-time Libraries(CRT) to be statically linked.
6357 - [Fixed various ARM codegen bugs][42740]
6358
6359 Libraries
6360 ---------
6361
6362 - [`String` now implements `FromIterator<Cow<'a, str>>` and
6363   `Extend<Cow<'a, str>>`][41449]
6364 - [`Vec` now implements `From<&mut [T]>`][41530]
6365 - [`Box<[u8]>` now implements `From<Box<str>>`][41258]
6366 - [`SplitWhitespace` now implements `Clone`][41659]
6367 - [`[u8]::reverse` is now 5x faster and `[u16]::reverse` is now
6368   1.5x faster][41764]
6369 - [`eprint!` and `eprintln!` macros added to prelude.][41192] Same as the `print!`
6370   macros, but for printing to stderr.
6371
6372 Stabilized APIs
6373 ---------------
6374
6375 - [`OsString::shrink_to_fit`]
6376 - [`cmp::Reverse`]
6377 - [`Command::envs`]
6378 - [`thread::ThreadId`]
6379
6380 Cargo
6381 -----
6382
6383 - [Build scripts can now add environment variables to the environment
6384   the crate is being compiled in.
6385   Example: `println!("cargo:rustc-env=FOO=bar");`][cargo/3929]
6386 - [Subcommands now replace the current process rather than spawning a new
6387   child process][cargo/3970]
6388 - [Workspace members can now accept glob file patterns][cargo/3979]
6389 - [Added `--all` flag to the `cargo bench` subcommand to run benchmarks of all
6390   the members in a given workspace.][cargo/3988]
6391 - [Updated `libssh2-sys` to 0.2.6][cargo/4008]
6392 - [Target directory path is now in the cargo metadata][cargo/4022]
6393 - [Cargo no longer checks out a local working directory for the
6394   crates.io index][cargo/4026] This should provide smaller file size for the
6395   registry, and improve cloning times, especially on Windows machines.
6396 - [Added an `--exclude` option for excluding certain packages when using the
6397   `--all` option][cargo/4031]
6398 - [Cargo will now automatically retry when receiving a 5xx error
6399   from crates.io][cargo/4032]
6400 - [The `--features` option now accepts multiple comma or space
6401   delimited values.][cargo/4084]
6402 - [Added support for custom target specific runners][cargo/3954]
6403
6404 Misc
6405 ----
6406
6407 - [Added `rust-windbg.cmd`][39983] for loading rust `.natvis` files in the
6408   Windows Debugger.
6409 - [Rust will now release XZ compressed packages][rust-installer/57]
6410 - [rustup will now prefer to download rust packages with
6411   XZ compression][rustup/1100] over GZip packages.
6412 - [Added the ability to escape `#` in rust documentation][41785] By adding
6413   additional `#`'s ie. `##` is now `#`
6414
6415 Compatibility Notes
6416 -------------------
6417
6418 - [`MutexGuard<T>` may only be `Sync` if `T` is `Sync`.][41624]
6419 - [`-Z` flags are now no longer allowed to be used on the stable
6420   compiler.][41751] This has been a warning for a year previous to this.
6421 - [As a result of the `-Z` flag change, the `cargo-check` plugin no
6422   longer works][42844]. Users should migrate to the built-in `check`
6423   command, which has been available since 1.16.
6424 - [Ending a float literal with `._` is now a hard error.
6425   Example: `42._` .][41946]
6426 - [Any use of a private `extern crate` outside of its module is now a
6427   hard error.][36886] This was previously a warning.
6428 - [`use ::self::foo;` is now a hard error.][36888] `self` paths are always
6429   relative while the `::` prefix makes a path absolute, but was ignored and the
6430   path was relative regardless.
6431 - [Floating point constants in match patterns is now a hard error][36890]
6432   This was previously a warning.
6433 - [Struct or enum constants that don't derive `PartialEq` & `Eq` used
6434   match patterns is now a hard error][36891] This was previously a warning.
6435 - [Lifetimes named `'_` are no longer allowed.][36892] This was previously
6436   a warning.
6437 - [From the pound escape, lines consisting of multiple `#`s are
6438   now visible][41785]
6439 - [It is an error to re-export private enum variants][42460]. This is
6440   known to break a number of crates that depend on an older version of
6441   mustache.
6442 - [On Windows, if `VCINSTALLDIR` is set incorrectly, `rustc` will try
6443   to use it to find the linker, and the build will fail where it did
6444   not previously][42607]
6445
6446 [36886]: https://github.com/rust-lang/rust/issues/36886
6447 [36888]: https://github.com/rust-lang/rust/issues/36888
6448 [36890]: https://github.com/rust-lang/rust/issues/36890
6449 [36891]: https://github.com/rust-lang/rust/issues/36891
6450 [36892]: https://github.com/rust-lang/rust/issues/36892
6451 [37406]: https://github.com/rust-lang/rust/issues/37406
6452 [39983]: https://github.com/rust-lang/rust/pull/39983
6453 [41145]: https://github.com/rust-lang/rust/pull/41145
6454 [41192]: https://github.com/rust-lang/rust/pull/41192
6455 [41258]: https://github.com/rust-lang/rust/pull/41258
6456 [41370]: https://github.com/rust-lang/rust/pull/41370
6457 [41449]: https://github.com/rust-lang/rust/pull/41449
6458 [41530]: https://github.com/rust-lang/rust/pull/41530
6459 [41624]: https://github.com/rust-lang/rust/pull/41624
6460 [41656]: https://github.com/rust-lang/rust/pull/41656
6461 [41659]: https://github.com/rust-lang/rust/pull/41659
6462 [41676]: https://github.com/rust-lang/rust/pull/41676
6463 [41751]: https://github.com/rust-lang/rust/pull/41751
6464 [41764]: https://github.com/rust-lang/rust/pull/41764
6465 [41785]: https://github.com/rust-lang/rust/pull/41785
6466 [41873]: https://github.com/rust-lang/rust/pull/41873
6467 [41907]: https://github.com/rust-lang/rust/pull/41907
6468 [41946]: https://github.com/rust-lang/rust/pull/41946
6469 [42016]: https://github.com/rust-lang/rust/pull/42016
6470 [42037]: https://github.com/rust-lang/rust/pull/42037
6471 [42068]: https://github.com/rust-lang/rust/pull/42068
6472 [42150]: https://github.com/rust-lang/rust/pull/42150
6473 [42162]: https://github.com/rust-lang/rust/pull/42162
6474 [42225]: https://github.com/rust-lang/rust/pull/42225
6475 [42264]: https://github.com/rust-lang/rust/pull/42264
6476 [42302]: https://github.com/rust-lang/rust/pull/42302
6477 [42460]: https://github.com/rust-lang/rust/issues/42460
6478 [42607]: https://github.com/rust-lang/rust/issues/42607
6479 [42740]: https://github.com/rust-lang/rust/pull/42740
6480 [42844]: https://github.com/rust-lang/rust/issues/42844
6481 [42948]: https://github.com/rust-lang/rust/pull/42948
6482 [RFC 1444]: https://github.com/rust-lang/rfcs/pull/1444
6483 [RFC 1506]: https://github.com/rust-lang/rfcs/pull/1506
6484 [RFC 1558]: https://github.com/rust-lang/rfcs/pull/1558
6485 [RFC 1624]: https://github.com/rust-lang/rfcs/pull/1624
6486 [RFC 1721]: https://github.com/rust-lang/rfcs/pull/1721
6487 [`Command::envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.envs
6488 [`OsString::shrink_to_fit`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.shrink_to_fit
6489 [`cmp::Reverse`]: https://doc.rust-lang.org/std/cmp/struct.Reverse.html
6490 [`thread::ThreadId`]: https://doc.rust-lang.org/std/thread/struct.ThreadId.html
6491 [cargo/3929]: https://github.com/rust-lang/cargo/pull/3929
6492 [cargo/3954]: https://github.com/rust-lang/cargo/pull/3954
6493 [cargo/3970]: https://github.com/rust-lang/cargo/pull/3970
6494 [cargo/3979]: https://github.com/rust-lang/cargo/pull/3979
6495 [cargo/3988]: https://github.com/rust-lang/cargo/pull/3988
6496 [cargo/4008]: https://github.com/rust-lang/cargo/pull/4008
6497 [cargo/4022]: https://github.com/rust-lang/cargo/pull/4022
6498 [cargo/4026]: https://github.com/rust-lang/cargo/pull/4026
6499 [cargo/4031]: https://github.com/rust-lang/cargo/pull/4031
6500 [cargo/4032]: https://github.com/rust-lang/cargo/pull/4032
6501 [cargo/4084]: https://github.com/rust-lang/cargo/pull/4084
6502 [rust-installer/57]: https://github.com/rust-lang/rust-installer/pull/57
6503 [rustup/1100]: https://github.com/rust-lang-nursery/rustup.rs/pull/1100
6504
6505
6506 Version 1.18.0 (2017-06-08)
6507 ===========================
6508
6509 Language
6510 --------
6511
6512 - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to
6513   make the item visible to just that module tree. Also accepts the keyword
6514   `crate` to make something public to the whole crate but not users of the
6515   library. Example: `pub(crate) mod utils;`. [RFC 1422].
6516 - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the
6517   `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665].
6518 - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept
6519   types like `Write + Send`, trailing `+` are now supported in trait objects,
6520   and better error reporting for trait objects starting with `?Sized`.
6521 - [0e+10 is now a valid floating point literal][40589]
6522 - [Now warns if you bind a lifetime parameter to 'static][40734]
6523 - [Tuples, Enum variant fields, and structs with no `repr` attribute or with
6524   `#[repr(Rust)]` are reordered to minimize padding and produce a smaller
6525   representation in some cases.][40377]
6526
6527 Compiler
6528 --------
6529
6530 - [rustc can now emit mir with `--emit mir`][39891]
6531 - [Improved LLVM IR for trivial functions][40367]
6532 - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723]
6533 - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation
6534   opportunities found through profiling
6535 - [Improved backtrace formatting when panicking][38165]
6536
6537 Libraries
6538 ---------
6539
6540 - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the
6541   iterator hasn't been advanced the original `Vec` is reassembled with no actual
6542   iteration or reallocation.
6543 - [Simplified HashMap Bucket interface][40561] provides performance
6544   improvements for iterating and cloning.
6545 - [Specialize Vec::from_elem to use calloc][40409]
6546 - [Fixed Race condition in fs::create_dir_all][39799]
6547 - [No longer caching stdio on Windows][40516]
6548 - [Optimized insertion sort in slice][40807] insertion sort in some cases
6549   2.50%~ faster and in one case now 12.50% faster.
6550 - [Optimized `AtomicBool::fetch_nand`][41143]
6551
6552 Stabilized APIs
6553 ---------------
6554
6555 - [`Child::try_wait`]
6556 - [`HashMap::retain`]
6557 - [`HashSet::retain`]
6558 - [`PeekMut::pop`]
6559 - [`TcpStream::peek`]
6560 - [`UdpSocket::peek`]
6561 - [`UdpSocket::peek_from`]
6562
6563 Cargo
6564 -----
6565
6566 - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust.
6567   You can now create new cargo projects with Pijul using `cargo new --vcs pijul`
6568 - [Now always emits build script warnings for crates that fail to build][cargo/3847]
6569 - [Added Android build support][cargo/3885]
6570 - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs
6571   of a certain type, for example `cargo build --bins` will build all
6572   binaries.
6573 - [Added support for haiku][cargo/3952]
6574
6575 Misc
6576 ----
6577
6578 - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338]
6579 - [Rust now uses the official cross compiler for NetBSD][40612]
6580 - [rustdoc now accepts `#` at the start of files][40828]
6581 - [Fixed jemalloc support for musl][41168]
6582
6583 Compatibility Notes
6584 -------------------
6585
6586 - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now
6587   always placed after the sign if it exists and before the digits. With the `#`
6588   flag the zeroes are placed after the prefix and before the digits.
6589 - [Due to the struct field optimisation][40377], using `transmute` on structs
6590   that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has
6591   always been undefined behavior, but is now more likely to break in practice.
6592 - [The refactor of trait object type parsing][40043] fixed a bug where `+` was
6593   receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as
6594   `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send`
6595 - [Overlapping inherent `impl`s are now a hard error][40728]
6596 - [`PartialOrd` and `Ord` must agree on the ordering.][41270]
6597 - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output
6598   `out.asm` and `out.ll` instead of only one of the filetypes.
6599 - [ calling a function that returns `Self` will no longer work][41805] when
6600   the size of `Self` cannot be statically determined.
6601 - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805]
6602   this has caused a few regressions namely:
6603
6604   - Changed the link order of local static/dynamic libraries (respecting the
6605     order on given rather than having the compiler reorder).
6606   - Changed how MinGW is linked, native code linked to dynamic libraries
6607     may require manually linking to the gcc support library (for the native
6608     code itself)
6609
6610 [38165]: https://github.com/rust-lang/rust/pull/38165
6611 [39799]: https://github.com/rust-lang/rust/pull/39799
6612 [39891]: https://github.com/rust-lang/rust/pull/39891
6613 [40043]: https://github.com/rust-lang/rust/pull/40043
6614 [40241]: https://github.com/rust-lang/rust/pull/40241
6615 [40338]: https://github.com/rust-lang/rust/pull/40338
6616 [40367]: https://github.com/rust-lang/rust/pull/40367
6617 [40377]: https://github.com/rust-lang/rust/pull/40377
6618 [40409]: https://github.com/rust-lang/rust/pull/40409
6619 [40516]: https://github.com/rust-lang/rust/pull/40516
6620 [40556]: https://github.com/rust-lang/rust/pull/40556
6621 [40561]: https://github.com/rust-lang/rust/pull/40561
6622 [40589]: https://github.com/rust-lang/rust/pull/40589
6623 [40612]: https://github.com/rust-lang/rust/pull/40612
6624 [40723]: https://github.com/rust-lang/rust/pull/40723
6625 [40728]: https://github.com/rust-lang/rust/pull/40728
6626 [40731]: https://github.com/rust-lang/rust/pull/40731
6627 [40734]: https://github.com/rust-lang/rust/pull/40734
6628 [40805]: https://github.com/rust-lang/rust/pull/40805
6629 [40807]: https://github.com/rust-lang/rust/pull/40807
6630 [40828]: https://github.com/rust-lang/rust/pull/40828
6631 [40870]: https://github.com/rust-lang/rust/pull/40870
6632 [41085]: https://github.com/rust-lang/rust/pull/41085
6633 [41143]: https://github.com/rust-lang/rust/pull/41143
6634 [41168]: https://github.com/rust-lang/rust/pull/41168
6635 [41270]: https://github.com/rust-lang/rust/issues/41270
6636 [41469]: https://github.com/rust-lang/rust/pull/41469
6637 [41805]: https://github.com/rust-lang/rust/issues/41805
6638 [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md
6639 [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md
6640 [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
6641 [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain
6642 [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain
6643 [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop
6644 [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek
6645 [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from
6646 [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek
6647 [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842
6648 [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847
6649 [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885
6650 [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901
6651 [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952
6652
6653
6654 Version 1.17.0 (2017-04-27)
6655 ===========================
6656
6657 Language
6658 --------
6659
6660 * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
6661 * [Fields of structs may be initialized without duplicating the field/variable
6662   names][39761]. [RFC 1682]
6663 * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
6664 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6665   there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
6666   coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
6667   `'b`. Soundness fix.
6668 * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
6669 * [Static variables may contain references to other statics][40027]
6670
6671 Compiler
6672 --------
6673
6674 * [Exit quickly on only `--emit dep-info`][40336]
6675 * [Make `-C relocation-model` more correctly determine whether the linker
6676   creates a position-independent executable][40245]
6677 * [Add `-C overflow-checks` to directly control whether integer overflow
6678   panics][40037]
6679 * [The rustc type checker now checks items on demand instead of in a single
6680   in-order pass][40008]. This is mostly an internal refactoring in support of
6681   future work, including incremental type checking, but also resolves [RFC
6682   1647], allowing `Self` to appear in `impl` `where` clauses.
6683 * [Optimize vtable loads][39995]
6684 * [Turn off vectorization for Emscripten targets][39990]
6685 * [Provide suggestions for unknown macros imported with `use`][39953]
6686 * [Fix ICEs in path resolution][39939]
6687 * [Strip exception handling code on Emscripten when `panic=abort`][39193]
6688 * [Add clearer error message using `&str + &str`][39116]
6689
6690 Stabilized APIs
6691 ---------------
6692
6693 * [`Arc::into_raw`]
6694 * [`Arc::from_raw`]
6695 * [`Arc::ptr_eq`]
6696 * [`Rc::into_raw`]
6697 * [`Rc::from_raw`]
6698 * [`Rc::ptr_eq`]
6699 * [`Ordering::then`]
6700 * [`Ordering::then_with`]
6701 * [`BTreeMap::range`]
6702 * [`BTreeMap::range_mut`]
6703 * [`collections::Bound`]
6704 * [`process::abort`]
6705 * [`ptr::read_unaligned`]
6706 * [`ptr::write_unaligned`]
6707 * [`Result::expect_err`]
6708 * [`Cell::swap`]
6709 * [`Cell::replace`]
6710 * [`Cell::into_inner`]
6711 * [`Cell::take`]
6712
6713 Libraries
6714 ---------
6715
6716 * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
6717 * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
6718 * [`String` implements `FromIterator<&char>`][40028]
6719 * `Box` [implements][40009] a number of new conversions:
6720   `From<Box<str>> for String`,
6721   `From<Box<[T]>> for Vec<T>`,
6722   `From<Box<CStr>> for CString`,
6723   `From<Box<OsStr>> for OsString`,
6724   `From<Box<Path>> for PathBuf`,
6725   `Into<Box<str>> for String`,
6726   `Into<Box<[T]>> for Vec<T>`,
6727   `Into<Box<CStr>> for CString`,
6728   `Into<Box<OsStr>> for OsString`,
6729   `Into<Box<Path>> for PathBuf`,
6730   `Default for Box<str>`,
6731   `Default for Box<CStr>`,
6732   `Default for Box<OsStr>`,
6733   `From<&CStr> for Box<CStr>`,
6734   `From<&OsStr> for Box<OsStr>`,
6735   `From<&Path> for Box<Path>`
6736 * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
6737 * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
6738 * [Slightly optimize `slice::sort`][39538]
6739 * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
6740 * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
6741   `Box<str>` implements `From<&str>`][39438]
6742 * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
6743   `From<(I, u16)> where I: Into<IpAddr>`][39372]
6744 * [`format!` estimates the needed capacity before writing a string][39356]
6745 * [Support unprivileged symlink creation in Windows][38921]
6746 * [`PathBuf` implements `Default`][38764]
6747 * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
6748 * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
6749   and poor hash functions.
6750
6751 Cargo
6752 -----
6753
6754 * [Add `cargo check --all`][cargo/3731]
6755 * [Add an option to ignore SSL revocation checking][cargo/3699]
6756 * [Add `cargo run --package`][cargo/3691]
6757 * [Add `required_features`][cargo/3667]
6758 * [Assume `build.rs` is a build script][cargo/3664]
6759 * [Find workspace via `workspace_root` link in containing member][cargo/3562]
6760
6761 Misc
6762 ----
6763
6764 * [Documentation is rendered with mdbook instead of the obsolete, in-tree
6765   `rustbook`][39633]
6766 * [The "Unstable Book" documents nightly-only features][ubook]
6767 * [Improve the style of the sidebar in rustdoc output][40265]
6768 * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
6769 * [Fix MSP430 breakage due to `i128`][40257]
6770 * [Preliminary Solaris/SPARCv9 support][39903]
6771 * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
6772   run without installing the MSVC runtime.
6773 * [`rustdoc --test` includes file names in test names][39788]
6774 * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
6775   `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
6776 * [Initial support for `aarch64-unknown-freebsd`][39491]
6777 * [Initial support for `i686-unknown-netbsd`][39426]
6778 * [This release no longer includes the old makefile build system][39431]. Rust
6779   is built with a custom build system, written in Rust, and with Cargo.
6780 * [Add Debug implementations for libcollection structs][39002]
6781 * [`TypeId` implements `PartialOrd` and `Ord`][38981]
6782 * [`--test-threads=0` produces an error][38945]
6783 * [`rustup` installs documentation by default][40526]
6784 * [The Rust source includes NatVis visualizations][39843]. These can be used by
6785   WinDbg and Visual Studio to improve the debugging experience.
6786
6787 Compatibility Notes
6788 -------------------
6789
6790 * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
6791   workaround, either use MSVC 2015 or run vcvars.bat.
6792 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6793   disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
6794   `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
6795   fix.
6796 * [`format!` and `Display::to_string` panic if an underlying formatting
6797   implementation returns an error][40117]. Previously the error was silently
6798   ignored. It is incorrect for `write_fmt` to return an error when writing
6799   to a string.
6800 * [In-tree crates are verified to be unstable][39851]. Previously, some minor
6801   crates were marked stable and could be accessed from the stable toolchain.
6802 * [Rust git source no longer includes vendored crates][39728]. Those that need
6803   to build with vendored crates should build from release tarballs.
6804 * [Fix inert attributes from `proc_macro_derives`][39572]
6805 * [During crate resolution, rustc prefers a crate in the sysroot if two crates
6806   are otherwise identical][39518]. Unlikely to be encountered outside the Rust
6807   build system.
6808 * [Fixed bugs around how type inference interacts with dead-code][39485]. The
6809   existing code generally ignores the type of dead-code unless a type-hint is
6810   provided; this can cause surprising inference interactions particularly around
6811   defaulting. The new code uniformly ignores the result type of dead-code.
6812 * [Tuple-struct constructors with private fields are no longer visible][38932]
6813 * [Lifetime parameters that do not appear in the arguments are now considered
6814   early-bound][38897], resolving a soundness bug (#[32330]). The
6815   `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
6816   April of 2016.
6817 * [rustdoc: fix doctests with non-feature crate attributes][38161]
6818 * [Make transmuting from fn item types to pointer-sized types a hard
6819   error][34198]
6820
6821 [27787]: https://github.com/rust-lang/rust/issues/27787
6822 [32330]: https://github.com/rust-lang/rust/issues/32330
6823 [34198]: https://github.com/rust-lang/rust/pull/34198
6824 [38161]: https://github.com/rust-lang/rust/pull/38161
6825 [38368]: https://github.com/rust-lang/rust/pull/38368
6826 [38584]: https://github.com/rust-lang/rust/issues/38584
6827 [38661]: https://github.com/rust-lang/rust/pull/38661
6828 [38764]: https://github.com/rust-lang/rust/pull/38764
6829 [38864]: https://github.com/rust-lang/rust/issues/38864
6830 [38897]: https://github.com/rust-lang/rust/pull/38897
6831 [38921]: https://github.com/rust-lang/rust/pull/38921
6832 [38932]: https://github.com/rust-lang/rust/pull/38932
6833 [38945]: https://github.com/rust-lang/rust/pull/38945
6834 [38981]: https://github.com/rust-lang/rust/pull/38981
6835 [39002]: https://github.com/rust-lang/rust/pull/39002
6836 [39116]: https://github.com/rust-lang/rust/pull/39116
6837 [39193]: https://github.com/rust-lang/rust/pull/39193
6838 [39265]: https://github.com/rust-lang/rust/pull/39265
6839 [39356]: https://github.com/rust-lang/rust/pull/39356
6840 [39372]: https://github.com/rust-lang/rust/pull/39372
6841 [39426]: https://github.com/rust-lang/rust/pull/39426
6842 [39431]: https://github.com/rust-lang/rust/pull/39431
6843 [39438]: https://github.com/rust-lang/rust/pull/39438
6844 [39440]: https://github.com/rust-lang/rust/pull/39440
6845 [39485]: https://github.com/rust-lang/rust/pull/39485
6846 [39491]: https://github.com/rust-lang/rust/pull/39491
6847 [39518]: https://github.com/rust-lang/rust/pull/39518
6848 [39538]: https://github.com/rust-lang/rust/pull/39538
6849 [39572]: https://github.com/rust-lang/rust/pull/39572
6850 [39633]: https://github.com/rust-lang/rust/pull/39633
6851 [39642]: https://github.com/rust-lang/rust/pull/39642
6852 [39728]: https://github.com/rust-lang/rust/pull/39728
6853 [39761]: https://github.com/rust-lang/rust/pull/39761
6854 [39788]: https://github.com/rust-lang/rust/pull/39788
6855 [39793]: https://github.com/rust-lang/rust/pull/39793
6856 [39837]: https://github.com/rust-lang/rust/pull/39837
6857 [39843]: https://github.com/rust-lang/rust/pull/39843
6858 [39851]: https://github.com/rust-lang/rust/pull/39851
6859 [39903]: https://github.com/rust-lang/rust/pull/39903
6860 [39939]: https://github.com/rust-lang/rust/pull/39939
6861 [39953]: https://github.com/rust-lang/rust/pull/39953
6862 [39960]: https://github.com/rust-lang/rust/pull/39960
6863 [39990]: https://github.com/rust-lang/rust/pull/39990
6864 [39995]: https://github.com/rust-lang/rust/pull/39995
6865 [40008]: https://github.com/rust-lang/rust/pull/40008
6866 [40009]: https://github.com/rust-lang/rust/pull/40009
6867 [40027]: https://github.com/rust-lang/rust/pull/40027
6868 [40028]: https://github.com/rust-lang/rust/pull/40028
6869 [40037]: https://github.com/rust-lang/rust/pull/40037
6870 [40117]: https://github.com/rust-lang/rust/pull/40117
6871 [40166]: https://github.com/rust-lang/rust/pull/40166
6872 [40245]: https://github.com/rust-lang/rust/pull/40245
6873 [40257]: https://github.com/rust-lang/rust/pull/40257
6874 [40261]: https://github.com/rust-lang/rust/pull/40261
6875 [40265]: https://github.com/rust-lang/rust/pull/40265
6876 [40319]: https://github.com/rust-lang/rust/pull/40319
6877 [40336]: https://github.com/rust-lang/rust/pull/40336
6878 [40526]: https://github.com/rust-lang/rust/pull/40526
6879 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
6880 [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
6881 [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
6882 [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
6883 [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
6884 [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
6885 [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
6886 [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
6887 [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
6888 [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
6889 [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
6890 [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
6891 [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
6892 [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
6893 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
6894 [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
6895 [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
6896 [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
6897 [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
6898 [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
6899 [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
6900 [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
6901 [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
6902 [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
6903 [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
6904 [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
6905 [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
6906 [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
6907 [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
6908 [ubook]: https://doc.rust-lang.org/unstable-book/
6909
6910
6911 Version 1.16.0 (2017-03-16)
6912 ===========================
6913
6914 Language
6915 --------
6916
6917 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6918 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6919   match patterns][38069]
6920 * [Clean up semantics of `self` in an import list][38313]
6921 * [`Self` may appear in `impl` headers][38920]
6922 * [`Self` may appear in struct expressions][39282]
6923
6924 Compiler
6925 --------
6926
6927 * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
6928   a `.rmeta` file containing only crate metadata][38571]. This can be
6929   used by tools like the Rust Language Service to perform
6930   metadata-only builds.
6931 * [Levenshtein based typo suggestions now work in most places, while
6932   previously they worked only for fields and sometimes for local
6933   variables][38927]. Together with the overhaul of "no
6934   resolution"/"unexpected resolution" errors (#[38154]) they result in
6935   large and systematic improvement in resolution diagnostics.
6936 * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
6937   `U`][38670]
6938 * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
6939 * [`rustc` no longer attempts to provide "consider using an explicit
6940   lifetime" suggestions][37057]. They were inaccurate.
6941
6942 Stabilized APIs
6943 ---------------
6944
6945 * [`VecDeque::truncate`]
6946 * [`VecDeque::resize`]
6947 * [`String::insert_str`]
6948 * [`Duration::checked_add`]
6949 * [`Duration::checked_sub`]
6950 * [`Duration::checked_div`]
6951 * [`Duration::checked_mul`]
6952 * [`str::replacen`]
6953 * [`str::repeat`]
6954 * [`SocketAddr::is_ipv4`]
6955 * [`SocketAddr::is_ipv6`]
6956 * [`IpAddr::is_ipv4`]
6957 * [`IpAddr::is_ipv6`]
6958 * [`Vec::dedup_by`]
6959 * [`Vec::dedup_by_key`]
6960 * [`Result::unwrap_or_default`]
6961 * [`<*const T>::wrapping_offset`]
6962 * [`<*mut T>::wrapping_offset`]
6963 * `CommandExt::creation_flags`
6964 * [`File::set_permissions`]
6965 * [`String::split_off`]
6966
6967 Libraries
6968 ---------
6969
6970 * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
6971   their argument by `Borrow` parameter][37761]
6972 * [All public types in std implement `Debug`][38006]
6973 * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
6974 * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
6975 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6976   Windows][38274]
6977 * [std: Fix partial writes in `LineWriter`][38062]
6978 * [std: Clamp max read/write sizes on Unix][38622]
6979 * [Use more specific panic message for `&str` slicing errors][38066]
6980 * [`TcpListener::set_only_v6` is deprecated][38304]. This
6981   functionality cannot be achieved in std currently.
6982 * [`writeln!`, like `println!`, now accepts a form with no string
6983   or formatting arguments, to just print a newline][38469]
6984 * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
6985 * [Reduce the size of static data in `std_unicode::tables`][38781]
6986 * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
6987   `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
6988   `Display`][38909]
6989 * [`Duration` implements `Sum`][38712]
6990 * [`String` implements `ToSocketAddrs`][39048]
6991
6992 Cargo
6993 -----
6994
6995 * [The `cargo check` command does a type check of a project without
6996   building it][cargo/3296]
6997 * [crates.io will display CI badges from Travis and AppVeyor, if
6998   specified in Cargo.toml][cargo/3546]
6999 * [crates.io will display categories listed in Cargo.toml][cargo/3301]
7000 * [Compilation profiles accept integer values for `debug`, in addition
7001   to `true` and `false`. These are passed to `rustc` as the value to
7002   `-C debuginfo`][cargo/3534]
7003 * [Implement `cargo --version --verbose`][cargo/3604]
7004 * [All builds now output 'dep-info' build dependencies compatible with
7005   make and ninja][cargo/3557]
7006 * [Build all workspace members with `build --all`][cargo/3511]
7007 * [Document all workspace members with `doc --all`][cargo/3515]
7008 * [Path deps outside workspace are not members][cargo/3443]
7009
7010 Misc
7011 ----
7012
7013 * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
7014   the path to the Rust implementation][38589]
7015 * [The `armv7-linux-androideabi` target no longer enables NEON
7016   extensions, per Google's ABI guide][38413]
7017 * [The stock standard library can be compiled for Redox OS][38401]
7018 * [Rust has initial SPARC support][38726]. Tier 3. No builds
7019   available.
7020 * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
7021   builds available.
7022 * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
7023
7024 Compatibility Notes
7025 -------------------
7026
7027 * [Uninhabitable enums (those without any variants) no longer permit wildcard
7028   match patterns][38069]
7029 * In this release, references to uninhabited types can not be
7030   pattern-matched. This was accidentally allowed in 1.15.
7031 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
7032 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
7033   Windows][38274]
7034 * [Clean up semantics of `self` in an import list][38313]
7035 * Reimplemented lifetime elision. This change was almost entirely compatible
7036   with existing code, but it did close a number of small bugs and loopholes,
7037   as well as being more accepting in some other [cases][41105].
7038
7039 [37057]: https://github.com/rust-lang/rust/pull/37057
7040 [37761]: https://github.com/rust-lang/rust/pull/37761
7041 [38006]: https://github.com/rust-lang/rust/pull/38006
7042 [38051]: https://github.com/rust-lang/rust/pull/38051
7043 [38062]: https://github.com/rust-lang/rust/pull/38062
7044 [38622]: https://github.com/rust-lang/rust/pull/38622
7045 [38066]: https://github.com/rust-lang/rust/pull/38066
7046 [38069]: https://github.com/rust-lang/rust/pull/38069
7047 [38131]: https://github.com/rust-lang/rust/pull/38131
7048 [38154]: https://github.com/rust-lang/rust/pull/38154
7049 [38274]: https://github.com/rust-lang/rust/pull/38274
7050 [38304]: https://github.com/rust-lang/rust/pull/38304
7051 [38313]: https://github.com/rust-lang/rust/pull/38313
7052 [38327]: https://github.com/rust-lang/rust/pull/38327
7053 [38401]: https://github.com/rust-lang/rust/pull/38401
7054 [38413]: https://github.com/rust-lang/rust/pull/38413
7055 [38469]: https://github.com/rust-lang/rust/pull/38469
7056 [38559]: https://github.com/rust-lang/rust/pull/38559
7057 [38571]: https://github.com/rust-lang/rust/pull/38571
7058 [38580]: https://github.com/rust-lang/rust/pull/38580
7059 [38589]: https://github.com/rust-lang/rust/pull/38589
7060 [38670]: https://github.com/rust-lang/rust/pull/38670
7061 [38712]: https://github.com/rust-lang/rust/pull/38712
7062 [38726]: https://github.com/rust-lang/rust/pull/38726
7063 [38781]: https://github.com/rust-lang/rust/pull/38781
7064 [38798]: https://github.com/rust-lang/rust/pull/38798
7065 [38909]: https://github.com/rust-lang/rust/pull/38909
7066 [38920]: https://github.com/rust-lang/rust/pull/38920
7067 [38927]: https://github.com/rust-lang/rust/pull/38927
7068 [39048]: https://github.com/rust-lang/rust/pull/39048
7069 [39282]: https://github.com/rust-lang/rust/pull/39282
7070 [39379]: https://github.com/rust-lang/rust/pull/39379
7071 [41105]: https://github.com/rust-lang/rust/issues/41105
7072 [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
7073 [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
7074 [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
7075 [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
7076 [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
7077 [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
7078 [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
7079 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
7080 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
7081 [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
7082 [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
7083 [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
7084 [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
7085 [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
7086 [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
7087 [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
7088 [`VecDeque::resize`]:  https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
7089 [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
7090 [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
7091 [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
7092 [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
7093 [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
7094 [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
7095 [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
7096 [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
7097 [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
7098 [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
7099 [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
7100 [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
7101
7102
7103 Version 1.15.1 (2017-02-09)
7104 ===========================
7105
7106 * [Fix IntoIter::as_mut_slice's signature][39466]
7107 * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
7108
7109 [39466]: https://github.com/rust-lang/rust/pull/39466
7110 [39523]: https://github.com/rust-lang/rust/pull/39523
7111
7112
7113 Version 1.15.0 (2017-02-02)
7114 ===========================
7115
7116 Language
7117 --------
7118
7119 * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
7120   stable. This allows popular code-generating crates like Serde and Diesel to
7121   work ergonomically. [RFC 1681].
7122 * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
7123   with curly braces][36868]. Part of [RFC 1506].
7124 * [A number of minor changes to name resolution have been activated][37127].
7125   They add up to more consistent semantics, allowing for future evolution of
7126   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
7127   details of what is different. The breaking changes here have been transitioned
7128   through the [`legacy_imports`] lint since 1.14, with no known regressions.
7129 * [In `macro_rules`, `path` fragments can now be parsed as type parameter
7130   bounds][38279]
7131 * [`?Sized` can be used in `where` clauses][37791]
7132 * [There is now a limit on the size of monomorphized types and it can be
7133   modified with the `#![type_size_limit]` crate attribute, similarly to
7134   the `#![recursion_limit]` attribute][37789]
7135
7136 Compiler
7137 --------
7138
7139 * [On Windows, the compiler will apply dllimport attributes when linking to
7140   extern functions][37973]. Additional attributes and flags can control which
7141   library kind is linked and its name. [RFC 1717].
7142 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
7143 * [The `--test` flag works with procedural macro crates][38107]
7144 * [Fix `extern "aapcs" fn` ABI][37814]
7145 * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
7146 * [The `format!` expander recognizes incorrect `printf` and shell-style
7147   formatting directives and suggests the correct format][37613].
7148 * [Only report one error for all unused imports in an import list][37456]
7149
7150 Compiler Performance
7151 --------------------
7152
7153 * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
7154 * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
7155 * [Don't clone in `UnificationTable::probe`][37848]
7156 * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
7157 * [Use small vectors in type walker][37760]
7158 * [Macro expansion performance was improved][37701]
7159 * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
7160 * [Replace FNV with a faster hash function][37229]
7161
7162 Stabilized APIs
7163 ---------------
7164
7165 * [`std::iter::Iterator::min_by`]
7166 * [`std::iter::Iterator::max_by`]
7167 * [`std::os::*::fs::FileExt`]
7168 * [`std::sync::atomic::Atomic*::get_mut`]
7169 * [`std::sync::atomic::Atomic*::into_inner`]
7170 * [`std::vec::IntoIter::as_slice`]
7171 * [`std::vec::IntoIter::as_mut_slice`]
7172 * [`std::sync::mpsc::Receiver::try_iter`]
7173 * [`std::os::unix::process::CommandExt::before_exec`]
7174 * [`std::rc::Rc::strong_count`]
7175 * [`std::rc::Rc::weak_count`]
7176 * [`std::sync::Arc::strong_count`]
7177 * [`std::sync::Arc::weak_count`]
7178 * [`std::char::encode_utf8`]
7179 * [`std::char::encode_utf16`]
7180 * [`std::cell::Ref::clone`]
7181 * [`std::io::Take::into_inner`]
7182
7183 Libraries
7184 ---------
7185
7186 * [The standard sorting algorithm has been rewritten for dramatic performance
7187   improvements][38192]. It is a hybrid merge sort, drawing influences from
7188   Timsort. Previously it was a naive merge sort.
7189 * [`Iterator::nth` no longer has a `Sized` bound][38134]
7190 * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
7191   performance.
7192 * [`chars().count()` is much faster][37888] and so are [`chars().last()`
7193   and `char_indices().last()`][37882]
7194 * [Fix ARM Objective-C ABI in `std::env::args`][38146]
7195 * [Chinese characters display correctly in `fmt::Debug`][37855]
7196 * [Derive `Default` for `Duration`][37699]
7197 * [Support creation of anonymous pipes on WinXP/2k][37677]
7198 * [`mpsc::RecvTimeoutError` implements `Error`][37527]
7199 * [Don't pass overlapped handles to processes][38835]
7200
7201 Cargo
7202 -----
7203
7204 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
7205   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
7206   should instead check the variable at runtime with `std::env`. That the value
7207   was set at build time was a bug, and incorrect when cross-compiling. This
7208   change is known to cause breakage.
7209 * [Add `--all` flag to `cargo test`][cargo/3221]
7210 * [Compile statically against the MSVC CRT][cargo/3363]
7211 * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
7212 * [Link OpenSSL statically on OSX][cargo/3311]
7213 * [Apply new fingerprinting to build dir outputs][cargo/3310]
7214 * [Test for bad path overrides with summaries][cargo/3336]
7215 * [Require `cargo install --vers` to take a semver version][cargo/3338]
7216 * [Fix retrying crate downloads for network errors][cargo/3348]
7217 * [Implement string lookup for `build.rustflags` config key][cargo/3356]
7218 * [Emit more info on --message-format=json][cargo/3319]
7219 * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
7220 * [Don't ignore errors in workspace manifest][cargo/3409]
7221 * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
7222
7223 Tooling
7224 -------
7225
7226 * [Test runners (binaries built with `--test`) now support a `--list` argument
7227   that lists the tests it contains][38185]
7228 * [Test runners now support a `--exact` argument that makes the test filter
7229   match exactly, instead of matching only a substring of the test name][38181]
7230 * [rustdoc supports a `--playground-url` flag][37763]
7231 * [rustdoc provides more details about `#[should_panic]` errors][37749]
7232
7233 Misc
7234 ----
7235
7236 * [The Rust build system is now written in Rust][37817]. The Makefiles may
7237   continue to be used in this release by passing `--disable-rustbuild` to the
7238   configure script, but they will be deleted soon. Note that the new build
7239   system uses a different on-disk layout that will likely affect any scripts
7240   building Rust.
7241 * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
7242   releases.
7243 * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
7244 * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
7245   releases.
7246
7247 Compatibility Notes
7248 -------------------
7249
7250 * [A number of minor changes to name resolution have been activated][37127].
7251   They add up to more consistent semantics, allowing for future evolution of
7252   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
7253   details of what is different. The breaking changes here have been transitioned
7254   through the [`legacy_imports`] lint since 1.14, with no known regressions.
7255 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
7256   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
7257   should instead check the variable at runtime with `std::env`. That the value
7258   was set at build time was a bug, and incorrect when cross-compiling. This
7259   change is known to cause breakage.
7260 * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
7261   types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
7262   1.10 and is now an error by default. It will become a hard error in the near
7263   future.
7264 * [The semantics relating modules to file system directories are changing in
7265   minor ways][37602]. This is captured in the new `legacy_directory_ownership`
7266   lint, which is a warning in this release, and will become a hard error in the
7267   future.
7268 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
7269 * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
7270   the underlying iterator][37834]
7271
7272 ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
7273 [33685]: https://github.com/rust-lang/rust/issues/33685
7274 [36868]: https://github.com/rust-lang/rust/pull/36868
7275 [37127]: https://github.com/rust-lang/rust/pull/37127
7276 [37229]: https://github.com/rust-lang/rust/pull/37229
7277 [37456]: https://github.com/rust-lang/rust/pull/37456
7278 [37527]: https://github.com/rust-lang/rust/pull/37527
7279 [37602]: https://github.com/rust-lang/rust/pull/37602
7280 [37613]: https://github.com/rust-lang/rust/pull/37613
7281 [37615]: https://github.com/rust-lang/rust/pull/37615
7282 [37636]: https://github.com/rust-lang/rust/pull/37636
7283 [37627]: https://github.com/rust-lang/rust/pull/37627
7284 [37642]: https://github.com/rust-lang/rust/pull/37642
7285 [37677]: https://github.com/rust-lang/rust/pull/37677
7286 [37699]: https://github.com/rust-lang/rust/pull/37699
7287 [37701]: https://github.com/rust-lang/rust/pull/37701
7288 [37705]: https://github.com/rust-lang/rust/pull/37705
7289 [37749]: https://github.com/rust-lang/rust/pull/37749
7290 [37760]: https://github.com/rust-lang/rust/pull/37760
7291 [37763]: https://github.com/rust-lang/rust/pull/37763
7292 [37764]: https://github.com/rust-lang/rust/pull/37764
7293 [37789]: https://github.com/rust-lang/rust/pull/37789
7294 [37791]: https://github.com/rust-lang/rust/pull/37791
7295 [37814]: https://github.com/rust-lang/rust/pull/37814
7296 [37817]: https://github.com/rust-lang/rust/pull/37817
7297 [37834]: https://github.com/rust-lang/rust/pull/37834
7298 [37848]: https://github.com/rust-lang/rust/pull/37848
7299 [37855]: https://github.com/rust-lang/rust/pull/37855
7300 [37882]: https://github.com/rust-lang/rust/pull/37882
7301 [37888]: https://github.com/rust-lang/rust/pull/37888
7302 [37973]: https://github.com/rust-lang/rust/pull/37973
7303 [37979]: https://github.com/rust-lang/rust/pull/37979
7304 [38086]: https://github.com/rust-lang/rust/pull/38086
7305 [38107]: https://github.com/rust-lang/rust/pull/38107
7306 [38117]: https://github.com/rust-lang/rust/pull/38117
7307 [38134]: https://github.com/rust-lang/rust/pull/38134
7308 [38146]: https://github.com/rust-lang/rust/pull/38146
7309 [38181]: https://github.com/rust-lang/rust/pull/38181
7310 [38182]: https://github.com/rust-lang/rust/pull/38182
7311 [38185]: https://github.com/rust-lang/rust/pull/38185
7312 [38192]: https://github.com/rust-lang/rust/pull/38192
7313 [38279]: https://github.com/rust-lang/rust/pull/38279
7314 [38835]: https://github.com/rust-lang/rust/pull/38835
7315 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
7316 [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
7317 [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
7318 [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
7319 [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
7320 [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
7321 [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
7322 [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
7323 [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
7324 [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
7325 [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
7326 [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
7327 [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
7328 [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
7329 [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
7330 [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
7331 [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
7332 [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
7333 [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
7334 [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
7335 [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
7336 [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
7337 [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
7338 [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
7339 [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
7340 [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
7341 [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
7342 [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
7343 [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
7344 [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
7345 [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
7346 [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
7347 [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
7348 [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
7349 [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
7350 [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
7351 [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
7352
7353
7354 Version 1.14.0 (2016-12-22)
7355 ===========================
7356
7357 Language
7358 --------
7359
7360 * [`..` matches multiple tuple fields in enum variants, structs
7361   and tuples][36843]. [RFC 1492].
7362 * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
7363 * [`use *` and `use ::*` both glob-import from the crate root][37367]
7364 * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
7365   dereferencing][36822]
7366
7367 Compiler
7368 --------
7369
7370 * [Mark enums with non-zero discriminant as non-zero][37224]
7371 * [Lower-case `static mut` names are linted like other
7372   statics and consts][37162]
7373 * [Fix ICE on some macros in const integer positions
7374    (e.g. `[u8; m!()]`)][36819]
7375 * [Improve error message and snippet for "did you mean `x`"][36798]
7376 * [Add a panic-strategy field to the target specification][36794]
7377 * [Include LLVM version in `--version --verbose`][37200]
7378
7379 Compile-time Optimizations
7380 --------------------------
7381
7382 * [Improve macro expansion performance][37569]
7383 * [Shrink `Expr_::ExprInlineAsm`][37445]
7384 * [Replace all uses of SHA-256 with BLAKE2b][37439]
7385 * [Reduce the number of bytes hashed by `IchHasher`][37427]
7386 * [Avoid more allocations when compiling html5ever][37373]
7387 * [Use `SmallVector` in `CombineFields::instantiate`][37322]
7388 * [Avoid some allocations in the macro parser][37318]
7389 * [Use a faster deflate setting][37298]
7390 * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
7391   during interning of slices][37270]
7392 * [Optimize `write_metadata`][37267]
7393 * [Don't process obligation forest cycles when stalled][37231]
7394 * [Avoid many `CrateConfig` clones][37161]
7395 * [Optimize `Substs::super_fold_with`][37108]
7396 * [Optimize `ObligationForest`'s `NodeState` handling][36993]
7397 * [Speed up `plug_leaks`][36917]
7398
7399 Libraries
7400 ---------
7401
7402 * [`println!()`, with no arguments, prints newline][36825].
7403   Previously, an empty string was required to achieve the same.
7404 * [`Wrapping` impls standard binary and unary operators, as well as
7405    the `Sum` and `Product` iterators][37356]
7406 * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
7407   Vec<T>`][37326]
7408 * [Improve `fold` performance for `chain`, `cloned`, `map`, and
7409   `VecDeque` iterators][37315]
7410 * [Improve `SipHasher` performance on small values][37312]
7411 * [Add Iterator trait TrustedLen to enable better FromIterator /
7412   Extend][37306]
7413 * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
7414 * [`ReadDir` implements `Debug`][37221]
7415 * [Implement `RefUnwindSafe` for atomic types][37178]
7416 * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
7417 * [Avoid allocations in `Decoder::read_str`][37064]
7418 * [`io::Error` implements `From<io::ErrorKind>`][37037]
7419 * [Impl `Debug` for raw pointers to unsized data][36880]
7420 * [Don't reuse `HashMap` random seeds][37470]
7421 * [The internal memory layout of `HashMap` is more cache-friendly, for
7422   significant improvements in some operations][36692]
7423 * [`HashMap` uses less memory on 32-bit architectures][36595]
7424 * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
7425
7426 Cargo
7427 -----
7428
7429 * [Expose rustc cfg values to build scripts][cargo/3243]
7430 * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
7431 * [Fix passing --features when testing multiple packages][cargo/3280]
7432 * [Use a single profile set per workspace][cargo/3249]
7433 * [Load `replace` sections from lock files][cargo/3220]
7434 * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
7435
7436 Tooling
7437 -------
7438
7439 * [rustup is the recommended Rust installation method][1.14rustup]
7440 * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
7441   S390x. These are [tier 2] platforms and may have major defects. Follow the
7442   instructions on the website to install, or add the targets to an existing
7443   installation with `rustup target add`. The new target triples are:
7444   - `mips-unknown-linux-gnu`
7445   - `mipsel-unknown-linux-gnu`
7446   - `mips64-unknown-linux-gnuabi64`
7447   - `mips64el-unknown-linux-gnuabi64 `
7448   - `powerpc-unknown-linux-gnu`
7449   - `powerpc64-unknown-linux-gnu`
7450   - `powerpc64le-unknown-linux-gnu`
7451   - `s390x-unknown-linux-gnu `
7452 * This release includes target (std) builds for ARM Linux running MUSL
7453   libc. These are [tier 2] platforms and may have major defects. Add the
7454   following triples to an existing rustup installation with `rustup target add`:
7455   - `arm-unknown-linux-musleabi`
7456   - `arm-unknown-linux-musleabihf`
7457   - `armv7-unknown-linux-musleabihf`
7458 * This release includes [experimental support for WebAssembly][1.14wasm], via
7459   the `wasm32-unknown-emscripten` target. This target is known to have major
7460   defects. Please test, report, and fix.
7461 * rustup no longer installs documentation by default. Run `rustup
7462   component add rust-docs` to install.
7463 * [Fix line stepping in debugger][37310]
7464 * [Enable line number debuginfo in releases][37280]
7465
7466 Misc
7467 ----
7468
7469 * [Disable jemalloc on aarch64/powerpc/mips][37392]
7470 * [Add support for Fuchsia OS][37313]
7471 * [Detect local-rebuild by only MAJOR.MINOR version][37273]
7472
7473 Compatibility Notes
7474 -------------------
7475
7476 * [A number of forward-compatibility lints used by the compiler
7477   to gradually introduce language changes have been converted
7478   to deny by default][36894]:
7479   - ["use of inaccessible extern crate erroneously allowed"][36886]
7480   - ["type parameter default erroneously allowed in invalid location"][36887]
7481   - ["detects super or self keywords at the beginning of global path"][36888]
7482   - ["two overlapping inherent impls define an item with the same name
7483     were erroneously allowed"][36889]
7484   - ["floating-point constants cannot be used in patterns"][36890]
7485   - ["constants of struct or enum type can only be used in a pattern if
7486      the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
7487   - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
7488 * [Prohibit patterns in trait methods without bodies][37378]
7489 * [The atomic `Ordering` enum may not be matched exhaustively][37351]
7490 * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
7491 * [The `$crate` macro variable is accepted in fewer locations][37213]
7492 * [Impls specifying extra region requirements beyond the trait
7493   they implement are rejected][37167]
7494 * [Enums may not be unsized][37111]. Unsized enums are intended to
7495   work but never have. For now they are forbidden.
7496 * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
7497
7498 [tier 2]: https://forge.rust-lang.org/platform-support.html
7499 [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
7500 [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
7501 [36430]: https://github.com/rust-lang/rust/pull/36430
7502 [36595]: https://github.com/rust-lang/rust/pull/36595
7503 [36692]: https://github.com/rust-lang/rust/pull/36692
7504 [36767]: https://github.com/rust-lang/rust/pull/36767
7505 [36794]: https://github.com/rust-lang/rust/pull/36794
7506 [36798]: https://github.com/rust-lang/rust/pull/36798
7507 [36819]: https://github.com/rust-lang/rust/pull/36819
7508 [36822]: https://github.com/rust-lang/rust/pull/36822
7509 [36825]: https://github.com/rust-lang/rust/pull/36825
7510 [36843]: https://github.com/rust-lang/rust/pull/36843
7511 [36880]: https://github.com/rust-lang/rust/pull/36880
7512 [36886]: https://github.com/rust-lang/rust/issues/36886
7513 [36887]: https://github.com/rust-lang/rust/issues/36887
7514 [36888]: https://github.com/rust-lang/rust/issues/36888
7515 [36889]: https://github.com/rust-lang/rust/issues/36889
7516 [36890]: https://github.com/rust-lang/rust/issues/36890
7517 [36891]: https://github.com/rust-lang/rust/issues/36891
7518 [36892]: https://github.com/rust-lang/rust/issues/36892
7519 [36894]: https://github.com/rust-lang/rust/pull/36894
7520 [36917]: https://github.com/rust-lang/rust/pull/36917
7521 [36993]: https://github.com/rust-lang/rust/pull/36993
7522 [37037]: https://github.com/rust-lang/rust/pull/37037
7523 [37064]: https://github.com/rust-lang/rust/pull/37064
7524 [37094]: https://github.com/rust-lang/rust/pull/37094
7525 [37108]: https://github.com/rust-lang/rust/pull/37108
7526 [37111]: https://github.com/rust-lang/rust/pull/37111
7527 [37161]: https://github.com/rust-lang/rust/pull/37161
7528 [37162]: https://github.com/rust-lang/rust/pull/37162
7529 [37167]: https://github.com/rust-lang/rust/pull/37167
7530 [37178]: https://github.com/rust-lang/rust/pull/37178
7531 [37200]: https://github.com/rust-lang/rust/pull/37200
7532 [37213]: https://github.com/rust-lang/rust/pull/37213
7533 [37221]: https://github.com/rust-lang/rust/pull/37221
7534 [37224]: https://github.com/rust-lang/rust/pull/37224
7535 [37230]: https://github.com/rust-lang/rust/pull/37230
7536 [37231]: https://github.com/rust-lang/rust/pull/37231
7537 [37247]: https://github.com/rust-lang/rust/pull/37247
7538 [37267]: https://github.com/rust-lang/rust/pull/37267
7539 [37270]: https://github.com/rust-lang/rust/pull/37270
7540 [37273]: https://github.com/rust-lang/rust/pull/37273
7541 [37280]: https://github.com/rust-lang/rust/pull/37280
7542 [37298]: https://github.com/rust-lang/rust/pull/37298
7543 [37306]: https://github.com/rust-lang/rust/pull/37306
7544 [37310]: https://github.com/rust-lang/rust/pull/37310
7545 [37312]: https://github.com/rust-lang/rust/pull/37312
7546 [37313]: https://github.com/rust-lang/rust/pull/37313
7547 [37315]: https://github.com/rust-lang/rust/pull/37315
7548 [37318]: https://github.com/rust-lang/rust/pull/37318
7549 [37322]: https://github.com/rust-lang/rust/pull/37322
7550 [37326]: https://github.com/rust-lang/rust/pull/37326
7551 [37351]: https://github.com/rust-lang/rust/pull/37351
7552 [37356]: https://github.com/rust-lang/rust/pull/37356
7553 [37367]: https://github.com/rust-lang/rust/pull/37367
7554 [37373]: https://github.com/rust-lang/rust/pull/37373
7555 [37378]: https://github.com/rust-lang/rust/pull/37378
7556 [37389]: https://github.com/rust-lang/rust/pull/37389
7557 [37392]: https://github.com/rust-lang/rust/pull/37392
7558 [37427]: https://github.com/rust-lang/rust/pull/37427
7559 [37439]: https://github.com/rust-lang/rust/pull/37439
7560 [37445]: https://github.com/rust-lang/rust/pull/37445
7561 [37470]: https://github.com/rust-lang/rust/pull/37470
7562 [37569]: https://github.com/rust-lang/rust/pull/37569
7563 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
7564 [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
7565 [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
7566 [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
7567 [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
7568 [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
7569 [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
7570
7571
7572 Version 1.13.0 (2016-11-10)
7573 ===========================
7574
7575 Language
7576 --------
7577
7578 * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
7579   errors, like the `try!` macro, described in [RFC 0243].
7580 * [Stabilize macros in type position][36014]. Described in [RFC 873].
7581 * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
7582 * [Fix `#[derive]` for empty tuple structs/variants][35728]
7583 * [Fix lifetime rules for 'if' conditions][36029]
7584 * [Avoid loading and parsing unconfigured non-inline modules][36482]
7585
7586 Compiler
7587 --------
7588
7589 * [Add the `-C link-arg` argument][36574]
7590 * [Remove the old AST-based backend from rustc_trans][35764]
7591 * [Don't enable NEON by default on armv7 Linux][35814]
7592 * [Fix debug line number info for macro expansions][35238]
7593 * [Do not emit "class method" debuginfo for types that are not
7594   DICompositeType][36008]
7595 * [Warn about multiple conflicting #[repr] hints][34623]
7596 * [When sizing DST, don't double-count nested struct prefixes][36351]
7597 * [Default RUST_MIN_STACK to 16MiB for now][36505]
7598 * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
7599 * [Reject macros with empty repetitions to avoid infinite loop][36721]
7600 * [Expand macros without recursing to avoid stack overflows][36214]
7601
7602 Diagnostics
7603 -----------
7604
7605 * [Replace macro backtraces with labeled local uses][35702]
7606 * [Improve error message for misplaced doc comments][33922]
7607 * [Buffer unix and lock windows to prevent message interleaving][35975]
7608 * [Update lifetime errors to specifically note temporaries][36171]
7609 * [Special case a few colors for Windows][36178]
7610 * [Suggest `use self` when such an import resolves][36289]
7611 * [Be more specific when type parameter shadows primitive type][36338]
7612 * Many minor improvements
7613
7614 Compile-time Optimizations
7615 --------------------------
7616
7617 * [Compute and cache HIR hashes at beginning][35854]
7618 * [Don't hash types in loan paths][36004]
7619 * [Cache projections in trans][35761]
7620 * [Optimize the parser's last token handling][36527]
7621 * [Only instantiate #[inline] functions in codegen units referencing
7622   them][36524]. This leads to big improvements in cases where crates export
7623   define many inline functions without using them directly.
7624 * [Lazily allocate TypedArena's first chunk][36592]
7625 * [Don't allocate during default HashSet creation][36734]
7626
7627 Stabilized APIs
7628 ---------------
7629
7630 * [`checked_abs`]
7631 * [`wrapping_abs`]
7632 * [`overflowing_abs`]
7633 * [`RefCell::try_borrow`]
7634 * [`RefCell::try_borrow_mut`]
7635
7636 Libraries
7637 ---------
7638
7639 * [Add `assert_ne!` and `debug_assert_ne!`][35074]
7640 * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
7641   covariant][35354]
7642 * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
7643 * [Implement `Debug` for `std::vec::IntoIter`][35707]
7644 * [`CString`: avoid excessive growth just to 0-terminate][35871]
7645 * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
7646 * [Use arc4rand on FreeBSD][35884]
7647 * [memrchr: Correct aligned offset computation][35969]
7648 * [Improve Demangling of Rust Symbols][36059]
7649 * [Use monotonic time in condition variables][35048]
7650 * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
7651 * [Implement conversion traits for `char`][35755]
7652 * [Fix illegal instruction caused by overflow in channel cloning][36104]
7653 * [Zero first byte of CString on drop][36264]
7654 * [Inherit overflow checks for sum and product][36372]
7655 * [Add missing Eq implementations][36423]
7656 * [Implement `Debug` for `DirEntry`][36631]
7657 * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
7658   `errno`][36754]
7659 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7660 * [Implement more traits for `std::io::ErrorKind`][35911]
7661 * [Optimize BinaryHeap bounds checking][36072]
7662 * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
7663   `extend_with_element`][36355]
7664 * [Fix overflow checking in unsigned pow()][34942]
7665
7666 Cargo
7667 -----
7668
7669 * This release includes security fixes to both curl and OpenSSL.
7670 * [Fix transitive doctests when panic=abort][cargo/3021]
7671 * [Add --all-features flag to cargo][cargo/3038]
7672 * [Reject path-based dependencies in `cargo package`][cargo/3060]
7673 * [Don't parse the home directory more than once][cargo/3078]
7674 * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
7675 * [Update OpenSSL to 1.0.2j][cargo/3121]
7676 * [Add license and license_file to cargo metadata output][cargo/3110]
7677 * [Make crates-io registry URL optional in config; ignore all changes to
7678   source.crates-io][cargo/3089]
7679 * [Don't download dependencies from other platforms][cargo/3123]
7680 * [Build transitive dev-dependencies when needed][cargo/3125]
7681 * [Add support for per-target rustflags in .cargo/config][cargo/3157]
7682 * [Avoid updating registry when adding existing deps][cargo/3144]
7683 * [Warn about path overrides that won't work][cargo/3136]
7684 * [Use workspaces during `cargo install`][cargo/3146]
7685 * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
7686 * [Add --message-format flag][cargo/3000]
7687 * [Pass target environment for rustdoc][cargo/3205]
7688 * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
7689 * [Update curl and curl-sys][cargo/3241]
7690 * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
7691
7692 Tooling
7693 -------
7694
7695 * [rustdoc: Add the `--sysroot` argument][36586]
7696 * [rustdoc: Fix a couple of issues with the search results][35655]
7697 * [rustdoc: remove the `!` from macro URLs and titles][35234]
7698 * [gdb: Fix pretty-printing special-cased Rust types][35585]
7699 * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
7700
7701 Misc
7702 ----
7703
7704 * [Remove unmaintained style guide][35124]
7705 * [Add s390x support][36369]
7706 * [Initial work at Haiku OS support][36727]
7707 * [Add mips-uclibc targets][35734]
7708 * [Crate-ify compiler-rt into compiler-builtins][35021]
7709 * [Add rustc version info (git hash + date) to dist tarball][36213]
7710 * Many documentation improvements
7711
7712 Compatibility Notes
7713 -------------------
7714
7715 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7716 * [Deny (by default) transmuting from fn item types to pointer-sized
7717   types][34923]. Continuing the long transition to zero-sized fn items,
7718   per [RFC 401].
7719 * [Fix `#[derive]` for empty tuple structs/variants][35728].
7720   Part of [RFC 1506].
7721 * [Issue deprecation warnings for safe accesses to extern statics][36173]
7722 * [Fix lifetime rules for 'if' conditions][36029].
7723 * [Inherit overflow checks for sum and product][36372].
7724 * [Forbid user-defined macros named "macro_rules"][36730].
7725
7726 [33922]: https://github.com/rust-lang/rust/pull/33922
7727 [34623]: https://github.com/rust-lang/rust/pull/34623
7728 [34923]: https://github.com/rust-lang/rust/pull/34923
7729 [34942]: https://github.com/rust-lang/rust/pull/34942
7730 [35021]: https://github.com/rust-lang/rust/pull/35021
7731 [35048]: https://github.com/rust-lang/rust/pull/35048
7732 [35074]: https://github.com/rust-lang/rust/pull/35074
7733 [35124]: https://github.com/rust-lang/rust/pull/35124
7734 [35234]: https://github.com/rust-lang/rust/pull/35234
7735 [35238]: https://github.com/rust-lang/rust/pull/35238
7736 [35354]: https://github.com/rust-lang/rust/pull/35354
7737 [35559]: https://github.com/rust-lang/rust/pull/35559
7738 [35585]: https://github.com/rust-lang/rust/pull/35585
7739 [35627]: https://github.com/rust-lang/rust/pull/35627
7740 [35655]: https://github.com/rust-lang/rust/pull/35655
7741 [35702]: https://github.com/rust-lang/rust/pull/35702
7742 [35707]: https://github.com/rust-lang/rust/pull/35707
7743 [35728]: https://github.com/rust-lang/rust/pull/35728
7744 [35734]: https://github.com/rust-lang/rust/pull/35734
7745 [35755]: https://github.com/rust-lang/rust/pull/35755
7746 [35761]: https://github.com/rust-lang/rust/pull/35761
7747 [35764]: https://github.com/rust-lang/rust/pull/35764
7748 [35814]: https://github.com/rust-lang/rust/pull/35814
7749 [35854]: https://github.com/rust-lang/rust/pull/35854
7750 [35871]: https://github.com/rust-lang/rust/pull/35871
7751 [35884]: https://github.com/rust-lang/rust/pull/35884
7752 [35911]: https://github.com/rust-lang/rust/pull/35911
7753 [35969]: https://github.com/rust-lang/rust/pull/35969
7754 [35975]: https://github.com/rust-lang/rust/pull/35975
7755 [36004]: https://github.com/rust-lang/rust/pull/36004
7756 [36008]: https://github.com/rust-lang/rust/pull/36008
7757 [36014]: https://github.com/rust-lang/rust/pull/36014
7758 [36029]: https://github.com/rust-lang/rust/pull/36029
7759 [36059]: https://github.com/rust-lang/rust/pull/36059
7760 [36072]: https://github.com/rust-lang/rust/pull/36072
7761 [36101]: https://github.com/rust-lang/rust/pull/36101
7762 [36104]: https://github.com/rust-lang/rust/pull/36104
7763 [36171]: https://github.com/rust-lang/rust/pull/36171
7764 [36173]: https://github.com/rust-lang/rust/pull/36173
7765 [36178]: https://github.com/rust-lang/rust/pull/36178
7766 [36213]: https://github.com/rust-lang/rust/pull/36213
7767 [36214]: https://github.com/rust-lang/rust/pull/36214
7768 [36264]: https://github.com/rust-lang/rust/pull/36264
7769 [36266]: https://github.com/rust-lang/rust/pull/36266
7770 [36289]: https://github.com/rust-lang/rust/pull/36289
7771 [36338]: https://github.com/rust-lang/rust/pull/36338
7772 [36351]: https://github.com/rust-lang/rust/pull/36351
7773 [36355]: https://github.com/rust-lang/rust/pull/36355
7774 [36369]: https://github.com/rust-lang/rust/pull/36369
7775 [36372]: https://github.com/rust-lang/rust/pull/36372
7776 [36423]: https://github.com/rust-lang/rust/pull/36423
7777 [36482]: https://github.com/rust-lang/rust/pull/36482
7778 [36505]: https://github.com/rust-lang/rust/pull/36505
7779 [36524]: https://github.com/rust-lang/rust/pull/36524
7780 [36527]: https://github.com/rust-lang/rust/pull/36527
7781 [36551]: https://github.com/rust-lang/rust/pull/36551
7782 [36574]: https://github.com/rust-lang/rust/pull/36574
7783 [36586]: https://github.com/rust-lang/rust/pull/36586
7784 [36592]: https://github.com/rust-lang/rust/pull/36592
7785 [36631]: https://github.com/rust-lang/rust/pull/36631
7786 [36721]: https://github.com/rust-lang/rust/pull/36721
7787 [36727]: https://github.com/rust-lang/rust/pull/36727
7788 [36730]: https://github.com/rust-lang/rust/pull/36730
7789 [36734]: https://github.com/rust-lang/rust/pull/36734
7790 [36754]: https://github.com/rust-lang/rust/pull/36754
7791 [36995]: https://github.com/rust-lang/rust/pull/36995
7792 [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
7793 [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
7794 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
7795 [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
7796 [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
7797 [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
7798 [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
7799 [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
7800 [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
7801 [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
7802 [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
7803 [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
7804 [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
7805 [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
7806 [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
7807 [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
7808 [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
7809 [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
7810 [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
7811 [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
7812 [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
7813 [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
7814 [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
7815 [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
7816 [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
7817 [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
7818 [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
7819 [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
7820 [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
7821 [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
7822 [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
7823 [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
7824
7825
7826 Version 1.12.1 (2016-10-20)
7827 ===========================
7828
7829 Regression Fixes
7830 ----------------
7831
7832 * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
7833 * [Confusion with double negation and booleans][36856]
7834 * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
7835 * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
7836 * [1.12.0: High memory usage when linking in release mode with debug info][36926]
7837 * [Corrupted memory after updated to 1.12][36936]
7838 * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
7839 * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
7840 * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
7841
7842 [36381]: https://github.com/rust-lang/rust/issues/36381
7843 [36856]: https://github.com/rust-lang/rust/issues/36856
7844 [36875]: https://github.com/rust-lang/rust/issues/36875
7845 [36924]: https://github.com/rust-lang/rust/issues/36924
7846 [36926]: https://github.com/rust-lang/rust/issues/36926
7847 [36936]: https://github.com/rust-lang/rust/issues/36936
7848 [37026]: https://github.com/rust-lang/rust/issues/37026
7849 [37112]: https://github.com/rust-lang/rust/issues/37112
7850 [37153]: https://github.com/rust-lang/rust/issues/37153
7851
7852
7853 Version 1.12.0 (2016-09-29)
7854 ===========================
7855
7856 Highlights
7857 ----------
7858
7859 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7860   This translation pass is far simpler than the previous AST->LLVM pass, and
7861   creates opportunities to perform new optimizations directly on the MIR. It
7862   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7863 * [`rustc` presents a new, more readable error format, along with
7864   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7865   Most common editors supporting Rust have been updated to work with it. It was
7866   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7867
7868 Compiler
7869 --------
7870
7871 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7872   This translation pass is far simpler than the previous AST->LLVM pass, and
7873   creates opportunities to perform new optimizations directly on the MIR. It
7874   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7875 * [Print the Rust target name, not the LLVM target name, with
7876   `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
7877 * [The computation of `TypeId` is correct in some cases where it was previously
7878   producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
7879 * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
7880 * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
7881   `--print relocation-models`, and `--print code-models` print the available
7882   options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
7883   `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
7884 * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
7885   `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
7886   These targets produce statically-linked binaries. There are no binary release
7887   builds yet though.
7888
7889 Diagnostics
7890 -----------
7891
7892 * [`rustc` presents a new, more readable error format, along with
7893   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7894   Most common editors supporting Rust have been updated to work with it. It was
7895   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7896 * [In error descriptions, references are now described in plain English,
7897   instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
7898 * [In error type descriptions, unknown numeric types are named `{integer}` or
7899   `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
7900 * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
7901
7902 Language
7903 --------
7904
7905 * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
7906 * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
7907 * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
7908   useful](https://github.com/rust-lang/rust/pull/34908)
7909 * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
7910   inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
7911 * [Semicolons are properly required as statement delimiters inside
7912   `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
7913 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
7914
7915 Stabilized APIs
7916 ---------------
7917
7918 * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
7919 * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
7920 * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
7921 * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
7922 * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
7923 * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
7924 * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
7925 * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
7926 * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
7927 * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
7928   Both on Unix and Windows.
7929 * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
7930 * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
7931 * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
7932 * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
7933 * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
7934 * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
7935 * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
7936 * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
7937
7938 Libraries
7939 ---------
7940
7941 * [The `format!` macro and friends now allow a single argument to be formatted
7942   in multiple styles](https://github.com/rust-lang/rust/pull/33642)
7943 * [The lifetime bounds on `[T]::binary_search_by` and
7944   `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
7945 * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
7946 * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
7947 * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
7948 * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
7949 * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
7950 * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
7951 * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
7952 * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
7953   implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
7954 * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
7955   implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
7956 * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
7957 * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
7958   `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
7959 * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
7960 * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
7961 * [`mpsc::sync_channel` `Receiver`s return any available message before
7962   reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
7963 * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
7964 * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
7965
7966 Cargo
7967 -----
7968
7969 * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
7970 * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
7971 * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
7972 * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
7973 * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
7974 * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
7975 * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
7976 * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
7977 * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
7978 * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
7979 * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
7980 * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
7981 * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
7982 * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
7983 * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
7984 * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
7985
7986 Performance
7987 -----------
7988
7989 * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
7990 * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
7991
7992 Tooling
7993 -------
7994
7995 * [Test binaries now support a `--test-threads` argument to specify the number
7996   of threads used to run tests, and which acts the same as the
7997   `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
7998 * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
7999 * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
8000 * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
8001 * [Rust releases now come with source packages that can be installed by rustup
8002   via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
8003   The resulting source code can be used by tools and IDES, located in the
8004   sysroot under `lib/rustlib/src`.
8005
8006 Misc
8007 ----
8008
8009 * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
8010 * Many minor improvements to the documentation.
8011 * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
8012
8013 Compatibility Notes
8014 -------------------
8015
8016 * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
8017   with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
8018 * [When formatting strings, if "precision" is specified, the "fill",
8019   "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
8020 * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
8021
8022
8023 Version 1.11.0 (2016-08-18)
8024 ===========================
8025
8026 Language
8027 --------
8028
8029 * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
8030 * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
8031 * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
8032 * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
8033
8034 Stabilized APIs
8035 ---------------
8036
8037 * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
8038 * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
8039 * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
8040 * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
8041 * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
8042 * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
8043   (in libcore - previously stabilized in libstd)
8044 * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
8045   (in libcore - previously stabilized in libstd)
8046 * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
8047   (in libcore - previously stabilized in libstd)
8048 * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
8049   (in libcore - previously stabilized in libstd)
8050 * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
8051 * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
8052 * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
8053 * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
8054
8055 Libraries
8056 ---------
8057
8058 * [The `thread_local!` macro supports multiple definitions in a single
8059    invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
8060 * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
8061 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
8062   `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
8063 * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
8064 * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
8065 * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
8066 * [The main thread is now called "main" instead of "&lt;main&gt;"](https://github.com/rust-lang/rust/pull/33803)
8067
8068 Cargo
8069 -----
8070
8071 * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
8072 * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
8073 * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
8074 * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
8075 * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
8076   and `-vv` prints warnings for all crates.
8077 * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
8078 * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
8079   This provides room for expansion by arbitrary tools.
8080 * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
8081 * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
8082 * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
8083 * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
8084 * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
8085 * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
8086 * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
8087
8088 Performance
8089 -----------
8090
8091 * [Caching projections speeds up type check dramatically for some
8092   workloads](https://github.com/rust-lang/rust/pull/33816)
8093 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
8094   This hasher is faster, but is believed to provide sufficient
8095   protection from collision attacks.
8096 * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
8097
8098 Rustdoc
8099 -------
8100
8101 * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
8102 * [Fix inlined renamed re-exports in import lists](https://github.com/rust-lang/rust/pull/34479)
8103 * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
8104 * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
8105 * [Fix redirect pages for renamed re-exports](https://github.com/rust-lang/rust/pull/34245)
8106
8107 Tooling
8108 -------
8109
8110 * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
8111 * [When emitting debug info, rustc emits frame pointers for closures,
8112   shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
8113 * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
8114 * Many more errors have been given error codes and extended
8115   explanations
8116 * API documentation continues to be improved, with many new examples
8117
8118 Misc
8119 ----
8120
8121 * [rustc no longer hangs when dependencies recursively re-export
8122   submodules](https://github.com/rust-lang/rust/pull/34542)
8123 * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
8124 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
8125   rewritten](https://github.com/rust-lang/rust/pull/33895)
8126 * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
8127   No targets use this yet, but it works toward AVR support.
8128
8129 Compatibility Notes
8130 -------------------
8131
8132 * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
8133 * [The new follow-set rules that place restrictions on `macro_rules!`
8134   in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
8135   This was an [amendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
8136   and has been a warning since 1.10.
8137 * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
8138   This causes breakage in some corner cases.
8139
8140
8141 Version 1.10.0 (2016-07-07)
8142 ===========================
8143
8144 Language
8145 --------
8146
8147 * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
8148   [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
8149 * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
8150 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
8151 * [`panic!` can be converted to a runtime abort with the
8152   `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
8153   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
8154 * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
8155   cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
8156   [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md).
8157   Note that Cargo does not yet directly support cdylibs.
8158
8159 Stabilized APIs
8160 ---------------
8161
8162 * `os::windows::fs::OpenOptionsExt::access_mode`
8163 * `os::windows::fs::OpenOptionsExt::share_mode`
8164 * `os::windows::fs::OpenOptionsExt::custom_flags`
8165 * `os::windows::fs::OpenOptionsExt::attributes`
8166 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
8167 * `os::unix::fs::OpenOptionsExt::custom_flags`
8168 * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
8169 * `Default for sync::Weak`
8170 * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
8171 * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
8172 * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
8173 * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
8174 * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
8175 * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
8176 * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
8177 * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
8178 * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
8179 * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
8180 * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
8181 * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
8182 * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
8183 * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
8184 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
8185 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
8186 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
8187 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
8188 * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
8189 * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
8190 * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
8191 * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
8192 * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
8193 * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
8194 * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
8195 * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
8196 * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
8197 * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
8198 * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
8199 * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
8200 * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
8201 * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
8202 * Read/Write/RawFd impls for `UnixStream`
8203 * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
8204 * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
8205 * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
8206 * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
8207 * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
8208 * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
8209 * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
8210 * RawFd impls for `UnixListener`
8211 * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
8212 * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
8213 * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
8214 * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
8215 * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
8216 * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
8217 * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
8218 * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
8219 * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
8220 * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
8221 * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
8222 * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
8223 * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
8224 * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
8225 * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
8226 * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
8227 * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
8228 * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
8229 * RawFd impls for `UnixDatagram`
8230 * `{BTree,Hash}Map::values_mut`
8231 * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/std/primitive.slice.html#method.binary_search_by_key)
8232
8233 Libraries
8234 ---------
8235
8236 * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
8237   The semantics of this minor method are subtle and probably not what
8238   most people want.
8239 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
8240 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
8241   will fall back to `/dev/urandom` temporarily to avoid blocking
8242   during early boot](https://github.com/rust-lang/rust/pull/33086).
8243 * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
8244 * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
8245 * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
8246 * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
8247 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
8248 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
8249   `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
8250
8251 Cargo
8252 -----
8253 * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
8254   This controls the runtime behavior of the `panic!` macro
8255   and can be either "unwind" (the default), or "abort".
8256   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
8257 * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
8258 * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
8259 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
8260   variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
8261 * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
8262 * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
8263 * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
8264   By default they are retried twice, which can be customized with the
8265   `net.retry` value in `.cargo/config`.
8266 * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
8267 * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
8268 * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
8269 * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
8270   Makes it possible to install multiple crates in parallel.
8271 * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
8272 * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
8273 * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
8274 * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
8275 * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
8276 * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
8277
8278 Performance
8279 -----------
8280
8281 * [rustc memory usage was reduced by refactoring the context used for
8282   type checking](https://github.com/rust-lang/rust/pull/33425).
8283 * [Speed up creation of `HashMap`s by caching the random keys used
8284   to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
8285 * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
8286 * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
8287 * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
8288   10x faster than the previous lookup tables.
8289 * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
8290
8291 Usability
8292 ---------
8293
8294 * Many incremental improvements to documentation and rustdoc.
8295 * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
8296 * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
8297 * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
8298 * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
8299 * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
8300 * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
8301 * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
8302
8303 Misc
8304 ----
8305
8306 * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
8307 * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
8308 * [`std` no longer prints backtraces on platforms where the running
8309   module must be loaded with `env::current_exe`, which can't be relied
8310   on](https://github.com/rust-lang/rust/pull/33554).
8311 * This release includes std binaries for the i586-unknown-linux-gnu,
8312   i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
8313   i586 target is for old x86 hardware without SSE2, and the armv7
8314   target is for Android running on modern ARM architectures.
8315 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
8316   Unix platforms](https://github.com/rust-lang/rust/pull/32835).
8317 * [On Unix the runtime aborts by calling `libc::abort` instead of
8318   generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
8319 * [Rust is now bootstrapped from the previous release of Rust,
8320   instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
8321
8322 Compatibility Notes
8323 -------------------
8324
8325 * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
8326 * [`target_env` for Linux ARM targets is just `gnu`, not
8327   `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
8328 * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
8329 * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
8330 * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
8331   Affects how macros are parsed.
8332 * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
8333 * [Feature-gated attributes on macro-generated macro invocations are
8334   now rejected](https://github.com/rust-lang/rust/pull/32791).
8335 * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
8336   This caused some minor changes to type inference.
8337
8338
8339 Version 1.9.0 (2016-05-26)
8340 ==========================
8341
8342 Language
8343 --------
8344
8345 * The `#[deprecated]` attribute when applied to an API will generate
8346   warnings when used. The warnings may be suppressed with
8347   `#[allow(deprecated)]`. [RFC 1270].
8348 * [`fn` item types are zero sized, and each `fn` names a unique
8349   type][1.9fn]. This will break code that transmutes `fn`s, so calling
8350   `transmute` on a `fn` type will generate a warning for a few cycles,
8351   then will be converted to an error.
8352 * [Field and method resolution understand visibility, so private
8353   fields and methods cannot prevent the proper use of public fields
8354   and methods][1.9fv].
8355 * [The parser considers unicode codepoints in the
8356   `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
8357
8358 Stabilized APIs
8359 ---------------
8360
8361 * [`std::panic`]
8362 * [`std::panic::catch_unwind`] (renamed from `recover`)
8363 * [`std::panic::resume_unwind`] (renamed from `propagate`)
8364 * [`std::panic::AssertUnwindSafe`] (renamed from `AssertRecoverSafe`)
8365 * [`std::panic::UnwindSafe`] (renamed from `RecoverSafe`)
8366 * [`str::is_char_boundary`]
8367 * [`<*const T>::as_ref`]
8368 * [`<*mut T>::as_ref`]
8369 * [`<*mut T>::as_mut`]
8370 * [`AsciiExt::make_ascii_uppercase`]
8371 * [`AsciiExt::make_ascii_lowercase`]
8372 * [`char::decode_utf16`]
8373 * [`char::DecodeUtf16`]
8374 * [`char::DecodeUtf16Error`]
8375 * [`char::DecodeUtf16Error::unpaired_surrogate`]
8376 * [`BTreeSet::take`]
8377 * [`BTreeSet::replace`]
8378 * [`BTreeSet::get`]
8379 * [`HashSet::take`]
8380 * [`HashSet::replace`]
8381 * [`HashSet::get`]
8382 * [`OsString::with_capacity`]
8383 * [`OsString::clear`]
8384 * [`OsString::capacity`]
8385 * [`OsString::reserve`]
8386 * [`OsString::reserve_exact`]
8387 * [`OsStr::is_empty`]
8388 * [`OsStr::len`]
8389 * [`std::os::unix::thread`]
8390 * [`RawPthread`]
8391 * [`JoinHandleExt`]
8392 * [`JoinHandleExt::as_pthread_t`]
8393 * [`JoinHandleExt::into_pthread_t`]
8394 * [`HashSet::hasher`]
8395 * [`HashMap::hasher`]
8396 * [`CommandExt::exec`]
8397 * [`File::try_clone`]
8398 * [`SocketAddr::set_ip`]
8399 * [`SocketAddr::set_port`]
8400 * [`SocketAddrV4::set_ip`]
8401 * [`SocketAddrV4::set_port`]
8402 * [`SocketAddrV6::set_ip`]
8403 * [`SocketAddrV6::set_port`]
8404 * [`SocketAddrV6::set_flowinfo`]
8405 * [`SocketAddrV6::set_scope_id`]
8406 * [`slice::copy_from_slice`]
8407 * [`ptr::read_volatile`]
8408 * [`ptr::write_volatile`]
8409 * [`OpenOptions::create_new`]
8410 * [`TcpStream::set_nodelay`]
8411 * [`TcpStream::nodelay`]
8412 * [`TcpStream::set_ttl`]
8413 * [`TcpStream::ttl`]
8414 * [`TcpStream::set_only_v6`]
8415 * [`TcpStream::only_v6`]
8416 * [`TcpStream::take_error`]
8417 * [`TcpStream::set_nonblocking`]
8418 * [`TcpListener::set_ttl`]
8419 * [`TcpListener::ttl`]
8420 * [`TcpListener::set_only_v6`]
8421 * [`TcpListener::only_v6`]
8422 * [`TcpListener::take_error`]
8423 * [`TcpListener::set_nonblocking`]
8424 * [`UdpSocket::set_broadcast`]
8425 * [`UdpSocket::broadcast`]
8426 * [`UdpSocket::set_multicast_loop_v4`]
8427 * [`UdpSocket::multicast_loop_v4`]
8428 * [`UdpSocket::set_multicast_ttl_v4`]
8429 * [`UdpSocket::multicast_ttl_v4`]
8430 * [`UdpSocket::set_multicast_loop_v6`]
8431 * [`UdpSocket::multicast_loop_v6`]
8432 * [`UdpSocket::set_multicast_ttl_v6`]
8433 * [`UdpSocket::multicast_ttl_v6`]
8434 * [`UdpSocket::set_ttl`]
8435 * [`UdpSocket::ttl`]
8436 * [`UdpSocket::set_only_v6`]
8437 * [`UdpSocket::only_v6`]
8438 * [`UdpSocket::join_multicast_v4`]
8439 * [`UdpSocket::join_multicast_v6`]
8440 * [`UdpSocket::leave_multicast_v4`]
8441 * [`UdpSocket::leave_multicast_v6`]
8442 * [`UdpSocket::take_error`]
8443 * [`UdpSocket::connect`]
8444 * [`UdpSocket::send`]
8445 * [`UdpSocket::recv`]
8446 * [`UdpSocket::set_nonblocking`]
8447
8448 Libraries
8449 ---------
8450
8451 * [`std::sync::Once` is poisoned if its initialization function
8452   fails][1.9o].
8453 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
8454 * [Most types implement `fmt::Debug`][1.9db].
8455 * [The default buffer size used by `BufReader` and `BufWriter` was
8456   reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
8457   used by other languages.
8458 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
8459   `Duration` additionally implements `*=` and `/=`][1.9ta].
8460 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
8461 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
8462 * [`Chain` implements `BufRead`][1.9ch].
8463 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
8464
8465 Cargo
8466 -----
8467
8468 * [Cargo can now run concurrently][1.9cc].
8469 * [Top-level overrides allow specific revisions of crates to be
8470   overridden through the entire crate graph][1.9ct].  This is intended
8471   to make upgrades easier for large projects, by allowing crates to be
8472   forked temporarily until they've been upgraded and republished.
8473 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
8474 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
8475   on the commandline][1.9cf]. `rustc` arguments can also be specified
8476   in the `build.rustflags` configuration key.
8477
8478 Performance
8479 -----------
8480
8481 * [The time complexity of comparing variables for equivalence during type
8482   unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
8483   to major compilation time improvement in some scenarios.
8484 * [`ToString` is specialized for `str`, giving it the same performance
8485   as `to_owned`][1.9ts].
8486 * [Spawning processes with `Command::output` no longer creates extra
8487   threads][1.9sp].
8488 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
8489   for C-like enums][1.9cl].
8490
8491 Misc
8492 ----
8493
8494 * [Passing the `--quiet` flag to a test runner will produce
8495   much-abbreviated output][1.9q].
8496 * The Rust Project now publishes std binaries for the
8497   `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
8498   `i586-pc-windows-msvc` targets.
8499
8500 Compatibility Notes
8501 -------------------
8502
8503 * [`std::sync::Once` is poisoned if its initialization function
8504   fails][1.9o].
8505 * [It is illegal to define methods with the same name in overlapping
8506   inherent `impl` blocks][1.9sn].
8507 * [`fn` item types are zero sized, and each `fn` names a unique
8508   type][1.9fn]. This will break code that transmutes `fn`s, so calling
8509   `transmute` on a `fn` type will generate a warning for a few cycles,
8510   then will be converted to an error.
8511 * [Improvements to const evaluation may trigger new errors when integer
8512   literals are out of range][1.9ce].
8513
8514
8515 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
8516 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
8517 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
8518 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
8519 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
8520 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
8521 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
8522 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
8523 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
8524 [1.9db]: https://github.com/rust-lang/rust/pull/32054
8525 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
8526 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
8527 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
8528 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
8529 [1.9o]: https://github.com/rust-lang/rust/pull/32325
8530 [1.9q]: https://github.com/rust-lang/rust/pull/31887
8531 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
8532 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
8533 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
8534 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
8535 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
8536 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
8537 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
8538 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
8539 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8540 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
8541 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8542 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
8543 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
8544 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
8545 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
8546 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
8547 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
8548 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
8549 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
8550 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
8551 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
8552 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
8553 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
8554 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
8555 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
8556 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
8557 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
8558 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
8559 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
8560 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
8561 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
8562 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
8563 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
8564 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
8565 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
8566 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
8567 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
8568 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
8569 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
8570 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
8571 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
8572 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
8573 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
8574 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
8575 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8576 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8577 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8578 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8579 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8580 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8581 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
8582 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8583 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
8584 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8585 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8586 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8587 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8588 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8589 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
8590 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
8591 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
8592 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
8593 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
8594 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
8595 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
8596 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
8597 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
8598 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
8599 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
8600 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
8601 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
8602 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
8603 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
8604 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
8605 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
8606 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
8607 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
8608 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
8609 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
8610 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
8611 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
8612 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
8613 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
8614 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
8615 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
8616 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
8617 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
8618 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
8619 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
8620 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
8621 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
8622 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
8623 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
8624 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
8625
8626
8627 Version 1.8.0 (2016-04-14)
8628 ==========================
8629
8630 Language
8631 --------
8632
8633 * Rust supports overloading of compound assignment statements like
8634   `+=` by implementing the [`AddAssign`], [`SubAssign`],
8635   [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
8636   [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
8637   traits. [RFC 953].
8638 * Empty structs can be defined with braces, as in `struct Foo { }`, in
8639   addition to the non-braced form, `struct Foo;`. [RFC 218].
8640
8641 Libraries
8642 ---------
8643
8644 * Stabilized APIs:
8645   * [`str::encode_utf16`] (renamed from `utf16_units`)
8646   * [`str::EncodeUtf16`] (renamed from `Utf16Units`)
8647   * [`Ref::map`]
8648   * [`RefMut::map`]
8649   * [`ptr::drop_in_place`]
8650   * [`time::Instant`]
8651   * [`time::SystemTime`]
8652   * [`Instant::now`]
8653   * [`Instant::duration_since`] (renamed from `duration_from_earlier`)
8654   * [`Instant::elapsed`]
8655   * [`SystemTime::now`]
8656   * [`SystemTime::duration_since`] (renamed from `duration_from_earlier`)
8657   * [`SystemTime::elapsed`]
8658   * Various `Add`/`Sub` impls for `Time` and `SystemTime`
8659   * [`SystemTimeError`]
8660   * [`SystemTimeError::duration`]
8661   * Various impls for `SystemTimeError`
8662   * [`UNIX_EPOCH`]
8663   * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
8664     [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
8665     [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
8666 * [The `write!` and `writeln!` macros correctly emit errors if any of
8667   their arguments can't be formatted][1.8w].
8668 * [Various I/O functions support large files on 32-bit Linux][1.8l].
8669 * [The Unix-specific `raw` modules, which contain a number of
8670   redefined C types are deprecated][1.8r], including `os::raw::unix`,
8671   `os::raw::macos`, and `os::raw::linux`. These modules defined types
8672   such as `ino_t` and `dev_t`. The inconsistency of these definitions
8673   across platforms was making it difficult to implement `std`
8674   correctly. Those that need these definitions should use the `libc`
8675   crate. [RFC 1415].
8676 * The Unix-specific `MetadataExt` traits, including
8677   `os::unix::fs::MetadataExt`, which expose values such as inode
8678   numbers [no longer return platform-specific types][1.8r], but
8679   instead return widened integers. [RFC 1415].
8680 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
8681 * [Atomic loads and stores are not volatile][1.8a].
8682 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
8683
8684 Performance
8685 -----------
8686
8687 * [Inlining hash functions lead to a 3% compile-time improvement in
8688   some workloads][1.8h].
8689 * When using jemalloc, its symbols are [unprefixed so that it
8690   overrides the libc malloc implementation][1.8h]. This means that for
8691   rustc, LLVM is now using jemalloc, which results in a 6%
8692   compile-time improvement on a specific workload.
8693 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
8694
8695 Misc
8696 ----
8697
8698 * [32-bit MSVC builds finally implement unwinding][1.8ms].
8699   i686-pc-windows-msvc is now considered a tier-1 platform.
8700 * [The `--print targets` flag prints a list of supported targets][1.8t].
8701 * [The `--print cfg` flag prints the `cfg`s defined for the current
8702   target][1.8cf].
8703 * [`rustc` can be built with an new Cargo-based build system, written
8704   in Rust][1.8b].  It will eventually replace Rust's Makefile-based
8705   build system. To enable it configure with `configure --rustbuild`.
8706 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
8707   variants while also indicating the total number of missing variants
8708   if more than 3][1.8m].
8709 * [Executable stacks are disabled on Linux and BSD][1.8nx].
8710 * The Rust Project now publishes binary releases of the standard
8711   library for a number of tier-2 targets:
8712   `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
8713   `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
8714   `x86_64-rumprun-netbsd`. These can be installed with
8715   tools such as [multirust][1.8mr].
8716
8717 Cargo
8718 -----
8719
8720 * [`cargo init` creates a new Cargo project in the current
8721   directory][1.8ci].  It is otherwise like `cargo new`.
8722 * [Cargo has configuration keys for `-v` and
8723   `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
8724   `[term]` section of `.cargo/config`.
8725 * [Configuration keys that evaluate to strings or integers can be set
8726   via environment variables][1.8ce]. For example the `build.jobs` key
8727   can be set via `CARGO_BUILD_JOBS`. Environment variables take
8728   precedence over config files.
8729 * [Target-specific dependencies support Rust `cfg` syntax for
8730   describing targets][1.8cfg] so that dependencies for multiple
8731   targets can be specified together. [RFC 1361].
8732 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
8733   `RUSTDOC` take precedence over the `build.target-dir`,
8734   `build.rustc`, and `build.rustdoc` configuration values][1.8cfv].
8735 * [The child process tree is killed on Windows when Cargo is
8736   killed][1.8ck].
8737 * [The `build.target` configuration value sets the target platform,
8738   like `--target`][1.8ct].
8739
8740 Compatibility Notes
8741 -------------------
8742
8743 * [Unstable compiler flags have been further restricted][1.8u]. Since
8744   1.0 `-Z` flags have been considered unstable, and other flags that
8745   were considered unstable additionally required passing `-Z
8746   unstable-options` to access. Unlike unstable language and library
8747   features though, these options have been accessible on the stable
8748   release channel. Going forward, *new unstable flags will not be
8749   available on the stable release channel*, and old unstable flags
8750   will warn about their usage. In the future, all unstable flags will
8751   be unavailable on the stable release channel.
8752 * [It is no longer possible to `match` on empty enum variants using
8753   the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
8754 * The Unix-specific `MetadataExt` traits, including
8755   `os::unix::fs::MetadataExt`, which expose values such as inode
8756   numbers [no longer return platform-specific types][1.8r], but
8757   instead return widened integers. [RFC 1415].
8758 * [Modules sourced from the filesystem cannot appear within arbitrary
8759   blocks, but only within other modules][1.8mf].
8760 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
8761 * On Unix, [stack overflow triggers a runtime abort instead of a
8762   SIGSEGV][1.8so].
8763 * [`Command::spawn` and its equivalents return an error if any of
8764   its command-line arguments contain interior `NUL`s][1.8n].
8765 * [Tuple and unit enum variants from other crates are in the type
8766   namespace][1.8tn].
8767 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
8768   type instead of `.a` files][1.8st]. Additionally, for the MSVC
8769   toolchain, `rustc` emits import libraries named `foo.dll.lib`
8770   instead of `foo.lib`.
8771
8772
8773 [1.8a]: https://github.com/rust-lang/rust/pull/30962
8774 [1.8b]: https://github.com/rust-lang/rust/pull/31123
8775 [1.8c]: https://github.com/rust-lang/rust/pull/31530
8776 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
8777 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
8778 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
8779 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
8780 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
8781 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
8782 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
8783 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
8784 [1.8cfv]: https://github.com/rust-lang/cargo/issues/2365
8785 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
8786 [1.8h]: https://github.com/rust-lang/rust/pull/31460
8787 [1.8l]: https://github.com/rust-lang/rust/pull/31668
8788 [1.8m]: https://github.com/rust-lang/rust/pull/31020
8789 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
8790 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
8791 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
8792 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
8793 [1.8n]: https://github.com/rust-lang/rust/pull/31056
8794 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
8795 [1.8r]: https://github.com/rust-lang/rust/pull/31551
8796 [1.8so]: https://github.com/rust-lang/rust/pull/31333
8797 [1.8st]: https://github.com/rust-lang/rust/pull/29520
8798 [1.8t]: https://github.com/rust-lang/rust/pull/31358
8799 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
8800 [1.8u]: https://github.com/rust-lang/rust/pull/31793
8801 [1.8v]: https://github.com/rust-lang/rust/pull/31757
8802 [1.8w]: https://github.com/rust-lang/rust/pull/31904
8803 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
8804 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
8805 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
8806 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
8807 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
8808 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
8809 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
8810 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
8811 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
8812 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
8813 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
8814 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
8815 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
8816 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
8817 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
8818 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
8819 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
8820 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
8821 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
8822 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
8823 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
8824 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
8825 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
8826 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
8827 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
8828 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
8829 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
8830 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
8831 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
8832 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
8833
8834
8835 Version 1.7.0 (2016-03-03)
8836 ==========================
8837
8838 Libraries
8839 ---------
8840
8841 * Stabilized APIs
8842   * `Path`
8843     * [`Path::strip_prefix`] (renamed from relative_from)
8844     * [`path::StripPrefixError`] (new error type returned from strip_prefix)
8845   * `Ipv4Addr`
8846     * [`Ipv4Addr::is_loopback`]
8847     * [`Ipv4Addr::is_private`]
8848     * [`Ipv4Addr::is_link_local`]
8849     * [`Ipv4Addr::is_multicast`]
8850     * [`Ipv4Addr::is_broadcast`]
8851     * [`Ipv4Addr::is_documentation`]
8852   * `Ipv6Addr`
8853     * [`Ipv6Addr::is_unspecified`]
8854     * [`Ipv6Addr::is_loopback`]
8855     * [`Ipv6Addr::is_multicast`]
8856   * `Vec`
8857     * [`Vec::as_slice`]
8858     * [`Vec::as_mut_slice`]
8859   * `String`
8860     * [`String::as_str`]
8861     * [`String::as_mut_str`]
8862   * Slices
8863     * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
8864     be the same length
8865     * `<[T]>::`[`sort_by_key`]
8866   * checked, saturated, and overflowing operations
8867     * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
8868     * [`i32::saturating_mul`]
8869     * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
8870     * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
8871     * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
8872     * [`u32::saturating_mul`]
8873     * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
8874     * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
8875     * and checked, saturated, and overflowing operations for other primitive types
8876   * FFI
8877     * [`ffi::IntoStringError`]
8878     * [`CString::into_string`]
8879     * [`CString::into_bytes`]
8880     * [`CString::into_bytes_with_nul`]
8881     * `From<CString> for Vec<u8>`
8882   * `IntoStringError`
8883     * [`IntoStringError::into_cstring`]
8884     * [`IntoStringError::utf8_error`]
8885     * `Error for IntoStringError`
8886   * Hashing
8887     * [`std::hash::BuildHasher`]
8888     * [`BuildHasher::Hasher`]
8889     * [`BuildHasher::build_hasher`]
8890     * [`std::hash::BuildHasherDefault`]
8891     * [`HashMap::with_hasher`]
8892     * [`HashMap::with_capacity_and_hasher`]
8893     * [`HashSet::with_hasher`]
8894     * [`HashSet::with_capacity_and_hasher`]
8895     * [`std::collections::hash_map::RandomState`]
8896     * [`RandomState::new`]
8897 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
8898   ASCII input][1.7utf8]. This means that creating `String`s and `str`s
8899   from bytes is faster.
8900 * [The performance of `LineWriter` (and thus `io::stdout`) was
8901   improved by using `memchr` to search for newlines][1.7m].
8902 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
8903   `f64` variants were stabilized previously.
8904 * [`BTreeMap` was rewritten to use less memory and improve the performance
8905   of insertion and iteration, the latter by as much as 5x][1.7bm].
8906 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
8907   covariant over their contained type][1.7bt].
8908 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
8909   over their contained type][1.7ll].
8910 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
8911   searching methods.
8912 * [`Any` is implemented for unsized types][1.7a].
8913 * [`Hash` is implemented for `Duration`][1.7h].
8914
8915 Misc
8916 ----
8917
8918 * [When running tests with `--test`, rustdoc will pass `--cfg`
8919   arguments to the compiler][1.7dt].
8920 * [The compiler is built with RPATH information by default][1.7rpa].
8921   This means that it will be possible to run `rustc` when installed in
8922   unusual configurations without configuring the dynamic linker search
8923   path explicitly.
8924 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
8925   any RPATH entries (emitted with `-C rpath`) *not* take precedence
8926   over `LD_LIBRARY_PATH`.
8927
8928 Cargo
8929 -----
8930
8931 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
8932   any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
8933 * [The `rerun-if-changed` build script directive no longer causes the
8934   build script to incorrectly run twice in certain scenarios][1.7rr].
8935
8936 Compatibility Notes
8937 -------------------
8938
8939 * Soundness fixes to the interactions between associated types and
8940   lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
8941   code that violates the new rules. This is a significant change that
8942   is known to break existing code, so it has emitted warnings for the
8943   new error cases since 1.4 to give crate authors time to adapt. The
8944   details of what is changing are subtle; read the RFC for more.
8945 * [Several bugs in the compiler's visibility calculations were
8946   fixed][1.7v]. Since this was found to break significant amounts of
8947   code, the new errors will be emitted as warnings for several release
8948   cycles, under the `private_in_public` lint.
8949 * Defaulted type parameters were accidentally accepted in positions
8950   that were not intended. In this release, [defaulted type parameters
8951   appearing outside of type definitions will generate a
8952   warning][1.7d], which will become an error in future releases.
8953 * [Parsing "." as a float results in an error instead of 0][1.7p].
8954   That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
8955 * [Borrows of closure parameters may not outlive the closure][1.7bc].
8956
8957 [1.7a]: https://github.com/rust-lang/rust/pull/30928
8958 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
8959 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
8960 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
8961 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
8962 [1.7d]: https://github.com/rust-lang/rust/pull/30724
8963 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
8964 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
8965 [1.7f]: https://github.com/rust-lang/rust/pull/30672
8966 [1.7h]: https://github.com/rust-lang/rust/pull/30818
8967 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
8968 [1.7m]: https://github.com/rust-lang/rust/pull/30381
8969 [1.7p]: https://github.com/rust-lang/rust/pull/30681
8970 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
8971 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
8972 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
8973 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
8974 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
8975 [1.7v]: https://github.com/rust-lang/rust/pull/29973
8976 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8977 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
8978 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
8979 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
8980 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
8981 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
8982 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
8983 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
8984 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
8985 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
8986 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
8987 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
8988 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
8989 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
8990 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
8991 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
8992 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
8993 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
8994 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
8995 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
8996 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
8997 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
8998 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
8999 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
9000 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
9001 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
9002 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
9003 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
9004 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
9005 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
9006 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
9007 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
9008 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
9009 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
9010 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
9011 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
9012 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
9013 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
9014 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
9015 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
9016 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
9017 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
9018 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
9019 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
9020 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
9021 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
9022 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
9023 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
9024 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
9025 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
9026 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
9027 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
9028 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
9029 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
9030 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
9031 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
9032 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
9033 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
9034 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
9035 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
9036
9037
9038 Version 1.6.0 (2016-01-21)
9039 ==========================
9040
9041 Language
9042 --------
9043
9044 * The `#![no_std]` attribute causes a crate to not be linked to the
9045   standard library, but only the [core library][1.6co], as described
9046   in [RFC 1184]. The core library defines common types and traits but
9047   has no platform dependencies whatsoever, and is the basis for Rust
9048   software in environments that cannot support a full port of the
9049   standard library, such as operating systems. Most of the core
9050   library is now stable.
9051
9052 Libraries
9053 ---------
9054
9055 * Stabilized APIs:
9056   [`Read::read_exact`],
9057   [`ErrorKind::UnexpectedEof`] (renamed from `UnexpectedEOF`),
9058   [`fs::DirBuilder`], [`fs::DirBuilder::new`],
9059   [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
9060   [`os::unix::fs::DirBuilderExt`],
9061   [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
9062   [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
9063   [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
9064   [`collections::hash_map::Drain`],
9065   [`collections::hash_map::HashMap::drain`],
9066   [`collections::hash_set::Drain`],
9067   [`collections::hash_set::HashSet::drain`],
9068   [`collections::binary_heap::Drain`],
9069   [`collections::binary_heap::BinaryHeap::drain`],
9070   [`Vec::extend_from_slice`] (renamed from `push_all`),
9071   [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
9072   [`RwLock::into_inner`],
9073   [`Iterator::min_by_key`] (renamed from `min_by`),
9074   [`Iterator::max_by_key`] (renamed from `max_by`).
9075 * The [core library][1.6co] is stable, as are most of its APIs.
9076 * [The `assert_eq!` macro supports arguments that don't implement
9077   `Sized`][1.6ae], such as arrays. In this way it behaves more like
9078   `assert!`.
9079 * Several timer functions that take duration in milliseconds [are
9080   deprecated in favor of those that take `Duration`][1.6ms]. These
9081   include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
9082   `thread::park_timeout_ms`.
9083 * The algorithm by which `Vec` reserves additional elements was
9084   [tweaked to not allocate excessive space][1.6a] while still growing
9085   exponentially.
9086 * `From` conversions are [implemented from integers to floats][1.6f]
9087   in cases where the conversion is lossless. Thus they are not
9088   implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
9089   or `f64`. They are also not implemented for `isize` and `usize`
9090   because the implementations would be platform-specific. `From` is
9091   also implemented from `f32` to `f64`.
9092 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
9093 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
9094 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
9095 * [`BinaryHeap` was refactored][1.6bh] for modest performance
9096   improvements.
9097 * Sorting slices that are already sorted [is 50% faster in some
9098   cases][1.6s].
9099
9100 Cargo
9101 -----
9102
9103 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
9104 * Cargo build scripts can specify their dependencies by emitting the
9105   [`rerun-if-changed`][1.6rr] key.
9106 * crates.io will reject publication of crates with dependencies that
9107   have a wildcard version constraint. Crates with wildcard
9108   dependencies were seen to cause a variety of problems, as described
9109   in [RFC 1241]. Since 1.5 publication of such crates has emitted a
9110   warning.
9111 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
9112   release folder.  A variety of artifacts that Cargo failed to clean
9113   are now correctly deleted.
9114
9115 Misc
9116 ----
9117
9118 * The `unreachable_code` lint [warns when a function call's argument
9119   diverges][1.6dv].
9120 * The parser indicates [failures that may be caused by
9121   confusingly-similar Unicode characters][1.6uc]
9122 * Certain macro errors [are reported at definition time][1.6m], not
9123   expansion.
9124
9125 Compatibility Notes
9126 -------------------
9127
9128 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
9129   environment variable when locating crates. This was a pre-cargo
9130   feature for integrating with the package manager that was
9131   accidentally never removed.
9132 * [A number of bugs were fixed in the privacy checker][1.6p] that
9133   could cause previously-accepted code to break.
9134 * [Modules and unit/tuple structs may not share the same name][1.6ts].
9135 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
9136   struct pattern syntax (`Foo(..)`) can no longer be used to match
9137   unit structs. This is a warning now, but will become an error in
9138   future releases. Patterns that share the same name as a const are
9139   now an error.
9140 * A bug was fixed that causes [rustc not to apply default type
9141   parameters][1.6xc] when resolving certain method implementations of
9142   traits defined in other crates.
9143
9144 [1.6a]: https://github.com/rust-lang/rust/pull/29454
9145 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
9146 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
9147 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
9148 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
9149 [1.6co]: http://doc.rust-lang.org/core/index.html
9150 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
9151 [1.6f]: https://github.com/rust-lang/rust/pull/29129
9152 [1.6m]: https://github.com/rust-lang/rust/pull/29828
9153 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
9154 [1.6p]: https://github.com/rust-lang/rust/pull/29726
9155 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
9156 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
9157 [1.6s]: https://github.com/rust-lang/rust/pull/29675
9158 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
9159 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
9160 [1.6us]: https://github.com/rust-lang/rust/pull/29383
9161 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
9162 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
9163 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
9164 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
9165 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
9166 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
9167 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
9168 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
9169 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
9170 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
9171 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
9172 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
9173 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
9174 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
9175 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
9176 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
9177 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
9178 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
9179 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
9180 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
9181 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
9182 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
9183 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
9184 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
9185 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
9186 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
9187 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
9188 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
9189 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
9190 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
9191
9192
9193 Version 1.5.0 (2015-12-10)
9194 ==========================
9195
9196 * ~700 changes, numerous bugfixes
9197
9198 Highlights
9199 ----------
9200
9201 * Stabilized APIs:
9202   [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
9203   [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
9204   [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
9205   [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
9206   [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
9207   [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
9208   [`Formatter::sign_minus`], [`Formatter::sign_plus`],
9209   [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
9210   [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
9211   [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
9212   [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
9213   [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
9214   [`Path::read_link`], [`Path::symlink_metadata`],
9215   [`Utf8Error::valid_up_to`], [`Vec::resize`],
9216   [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
9217   [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
9218   [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
9219   [`slice::split_first_mut`], [`slice::split_first`],
9220   [`slice::split_last_mut`], [`slice::split_last`],
9221   [`char::from_u32_unchecked`], [`fs::canonicalize`],
9222   [`str::MatchIndices`], [`str::RMatchIndices`],
9223   [`str::match_indices`], [`str::rmatch_indices`],
9224   [`str::slice_mut_unchecked`], [`string::ParseError`].
9225 * Rust applications hosted on crates.io can be installed locally to
9226   `~/.cargo/bin` with the [`cargo install`] command. Among other
9227   things this makes it easier to augment Cargo with new subcommands:
9228   when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
9229   invoked as `cargo foo`.
9230 * Crates with wildcard (`*`) dependencies will [emit warnings when
9231   published][1.5w]. In 1.6 it will no longer be possible to publish
9232   crates with wildcard dependencies.
9233
9234 Breaking Changes
9235 ----------------
9236
9237 * The rules determining when a particular lifetime must outlive
9238   a particular value (known as '[dropck]') have been [modified
9239   to not rely on parametricity][1.5p].
9240 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
9241   and `Arc`][1.5a]. Because these smart pointer types implement
9242   `Deref`, this causes breakage in cases where the interior type
9243   contains methods of the same name.
9244 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
9245   that they could drop their content. Soundness fix.
9246 * All method invocations are [properly checked][1.5wf1] for
9247   [well-formedness][1.5wf2]. Soundness fix.
9248 * Traits whose supertraits contain `Self` are [not object
9249   safe][1.5o]. Soundness fix.
9250 * Target specifications support a [`no_default_libraries`][1.5nd]
9251   setting that controls whether `-nodefaultlibs` is passed to the
9252   linker, and in turn the `is_like_windows` setting no longer affects
9253   the `-nodefaultlibs` flag.
9254 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
9255 * The `#[inline]` and `#[repr]` attributes [can only appear
9256   in valid locations][1.5at].
9257 * Native libraries linked from the local crate are [passed to
9258   the linker before native libraries from upstream crates][1.5nl].
9259 * Two rarely-used attributes, `#[no_debug]` and
9260   `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
9261 * Negation of unsigned integers, which has been a warning for
9262   several releases, [is now behind a feature gate and will
9263   generate errors][1.5nu].
9264 * The parser accidentally accepted visibility modifiers on
9265   enum variants, a bug [which has been fixed][1.5ev].
9266 * [A bug was fixed that allowed `use` statements to import unstable
9267   features][1.5use].
9268
9269 Language
9270 --------
9271
9272 * When evaluating expressions at compile-time that are not
9273   compile-time constants (const-evaluating expressions in non-const
9274   contexts), incorrect code such as overlong bitshifts and arithmetic
9275   overflow will [generate a warning instead of an error][1.5ce],
9276   delaying the error until runtime. This will allow the
9277   const-evaluator to be expanded in the future backwards-compatibly.
9278 * The `improper_ctypes` lint [no longer warns about using `isize` and
9279   `usize` in FFI][1.5ict].
9280
9281 Libraries
9282 ---------
9283
9284 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
9285   invariant][1.5c].
9286 * `Default` is [implemented for mutable slices][1.5d].
9287 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
9288 * There are now `From` conversions [between floating point
9289   types][1.5f] where the conversions are lossless.
9290 * There are now `From` conversions [between integer types][1.5i] where
9291   the conversions are lossless.
9292 * [`fs::Metadata` implements `Clone`][1.5fs].
9293 * The `parse` method [accepts a leading "+" when parsing
9294   integers][1.5pi].
9295 * [`AsMut` is implemented for `Vec`][1.5am].
9296 * The `clone_from` implementations for `String` and `BinaryHeap` [have
9297   been optimized][1.5cf] and no longer rely on the default impl.
9298 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
9299   `unsafe extern "C"` function types now [implement `Clone`,
9300   `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
9301   `fmt::Debug` for up to 12 arguments][1.5fp].
9302 * [Dropping `Vec`s is much faster in unoptimized builds when the
9303   element types don't implement `Drop`][1.5dv].
9304 * A bug that caused in incorrect behavior when [combining `VecDeque`
9305   with zero-sized types][1.5vdz] was resolved.
9306 * [`PartialOrd` for slices is faster][1.5po].
9307
9308 Miscellaneous
9309 -------------
9310
9311 * [Crate metadata size was reduced by 20%][1.5md].
9312 * [Improvements to code generation reduced the size of libcore by 3.3
9313   MB and rustc's memory usage by 18MB][1.5m].
9314 * [Improvements to deref translation increased performance in
9315   unoptimized builds][1.5dr].
9316 * Various errors in trait resolution [are deduplicated to only be
9317   reported once][1.5te].
9318 * Rust has preliminary [support for rumprun kernels][1.5rr].
9319 * Rust has preliminary [support for NetBSD on amd64][1.5na].
9320
9321 [1.5use]: https://github.com/rust-lang/rust/pull/28364
9322 [1.5po]: https://github.com/rust-lang/rust/pull/28436
9323 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
9324 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
9325 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
9326 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
9327 [1.5md]: https://github.com/rust-lang/rust/pull/28521
9328 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
9329 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
9330 [1.5na]: https://github.com/rust-lang/rust/pull/28543
9331 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
9332 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
9333 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
9334 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
9335 [1.5te]: https://github.com/rust-lang/rust/pull/28645
9336 [1.5at]: https://github.com/rust-lang/rust/pull/28650
9337 [1.5am]: https://github.com/rust-lang/rust/pull/28663
9338 [1.5m]: https://github.com/rust-lang/rust/pull/28778
9339 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
9340 [1.5a]: https://github.com/rust-lang/rust/pull/28811
9341 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
9342 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
9343 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
9344 [1.5i]: https://github.com/rust-lang/rust/pull/28921
9345 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
9346 [1.5f]: https://github.com/rust-lang/rust/pull/29129
9347 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
9348 [1.5s]: https://github.com/rust-lang/rust/pull/29190
9349 [1.5d]: https://github.com/rust-lang/rust/pull/29245
9350 [1.5o]: https://github.com/rust-lang/rust/pull/29259
9351 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
9352 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
9353 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
9354 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
9355 [1.5c]: https://github.com/rust-lang/rust/pull/29110
9356 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
9357 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
9358 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
9359 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
9360 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
9361 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
9362 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
9363 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
9364 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
9365 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
9366 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
9367 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
9368 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
9369 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
9370 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
9371 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
9372 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
9373 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
9374 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
9375 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
9376 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
9377 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
9378 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
9379 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
9380 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
9381 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
9382 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
9383 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
9384 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
9385 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
9386 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
9387 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
9388 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
9389 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
9390 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
9391 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
9392 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
9393 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
9394 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
9395 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
9396 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
9397 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
9398 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
9399 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
9400 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
9401 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
9402 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
9403 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
9404 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
9405 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
9406 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
9407 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
9408 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
9409 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
9410
9411 Version 1.4.0 (2015-10-29)
9412 ==========================
9413
9414 * ~1200 changes, numerous bugfixes
9415
9416 Highlights
9417 ----------
9418
9419 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
9420   GNU) are now supported and recommended for use.
9421
9422 Breaking Changes
9423 ----------------
9424
9425 * [Several changes have been made to fix type soundness and improve
9426   the behavior of associated types][sound]. See [RFC 1214]. Although
9427   we have mostly introduced these changes as warnings this release, to
9428   become errors next release, there are still some scenarios that will
9429   see immediate breakage.
9430 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
9431   line breaks in addition to `\n`][crlf].
9432 * [Loans of `'static` lifetime extend to the end of a function][stat].
9433 * [`str::parse` no longer introduces avoidable rounding error when
9434   parsing floating point numbers. Together with earlier changes to
9435   float formatting/output, "round trips" like f.to_string().parse()
9436   now preserve the value of f exactly. Additionally, leading plus
9437   signs are now accepted][fp3].
9438
9439
9440 Language
9441 --------
9442
9443 * `use` statements that import multiple items [can now rename
9444   them][i], as in `use foo::{bar as kitten, baz as puppy}`.
9445 * [Binops work correctly on fat pointers][binfat].
9446 * `pub extern crate`, which does not behave as expected, [issues a
9447   warning][pec] until a better solution is found.
9448
9449 Libraries
9450 ---------
9451
9452 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
9453   [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
9454   [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
9455   [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
9456   [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
9457   `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
9458   `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
9459   [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
9460   [`String::into_boxed_str`], [`TcpStream::read_timeout`],
9461   [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
9462   [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
9463   [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
9464   [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
9465   [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
9466   [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
9467   [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
9468   [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
9469   [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
9470   [`thread::sleep`].
9471 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
9472   `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
9473   `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
9474   `f64::from_str_radix`.
9475 * [Reverse-searching strings is faster with the 'two-way'
9476   algorithm][s].
9477 * [`std::io::copy` allows `?Sized` arguments][cc].
9478 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
9479   [override `count`, `nth` and `last` with an *O*(1)
9480   implementation][it].
9481 * [`Default` is implemented for arrays up to `[T; 32]`][d].
9482 * [`IntoRawFd` has been added to the Unix-specific prelude,
9483   `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
9484   prelude][pr].
9485 * [`Extend<String>` and `FromIterator<String` are both implemented for
9486   `String`][es].
9487 * [`IntoIterator` is implemented for references to `Option` and
9488   `Result`][into2].
9489 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
9490   Copy`][ext] as part of [RFC 839]. This will cause type inference
9491   breakage in rare situations.
9492 * [`BinaryHeap` implements `Debug`][bh2].
9493 * [`Borrow` and `BorrowMut` are implemented for fixed-size
9494   arrays][bm].
9495 * [`extern fn`s with the "Rust" and "C" ABIs implement common
9496   traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
9497 * [String comparison is faster][faststr].
9498 * `&mut T` where `T: std::fmt::Write` [also implements
9499   `std::fmt::Write`][mutw].
9500 * [A stable regression in `VecDeque::push_back` and other
9501   capacity-altering methods that caused panics for zero-sized types
9502   was fixed][vd].
9503 * [Function pointers implement traits for up to 12 parameters][fp2].
9504
9505 Miscellaneous
9506 -------------
9507
9508 * The compiler [no longer uses the 'morestack' feature to prevent
9509   stack overflow][mm]. Instead it uses guard pages and stack
9510   probes (though stack probes are not yet implemented on any platform
9511   but Windows).
9512 * [The compiler matches traits faster when projections are involved][p].
9513 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
9514   `usize`][ffi].
9515 * [Cargo now displays useful information about what its doing during
9516   `cargo update`][cu].
9517
9518 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
9519 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
9520 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
9521 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
9522 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
9523 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
9524 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
9525 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
9526 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
9527 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
9528 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
9529 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
9530 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
9531 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
9532 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
9533 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
9534 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
9535 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
9536 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9537 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9538 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9539 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9540 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9541 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9542 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9543 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9544 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
9545 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
9546 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
9547 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
9548 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
9549 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
9550 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
9551 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
9552 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
9553 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
9554 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
9555 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
9556 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
9557 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
9558 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
9559 [bh2]: https://github.com/rust-lang/rust/pull/28156
9560 [binfat]: https://github.com/rust-lang/rust/pull/28270
9561 [bm]: https://github.com/rust-lang/rust/pull/28197
9562 [cc]: https://github.com/rust-lang/rust/pull/27531
9563 [crlf]: https://github.com/rust-lang/rust/pull/28034
9564 [cu]: https://github.com/rust-lang/cargo/pull/1931
9565 [d]: https://github.com/rust-lang/rust/pull/27825
9566 [dep]: https://github.com/rust-lang/rust/pull/28339
9567 [es]: https://github.com/rust-lang/rust/pull/27956
9568 [ext]: https://github.com/rust-lang/rust/pull/28094
9569 [faststr]: https://github.com/rust-lang/rust/pull/28338
9570 [ffi]: https://github.com/rust-lang/rust/pull/28779
9571 [fp]: https://github.com/rust-lang/rust/pull/28268
9572 [fp2]: https://github.com/rust-lang/rust/pull/28560
9573 [fp3]: https://github.com/rust-lang/rust/pull/27307
9574 [i]: https://github.com/rust-lang/rust/pull/27451
9575 [into2]: https://github.com/rust-lang/rust/pull/28039
9576 [it]: https://github.com/rust-lang/rust/pull/27652
9577 [mm]: https://github.com/rust-lang/rust/pull/27338
9578 [mutw]: https://github.com/rust-lang/rust/pull/28368
9579 [sound]: https://github.com/rust-lang/rust/pull/27641
9580 [p]: https://github.com/rust-lang/rust/pull/27866
9581 [pec]: https://github.com/rust-lang/rust/pull/28486
9582 [pr]: https://github.com/rust-lang/rust/pull/27896
9583 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9584 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
9585 [s]: https://github.com/rust-lang/rust/pull/27474
9586 [stab]: https://github.com/rust-lang/rust/pull/28339
9587 [stat]: https://github.com/rust-lang/rust/pull/28321
9588 [vd]: https://github.com/rust-lang/rust/pull/28494
9589
9590 Version 1.3.0 (2015-09-17)
9591 ==============================
9592
9593 * ~900 changes, numerous bugfixes
9594
9595 Highlights
9596 ----------
9597
9598 * The [new object lifetime defaults][nold] have been [turned
9599   on][nold2] after a cycle of warnings about the change. Now types
9600   like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
9601   being interpreted as `&'a Box<Trait+'a>` to `&'a
9602   Box<Trait+'static>`.
9603 * [The Rustonomicon][nom] is a new book in the official documentation
9604   that dives into writing unsafe Rust.
9605 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
9606   timekeeping is employed by other std APIs, as well as out-of-tree
9607   time crates.
9608
9609 Breaking Changes
9610 ----------------
9611
9612 * The [new object lifetime defaults][nold] have been [turned
9613   on][nold2] after a cycle of warnings about the change.
9614 * There is a known [regression][lr] in how object lifetime elision is
9615   interpreted, the proper solution for which is undetermined.
9616 * The `#[prelude_import]` attribute, an internal implementation
9617   detail, was accidentally stabilized previously. [It has been put
9618   behind the `prelude_import` feature gate][pi]. This change is
9619   believed to break no existing code.
9620 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9621   [more sane for dynamically sized types][dst3]. Code that relied on
9622   the previous behavior is thought to be broken.
9623 * The `dropck` rules, which checks that destructors can't access
9624   destroyed values, [have been updated][dropck] to match the
9625   [RFC][dropckrfc]. This fixes some soundness holes, and as such will
9626   cause some previously-compiling code to no longer build.
9627
9628 Language
9629 --------
9630
9631 * The [new object lifetime defaults][nold] have been [turned
9632   on][nold2] after a cycle of warnings about the change.
9633 * Semicolons may [now follow types and paths in
9634   macros](https://github.com/rust-lang/rust/pull/27000).
9635 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9636   [more sane for dynamically sized types][dst3]. Code that relied on
9637   the previous behavior is not known to exist, and suspected to be
9638   broken.
9639 * `'static` variables [may now be recursive][st].
9640 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
9641   implementations correctly.
9642 * The `dropck` rules, which checks that destructors can't access
9643   destroyed values, [have been updated][dropck] to match the
9644   [RFC][dropckrfc].
9645
9646 Libraries
9647 ---------
9648
9649 * The [`Duration`] API, [has been stabilized][ds], as well as the
9650   `std::time` module, which presently contains only `Duration`.
9651 * `Box<str>` and `Box<[T]>` both implement `Clone`.
9652 * The owned C string, [`CString`], implements [`Borrow`] and the
9653   borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
9654   these allow C strings to be borrowed and cloned in generic code.
9655 * [`CStr`] implements [`Debug`].
9656 * [`AtomicPtr`] implements [`Debug`].
9657 * [`Error`] trait objects [can be downcast to their concrete types][e]
9658   in many common configurations, using the [`is`], [`downcast`],
9659   [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
9660   [`Any`] trait.
9661 * Searching for substrings now [employs the two-way algorithm][search]
9662   instead of doing a naive search. This gives major speedups to a
9663   number of methods, including [`contains`][sc], [`find`][sf],
9664   [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
9665   [`ends_with`][sew] are also faster.
9666 * The performance of `PartialEq` for slices is [much faster][ps].
9667 * The [`Hash`] trait offers the default method, [`hash_slice`], which
9668   is overridden and optimized by the implementations for scalars.
9669 * The [`Hasher`] trait now has a number of specialized `write_*`
9670   methods for primitive types, for efficiency.
9671 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
9672   methods for accessing the 'inner error', if any: [`get_ref`][iegr],
9673   [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
9674   of [`std::error::Error::cause`][iec] also delegates to the inner
9675   error.
9676 * [`process::Child`][pc] gained the [`id`] method, which returns a
9677   `u32` representing the platform-specific process identifier.
9678 * The [`connect`] method on slices is deprecated, replaced by the new
9679   [`join`] method (note that both of these are on the *unstable*
9680   [`SliceConcatExt`] trait, but through the magic of the prelude are
9681   available to stable code anyway).
9682 * The [`Div`] operator is implemented for [`Wrapping`] types.
9683 * [`DerefMut` is implemented for `String`][dms].
9684 * Performance of SipHash (the default hasher for `HashMap`) is
9685   [better for long data][sh].
9686 * [`AtomicPtr`] implements [`Send`].
9687 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
9688   are now [specialized to use uninitialized buffers for increased
9689   performance][rte].
9690 * Lifetime parameters of foreign functions [are now resolved
9691   properly][f].
9692
9693 Misc
9694 ----
9695
9696 * Rust can now, with some coercion, [produce programs that run on
9697   Windows XP][xp], though XP is not considered a supported platform.
9698 * Porting Rust on Windows from the GNU toolchain to MSVC continues
9699   ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
9700   recommended for use in 1.3, though should be fully-functional
9701   in the [64-bit 1.4 beta][b14].
9702 * On Fedora-based systems installation will [properly configure the
9703   dynamic linker][fl].
9704 * The compiler gained many new extended error descriptions, which can
9705   be accessed with the `--explain` flag.
9706 * The `dropck` pass, which checks that destructors can't access
9707   destroyed values, [has been rewritten][27261]. This fixes some
9708   soundness holes, and as such will cause some previously-compiling
9709   code to no longer build.
9710 * `rustc` now uses [LLVM to write archive files where possible][ar].
9711   Eventually this will eliminate the compiler's dependency on the ar
9712   utility.
9713 * Rust has [preliminary support for i686 FreeBSD][26959] (it has long
9714   supported FreeBSD on x86_64).
9715 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
9716   [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
9717   more strict.
9718 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
9719   will kill the process instead of leaking][nlp].
9720
9721 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
9722 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
9723 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
9724 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
9725 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
9726 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9727 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9728 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
9729 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
9730 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
9731 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
9732 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
9733 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
9734 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
9735 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
9736 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
9737 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
9738 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
9739 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9740 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
9741 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
9742 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
9743 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
9744 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
9745 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
9746 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
9747 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
9748 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
9749 [ar]: https://github.com/rust-lang/rust/pull/26926
9750 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
9751 [dms]: https://github.com/rust-lang/rust/pull/26241
9752 [27261]: https://github.com/rust-lang/rust/pull/27261
9753 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9754 [ds]: https://github.com/rust-lang/rust/pull/26818
9755 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
9756 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
9757 [dst3]: https://github.com/rust-lang/rust/pull/27351
9758 [e]: https://github.com/rust-lang/rust/pull/24793
9759 [f]: https://github.com/rust-lang/rust/pull/26588
9760 [26959]: https://github.com/rust-lang/rust/pull/26959
9761 [fl]: https://github.com/rust-lang/rust-installer/pull/41
9762 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
9763 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
9764 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
9765 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
9766 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
9767 [lic]: https://github.com/rust-lang/rust/pull/26583
9768 [lnu]: https://github.com/rust-lang/rust/pull/27026
9769 [lr]: https://github.com/rust-lang/rust/issues/27248
9770 [lum]: https://github.com/rust-lang/rust/pull/26378
9771 [lur]: https://github.com/rust-lang/rust/pull/26783
9772 [nlp]: https://github.com/rust-lang/rust/pull/27176
9773 [nold2]: https://github.com/rust-lang/rust/pull/27045
9774 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
9775 [nom]: http://doc.rust-lang.org/nightly/nomicon/
9776 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
9777 [pi]: https://github.com/rust-lang/rust/pull/26699
9778 [ps]: https://github.com/rust-lang/rust/pull/26884
9779 [rte]: https://github.com/rust-lang/rust/pull/26950
9780 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
9781 [search]: https://github.com/rust-lang/rust/pull/26327
9782 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
9783 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
9784 [sh]: https://github.com/rust-lang/rust/pull/27280
9785 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
9786 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
9787 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
9788 [st]: https://github.com/rust-lang/rust/pull/26630
9789 [win1]: https://github.com/rust-lang/rust/pull/26569
9790 [win2]: https://github.com/rust-lang/rust/pull/26741
9791 [win3]: https://github.com/rust-lang/rust/pull/26741
9792 [win4]: https://github.com/rust-lang/rust/pull/27210
9793 [xp]: https://github.com/rust-lang/rust/pull/26569
9794
9795 Version 1.2.0 (2015-08-07)
9796 ==========================
9797
9798 * ~1200 changes, numerous bugfixes
9799
9800 Highlights
9801 ----------
9802
9803 * [Dynamically-sized-type coercions][dst] allow smart pointer types
9804   like `Rc` to contain types without a fixed size, arrays and trait
9805   objects, finally enabling use of `Rc<[T]>` and completing the
9806   implementation of DST.
9807 * [Parallel codegen][parcodegen] is now working again, which can
9808   substantially speed up large builds in debug mode; It also gets
9809   another ~33% speedup when bootstrapping on a 4 core machine (using 8
9810   jobs). It's not enabled by default, but will be "in the near
9811   future". It can be activated with the `-C codegen-units=N` flag to
9812   `rustc`.
9813 * This is the first release with [experimental support for linking
9814   with the MSVC linker and lib C on Windows (instead of using the GNU
9815   variants via MinGW)][win]. It is yet recommended only for the most
9816   intrepid Rustaceans.
9817 * Benchmark compilations are showing a 30% improvement in
9818   bootstrapping over 1.1.
9819
9820 Breaking Changes
9821 ----------------
9822
9823 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
9824   unicode case mapping, which is a previously-planned change in
9825   behavior and considered a bugfix.
9826 * [`mem::align_of`] now specifies [the *minimum alignment* for
9827   T][align], which is usually the alignment programs are interested
9828   in, and the same value reported by clang's
9829   `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
9830   break real code.
9831 * [The `#[packed]` attribute is no longer silently accepted by the
9832   compiler][packed]. This attribute did nothing and code that
9833   mentioned it likely did not work as intended.
9834 * Associated type defaults are [now behind the
9835   `associated_type_defaults` feature gate][ad]. In 1.1 associated type
9836   defaults *did not work*, but could be mentioned syntactically. As
9837   such this breakage has minimal impact.
9838
9839 Language
9840 --------
9841
9842 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
9843   matching against dereferenceable values.
9844
9845 Libraries
9846 ---------
9847
9848 * The [`Extend`] trait, which grows a collection from an iterator, is
9849   implemented over iterators of references, for `String`, `Vec`,
9850   `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
9851   `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
9852 * The [`iter::once`] function returns an iterator that yields a single
9853   element, and [`iter::empty`] returns an iterator that yields no
9854   elements.
9855 * The [`matches`] and [`rmatches`] methods on `str` return iterators
9856   over substring matches.
9857 * [`Cell`] and [`RefCell`] both implement `Eq`.
9858 * A number of methods for wrapping arithmetic are added to the
9859   integral types, [`wrapping_div`], [`wrapping_rem`],
9860   [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
9861   addition to the existing [`wrapping_add`], [`wrapping_sub`], and
9862   [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
9863   type.. It is illegal for the default arithmetic operations in Rust
9864   to overflow; the desire to wrap must be explicit.
9865 * The `{:#?}` formatting specifier [displays the alternate,
9866   pretty-printed][debugfmt] form of the `Debug` formatter. This
9867   feature was actually introduced prior to 1.0 with little
9868   fanfare.
9869 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
9870   for writing data to formatted strings, similar to [`io::Write`].
9871 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
9872   [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
9873   are used by code generators to emit implementations of [`Debug`].
9874 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
9875   methods that convert case, following Unicode case mapping.
9876 * It is now easier to handle poisoned locks. The [`PoisonError`]
9877   type, returned by failing lock operations, exposes `into_inner`,
9878   `get_ref`, and `get_mut`, which all give access to the inner lock
9879   guard, and allow the poisoned lock to continue to operate. The
9880   `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
9881   poisoned lock without attempting to take the lock.
9882 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
9883   [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
9884   On Windows the `FromRawHandle` trait is implemented for `Stdio`,
9885   and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
9886   `ChildStderr`.
9887 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
9888   malformed input.
9889
9890 Misc
9891 ----
9892
9893 * `rustc` employs smarter heuristics for guessing at [typos].
9894 * `rustc` emits more efficient code for [no-op conversions between
9895   unsafe pointers][nop].
9896 * Fat pointers are now [passed in pairs of immediate arguments][fat],
9897   resulting in faster compile times and smaller code.
9898
9899 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
9900 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9901 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
9902 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
9903 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
9904 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
9905 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
9906 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
9907 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
9908 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
9909 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
9910 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
9911 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
9912 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
9913 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
9914 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
9915 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9916 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
9917 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
9918 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
9919 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
9920 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
9921 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
9922 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
9923 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
9924 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9925 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
9926 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
9927 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
9928 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
9929 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
9930 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
9931 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
9932 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9933 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9934 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
9935 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
9936 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
9937 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
9938 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
9939 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
9940 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9941 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
9942 [align]: https://github.com/rust-lang/rust/pull/25646
9943 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
9944 [typos]: https://github.com/rust-lang/rust/pull/26087
9945 [nop]: https://github.com/rust-lang/rust/pull/26336
9946 [fat]: https://github.com/rust-lang/rust/pull/26411
9947 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
9948 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
9949 [packed]: https://github.com/rust-lang/rust/pull/25541
9950 [ad]: https://github.com/rust-lang/rust/pull/27382
9951 [win]: https://github.com/rust-lang/rust/pull/25350
9952
9953 Version 1.1.0 (2015-06-25)
9954 =========================
9955
9956 * ~850 changes, numerous bugfixes
9957
9958 Highlights
9959 ----------
9960
9961 * The [`std::fs` module has been expanded][fs] to expand the set of
9962   functionality exposed:
9963   * `DirEntry` now supports optimizations like `file_type` and `metadata` which
9964     don't incur a syscall on some platforms.
9965   * A `symlink_metadata` function has been added.
9966   * The `fs::Metadata` structure now lowers to its OS counterpart, providing
9967     access to all underlying information.
9968 * The compiler now contains extended explanations of many errors. When an error
9969   with an explanation occurs the compiler suggests using the `--explain` flag
9970   to read the explanation. Error explanations are also [available online][err-index].
9971 * Thanks to multiple [improvements][sk] to [type checking][pre], as
9972   well as other work, the time to bootstrap the compiler decreased by
9973   32%.
9974
9975 Libraries
9976 ---------
9977
9978 * The [`str::split_whitespace`] method splits a string on unicode
9979   whitespace boundaries.
9980 * On both Windows and Unix, new extension traits provide conversion of
9981   I/O types to and from the underlying system handles. On Unix, these
9982   traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
9983   and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
9984   `TcpListener`, and `UpdSocket`. Further implementations for
9985   `std::process` will be stabilized later.
9986 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
9987   Windows, symlinks can be created with
9988   `std::os::windows::symlink_dir` and
9989   `std::os::windows::symlink_file`.
9990 * The `mpsc::Receiver` type can now be converted into an iterator with
9991   `into_iter` on the [`IntoIterator`] trait.
9992 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
9993   implementation of the [`From`] trait.
9994 * The `Debug` implementation for `RangeFull` [creates output that is
9995   more consistent with other implementations][rf].
9996 * [`Debug` is implemented for `File`][file].
9997 * The `Default` implementation for `Arc` [no longer requires `Sync +
9998   Send`][arc].
9999 * [The `Iterator` methods `count`, `nth`, and `last` have been
10000   overridden for slices to have *O*(1) performance instead of *O*(*n*)][si].
10001 * Incorrect handling of paths on Windows has been improved in both the
10002   compiler and the standard library.
10003 * [`AtomicPtr` gained a `Default` implementation][ap].
10004 * In accordance with Rust's policy on arithmetic overflow `abs` now
10005   [panics on overflow when debug assertions are enabled][abs].
10006 * The [`Cloned`] iterator, which was accidentally left unstable for
10007   1.0 [has been stabilized][c].
10008 * The [`Incoming`] iterator, which iterates over incoming TCP
10009   connections, and which was accidentally unnamable in 1.0, [is now
10010   properly exported][inc].
10011 * [`BinaryHeap`] no longer corrupts itself [when functions called by
10012   `sift_up` or `sift_down` panic][bh].
10013 * The [`split_off`] method of `LinkedList` [no longer corrupts
10014   the list in certain scenarios][ll].
10015
10016 Misc
10017 ----
10018
10019 * Type checking performance [has improved notably][sk] with
10020   [multiple improvements][pre].
10021 * The compiler [suggests code changes][ch] for more errors.
10022 * rustc and it's build system have experimental support for [building
10023   toolchains against MUSL][m] instead of glibc on Linux.
10024 * The compiler defines the `target_env` cfg value, which is used for
10025   distinguishing toolchains that are otherwise for the same
10026   platform. Presently this is set to `gnu` for common GNU Linux
10027   targets and for MinGW targets, and `musl` for MUSL Linux targets.
10028 * The [`cargo rustc`][crc] command invokes a build with custom flags
10029   to rustc.
10030 * [Android executables are always position independent][pie].
10031 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
10032   with `Drop`][24935].
10033
10034 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
10035 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
10036 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
10037 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
10038 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
10039 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
10040 [rf]: https://github.com/rust-lang/rust/pull/24491
10041 [err-index]: https://doc.rust-lang.org/error-index.html
10042 [sk]: https://github.com/rust-lang/rust/pull/24615
10043 [pre]: https://github.com/rust-lang/rust/pull/25323
10044 [file]: https://github.com/rust-lang/rust/pull/24598
10045 [ch]: https://github.com/rust-lang/rust/pull/24683
10046 [arc]: https://github.com/rust-lang/rust/pull/24695
10047 [si]: https://github.com/rust-lang/rust/pull/24701
10048 [ap]: https://github.com/rust-lang/rust/pull/24834
10049 [m]: https://github.com/rust-lang/rust/pull/24777
10050 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
10051 [crc]: https://github.com/rust-lang/cargo/pull/1568
10052 [pie]: https://github.com/rust-lang/rust/pull/24953
10053 [abs]: https://github.com/rust-lang/rust/pull/25441
10054 [c]: https://github.com/rust-lang/rust/pull/25496
10055 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
10056 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
10057 [inc]: https://github.com/rust-lang/rust/pull/25522
10058 [bh]: https://github.com/rust-lang/rust/pull/25856
10059 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
10060 [ll]: https://github.com/rust-lang/rust/pull/26022
10061 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
10062 [24935]: https://github.com/rust-lang/rust/pull/24935
10063
10064 Version 1.0.0 (2015-05-15)
10065 ========================
10066
10067 * ~1500 changes, numerous bugfixes
10068
10069 Highlights
10070 ----------
10071
10072 * The vast majority of the standard library is now `#[stable]`. It is
10073   no longer possible to use unstable features with a stable build of
10074   the compiler.
10075 * Many popular crates on [crates.io] now work on the stable release
10076   channel.
10077 * Arithmetic on basic integer types now [checks for overflow in debug
10078   builds][overflow].
10079
10080 Language
10081 --------
10082
10083 * Several [restrictions have been added to trait coherence][coh] in
10084   order to make it easier for upstream authors to change traits
10085   without breaking downstream code.
10086 * Digits of binary and octal literals are [lexed more eagerly][lex] to
10087   improve error messages and macro behavior. For example, `0b1234` is
10088   now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
10089 * Trait bounds [are always invariant][inv], eliminating the need for
10090   the `PhantomFn` and `MarkerTrait` lang items, which have been
10091   removed.
10092 * ["-" is no longer a valid character in crate names][cr], the `extern crate
10093   "foo" as bar` syntax has been replaced with `extern crate foo as
10094   bar`, and Cargo now automatically translates "-" in *package* names
10095   to underscore for the crate name.
10096 * [Lifetime shadowing is an error][lt].
10097 * [`Send` no longer implies `'static`][send-rfc].
10098 * [UFCS now supports trait-less associated paths][moar-ufcs] like
10099   `MyType::default()`.
10100 * Primitive types [now have inherent methods][prim-inherent],
10101   obviating the need for extension traits like `SliceExt`.
10102 * Methods with `Self: Sized` in their `where` clause are [considered
10103   object-safe][self-sized], allowing many extension traits like
10104   `IteratorExt` to be merged into the traits they extended.
10105 * You can now [refer to associated types][assoc-where] whose
10106   corresponding trait bounds appear only in a `where` clause.
10107 * The final bits of [OIBIT landed][oibit-final], meaning that traits
10108   like `Send` and `Sync` are now library-defined.
10109 * A [Reflect trait][reflect] was introduced, which means that
10110   downcasting via the `Any` trait is effectively limited to concrete
10111   types. This helps retain the potentially-important "parametricity"
10112   property: generic code cannot behave differently for different type
10113   arguments except in minor ways.
10114 * The `unsafe_destructor` feature is now deprecated in favor of the
10115   [new `dropck`][rfc769]. This change is a major reduction in unsafe
10116   code.
10117
10118 Libraries
10119 ---------
10120
10121 * The `thread_local` module [has been renamed to `std::thread`][th].
10122 * The methods of `IteratorExt` [have been moved to the `Iterator`
10123   trait itself][23300].
10124 * Several traits that implement Rust's conventions for type
10125   conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
10126   [centralized in the `std::convert` module][con].
10127 * The `FromError` trait [was removed in favor of `From`][fe].
10128 * The basic sleep function [has moved to
10129   `std::thread::sleep_ms`][slp].
10130 * The `splitn` function now takes an `n` parameter that represents the
10131   number of items yielded by the returned iterator [instead of the
10132   number of 'splits'][spl].
10133 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
10134 * [Derived implementations of `PartialOrd` now order enums according
10135   to their explicitly-assigned discriminants][po].
10136 * [Methods for searching strings are generic over `Pattern`s][pat],
10137   implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
10138   some others.
10139 * [In method resolution, object methods are resolved before inherent
10140   methods][meth].
10141 * [`String::from_str` has been deprecated in favor of the `From` impl,
10142   `String::from`][24517].
10143 * [`io::Error` implements `Sync`][ios].
10144 * [The `words` method on `&str` has been replaced with
10145   `split_whitespace`][sw], to avoid answering the tricky question, 'what is
10146   a word?'
10147 * The new path and IO modules are complete and `#[stable]`. This
10148   was the major library focus for this cycle.
10149 * The path API was [revised][path-normalize] to normalize `.`,
10150   adjusting the tradeoffs in favor of the most common usage.
10151 * A large number of remaining APIs in `std` were also stabilized
10152   during this cycle; about 75% of the non-deprecated API surface
10153   is now stable.
10154 * The new [string pattern API][string-pattern] landed, which makes
10155   the string slice API much more internally consistent and flexible.
10156 * A new set of [generic conversion traits][conversion] replaced
10157   many existing ad hoc traits.
10158 * Generic numeric traits were [completely removed][num-traits]. This
10159   was made possible thanks to inherent methods for primitive types,
10160   and the removal gives maximal flexibility for designing a numeric
10161   hierarchy in the future.
10162 * The `Fn` traits are now related via [inheritance][fn-inherit]
10163   and provide ergonomic [blanket implementations][fn-blanket].
10164 * The `Index` and `IndexMut` traits were changed to
10165   [take the index by value][index-value], enabling code like
10166   `hash_map["string"]` to work.
10167 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
10168   `Copy` data is known to be `Clone` as well.
10169
10170 Misc
10171 ----
10172
10173 * Many errors now have extended explanations that can be accessed with
10174   the `--explain` flag to `rustc`.
10175 * Many new examples have been added to the standard library
10176   documentation.
10177 * rustdoc has received a number of improvements focused on completion
10178   and polish.
10179 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
10180 * Much headway was made on ecosystem-wide CI, making it possible
10181   to [compare builds for breakage][ci-compare].
10182
10183
10184 [crates.io]: http://crates.io
10185 [clo]: https://github.com/rust-lang/rust/pull/24034
10186 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
10187 [con]: https://github.com/rust-lang/rust/pull/23875
10188 [cr]: https://github.com/rust-lang/rust/pull/23419
10189 [fe]: https://github.com/rust-lang/rust/pull/23879
10190 [23300]: https://github.com/rust-lang/rust/pull/23300
10191 [inv]: https://github.com/rust-lang/rust/pull/23938
10192 [ios]: https://github.com/rust-lang/rust/pull/24133
10193 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
10194 [lt]: https://github.com/rust-lang/rust/pull/24057
10195 [meth]: https://github.com/rust-lang/rust/pull/24056
10196 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
10197 [po]: https://github.com/rust-lang/rust/pull/24270
10198 [24517]: https://github.com/rust-lang/rust/pull/24517
10199 [slp]: https://github.com/rust-lang/rust/pull/23949
10200 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
10201 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
10202 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
10203 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
10204 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
10205 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
10206 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
10207 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
10208 [self-sized]: https://github.com/rust-lang/rust/pull/22301
10209 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
10210 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
10211 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
10212 [reflect]: https://github.com/rust-lang/rust/pull/23712
10213 [conversion]: https://github.com/rust-lang/rfcs/pull/529
10214 [num-traits]: https://github.com/rust-lang/rust/pull/23549
10215 [index-value]: https://github.com/rust-lang/rust/pull/23601
10216 [rfc769]: https://github.com/rust-lang/rfcs/pull/769
10217 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
10218 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
10219 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
10220 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
10221 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
10222
10223
10224 Version 1.0.0-alpha.2 (2015-02-20)
10225 =====================================
10226
10227 * ~1300 changes, numerous bugfixes
10228
10229 * Highlights
10230
10231     * The various I/O modules were [overhauled][io-rfc] to reduce
10232       unnecessary abstractions and provide better interoperation with
10233       the underlying platform. The old `io` module remains temporarily
10234       at `std::old_io`.
10235     * The standard library now [participates in feature gating][feat],
10236       so use of unstable libraries now requires a `#![feature(...)]`
10237       attribute. The impact of this change is [described on the
10238       forum][feat-forum]. [RFC][feat-rfc].
10239
10240 * Language
10241
10242     * `for` loops [now operate on the `IntoIterator` trait][into],
10243       which eliminates the need to call `.iter()`, etc. to iterate
10244       over collections. There are some new subtleties to remember
10245       though regarding what sort of iterators various types yield, in
10246       particular that `for foo in bar { }` yields values from a move
10247       iterator, destroying the original collection. [RFC][into-rfc].
10248     * Objects now have [default lifetime bounds][obj], so you don't
10249       have to write `Box<Trait+'static>` when you don't care about
10250       storing references. [RFC][obj-rfc].
10251     * In types that implement `Drop`, [lifetimes must outlive the
10252       value][drop]. This will soon make it possible to safely
10253       implement `Drop` for types where `#[unsafe_destructor]` is now
10254       required. Read the [gorgeous RFC][drop-rfc] for details.
10255     * The fully qualified <T as Trait>::X syntax lets you set the Self
10256       type for a trait method or associated type. [RFC][ufcs-rfc].
10257     * References to types that implement `Deref<U>` now [automatically
10258       coerce to references][deref] to the dereferenced type `U`,
10259       e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
10260       should eliminate many unsightly uses of `&*`, as when converting
10261       from references to vectors into references to
10262       slices. [RFC][deref-rfc].
10263     * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
10264       `|:|`) is obsolete and closure kind is inferred from context.
10265     * [`Self` is a keyword][Self].
10266
10267 * Libraries
10268
10269     * The `Show` and `String` formatting traits [have been
10270       renamed][fmt] to `Debug` and `Display` to more clearly reflect
10271       their related purposes. Automatically getting a string
10272       conversion to use with `format!("{:?}", something_to_debug)` is
10273       now written `#[derive(Debug)]`.
10274     * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
10275       OsStr}`, provide strings in platform-specific encodings for easier
10276       interop with system APIs. [RFC][osstr-rfc].
10277     * The `boxed::into_raw` and `Box::from_raw` functions [convert
10278       between `Box<T>` and `*mut T`][boxraw], a common pattern for
10279       creating raw pointers.
10280
10281 * Tooling
10282
10283     * Certain long error messages of the form 'expected foo found bar'
10284       are now [split neatly across multiple
10285       lines][multiline]. Examples in the PR.
10286     * On Unix Rust can be [uninstalled][un] by running
10287       `/usr/local/lib/rustlib/uninstall.sh`.
10288     * The `#[rustc_on_unimplemented]` attribute, requiring the
10289       'on_unimplemented' feature, lets rustc [display custom error
10290       messages when a trait is expected to be implemented for a type
10291       but is not][onun].
10292
10293 * Misc
10294
10295     * Rust is tested against a [LALR grammar][lalr], which parses
10296       almost all the Rust files that rustc does.
10297
10298 [boxraw]: https://github.com/rust-lang/rust/pull/21318
10299 [close]: https://github.com/rust-lang/rust/pull/21843
10300 [deref]: https://github.com/rust-lang/rust/pull/21351
10301 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
10302 [drop]: https://github.com/rust-lang/rust/pull/21972
10303 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
10304 [feat]: https://github.com/rust-lang/rust/pull/21248
10305 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
10306 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
10307 [fmt]: https://github.com/rust-lang/rust/pull/21457
10308 [into]: https://github.com/rust-lang/rust/pull/20790
10309 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
10310 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
10311 [lalr]: https://github.com/rust-lang/rust/pull/21452
10312 [multiline]: https://github.com/rust-lang/rust/pull/19870
10313 [obj]: https://github.com/rust-lang/rust/pull/22230
10314 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
10315 [onun]: https://github.com/rust-lang/rust/pull/20889
10316 [osstr]: https://github.com/rust-lang/rust/pull/21488
10317 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
10318 [Self]: https://github.com/rust-lang/rust/pull/22158
10319 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
10320 [un]: https://github.com/rust-lang/rust/pull/22256
10321
10322
10323 Version 1.0.0-alpha (2015-01-09)
10324 ==================================
10325
10326   * ~2400 changes, numerous bugfixes
10327
10328   * Highlights
10329
10330     * The language itself is considered feature complete for 1.0,
10331       though there will be many usability improvements and bugfixes
10332       before the final release.
10333     * Nearly 50% of the public API surface of the standard library has
10334       been declared 'stable'. Those interfaces are unlikely to change
10335       before 1.0.
10336     * The long-running debate over integer types has been
10337       [settled][ints]: Rust will ship with types named `isize` and
10338       `usize`, rather than `int` and `uint`, for pointer-sized
10339       integers. Guidelines will be rolled out during the alpha cycle.
10340     * Most crates that are not `std` have been moved out of the Rust
10341       distribution into the Cargo ecosystem so they can evolve
10342       separately and don't need to be stabilized as quickly, including
10343       'time', 'getopts', 'num', 'regex', and 'term'.
10344     * Documentation continues to be expanded with more API coverage, more
10345       examples, and more in-depth explanations. The guides have been
10346       consolidated into [The Rust Programming Language][trpl].
10347     * "[Rust By Example][rbe]" is now maintained by the Rust team.
10348     * All official Rust binary installers now come with [Cargo], the
10349       Rust package manager.
10350
10351 * Language
10352
10353     * Closures have been [completely redesigned][unboxed] to be
10354       implemented in terms of traits, can now be used as generic type
10355       bounds and thus monomorphized and inlined, or via an opaque
10356       pointer (boxed) as in the old system. The new system is often
10357       referred to as 'unboxed' closures.
10358     * Traits now support [associated types][assoc], allowing families
10359       of related types to be defined together and used generically in
10360       powerful ways.
10361     * Enum variants are [namespaced by their type names][enum].
10362     * [`where` clauses][where] provide a more versatile and attractive
10363       syntax for specifying generic bounds, though the previous syntax
10364       remains valid.
10365     * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
10366       numeric types.
10367     * Rust [no longer has a runtime][rt] of any description, and only
10368       supports OS threads, not green threads.
10369     * At long last, Rust has been overhauled for 'dynamically-sized
10370       types' ([DST]), which integrates 'fat pointers' (object types,
10371       arrays, and `str`) more deeply into the type system, making it
10372       more consistent.
10373     * Rust now has a general [range syntax][range], `i..j`, `i..`, and
10374       `..j` that produce range types and which, when combined with the
10375       `Index` operator and multidispatch, leads to a convenient slice
10376       notation, `[i..j]`.
10377     * The new range syntax revealed an ambiguity in the fixed-length
10378       array syntax, so now fixed length arrays [are written `[T;
10379       N]`][arrays].
10380     * The `Copy` trait is no longer implemented automatically. Unsafe
10381       pointers no longer implement `Sync` and `Send` so types
10382       containing them don't automatically either. `Sync` and `Send`
10383       are now 'unsafe traits' so one can "forcibly" implement them via
10384       `unsafe impl` if a type confirms to the requirements for them
10385       even though the internals do not (e.g. structs containing unsafe
10386       pointers like `Arc`). These changes are intended to prevent some
10387       footguns and are collectively known as [opt-in built-in
10388       traits][oibit] (though `Sync` and `Send` will soon become pure
10389       library types unknown to the compiler).
10390     * Operator traits now take their operands [by value][ops], and
10391       comparison traits can use multidispatch to compare one type
10392       against multiple other types, allowing e.g. `String` to be
10393       compared with `&str`.
10394     * `if let` and `while let` are no longer feature-gated.
10395     * Rust has adopted a more [uniform syntax for escaping unicode
10396       characters][unicode].
10397     * `macro_rules!` [has been declared stable][mac]. Though it is a
10398       flawed system it is sufficiently popular that it must be usable
10399       for 1.0. Effort has gone into [future-proofing][mac-future] it
10400       in ways that will allow other macro systems to be developed in
10401       parallel, and won't otherwise impact the evolution of the
10402       language.
10403     * The prelude has been [pared back significantly][prelude] such
10404       that it is the minimum necessary to support the most pervasive
10405       code patterns, and through [generalized where clauses][where]
10406       many of the prelude extension traits have been consolidated.
10407     * Rust's rudimentary reflection [has been removed][refl], as it
10408       incurred too much code generation for little benefit.
10409     * [Struct variants][structvars] are no longer feature-gated.
10410     * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
10411       known as 'higher-ranked trait bounds', this crucially allows
10412       unboxed closures to work.
10413     * Macros invocations surrounded by parens or square brackets and
10414       not terminated by a semicolon are [parsed as
10415       expressions][macros], which makes expressions like `vec![1i32,
10416       2, 3].len()` work as expected.
10417     * Trait objects now implement their traits automatically, and
10418       traits that can be coerced to objects now must be [object
10419       safe][objsafe].
10420     * Automatically deriving traits is now done with `#[derive(...)]`
10421       not `#[deriving(...)]` for [consistency with other naming
10422       conventions][derive].
10423     * Importing the containing module or enum at the same time as
10424       items or variants they contain is [now done with `self` instead
10425       of `mod`][self], as in use `foo::{self, bar}`
10426     * Glob imports are no longer feature-gated.
10427     * The `box` operator and `box` patterns have been feature-gated
10428       pending a redesign. For now unique boxes should be allocated
10429       like other containers, with `Box::new`.
10430
10431 * Libraries
10432
10433     * A [series][coll1] of [efforts][coll2] to establish
10434       [conventions][coll3] for collections types has resulted in API
10435       improvements throughout the standard library.
10436     * New [APIs for error handling][err] provide ergonomic interop
10437       between error types, and [new conventions][err-conv] describe
10438       more clearly the recommended error handling strategies in Rust.
10439     * The `fail!` macro has been renamed to [`panic!`][panic] so that
10440       it is easier to discuss failure in the context of error handling
10441       without making clarifications as to whether you are referring to
10442       the 'fail' macro or failure more generally.
10443     * On Linux, `OsRng` prefers the new, more reliable `getrandom`
10444       syscall when available.
10445     * The 'serialize' crate has been renamed 'rustc-serialize' and
10446       moved out of the distribution to Cargo. Although it is widely
10447       used now, it is expected to be superseded in the near future.
10448     * The `Show` formatter, typically implemented with
10449       `#[derive(Show)]` is [now requested with the `{:?}`
10450       specifier][show] and is intended for use by all types, for uses
10451       such as `println!` debugging. The new `String` formatter must be
10452       implemented by hand, uses the `{}` specifier, and is intended
10453       for full-fidelity conversions of things that can logically be
10454       represented as strings.
10455
10456 * Tooling
10457
10458     * [Flexible target specification][flex] allows rustc's code
10459       generation to be configured to support otherwise-unsupported
10460       platforms.
10461     * Rust comes with rust-gdb and rust-lldb scripts that launch their
10462       respective debuggers with Rust-appropriate pretty-printing.
10463     * The Windows installation of Rust is distributed with the
10464       MinGW components currently required to link binaries on that
10465       platform.
10466
10467 * Misc
10468
10469     * Nullable enum optimizations have been extended to more types so
10470       that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
10471       space than the inner types themselves.
10472     * Work has begun on supporting AArch64.
10473
10474 [Cargo]: https://crates.io
10475 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
10476 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
10477 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
10478 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
10479 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
10480 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
10481 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
10482 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
10483 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
10484 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
10485 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
10486 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
10487 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
10488 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
10489 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
10490 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
10491 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
10492 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
10493 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
10494 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
10495 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
10496 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
10497 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
10498 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
10499 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
10500 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
10501 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
10502 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
10503 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
10504 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
10505 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
10506 [trpl]: https://doc.rust-lang.org/book/index.html
10507 [rbe]: http://rustbyexample.com/
10508
10509
10510 Version 0.12.0 (2014-10-09)
10511 =============================
10512
10513   * ~1900 changes, numerous bugfixes
10514
10515   * Highlights
10516
10517     * The introductory documentation (now called The Rust Guide) has
10518       been completely rewritten, as have a number of supplementary
10519       guides.
10520     * Rust's package manager, Cargo, continues to improve and is
10521       sometimes considered to be quite awesome.
10522     * Many API's in `std` have been reviewed and updated for
10523       consistency with the in-development Rust coding
10524       guidelines. The standard library documentation tracks
10525       stabilization progress.
10526     * Minor libraries have been moved out-of-tree to the rust-lang org
10527       on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
10528       be installed with Cargo.
10529     * Lifetime elision allows lifetime annotations to be left off of
10530       function declarations in many common scenarios.
10531     * Rust now works on 64-bit Windows.
10532
10533   * Language
10534     * Indexing can be overloaded with the `Index` and `IndexMut`
10535       traits.
10536     * The `if let` construct takes a branch only if the `let` pattern
10537       matches, currently behind the 'if_let' feature gate.
10538     * 'where clauses', a more flexible syntax for specifying trait
10539       bounds that is more aesthetic, have been added for traits and
10540       free functions. Where clauses will in the future make it
10541       possible to constrain associated types, which would be
10542       impossible with the existing syntax.
10543     * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
10544       the 'slicing_syntax' feature gate, and can be overloaded with
10545       the `Slice` or `SliceMut` traits.
10546     * The syntax for matching of sub-slices has been changed to use a
10547       postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
10548       consistency with other uses of `..` and to future-proof
10549       potential additional uses of the syntax.
10550     * The syntax for matching inclusive ranges in patterns has changed
10551       from `0..3` to `0...4` to be consistent with the exclusive range
10552       syntax for slicing.
10553     * Matching of sub-slices in non-tail positions (e.g.  `[a.., b,
10554       c]`) has been put behind the 'advanced_slice_patterns' feature
10555       gate and may be removed in the future.
10556     * Components of tuples and tuple structs can be extracted using
10557       the `value.0` syntax, currently behind the `tuple_indexing`
10558       feature gate.
10559     * The `#[crate_id]` attribute is no longer supported; versioning
10560       is handled by the package manager.
10561     * Renaming crate imports are now written `extern crate foo as bar`
10562       instead of `extern crate bar = foo`.
10563     * Renaming use statements are now written `use foo as bar` instead
10564       of `use bar = foo`.
10565     * `let` and `match` bindings and argument names in macros are now
10566       hygienic.
10567     * The new, more efficient, closure types ('unboxed closures') have
10568       been added under a feature gate, 'unboxed_closures'. These will
10569       soon replace the existing closure types, once higher-ranked
10570       trait lifetimes are added to the language.
10571     * `move` has been added as a keyword, for indicating closures
10572       that capture by value.
10573     * Mutation and assignment is no longer allowed in pattern guards.
10574     * Generic structs and enums can now have trait bounds.
10575     * The `Share` trait is now called `Sync` to free up the term
10576       'shared' to refer to 'shared reference' (the default reference
10577       type.
10578     * Dynamically-sized types have been mostly implemented,
10579       unifying the behavior of fat-pointer types with the rest of the
10580       type system.
10581     * As part of dynamically-sized types, the `Sized` trait has been
10582       introduced, which qualifying types implement by default, and
10583       which type parameters expect by default. To specify that a type
10584       parameter does not need to be sized, write `<Sized? T>`. Most
10585       types are `Sized`, notable exceptions being unsized arrays
10586       (`[T]`) and trait types.
10587     * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
10588     * Lifetime bounds can now be applied to type parameters and object
10589       types.
10590     * The old, reference counted GC type, `Gc<T>` which was once
10591       denoted by the `@` sigil, has finally been removed. GC will be
10592       revisited in the future.
10593
10594   * Libraries
10595     * Library documentation has been improved for a number of modules.
10596     * Bit-vectors, collections::bitv has been modernized.
10597     * The url crate is deprecated in favor of
10598       http://github.com/servo/rust-url, which can be installed with
10599       Cargo.
10600     * Most I/O stream types can be cloned and subsequently closed from
10601       a different thread.
10602     * A `std::time::Duration` type has been added for use in I/O
10603       methods that rely on timers, as well as in the 'time' crate's
10604       `Timespec` arithmetic.
10605     * The runtime I/O abstraction layer that enabled the green thread
10606       scheduler to do non-thread-blocking I/O has been removed, along
10607       with the libuv-based implementation employed by the green thread
10608       scheduler. This will greatly simplify the future I/O work.
10609     * `collections::btree` has been rewritten to have a more
10610       idiomatic and efficient design.
10611
10612   * Tooling
10613     * rustdoc output now indicates the stability levels of API's.
10614     * The `--crate-name` flag can specify the name of the crate
10615       being compiled, like `#[crate_name]`.
10616     * The `-C metadata` specifies additional metadata to hash into
10617       symbol names, and `-C extra-filename` specifies additional
10618       information to put into the output filename, for use by the
10619       package manager for versioning.
10620     * debug info generation has continued to improve and should be
10621       more reliable under both gdb and lldb.
10622     * rustc has experimental support for compiling in parallel
10623       using the `-C codegen-units` flag.
10624     * rustc no longer encodes rpath information into binaries by
10625       default.
10626
10627   * Misc
10628     * Stack usage has been optimized with LLVM lifetime annotations.
10629     * Official Rust binaries on Linux are more compatible with older
10630       kernels and distributions, built on CentOS 5.10.
10631
10632
10633 Version 0.11.0 (2014-07-02)
10634 ==========================
10635
10636   * ~1700 changes, numerous bugfixes
10637
10638   * Language
10639     * ~[T] has been removed from the language. This type is superseded by
10640       the Vec<T> type.
10641     * ~str has been removed from the language. This type is superseded by
10642       the String type.
10643     * ~T has been removed from the language. This type is superseded by the
10644       Box<T> type.
10645     * @T has been removed from the language. This type is superseded by the
10646       standard library's std::gc::Gc<T> type.
10647     * Struct fields are now all private by default.
10648     * Vector indices and shift amounts are both required to be a `uint`
10649       instead of any integral type.
10650     * Byte character, byte string, and raw byte string literals are now all
10651       supported by prefixing the normal literal with a `b`.
10652     * Multiple ABIs are no longer allowed in an ABI string
10653     * The syntax for lifetimes on closures/procedures has been tweaked
10654       slightly: `<'a>|A, B|: 'b + K -> T`
10655     * Floating point modulus has been removed from the language; however it
10656       is still provided by a library implementation.
10657     * Private enum variants are now disallowed.
10658     * The `priv` keyword has been removed from the language.
10659     * A closure can no longer be invoked through a &-pointer.
10660     * The `use foo, bar, baz;` syntax has been removed from the language.
10661     * The transmute intrinsic no longer works on type parameters.
10662     * Statics now allow blocks/items in their definition.
10663     * Trait bounds are separated from objects with + instead of : now.
10664     * Objects can no longer be read while they are mutably borrowed.
10665     * The address of a static is now marked as insignificant unless the
10666       #[inline(never)] attribute is placed it.
10667     * The #[unsafe_destructor] attribute is now behind a feature gate.
10668     * Struct literals are no longer allowed in ambiguous positions such as
10669       if, while, match, and for..in.
10670     * Declaration of lang items and intrinsics are now feature-gated by
10671       default.
10672     * Integral literals no longer default to `int`, and floating point
10673       literals no longer default to `f64`. Literals must be suffixed with an
10674       appropriate type if inference cannot determine the type of the
10675       literal.
10676     * The Box<T> type is no longer implicitly borrowed to &mut T.
10677     * Procedures are now required to not capture borrowed references.
10678
10679   * Libraries
10680     * The standard library is now a "facade" over a number of underlying
10681       libraries. This means that development on the standard library should
10682       be speedier due to smaller crates, as well as a clearer line between
10683       all dependencies.
10684     * A new library, libcore, lives under the standard library's facade
10685       which is Rust's "0-assumption" library, suitable for embedded and
10686       kernel development for example.
10687     * A regex crate has been added to the standard distribution. This crate
10688       includes statically compiled regular expressions.
10689     * The unwrap/unwrap_err methods on Result require a Show bound for
10690       better error messages.
10691     * The return types of the std::comm primitives have been centralized
10692       around the Result type.
10693     * A number of I/O primitives have gained the ability to time out their
10694       operations.
10695     * A number of I/O primitives have gained the ability to close their
10696       reading/writing halves to cancel pending operations.
10697     * Reverse iterator methods have been removed in favor of `rev()` on
10698       their forward-iteration counterparts.
10699     * A bitflags! macro has been added to enable easy interop with C and
10700       management of bit flags.
10701     * A debug_assert! macro is now provided which is disabled when
10702       `--cfg ndebug` is passed to the compiler.
10703     * A graphviz crate has been added for creating .dot files.
10704     * The std::cast module has been migrated into std::mem.
10705     * The std::local_data api has been migrated from freestanding functions
10706       to being based on methods.
10707     * The Pod trait has been renamed to Copy.
10708     * jemalloc has been added as the default allocator for types.
10709     * The API for allocating memory has been changed to use proper alignment
10710       and sized deallocation
10711     * Connecting a TcpStream or binding a TcpListener is now based on a
10712       string address and a u16 port. This allows connecting to a hostname as
10713       opposed to an IP.
10714     * The Reader trait now contains a core method, read_at_least(), which
10715       correctly handles many repeated 0-length reads.
10716     * The process-spawning API is now centered around a builder-style
10717       Command struct.
10718     * The :? printing qualifier has been moved from the standard library to
10719       an external libdebug crate.
10720     * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
10721       have been renamed to Eq/Ord.
10722     * The select/plural methods have been removed from format!. The escapes
10723       for { and } have also changed from \{ and \} to {{ and }},
10724       respectively.
10725     * The TaskBuilder API has been re-worked to be a true builder, and
10726       extension traits for spawning native/green tasks have been added.
10727
10728   * Tooling
10729     * All breaking changes to the language or libraries now have their
10730       commit message annotated with `[breaking-change]` to allow for easy
10731       discovery of breaking changes.
10732     * The compiler will now try to suggest how to annotate lifetimes if a
10733       lifetime-related error occurs.
10734     * Debug info continues to be improved greatly with general bug fixes and
10735       better support for situations like link time optimization (LTO).
10736     * Usage of syntax extensions when cross-compiling has been fixed.
10737     * Functionality equivalent to GCC & Clang's -ffunction-sections,
10738       -fdata-sections and --gc-sections has been enabled by default
10739     * The compiler is now stricter about where it will load module files
10740       from when a module is declared via `mod foo;`.
10741     * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
10742       Syntax extensions are now discovered via a "plugin registrar" type
10743       which will be extended in the future to other various plugins.
10744     * Lints have been restructured to allow for dynamically loadable lints.
10745     * A number of rustdoc improvements:
10746       * The HTML output has been visually redesigned.
10747       * Markdown is now powered by hoedown instead of sundown.
10748       * Searching heuristics have been greatly improved.
10749       * The search index has been reduced in size by a great amount.
10750       * Cross-crate documentation via `pub use` has been greatly improved.
10751       * Primitive types are now hyperlinked and documented.
10752     * Documentation has been moved from static.rust-lang.org/doc to
10753       doc.rust-lang.org
10754     * A new sandbox, play.rust-lang.org, is available for running and
10755       sharing rust code examples on-line.
10756     * Unused attributes are now more robustly warned about.
10757     * The dead_code lint now warns about unused struct fields.
10758     * Cross-compiling to iOS is now supported.
10759     * Cross-compiling to mipsel is now supported.
10760     * Stability attributes are now inherited by default and no longer apply
10761       to intra-crate usage, only inter-crate usage.
10762     * Error message related to non-exhaustive match expressions have been
10763       greatly improved.
10764
10765
10766 Version 0.10 (2014-04-03)
10767 =========================
10768
10769   * ~1500 changes, numerous bugfixes
10770
10771   * Language
10772     * A new RFC process is now in place for modifying the language.
10773     * Patterns with `@`-pointers have been removed from the language.
10774     * Patterns with unique vectors (`~[T]`) have been removed from the
10775       language.
10776     * Patterns with unique strings (`~str`) have been removed from the
10777       language.
10778     * `@str` has been removed from the language.
10779     * `@[T]` has been removed from the language.
10780     * `@self` has been removed from the language.
10781     * `@Trait` has been removed from the language.
10782     * Headers on `~` allocations which contain `@` boxes inside the type for
10783       reference counting have been removed.
10784     * The semantics around the lifetimes of temporary expressions have changed,
10785       see #3511 and #11585 for more information.
10786     * Cross-crate syntax extensions are now possible, but feature gated. See
10787       #11151 for more information. This includes both `macro_rules!` macros as
10788       well as syntax extensions such as `format!`.
10789     * New lint modes have been added, and older ones have been turned on to be
10790       warn-by-default.
10791       * Unnecessary parentheses
10792       * Uppercase statics
10793       * Camel Case types
10794       * Uppercase variables
10795       * Publicly visible private types
10796       * `#[deriving]` with raw pointers
10797     * Unsafe functions can no longer be coerced to closures.
10798     * Various obscure macros such as `log_syntax!` are now behind feature gates.
10799     * The `#[simd]` attribute is now behind a feature gate.
10800     * Visibility is no longer allowed on `extern crate` statements, and
10801       unnecessary visibility (`priv`) is no longer allowed on `use` statements.
10802     * Trailing commas are now allowed in argument lists and tuple patterns.
10803     * The `do` keyword has been removed, it is now a reserved keyword.
10804     * Default type parameters have been implemented, but are feature gated.
10805     * Borrowed variables through captures in closures are now considered soundly.
10806     * `extern mod` is now `extern crate`
10807     * The `Freeze` trait has been removed.
10808     * The `Share` trait has been added for types that can be shared among
10809       threads.
10810     * Labels in macros are now hygienic.
10811     * Expression/statement macro invocations can be delimited with `{}` now.
10812     * Treatment of types allowed in `static mut` locations has been tweaked.
10813     * The `*` and `.` operators are now overloadable through the `Deref` and
10814       `DerefMut` traits.
10815     * `~Trait` and `proc` no longer have `Send` bounds by default.
10816     * Partial type hints are now supported with the `_` type marker.
10817     * An `Unsafe` type was introduced for interior mutability. It is now
10818       considered undefined to transmute from `&T` to `&mut T` without using the
10819       `Unsafe` type.
10820     * The #[linkage] attribute was implemented for extern statics/functions.
10821     * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
10822     * `Pod` was renamed to `Copy`.
10823
10824   * Libraries
10825     * The `libextra` library has been removed. It has now been decomposed into
10826       component libraries with smaller and more focused nuggets of
10827       functionality. The full list of libraries can be found on the
10828       documentation index page.
10829     * std: `std::condition` has been removed. All I/O errors are now propagated
10830       through the `Result` type. In order to assist with error handling, a
10831       `try!` macro for unwrapping errors with an early return and a lint for
10832       unused results has been added. See #12039 for more information.
10833     * std: The `vec` module has been renamed to `slice`.
10834     * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
10835       This will become the only growable vector in the future.
10836     * std: `std::io` now has more public re-exports. Types such as `BufferedReader`
10837       are now found at `std::io::BufferedReader` instead of
10838       `std::io::buffered::BufferedReader`.
10839     * std: `print` and `println` are no longer in the prelude, the `print!` and
10840       `println!` macros are intended to be used instead.
10841     * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
10842       attempts to statically prevent cycles.
10843     * std: The standard distribution is adopting the policy of pushing failure
10844       to the user rather than failing in libraries. Many functions (such as
10845       `slice::last()`) now return `Option<T>` instead of `T` + failing.
10846     * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
10847       deriving mode: `#[deriving(Show)]`.
10848     * std: `ToStr` is now implemented for all types implementing `Show`.
10849     * std: The formatting trait methods now take `&self` instead of `&T`
10850     * std: The `invert()` method on iterators has been renamed to `rev()`
10851     * std: `std::num` has seen a reduction in the genericity of its traits,
10852       consolidating functionality into a few core traits.
10853     * std: Backtraces are now printed on task failure if the environment
10854       variable `RUST_BACKTRACE` is present.
10855     * std: Naming conventions for iterators have been standardized. More details
10856       can be found on the wiki's style guide.
10857     * std: `eof()` has been removed from the `Reader` trait. Specific types may
10858       still implement the function.
10859     * std: Networking types are now cloneable to allow simultaneous reads/writes.
10860     * std: `assert_approx_eq!` has been removed
10861     * std: The `e` and `E` formatting specifiers for floats have been added to
10862       print them in exponential notation.
10863     * std: The `Times` trait has been removed
10864     * std: Indications of variance and opting out of builtin bounds is done
10865       through marker types in `std::kinds::marker` now
10866     * std: `hash` has been rewritten, `IterBytes` has been removed, and
10867       `#[deriving(Hash)]` is now possible.
10868     * std: `SharedChan` has been removed, `Sender` is now cloneable.
10869     * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
10870     * std: `Chan::new` is now `channel()`.
10871     * std: A new synchronous channel type has been implemented.
10872     * std: A `select!` macro is now provided for selecting over `Receiver`s.
10873     * std: `hashmap` and `trie` have been moved to `libcollections`
10874     * std: `run` has been rolled into `io::process`
10875     * std: `assert_eq!` now uses `{}` instead of `{:?}`
10876     * std: The equality and comparison traits have seen some reorganization.
10877     * std: `rand` has moved to `librand`.
10878     * std: `to_{lower,upper}case` has been implemented for `char`.
10879     * std: Logging has been moved to `liblog`.
10880     * collections: `HashMap` has been rewritten for higher performance and less
10881       memory usage.
10882     * native: The default runtime is now `libnative`. If `libgreen` is desired,
10883       it can be booted manually. The runtime guide has more information and
10884       examples.
10885     * native: All I/O functionality except signals has been implemented.
10886     * green: Task spawning with `libgreen` has been optimized with stack caching
10887       and various trimming of code.
10888     * green: Tasks spawned by `libgreen` now have an unmapped guard page.
10889     * sync: The `extra::sync` module has been updated to modern rust (and moved
10890       to the `sync` library), tweaking and improving various interfaces while
10891       dropping redundant functionality.
10892     * sync: A new `Barrier` type has been added to the `sync` library.
10893     * sync: An efficient mutex for native and green tasks has been implemented.
10894     * serialize: The `base64` module has seen some improvement. It treats
10895       newlines better, has non-string error values, and has seen general
10896       cleanup.
10897     * fourcc: A `fourcc!` macro was introduced
10898     * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
10899       hexadecimal literal.
10900
10901   * Tooling
10902     * `rustpkg` has been deprecated and removed from the main repository. Its
10903       replacement, `cargo`, is under development.
10904     * Nightly builds of rust are now available
10905     * The memory usage of rustc has been improved many times throughout this
10906       release cycle.
10907     * The build process supports disabling rpath support for the rustc binary
10908       itself.
10909     * Code generation has improved in some cases, giving more information to the
10910       LLVM optimization passes to enable more extensive optimizations.
10911     * Debuginfo compatibility with lldb on OSX has been restored.
10912     * The master branch is now gated on an android bot, making building for
10913       android much more reliable.
10914     * Output flags have been centralized into one `--emit` flag.
10915     * Crate type flags have been centralized into one `--crate-type` flag.
10916     * Codegen flags have been consolidated behind a `-C` flag.
10917     * Linking against outdated crates now has improved error messages.
10918     * Error messages with lifetimes will often suggest how to annotate the
10919       function to fix the error.
10920     * Many more types are documented in the standard library, and new guides
10921       were written.
10922     * Many `rustdoc` improvements:
10923       * code blocks are syntax highlighted.
10924       * render standalone markdown files.
10925       * the --test flag tests all code blocks by default.
10926       * exported macros are displayed.
10927       * re-exported types have their documentation inlined at the location of the
10928         first re-export.
10929       * search works across crates that have been rendered to the same output
10930         directory.
10931
10932
10933 Version 0.9 (2014-01-09)
10934 ==========================
10935
10936    * ~1800 changes, numerous bugfixes
10937
10938    * Language
10939       * The `float` type has been removed. Use `f32` or `f64` instead.
10940       * A new facility for enabling experimental features (feature gating) has
10941         been added, using the crate-level `#[feature(foo)]` attribute.
10942       * Managed boxes (@) are now behind a feature gate
10943         (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
10944         standard library's `Gc` or `Rc` types instead.
10945       * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
10946       * Jumping back to the top of a loop is now done with `continue` instead of
10947         `loop`.
10948       * Strings can no longer be mutated through index assignment.
10949       * Raw strings can be created via the basic `r"foo"` syntax or with matched
10950         hash delimiters, as in `r###"foo"###`.
10951       * `~fn` is now written `proc (args) -> retval { ... }` and may only be
10952         called once.
10953       * The `&fn` type is now written `|args| -> ret` to match the literal form.
10954       * `@fn`s have been removed.
10955       * `do` only works with procs in order to make it obvious what the cost
10956         of `do` is.
10957       * Single-element tuple-like structs can no longer be dereferenced to
10958         obtain the inner value. A more comprehensive solution for overloading
10959         the dereference operator will be provided in the future.
10960       * The `#[link(...)]` attribute has been replaced with
10961         `#[crate_id = "name#vers"]`.
10962       * Empty `impl`s must be terminated with empty braces and may not be
10963         terminated with a semicolon.
10964       * Keywords are no longer allowed as lifetime names; the `self` lifetime
10965         no longer has any special meaning.
10966       * The old `fmt!` string formatting macro has been removed.
10967       * `printf!` and `printfln!` (old-style formatting) removed in favor of
10968         `print!` and `println!`.
10969       * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
10970       * The `extern mod foo (name = "bar")` syntax has been removed. Use
10971         `extern mod foo = "bar"` instead.
10972       * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
10973       * Macros can have attributes.
10974       * Macros can expand to items with attributes.
10975       * Macros can expand to multiple items.
10976       * The `asm!` macro is feature-gated (`#[feature(asm)]`).
10977       * Comments may be nested.
10978       * Values automatically coerce to trait objects they implement, without
10979         an explicit `as`.
10980       * Enum discriminants are no longer an entire word but as small as needed to
10981         contain all the variants. The `repr` attribute can be used to override
10982         the discriminant size, as in `#[repr(int)]` for integer-sized, and
10983         `#[repr(C)]` to match C enums.
10984       * Non-string literals are not allowed in attributes (they never worked).
10985       * The FFI now supports variadic functions.
10986       * Octal numeric literals, as in `0o7777`.
10987       * The `concat!` syntax extension performs compile-time string concatenation.
10988       * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
10989         removed as Rust no longer uses segmented stacks.
10990       * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
10991       * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
10992         not `*`; ignoring remaining fields of a struct is also done with `..`,
10993         not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
10994       * `rustc` supports the "win64" calling convention via `extern "win64"`.
10995       * `rustc` supports the "system" calling convention, which defaults to the
10996         preferred convention for the target platform, "stdcall" on 32-bit Windows,
10997         "C" elsewhere.
10998       * The `type_overflow` lint (default: warn) checks literals for overflow.
10999       * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
11000       * The `attribute_usage` lint (default: warn) warns about unknown
11001         attributes.
11002       * The `unknown_features` lint (default: warn) warns about unknown
11003         feature gates.
11004       * The `dead_code` lint (default: warn) checks for dead code.
11005       * Rust libraries can be linked statically to one another
11006       * `#[link_args]` is behind the `link_args` feature gate.
11007       * Native libraries are now linked with `#[link(name = "foo")]`
11008       * Native libraries can be statically linked to a rust crate
11009         (`#[link(name = "foo", kind = "static")]`).
11010       * Native OS X frameworks are now officially supported
11011         (`#[link(name = "foo", kind = "framework")]`).
11012       * The `#[thread_local]` attribute creates thread-local (not task-local)
11013         variables. Currently behind the `thread_local` feature gate.
11014       * The `return` keyword may be used in closures.
11015       * Types that can be copied via a memcpy implement the `Pod` kind.
11016       * The `cfg` attribute can now be used on struct fields and enum variants.
11017
11018    * Libraries
11019       * std: The `option` and `result` API's have been overhauled to make them
11020         simpler, more consistent, and more composable.
11021       * std: The entire `std::io` module has been replaced with one that is
11022         more comprehensive and that properly interfaces with the underlying
11023         scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
11024         implemented.
11025       * std: `io::util` contains a number of useful implementations of
11026         `Reader` and `Writer`, including `NullReader`, `NullWriter`,
11027         `ZeroReader`, `TeeReader`.
11028       * std: The reference counted pointer type `extra::rc` moved into std.
11029       * std: The `Gc` type in the `gc` module will replace `@` (it is currently
11030         just a wrapper around it).
11031       * std: The `Either` type has been removed.
11032       * std: `fmt::Default` can be implemented for any type to provide default
11033         formatting to the `format!` macro, as in `format!("{}", myfoo)`.
11034       * std: The `rand` API continues to be tweaked.
11035       * std: The `rust_begin_unwind` function, useful for inserting breakpoints
11036         on failure in gdb, is now named `rust_fail`.
11037       * std: The `each_key` and `each_value` methods on `HashMap` have been
11038         replaced by the `keys` and `values` iterators.
11039       * std: Functions dealing with type size and alignment have moved from the
11040         `sys` module to the `mem` module.
11041       * std: The `path` module was written and API changed.
11042       * std: `str::from_utf8` has been changed to cast instead of allocate.
11043       * std: `starts_with` and `ends_with` methods added to vectors via the
11044         `ImmutableEqVector` trait, which is in the prelude.
11045       * std: Vectors can be indexed with the `get_opt` method, which returns `None`
11046         if the index is out of bounds.
11047       * std: Task failure no longer propagates between tasks, as the model was
11048         complex, expensive, and incompatible with thread-based tasks.
11049       * std: The `Any` type can be used for dynamic typing.
11050       * std: `~Any` can be passed to the `fail!` macro and retrieved via
11051         `task::try`.
11052       * std: Methods that produce iterators generally do not have an `_iter`
11053         suffix now.
11054       * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
11055         roots (mutable fields, etc.). Use instead of e.g. `@mut`.
11056       * std: `util::ignore` renamed to `prelude::drop`.
11057       * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
11058         trait.
11059       * std: `vec::raw` has seen a lot of cleanup and API changes.
11060       * std: The standard library no longer includes any C++ code, and very
11061         minimal C, eliminating the dependency on libstdc++.
11062       * std: Runtime scheduling and I/O functionality has been factored out into
11063         extensible interfaces and is now implemented by two different crates:
11064         libnative, for native threading and I/O; and libgreen, for green threading
11065         and I/O. This paves the way for using the standard library in more limited
11066         embedded environments.
11067       * std: The `comm` module has been rewritten to be much faster, have a
11068         simpler, more consistent API, and to work for both native and green
11069         threading.
11070       * std: All libuv dependencies have been moved into the rustuv crate.
11071       * native: New implementations of runtime scheduling on top of OS threads.
11072       * native: New native implementations of TCP, UDP, file I/O, process spawning,
11073         and other I/O.
11074       * green: The green thread scheduler and message passing types are almost
11075         entirely lock-free.
11076       * extra: The `flatpipes` module had bitrotted and was removed.
11077       * extra: All crypto functions have been removed and Rust now has a policy of
11078         not reimplementing crypto in the standard library. In the future crypto
11079         will be provided by external crates with bindings to established libraries.
11080       * extra: `c_vec` has been modernized.
11081       * extra: The `sort` module has been removed. Use the `sort` method on
11082         mutable slices.
11083
11084    * Tooling
11085       * The `rust` and `rusti` commands have been removed, due to lack of
11086         maintenance.
11087       * `rustdoc` was completely rewritten.
11088       * `rustdoc` can test code examples in documentation.
11089       * `rustpkg` can test packages with the argument, 'test'.
11090       * `rustpkg` supports arbitrary dependencies, including C libraries.
11091       * `rustc`'s support for generating debug info is improved again.
11092       * `rustc` has better error reporting for unbalanced delimiters.
11093       * `rustc`'s JIT support was removed due to bitrot.
11094       * Executables and static libraries can be built with LTO (-Z lto)
11095       * `rustc` adds a `--dep-info` flag for communicating dependencies to
11096         build tools.
11097
11098
11099 Version 0.8 (2013-09-26)
11100 ============================
11101
11102    * ~2200 changes, numerous bugfixes
11103
11104    * Language
11105       * The `for` loop syntax has changed to work with the `Iterator` trait.
11106       * At long last, unwinding works on Windows.
11107       * Default methods are ready for use.
11108       * Many trait inheritance bugs fixed.
11109       * Owned and borrowed trait objects work more reliably.
11110       * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
11111       * rustc can omit emission of code for the `debug!` macro if it is passed
11112         `--cfg ndebug`
11113       * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
11114         for foo.rs, then foo/mod.rs, and will generate an error when both are
11115         present.
11116       * Strings no longer contain trailing nulls. The new `std::c_str` module
11117         provides new mechanisms for converting to C strings.
11118       * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
11119       * The FFI has been overhauled such that foreign functions are called directly,
11120         instead of through a stack-switching wrapper.
11121       * Calling a foreign function must be done through a Rust function with the
11122         `#[fixed_stack_segment]` attribute.
11123       * The `externfn!` macro can be used to declare both a foreign function and
11124         a `#[fixed_stack_segment]` wrapper at once.
11125       * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
11126       * `unsafe` is no longer allowed on extern fns - they are all unsafe.
11127       * `priv` is disallowed everywhere except for struct fields and enum variants.
11128       * `&T` (besides `&'static T`) is no longer allowed in `@T`.
11129       * `ref` bindings in irrefutable patterns work correctly now.
11130       * `char` is now prevented from containing invalid code points.
11131       * Casting to `bool` is no longer allowed.
11132       * `\0` is now accepted as an escape in chars and strings.
11133       * `yield` is a reserved keyword.
11134       * `typeof` is a reserved keyword.
11135       * Crates may be imported by URL with `extern mod foo = "url";`.
11136       * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
11137       * Static vectors can be initialized with repeating elements,
11138         e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
11139       * Static structs can be initialized with functional record update,
11140         e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
11141       * `cfg!` can be used to conditionally execute code based on the crate
11142         configuration, similarly to `#[cfg(...)]`.
11143       * The `unnecessary_qualification` lint detects unneeded module
11144         prefixes (default: allow).
11145       * Arithmetic operations have been implemented on the SIMD types in
11146         `std::unstable::simd`.
11147       * Exchange allocation headers were removed, reducing memory usage.
11148       * `format!` implements a completely new, extensible, and higher-performance
11149         string formatting system. It will replace `fmt!`.
11150       * `print!` and `println!` write formatted strings (using the `format!`
11151         extension) to stdout.
11152       * `write!` and `writeln!` write formatted strings (using the `format!`
11153         extension) to the new Writers in `std::rt::io`.
11154       * The library section in which a function or static is placed may
11155         be specified with `#[link_section = "..."]`.
11156       * The `proto!` syntax extension for defining bounded message protocols
11157         was removed.
11158       * `macro_rules!` is hygienic for `let` declarations.
11159       * The `#[export_name]` attribute specifies the name of a symbol.
11160       * `unreachable!` can be used to indicate unreachable code, and fails
11161         if executed.
11162
11163    * Libraries
11164       * std: Transitioned to the new runtime, written in Rust.
11165       * std: Added an experimental I/O library, `rt::io`, based on the new
11166         runtime.
11167       * std: A new generic `range` function was added to the prelude, replacing
11168         `uint::range` and friends.
11169       * std: `range_rev` no longer exists. Since range is an iterator it can be
11170         reversed with `range(lo, hi).invert()`.
11171       * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
11172         renamed to `unwrap_or`.
11173       * std: The `iterator` module was renamed to `iter`.
11174       * std: Integral types now support the `checked_add`, `checked_sub`, and
11175         `checked_mul` operations for detecting overflow.
11176       * std: Many methods in `str`, `vec`, `option, `result` were renamed for
11177         consistency.
11178       * std: Methods are standardizing on conventions for casting methods:
11179         `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
11180         and cheap casts.
11181       * std: The `CString` type in `c_str` provides new ways to convert to and
11182         from C strings.
11183       * std: `DoubleEndedIterator` can yield elements in two directions.
11184       * std: The `mut_split` method on vectors partitions an `&mut [T]` into
11185         two splices.
11186       * std: `str::from_bytes` renamed to `str::from_utf8`.
11187       * std: `pop_opt` and `shift_opt` methods added to vectors.
11188       * std: The task-local data interface no longer uses @, and keys are
11189         no longer function pointers.
11190       * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
11191       * std: Added `SharedPort` to `comm`.
11192       * std: `Eq` has a default method for `ne`; only `eq` is required
11193         in implementations.
11194       * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
11195         is required in implementations.
11196       * std: `is_utf8` performance is improved, impacting many string functions.
11197       * std: `os::MemoryMap` provides cross-platform mmap.
11198       * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
11199         are not 'in-bounds' are considered undefined.
11200       * std: Many freestanding functions in `vec` removed in favor of methods.
11201       * std: Many freestanding functions on scalar types removed in favor of
11202         methods.
11203       * std: Many options to task builders were removed since they don't make
11204         sense in the new scheduler design.
11205       * std: More containers implement `FromIterator` so can be created by the
11206         `collect` method.
11207       * std: More complete atomic types in `unstable::atomics`.
11208       * std: `comm::PortSet` removed.
11209       * std: Mutating methods in the `Set` and `Map` traits have been moved into
11210         the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
11211         `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
11212         default implementations.
11213       * std: Various `from_str` functions were removed in favor of a generic
11214         `from_str` which is available in the prelude.
11215       * std: `util::unreachable` removed in favor of the `unreachable!` macro.
11216       * extra: `dlist`, the doubly-linked list was modernized.
11217       * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
11218       * extra: Added `glob` module, replacing `std::os::glob`.
11219       * extra: `rope` was removed.
11220       * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
11221       * extra: `net`, and `timer` were removed. The experimental replacements
11222         are `std::rt::io::net` and `std::rt::io::timer`.
11223       * extra: Iterators implemented for `SmallIntMap`.
11224       * extra: Iterators implemented for `Bitv` and `BitvSet`.
11225       * extra: `SmallIntSet` removed. Use `BitvSet`.
11226       * extra: Performance of JSON parsing greatly improved.
11227       * extra: `semver` updated to SemVer 2.0.0.
11228       * extra: `term` handles more terminals correctly.
11229       * extra: `dbg` module removed.
11230       * extra: `par` module removed.
11231       * extra: `future` was cleaned up, with some method renames.
11232       * extra: Most free functions in `getopts` were converted to methods.
11233
11234    * Other
11235       * rustc's debug info generation (`-Z debug-info`) is greatly improved.
11236       * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
11237         similarly to gcc's `--march` flag.
11238       * rustc's performance compiling small crates is much better.
11239       * rustpkg has received many improvements.
11240       * rustpkg supports git tags as package IDs.
11241       * rustpkg builds into target-specific directories so it can be used for
11242         cross-compiling.
11243       * The number of concurrent test tasks is controlled by the environment
11244         variable RUST_TEST_TASKS.
11245       * The test harness can now report metrics for benchmarks.
11246       * All tools have man pages.
11247       * Programs compiled with `--test` now support the `-h` and `--help` flags.
11248       * The runtime uses jemalloc for allocations.
11249       * Segmented stacks are temporarily disabled as part of the transition to
11250         the new runtime. Stack overflows are possible!
11251       * A new documentation backend, rustdoc_ng, is available for use. It is
11252         still invoked through the normal `rustdoc` command.
11253
11254
11255 Version 0.7 (2013-07-03)
11256 =======================
11257
11258    * ~2000 changes, numerous bugfixes
11259
11260    * Language
11261       * `impl`s no longer accept a visibility qualifier. Put them on methods
11262         instead.
11263       * The borrow checker has been rewritten with flow-sensitivity, fixing
11264         many bugs and inconveniences.
11265       * The `self` parameter no longer implicitly means `&'self self`,
11266         and can be explicitly marked with a lifetime.
11267       * Overloadable compound operators (`+=`, etc.) have been temporarily
11268         removed due to bugs.
11269       * The `for` loop protocol now requires `for`-iterators to return `bool`
11270         so they compose better.
11271       * The `Durable` trait is replaced with the `'static` bounds.
11272       * Trait default methods work more often.
11273       * Structs with the `#[packed]` attribute have byte alignment and
11274         no padding between fields.
11275       * Type parameters bound by `Copy` must now be copied explicitly with
11276         the `copy` keyword.
11277       * It is now illegal to move out of a dereferenced unsafe pointer.
11278       * `Option<~T>` is now represented as a nullable pointer.
11279       * `@mut` does dynamic borrow checks correctly.
11280       * The `main` function is only detected at the topmost level of the crate.
11281         The `#[main]` attribute is still valid anywhere.
11282       * Struct fields may no longer be mutable. Use inherited mutability.
11283       * The `#[no_send]` attribute makes a type that would otherwise be
11284         `Send`, not.
11285       * The `#[no_freeze]` attribute makes a type that would otherwise be
11286         `Freeze`, not.
11287       * Unbounded recursion will abort the process after reaching the limit
11288         specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
11289       * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
11290         are never implicitly copyable.
11291       * `#[static_assert]` makes compile-time assertions about static bools.
11292       * At long last, 'argument modes' no longer exist.
11293       * The rarely used `use mod` statement no longer exists.
11294
11295    * Syntax extensions
11296       * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
11297         argument list.
11298       * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
11299         `Rand`, `Zero` and `ToStr` can all be automatically derived with
11300         `#[deriving(...)]`.
11301       * The `bytes!` macro returns a vector of bytes for string, u8, char,
11302         and unsuffixed integer literals.
11303
11304    * Libraries
11305       * The `core` crate was renamed to `std`.
11306       * The `std` crate was renamed to `extra`.
11307       * More and improved documentation.
11308       * std: `iterator` module for external iterator objects.
11309       * Many old-style (internal, higher-order function) iterators replaced by
11310         implementations of `Iterator`.
11311       * std: Many old internal vector and string iterators,
11312         incl. `any`, `all`. removed.
11313       * std: The `finalize` method of `Drop` renamed to `drop`.
11314       * std: The `drop` method now takes `&mut self` instead of `&self`.
11315       * std: The prelude no longer re-exports any modules, only types and traits.
11316       * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
11317         `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
11318       * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
11319         `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
11320       * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
11321         `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
11322       * std: Many types implement `Clone`.
11323       * std: `path` type renamed to `Path`.
11324       * std: `mut` module and `Mut` type removed.
11325       * std: Many standalone functions removed in favor of methods and iterators
11326         in `vec`, `str`. In the future methods will also work as functions.
11327       * std: `reinterpret_cast` removed. Use `transmute`.
11328       * std: ascii string handling in `std::ascii`.
11329       * std: `Rand` is implemented for ~/@.
11330       * std: `run` module for spawning processes overhauled.
11331       * std: Various atomic types added to `unstable::atomic`.
11332       * std: Various types implement `Zero`.
11333       * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
11334       * std: Borrowed pointer functions moved from `ptr` to `borrow`.
11335       * std: Added `os::mkdir_recursive`.
11336       * std: Added `os::glob` function performs filesystems globs.
11337       * std: `FuzzyEq` renamed to `ApproxEq`.
11338       * std: `Map` now defines `pop` and `swap` methods.
11339       * std: `Cell` constructors converted to static methods.
11340       * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
11341       * extra: `flate` module moved from `std` to `extra`.
11342       * extra: `fileinput` module for iterating over a series of files.
11343       * extra: `Complex` number type and `complex` module.
11344       * extra: `Rational` number type and `rational` module.
11345       * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
11346       * extra: `term` uses terminfo now, is more correct.
11347       * extra: `arc` functions converted to methods.
11348       * extra: Implementation of fixed output size variations of SHA-2.
11349
11350    * Tooling
11351       * `unused_variables` lint mode for unused variables (default: warn).
11352       * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
11353         (default: warn).
11354       * `unused_mut` lint mode for identifying unused `mut` qualifiers
11355         (default: warn).
11356       * `dead_assignment` lint mode for unread variables (default: warn).
11357       * `unnecessary_allocation` lint mode detects some heap allocations that are
11358         immediately borrowed so could be written without allocating (default: warn).
11359       * `missing_doc` lint mode (default: allow).
11360       * `unreachable_code` lint mode (default: warn).
11361       * The `rusti` command has been rewritten and a number of bugs addressed.
11362       * rustc outputs in color on more terminals.
11363       * rustc accepts a `--link-args` flag to pass arguments to the linker.
11364       * rustc accepts a `-Z print-link-args` flag for debugging linkage.
11365       * Compiling with `-g` will make the binary record information about
11366         dynamic borrowcheck failures for debugging.
11367       * rustdoc has a nicer stylesheet.
11368       * Various improvements to rustdoc.
11369       * Improvements to rustpkg (see the detailed release notes).
11370
11371
11372 Version 0.6 (2013-04-03)
11373 ========================
11374
11375    * ~2100 changes, numerous bugfixes
11376
11377    * Syntax changes
11378       * The self type parameter in traits is now spelled `Self`
11379       * The `self` parameter in trait and impl methods must now be explicitly
11380         named (for example: `fn f(&self) { }`). Implicit self is deprecated.
11381       * Static methods no longer require the `static` keyword and instead
11382         are distinguished by the lack of a `self` parameter
11383       * Replaced the `Durable` trait with the `'static` lifetime
11384       * The old closure type syntax with the trailing sigil has been
11385         removed in favor of the more consistent leading sigil
11386       * `super` is a keyword, and may be prefixed to paths
11387       * Trait bounds are separated with `+` instead of whitespace
11388       * Traits are implemented with `impl Trait for Type`
11389         instead of `impl Type: Trait`
11390       * Lifetime syntax is now `&'l foo` instead of `&l/foo`
11391       * The `export` keyword has finally been removed
11392       * The `move` keyword has been removed (see "Semantic changes")
11393       * The interior mutability qualifier on vectors, `[mut T]`, has been
11394         removed. Use `&mut [T]`, etc.
11395       * `mut` is no longer valid in `~mut T`. Use inherited mutability
11396       * `fail` is no longer a keyword. Use `fail!()`
11397       * `assert` is no longer a keyword. Use `assert!()`
11398       * `log` is no longer a keyword. use `debug!`, etc.
11399       * 1-tuples may be represented as `(T,)`
11400       * Struct fields may no longer be `mut`. Use inherited mutability,
11401         `@mut T`, `core::mut` or `core::cell`
11402       * `extern mod { ... }` is no longer valid syntax for foreign
11403         function modules. Use extern blocks: `extern { ... }`
11404       * Newtype enums removed. Use tuple-structs.
11405       * Trait implementations no longer support visibility modifiers
11406       * Pattern matching over vectors improved and expanded
11407       * `const` renamed to `static` to correspond to lifetime name,
11408         and make room for future `static mut` unsafe mutable globals.
11409       * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
11410       * `Clone` implementations can be automatically generated with
11411         `#[deriving(Clone)]`
11412       * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
11413         instead of `foo as Bar`.
11414       * Fixed length vector types are now written as `[int, .. 3]`
11415         instead of `[int * 3]`.
11416       * Fixed length vector types can express the length as a constant
11417         expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
11418
11419    * Semantic changes
11420       * Types with owned pointers or custom destructors move by default,
11421         eliminating the `move` keyword
11422       * All foreign functions are considered unsafe
11423       * &mut is now unaliasable
11424       * Writes to borrowed @mut pointers are prevented dynamically
11425       * () has size 0
11426       * The name of the main function can be customized using #[main]
11427       * The default type of an inferred closure is &fn instead of @fn
11428       * `use` statements may no longer be "chained" - they cannot import
11429         identifiers imported by previous `use` statements
11430       * `use` statements are crate relative, importing from the "top"
11431         of the crate by default. Paths may be prefixed with `super::`
11432         or `self::` to change the search behavior.
11433       * Method visibility is inherited from the implementation declaration
11434       * Structural records have been removed
11435       * Many more types can be used in static items, including enums
11436         'static-lifetime pointers and vectors
11437       * Pattern matching over vectors improved and expanded
11438       * Typechecking of closure types has been overhauled to
11439         improve inference and eliminate unsoundness
11440       * Macros leave scope at the end of modules, unless that module is
11441         tagged with #[macro_escape]
11442
11443    * Libraries
11444       * Added big integers to `std::bigint`
11445       * Removed `core::oldcomm` module
11446       * Added pipe-based `core::comm` module
11447       * Numeric traits have been reorganized under `core::num`
11448       * `vec::slice` finally returns a slice
11449       * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
11450       * Containers reorganized around traits in `core::container`
11451       * `core::dvec` removed, `~[T]` is a drop-in replacement
11452       * `core::send_map` renamed to `core::hashmap`
11453       * `std::map` removed; replaced with `core::hashmap`
11454       * `std::treemap` reimplemented as an owned balanced tree
11455       * `std::deque` and `std::smallintmap` reimplemented as owned containers
11456       * `core::trie` added as a fast ordered map for integer keys
11457       * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
11458       * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
11459         overload the comparison operators, whereas `TotalOrd` is used
11460         by certain container types
11461
11462    * Other
11463       * Replaced the 'cargo' package manager with 'rustpkg'
11464       * Added all-purpose 'rust' tool
11465       * `rustc --test` now supports benchmarks with the `#[bench]` attribute
11466       * rustc now *attempts* to offer spelling suggestions
11467       * Improved support for ARM and Android
11468       * Preliminary MIPS backend
11469       * Improved foreign function ABI implementation for x86, x86_64
11470       * Various memory usage improvements
11471       * Rust code may be embedded in foreign code under limited circumstances
11472       * Inline assembler supported by new asm!() syntax extension.
11473
11474
11475 Version 0.5 (2012-12-21)
11476 ===========================
11477
11478    * ~900 changes, numerous bugfixes
11479
11480    * Syntax changes
11481       * Removed `<-` move operator
11482       * Completed the transition from the `#fmt` extension syntax to `fmt!`
11483       * Removed old fixed length vector syntax - `[T]/N`
11484       * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
11485       * Macros may now expand to items and statements
11486       * `a.b()` is always parsed as a method call, never as a field projection
11487       * `Eq` and `IterBytes` implementations can be automatically generated
11488         with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
11489       * Removed the special crate language for `.rc` files
11490       * Function arguments may consist of any irrefutable pattern
11491
11492    * Semantic changes
11493       * `&` and `~` pointers may point to objects
11494       * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
11495       * Enum variants may be structs
11496       * Destructors can be added to all nominal types with the Drop trait
11497       * Structs and nullary enum variants may be constants
11498       * Values that cannot be implicitly copied are now automatically moved
11499         without writing `move` explicitly
11500       * `&T` may now be coerced to `*T`
11501       * Coercions happen in `let` statements as well as function calls
11502       * `use` statements now take crate-relative paths
11503       * The module and type namespaces have been merged so that static
11504         method names can be resolved under the trait in which they are
11505         declared
11506
11507    * Improved support for language features
11508       * Trait inheritance works in many scenarios
11509       * More support for explicit self arguments in methods - `self`, `&self`
11510         `@self`, and `~self` all generally work as expected
11511       * Static methods work in more situations
11512       * Experimental: Traits may declare default methods for the implementations
11513         to use
11514
11515    * Libraries
11516       * New condition handling system in `core::condition`
11517       * Timsort added to `std::sort`
11518       * New priority queue, `std::priority_queue`
11519       * Pipes for serializable types, `std::flatpipes'
11520       * Serialization overhauled to be trait-based
11521       * Expanded `getopts` definitions
11522       * Moved futures to `std`
11523       * More functions are pure now
11524       * `core::comm` renamed to `oldcomm`. Still deprecated
11525       * `rustdoc` and `cargo` are libraries now
11526
11527    * Misc
11528       * Added a preliminary REPL, `rusti`
11529       * License changed from MIT to dual MIT/APL2
11530
11531
11532 Version 0.4 (2012-10-15)
11533 ==========================
11534
11535    * ~2000 changes, numerous bugfixes
11536
11537    * Syntax
11538       * All keywords are now strict and may not be used as identifiers anywhere
11539       * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
11540         'of', 'with', 'to', 'class'.
11541       * Classes are replaced with simpler structs
11542       * Explicit method self types
11543       * `ret` became `return` and `alt` became `match`
11544       * `import` is now `use`; `use is now `extern mod`
11545       * `extern mod { ... }` is now `extern { ... }`
11546       * `use mod` is the recommended way to import modules
11547       * `pub` and `priv` replace deprecated export lists
11548       * The syntax of `match` pattern arms now uses fat arrow (=>)
11549       * `main` no longer accepts an args vector; use `os::args` instead
11550
11551    * Semantics
11552       * Trait implementations are now coherent, ala Haskell typeclasses
11553       * Trait methods may be static
11554       * Argument modes are deprecated
11555       * Borrowed pointers are much more mature and recommended for use
11556       * Strings and vectors in the static region are stored in constant memory
11557       * Typestate was removed
11558       * Resolution rewritten to be more reliable
11559       * Support for 'dual-mode' data structures (freezing and thawing)
11560
11561    * Libraries
11562       * Most binary operators can now be overloaded via the traits in
11563         `core::ops'
11564       * `std::net::url` for representing URLs
11565       * Sendable hash maps in `core::send_map`
11566       * `core::task' gained a (currently unsafe) task-local storage API
11567
11568    * Concurrency
11569       * An efficient new intertask communication primitive called the pipe,
11570         along with a number of higher-level channel types, in `core::pipes`
11571       * `std::arc`, an atomically reference counted, immutable, shared memory
11572         type
11573       * `std::sync`, various exotic synchronization tools based on arcs and pipes
11574       * Futures are now based on pipes and sendable
11575       * More robust linked task failure
11576       * Improved task builder API
11577
11578    * Other
11579       * Improved error reporting
11580       * Preliminary JIT support
11581       * Preliminary work on precise GC
11582       * Extensive architectural improvements to rustc
11583       * Begun a transition away from buggy C++-based reflection (shape) code to
11584         Rust-based (visitor) code
11585       * All hash functions and tables converted to secure, randomized SipHash
11586
11587
11588 Version 0.3  (2012-07-12)
11589 ========================
11590
11591    * ~1900 changes, numerous bugfixes
11592
11593    * New coding conveniences
11594       * Integer-literal suffix inference
11595       * Per-item control over warnings, errors
11596       * #[cfg(windows)] and #[cfg(unix)] attributes
11597       * Documentation comments
11598       * More compact closure syntax
11599       * 'do' expressions for treating higher-order functions as
11600         control structures
11601       * *-patterns (wildcard extended to all constructor fields)
11602
11603    * Semantic cleanup
11604       * Name resolution pass and exhaustiveness checker rewritten
11605       * Region pointers and borrow checking supersede alias
11606         analysis
11607       * Init-ness checking is now provided by a region-based liveness
11608         pass instead of the typestate pass; same for last-use analysis
11609       * Extensive work on region pointers
11610
11611    * Experimental new language features
11612       * Slices and fixed-size, interior-allocated vectors
11613       * #!-comments for lang versioning, shell execution
11614       * Destructors and iface implementation for classes;
11615         type-parameterized classes and class methods
11616       * 'const' type kind for types that can be used to implement
11617         shared-memory concurrency patterns
11618
11619    * Type reflection
11620
11621    * Removal of various obsolete features
11622       * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
11623                  'crust', 'native' (now 'extern'), 'cont' (now 'again')
11624
11625       * Constructs: do-while loops ('do' repurposed), fn binding,
11626                     resources (replaced by destructors)
11627
11628    * Compiler reorganization
11629       * Syntax-layer of compiler split into separate crate
11630       * Clang (from LLVM project) integrated into build
11631       * Typechecker split into sub-modules
11632
11633    * New library code
11634       * New time functions
11635       * Extension methods for many built-in types
11636       * Arc: atomic-refcount read-only / exclusive-use shared cells
11637       * Par: parallel map and search routines
11638       * Extensive work on libuv interface
11639       * Much vector code moved to libraries
11640       * Syntax extensions: #line, #col, #file, #mod, #stringify,
11641         #include, #include_str, #include_bin
11642
11643    * Tool improvements
11644       * Cargo automatically resolves dependencies
11645
11646
11647 Version 0.2  (2012-03-29)
11648 =========================
11649
11650    * >1500 changes, numerous bugfixes
11651
11652    * New docs and doc tooling
11653
11654    * New port: FreeBSD x86_64
11655
11656    * Compilation model enhancements
11657       * Generics now specialized, multiply instantiated
11658       * Functions now inlined across separate crates
11659
11660    * Scheduling, stack and threading fixes
11661       * Noticeably improved message-passing performance
11662       * Explicit schedulers
11663       * Callbacks from C
11664       * Helgrind clean
11665
11666    * Experimental new language features
11667       * Operator overloading
11668       * Region pointers
11669       * Classes
11670
11671    * Various language extensions
11672       * C-callback function types: 'crust fn ...'
11673       * Infinite-loop construct: 'loop { ... }'
11674       * Shorten 'mutable' to 'mut'
11675       * Required mutable-local qualifier: 'let mut ...'
11676       * Basic glob-exporting: 'export foo::*;'
11677       * Alt now exhaustive, 'alt check' for runtime-checked
11678       * Block-function form of 'for' loop, with 'break' and 'ret'.
11679
11680    * New library code
11681       * AST quasi-quote syntax extension
11682       * Revived libuv interface
11683       * New modules: core::{future, iter}, std::arena
11684       * Merged per-platform std::{os*, fs*} to core::{libc, os}
11685       * Extensive cleanup, regularization in libstd, libcore
11686
11687
11688 Version 0.1  (2012-01-20)
11689 ===============================
11690
11691    * Most language features work, including:
11692       * Unique pointers, unique closures, move semantics
11693       * Interface-constrained generics
11694       * Static interface dispatch
11695       * Stack growth
11696       * Multithread task scheduling
11697       * Typestate predicates
11698       * Failure unwinding, destructors
11699       * Pattern matching and destructuring assignment
11700       * Lightweight block-lambda syntax
11701       * Preliminary macro-by-example
11702
11703    * Compiler works with the following configurations:
11704       * Linux: x86 and x86_64 hosts and targets
11705       * macOS: x86 and x86_64 hosts and targets
11706       * Windows: x86 hosts and targets
11707
11708    * Cross compilation / multi-target configuration supported.
11709
11710    * Preliminary API-documentation and package-management tools included.
11711
11712 Known issues:
11713
11714    * Documentation is incomplete.
11715
11716    * Performance is below intended target.
11717
11718    * Standard library APIs are subject to extensive change, reorganization.
11719
11720    * Language-level versioning is not yet operational - future code will
11721      break unexpectedly.