]> git.lizzy.rs Git - rust.git/blob - RELEASES.md
add future compatibility notes for linux-gnu baseline bump
[rust.git] / RELEASES.md
1 Version 1.60.0 (2022-04-07)
2 ==========================
3
4 Language
5 --------
6 - [Stabilize `#[cfg(panic = "...")]` for either `"unwind"` or `"abort"`.][93658]
7 - [Stabilize `#[cfg(target_has_atomic = "...")]` for each integer size and `"ptr"`.][93824]
8
9 Compiler
10 --------
11 - [Enable combining `+crt-static` and `relocation-model=pic` on `x86_64-unknown-linux-gnu`][86374]
12 - [Fixes wrong `unreachable_pub` lints on nested and glob public reexport][87487]
13 - [Stabilize `-Z instrument-coverage` as `-C instrument-coverage`][90132]
14 - [Stabilize `-Z print-link-args` as `--print link-args`][91606]
15 - [Add new Tier 3 target `mips64-openwrt-linux-musl`\*][92300]
16 - [Add new Tier 3 target `armv7-unknown-linux-uclibceabi` (softfloat)\*][92383]
17 - [Fix invalid removal of newlines from doc comments][92357]
18 - [Add kernel target for RustyHermit][92670]
19 - [Deny mixing bin crate type with lib crate types][92933]
20 - [Make rustc use `RUST_BACKTRACE=full` by default][93566]
21 - [Upgrade to LLVM 14][93577]
22
23 \* Refer to Rust's [platform support page][platform-support-doc] for more
24    information on Rust's tiered platform support.
25
26 Libraries
27 ---------
28 - [Guarantee call order for `sort_by_cached_key`][89621]
29 - [Improve `Duration::try_from_secs_f32`/`f64` accuracy by directly processing exponent and mantissa][90247]
30 - [Make `Instant::{duration_since, elapsed, sub}` saturating and remove workarounds][89926]
31 - [Change PhantomData type for `BuildHasherDefault` (and more)][92630]
32
33 Stabilized APIs
34 ---------------
35 - [`Arc::new_cyclic`][arc_new_cyclic]
36 - [`Rc::new_cyclic`][rc_new_cyclic]
37 - [`slice::EscapeAscii`][slice_escape_ascii]
38 - [`<[u8]>::escape_ascii`][slice_u8_escape_ascii]
39 - [`u8::escape_ascii`][u8_escape_ascii]
40 - [`Vec::spare_capacity_mut`][vec_spare_capacity_mut]
41 - [`MaybeUninit::assume_init_drop`][assume_init_drop]
42 - [`MaybeUninit::assume_init_read`][assume_init_read]
43 - [`i8::abs_diff`][i8_abs_diff]
44 - [`i16::abs_diff`][i16_abs_diff]
45 - [`i32::abs_diff`][i32_abs_diff]
46 - [`i64::abs_diff`][i64_abs_diff]
47 - [`i128::abs_diff`][i128_abs_diff]
48 - [`isize::abs_diff`][isize_abs_diff]
49 - [`u8::abs_diff`][u8_abs_diff]
50 - [`u16::abs_diff`][u16_abs_diff]
51 - [`u32::abs_diff`][u32_abs_diff]
52 - [`u64::abs_diff`][u64_abs_diff]
53 - [`u128::abs_diff`][u128_abs_diff]
54 - [`usize::abs_diff`][usize_abs_diff]
55 - [`Display for io::ErrorKind`][display_error_kind]
56 - [`From<u8> for ExitCode`][from_u8_exit_code]
57 - [`Not for !` (the "never" type)][not_never]
58 - [_Op_`Assign<$t> for Wrapping<$t>`][wrapping_assign_ops]
59 - [`arch::is_aarch64_feature_detected!`][is_aarch64_feature_detected]
60
61 Cargo
62 -----
63 - [Port cargo from `toml-rs` to `toml_edit`][cargo/10086]
64 - [Stabilize `-Ztimings` as `--timings`][cargo/10245]
65 - [Stabilize namespaced and weak dependency features.][cargo/10269]
66 - [Accept more `cargo:rustc-link-arg-*` types from build script output.][cargo/10274]
67 - [cargo-new should not add ignore rule on Cargo.lock inside subdirs][cargo/10379]
68
69 Misc
70 ----
71 - [Ship docs on Tier 2 platforms by reusing the closest Tier 1 platform docs][92800]
72 - [Drop rustc-docs from complete profile][93742]
73 - [bootstrap: tidy up flag handling for llvm build][93918]
74
75 Compatibility Notes
76 -------------------
77 - [Remove compiler-rt linking hack on Android][83822]
78 - In a future release we're planning to increase the baseline requirements for
79   the Linux kernel to version 3.2, and for glibc to version 2.17. We'd love
80   your feedback in [PR #95026][95026].
81
82 Internal Changes
83 ----------------
84
85 These changes provide no direct user facing benefits, but represent significant
86 improvements to the internals and overall performance of rustc
87 and related tools.
88
89 - [Switch all libraries to the 2021 edition][92068]
90
91 [83822]: https://github.com/rust-lang/rust/pull/83822
92 [86374]: https://github.com/rust-lang/rust/pull/86374
93 [87487]: https://github.com/rust-lang/rust/pull/87487
94 [89621]: https://github.com/rust-lang/rust/pull/89621
95 [89926]: https://github.com/rust-lang/rust/pull/89926
96 [90132]: https://github.com/rust-lang/rust/pull/90132
97 [90247]: https://github.com/rust-lang/rust/pull/90247
98 [91606]: https://github.com/rust-lang/rust/pull/91606
99 [92068]: https://github.com/rust-lang/rust/pull/92068
100 [92300]: https://github.com/rust-lang/rust/pull/92300
101 [92357]: https://github.com/rust-lang/rust/pull/92357
102 [92383]: https://github.com/rust-lang/rust/pull/92383
103 [92630]: https://github.com/rust-lang/rust/pull/92630
104 [92670]: https://github.com/rust-lang/rust/pull/92670
105 [92800]: https://github.com/rust-lang/rust/pull/92800
106 [92933]: https://github.com/rust-lang/rust/pull/92933
107 [93566]: https://github.com/rust-lang/rust/pull/93566
108 [93577]: https://github.com/rust-lang/rust/pull/93577
109 [93658]: https://github.com/rust-lang/rust/pull/93658
110 [93742]: https://github.com/rust-lang/rust/pull/93742
111 [93824]: https://github.com/rust-lang/rust/pull/93824
112 [93918]: https://github.com/rust-lang/rust/pull/93918
113 [95026]: https://github.com/rust-lang/rust/pull/95026
114
115 [cargo/10086]: https://github.com/rust-lang/cargo/pull/10086
116 [cargo/10245]: https://github.com/rust-lang/cargo/pull/10245
117 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269
118 [cargo/10274]: https://github.com/rust-lang/cargo/pull/10274
119 [cargo/10379]: https://github.com/rust-lang/cargo/pull/10379
120
121 [arc_new_cyclic]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.new_cyclic
122 [rc_new_cyclic]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.new_cyclic
123 [slice_escape_ascii]: https://doc.rust-lang.org/stable/std/slice/struct.EscapeAscii.html
124 [slice_u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.escape_ascii
125 [u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.escape_ascii
126 [vec_spare_capacity_mut]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.spare_capacity_mut
127 [assume_init_drop]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_drop
128 [assume_init_read]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_read
129 [i8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.abs_diff
130 [i16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.abs_diff
131 [i32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.abs_diff
132 [i64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.abs_diff
133 [i128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.abs_diff
134 [isize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.abs_diff
135 [u8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.abs_diff
136 [u16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.abs_diff
137 [u32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.abs_diff
138 [u64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.abs_diff
139 [u128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.abs_diff
140 [usize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.abs_diff
141 [display_error_kind]: https://doc.rust-lang.org/stable/std/io/enum.ErrorKind.html#impl-Display
142 [from_u8_exit_code]: https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html#impl-From%3Cu8%3E
143 [not_never]: https://doc.rust-lang.org/stable/std/primitive.never.html#impl-Not
144 [wrapping_assign_ops]: https://doc.rust-lang.org/stable/std/num/struct.Wrapping.html#trait-implementations
145 [is_aarch64_feature_detected]: https://doc.rust-lang.org/stable/std/arch/macro.is_aarch64_feature_detected.html
146
147 Version 1.59.0 (2022-02-24)
148 ==========================
149
150 Language
151 --------
152
153 - [Stabilize default arguments for const parameters and remove the ordering restriction for type and const parameters][90207]
154 - [Stabilize destructuring assignment][90521]
155 - [Relax private in public lint on generic bounds and where clauses of trait impls][90586]
156 - [Stabilize asm! and global_asm! for x86, x86_64, ARM, Aarch64, and RISC-V][91728]
157
158 Compiler
159 --------
160
161 - [Stabilize new symbol mangling format, leaving it opt-in (-Csymbol-mangling-version=v0)][90128]
162 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
163 - [Fix sparc64 ABI for aggregates with floating point members][91003]
164 - [Warn when a `#[test]`-like built-in attribute macro is present multiple times.][91172]
165 - [Add support for riscv64gc-unknown-freebsd][91284]
166 - [Stabilize `-Z emit-future-incompat` as `--json future-incompat`][91535]
167 - [Soft disable incremental compilation][94124]
168
169 This release disables incremental compilation, unless the user has explicitly
170 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
171 This is due to a known and relatively frequently occurring bug in incremental
172 compilation, which causes builds to issue internal compiler errors. This
173 particular bug is already fixed on nightly, but that fix has not yet rolled out
174 to stable and is deemed too risky for a direct stable backport.
175
176 As always, we encourage users to test with nightly and report bugs so that we
177 can track failures and fix issues earlier.
178
179 See [94124] for more details.
180
181 [94124]: https://github.com/rust-lang/rust/issues/94124
182
183 Libraries
184 ---------
185
186 - [Remove unnecessary bounds for some Hash{Map,Set} methods][91593]
187
188 Stabilized APIs
189 ---------------
190
191 - [`std::thread::available_parallelism`][available_parallelism]
192 - [`Result::copied`][result-copied]
193 - [`Result::cloned`][result-cloned]
194 - [`arch::asm!`][asm]
195 - [`arch::global_asm!`][global_asm]
196 - [`ops::ControlFlow::is_break`][is_break]
197 - [`ops::ControlFlow::is_continue`][is_continue]
198 - [`TryFrom<char> for u8`][try_from_char_u8]
199 - [`char::TryFromCharError`][try_from_char_err]
200   implementing `Clone`, `Debug`, `Display`, `PartialEq`, `Copy`, `Eq`, `Error`
201 - [`iter::zip`][zip]
202 - [`NonZeroU8::is_power_of_two`][is_power_of_two8]
203 - [`NonZeroU16::is_power_of_two`][is_power_of_two16]
204 - [`NonZeroU32::is_power_of_two`][is_power_of_two32]
205 - [`NonZeroU64::is_power_of_two`][is_power_of_two64]
206 - [`NonZeroU128::is_power_of_two`][is_power_of_two128]
207 - [`NonZeroUsize::is_power_of_two`][is_power_of_two_usize]
208 - [`DoubleEndedIterator for ToLowercase`][lowercase]
209 - [`DoubleEndedIterator for ToUppercase`][uppercase]
210 - [`TryFrom<&mut [T]> for [T; N]`][tryfrom_ref_arr]
211 - [`UnwindSafe for Once`][unwindsafe_once]
212 - [`RefUnwindSafe for Once`][refunwindsafe_once]
213 - [armv8 neon intrinsics for aarch64][stdarch/1266]
214
215 Const-stable:
216
217 - [`mem::MaybeUninit::as_ptr`][muninit_ptr]
218 - [`mem::MaybeUninit::assume_init`][muninit_init]
219 - [`mem::MaybeUninit::assume_init_ref`][muninit_init_ref]
220 - [`ffi::CStr::from_bytes_with_nul_unchecked`][cstr_from_bytes]
221
222 Cargo
223 -----
224
225 - [Stabilize the `strip` profile option][cargo/10088]
226 - [Stabilize future-incompat-report][cargo/10165]
227 - [Support abbreviating `--release` as `-r`][cargo/10133]
228 - [Support `term.quiet` configuration][cargo/10152]
229 - [Remove `--host` from cargo {publish,search,login}][cargo/10145]
230
231 Compatibility Notes
232 -------------------
233
234 - [Refactor weak symbols in std::sys::unix][90846]
235   This may add new, versioned, symbols when building with a newer glibc, as the
236   standard library uses weak linkage rather than dynamically attempting to load
237   certain symbols at runtime.
238 - [Deprecate crate_type and crate_name nested inside `#![cfg_attr]`][83744]
239   This adds a future compatibility lint to supporting the use of cfg_attr
240   wrapping either crate_type or crate_name specification within Rust files;
241   it is recommended that users migrate to setting the equivalent command line
242   flags.
243 - [Remove effect of `#[no_link]` attribute on name resolution][92034]
244   This may expose new names, leading to conflicts with preexisting names in a
245   given namespace and a compilation failure.
246 - [Cargo will document libraries before binaries.][cargo/10172]
247 - [Respect doc=false in dependencies, not just the root crate][cargo/10201]
248 - [Weaken guarantee around advancing underlying iterators in zip][83791]
249 - [Make split_inclusive() on an empty slice yield an empty output][89825]
250 - [Update std::env::temp_dir to use GetTempPath2 on Windows when available.][89999]
251 - [unreachable! was updated to match other formatting macro behavior on Rust 2021][92137]
252
253 Internal Changes
254 ----------------
255
256 These changes provide no direct user facing benefits, but represent significant
257 improvements to the internals and overall performance of rustc
258 and related tools.
259
260 - [Fix many cases of normalization-related ICEs][91255]
261 - [Replace dominators algorithm with simple Lengauer-Tarjan][85013]
262 - [Store liveness in interval sets for region inference][90637]
263
264 - [Remove `in_band_lifetimes` from the compiler and standard library, in preparation for removing this
265   unstable feature.][91867]
266
267 [91867]: https://github.com/rust-lang/rust/issues/91867
268 [83744]: https://github.com/rust-lang/rust/pull/83744/
269 [83791]: https://github.com/rust-lang/rust/pull/83791/
270 [85013]: https://github.com/rust-lang/rust/pull/85013/
271 [89825]: https://github.com/rust-lang/rust/pull/89825/
272 [89999]: https://github.com/rust-lang/rust/pull/89999/
273 [90128]: https://github.com/rust-lang/rust/pull/90128/
274 [90207]: https://github.com/rust-lang/rust/pull/90207/
275 [90521]: https://github.com/rust-lang/rust/pull/90521/
276 [90586]: https://github.com/rust-lang/rust/pull/90586/
277 [90637]: https://github.com/rust-lang/rust/pull/90637/
278 [90833]: https://github.com/rust-lang/rust/pull/90833/
279 [90846]: https://github.com/rust-lang/rust/pull/90846/
280 [91003]: https://github.com/rust-lang/rust/pull/91003/
281 [91172]: https://github.com/rust-lang/rust/pull/91172/
282 [91255]: https://github.com/rust-lang/rust/pull/91255/
283 [91284]: https://github.com/rust-lang/rust/pull/91284/
284 [91535]: https://github.com/rust-lang/rust/pull/91535/
285 [91593]: https://github.com/rust-lang/rust/pull/91593/
286 [91728]: https://github.com/rust-lang/rust/pull/91728/
287 [91878]: https://github.com/rust-lang/rust/pull/91878/
288 [91896]: https://github.com/rust-lang/rust/pull/91896/
289 [91926]: https://github.com/rust-lang/rust/pull/91926/
290 [91984]: https://github.com/rust-lang/rust/pull/91984/
291 [92020]: https://github.com/rust-lang/rust/pull/92020/
292 [92034]: https://github.com/rust-lang/rust/pull/92034/
293 [92137]: https://github.com/rust-lang/rust/pull/92137/
294 [92483]: https://github.com/rust-lang/rust/pull/92483/
295 [cargo/10088]: https://github.com/rust-lang/cargo/pull/10088/
296 [cargo/10133]: https://github.com/rust-lang/cargo/pull/10133/
297 [cargo/10145]: https://github.com/rust-lang/cargo/pull/10145/
298 [cargo/10152]: https://github.com/rust-lang/cargo/pull/10152/
299 [cargo/10165]: https://github.com/rust-lang/cargo/pull/10165/
300 [cargo/10172]: https://github.com/rust-lang/cargo/pull/10172/
301 [cargo/10201]: https://github.com/rust-lang/cargo/pull/10201/
302 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269/
303
304 [cstr_from_bytes]: https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked
305 [muninit_ptr]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.as_ptr
306 [muninit_init]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init
307 [muninit_init_ref]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
308 [unwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-UnwindSafe
309 [refunwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-RefUnwindSafe
310 [tryfrom_ref_arr]: https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html#impl-TryFrom%3C%26%27_%20mut%20%5BT%5D%3E
311 [lowercase]: https://doc.rust-lang.org/stable/std/char/struct.ToLowercase.html#impl-DoubleEndedIterator
312 [uppercase]: https://doc.rust-lang.org/stable/std/char/struct.ToUppercase.html#impl-DoubleEndedIterator
313 [try_from_char_err]: https://doc.rust-lang.org/stable/std/char/struct.TryFromCharError.html
314 [available_parallelism]: https://doc.rust-lang.org/stable/std/thread/fn.available_parallelism.html
315 [result-copied]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.copied
316 [result-cloned]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.cloned
317 [asm]: https://doc.rust-lang.org/stable/core/arch/macro.asm.html
318 [global_asm]: https://doc.rust-lang.org/stable/core/arch/macro.global_asm.html
319 [is_break]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_break
320 [is_continue]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_continue
321 [try_from_char_u8]: https://doc.rust-lang.org/stable/std/primitive.char.html#impl-TryFrom%3Cchar%3E
322 [zip]: https://doc.rust-lang.org/stable/std/iter/fn.zip.html
323 [is_power_of_two8]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU8.html#method.is_power_of_two
324 [is_power_of_two16]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU16.html#method.is_power_of_two
325 [is_power_of_two32]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU32.html#method.is_power_of_two
326 [is_power_of_two64]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU64.html#method.is_power_of_two
327 [is_power_of_two128]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU128.html#method.is_power_of_two
328 [is_power_of_two_usize]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroUsize.html#method.is_power_of_two
329 [stdarch/1266]: https://github.com/rust-lang/stdarch/pull/1266
330
331 Version 1.58.1 (2022-01-19)
332 ===========================
333
334 * Fix race condition in `std::fs::remove_dir_all` ([CVE-2022-21658])
335 * [Handle captured arguments in the `useless_format` Clippy lint][clippy/8295]
336 * [Move `non_send_fields_in_send_ty` Clippy lint to nursery][clippy/8075]
337 * [Fix wrong error message displayed when some imports are missing][91254]
338 * [Fix rustfmt not formatting generated files from stdin][92912]
339
340 [CVE-2022-21658]: https://www.cve.org/CVERecord?id=CVE-2022-21658
341 [91254]: https://github.com/rust-lang/rust/pull/91254
342 [92912]: https://github.com/rust-lang/rust/pull/92912
343 [clippy/8075]: https://github.com/rust-lang/rust-clippy/pull/8075
344 [clippy/8295]: https://github.com/rust-lang/rust-clippy/pull/8295
345
346 Version 1.58.0 (2022-01-13)
347 ==========================
348
349 Language
350 --------
351
352 - [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.
353 - [`*const T` pointers can now be dereferenced in const contexts.][89551]
354 - [The rules for when a generic struct implements `Unsize` have been relaxed.][90417]
355
356 Compiler
357 --------
358
359 - [Add LLVM CFI support to the Rust compiler][89652]
360 - [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.
361 - [Add support for LLVM coverage mapping format versions 5 and 6][91207]
362 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
363 - [Update the minimum external LLVM to 12][90175]
364 - [Add `x86_64-unknown-none` at Tier 3*][89062]
365 - [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.
366 - [Don't abort compilation after giving a lint error][87337]
367 - [Error messages point at the source of trait bound obligations in more places][89580]
368
369 \* Refer to Rust's [platform support page][platform-support-doc] for more
370    information on Rust's tiered platform support.
371
372 Libraries
373 ---------
374
375 - [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.
376 - [Paths are automatically canonicalized on Windows for operations that support it][89174]
377 - [Re-enable debug checks for `copy` and `copy_nonoverlapping`][90041]
378 - [Implement `RefUnwindSafe` for `Rc<T>`][87467]
379 - [Make RSplit<T, P>: Clone not require T: Clone][90117]
380 - [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).
381
382 Stabilized APIs
383 ---------------
384
385 - [`Metadata::is_symlink`]
386 - [`Path::is_symlink`]
387 - [`{integer}::saturating_div`]
388 - [`Option::unwrap_unchecked`]
389 - [`Result::unwrap_unchecked`]
390 - [`Result::unwrap_err_unchecked`]
391 - [`File::options`]
392
393 These APIs are now usable in const contexts:
394
395 - [`Duration::new`]
396 - [`Duration::checked_add`]
397 - [`Duration::saturating_add`]
398 - [`Duration::checked_sub`]
399 - [`Duration::saturating_sub`]
400 - [`Duration::checked_mul`]
401 - [`Duration::saturating_mul`]
402 - [`Duration::checked_div`]
403
404 Cargo
405 -----
406
407 - [Add --message-format for install command][cargo/10107]
408 - [Warn when alias shadows external subcommand][cargo/10082]
409
410 Rustdoc
411 -------
412
413 - [Show all Deref implementations recursively in rustdoc][90183]
414 - [Use computed visibility in rustdoc][88447]
415
416 Compatibility Notes
417 -------------------
418
419 - [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.
420 - Windows: [`std::process::Command` will no longer search the current directory for executables.][87704]
421 - [All proc-macro backward-compatibility lints are now deny-by-default.][88041]
422 - [proc_macro: Append .0 to unsuffixed float if it would otherwise become int token][90297]
423 - [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.
424 - [rustdoc now rejects some unexpected semicolons in doctests][91026]
425
426 Internal Changes
427 ----------------
428
429 These changes provide no direct user facing benefits, but represent significant
430 improvements to the internals and overall performance of rustc
431 and related tools.
432
433 - [Implement coherence checks for negative trait impls][90104]
434 - [Add rustc lint, warning when iterating over hashmaps][89558]
435 - [Optimize live point computation][90491]
436 - [Enable verification for 1/32nd of queries loaded from disk][90361]
437 - [Implement version of normalize_erasing_regions that allows for normalization failure][91255]
438
439 [87337]: https://github.com/rust-lang/rust/pull/87337/
440 [87467]: https://github.com/rust-lang/rust/pull/87467/
441 [87704]: https://github.com/rust-lang/rust/pull/87704/
442 [88041]: https://github.com/rust-lang/rust/pull/88041/
443 [88447]: https://github.com/rust-lang/rust/pull/88447/
444 [88601]: https://github.com/rust-lang/rust/pull/88601/
445 [89062]: https://github.com/rust-lang/rust/pull/89062/
446 [89174]: https://github.com/rust-lang/rust/pull/89174/
447 [89551]: https://github.com/rust-lang/rust/pull/89551/
448 [89558]: https://github.com/rust-lang/rust/pull/89558/
449 [89580]: https://github.com/rust-lang/rust/pull/89580/
450 [89652]: https://github.com/rust-lang/rust/pull/89652/
451 [90041]: https://github.com/rust-lang/rust/pull/90041/
452 [90058]: https://github.com/rust-lang/rust/pull/90058/
453 [90104]: https://github.com/rust-lang/rust/pull/90104/
454 [90117]: https://github.com/rust-lang/rust/pull/90117/
455 [90175]: https://github.com/rust-lang/rust/pull/90175/
456 [90183]: https://github.com/rust-lang/rust/pull/90183/
457 [90297]: https://github.com/rust-lang/rust/pull/90297/
458 [90329]: https://github.com/rust-lang/rust/pull/90329/
459 [90361]: https://github.com/rust-lang/rust/pull/90361/
460 [90417]: https://github.com/rust-lang/rust/pull/90417/
461 [90473]: https://github.com/rust-lang/rust/pull/90473/
462 [90491]: https://github.com/rust-lang/rust/pull/90491/
463 [90733]: https://github.com/rust-lang/rust/pull/90733/
464 [90833]: https://github.com/rust-lang/rust/pull/90833/
465 [90846]: https://github.com/rust-lang/rust/pull/90846/
466 [91026]: https://github.com/rust-lang/rust/pull/91026/
467 [91207]: https://github.com/rust-lang/rust/pull/91207/
468 [91255]: https://github.com/rust-lang/rust/pull/91255/
469 [cargo/10082]: https://github.com/rust-lang/cargo/pull/10082/
470 [cargo/10107]: https://github.com/rust-lang/cargo/pull/10107/
471 [`Metadata::is_symlink`]: https://doc.rust-lang.org/stable/std/fs/struct.Metadata.html#method.is_symlink
472 [`Path::is_symlink`]: https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.is_symlink
473 [`{integer}::saturating_div`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.saturating_div
474 [`Option::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unwrap_unchecked
475 [`Result::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_unchecked
476 [`Result::unwrap_err_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_err_unchecked
477 [`File::options`]: https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.options
478 [`Duration::new`]: https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.new
479
480 Version 1.57.0 (2021-12-02)
481 ==========================
482
483 Language
484 --------
485
486 - [Macro attributes may follow `#[derive]` and will see the original (pre-`cfg`) input.][87220]
487 - [Accept curly-brace macros in expressions, like `m!{ .. }.method()` and `m!{ .. }?`.][88690]
488 - [Allow panicking in constant evaluation.][89508]
489 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
490
491 Compiler
492 --------
493
494 - [Create more accurate debuginfo for vtables.][89597]
495 - [Add `armv6k-nintendo-3ds` at Tier 3\*.][88529]
496 - [Add `armv7-unknown-linux-uclibceabihf` at Tier 3\*.][88952]
497 - [Add `m68k-unknown-linux-gnu` at Tier 3\*.][88321]
498 - [Add SOLID targets at Tier 3\*:][86191] `aarch64-kmc-solid_asp3`, `armv7a-kmc-solid_asp3-eabi`, `armv7a-kmc-solid_asp3-eabihf`
499
500 \* Refer to Rust's [platform support page][platform-support-doc] for more
501    information on Rust's tiered platform support.
502
503 Libraries
504 ---------
505
506 - [Avoid allocations and copying in `Vec::leak`][89337]
507 - [Add `#[repr(i8)]` to `Ordering`][89507]
508 - [Optimize `File::read_to_end` and `read_to_string`][89582]
509 - [Update to Unicode 14.0][89614]
510 - [Many more functions are marked `#[must_use]`][89692], producing a warning
511   when ignoring their return value. This helps catch mistakes such as expecting
512   a function to mutate a value in place rather than return a new value.
513
514 Stabilised APIs
515 ---------------
516
517 - [`[T; N]::as_mut_slice`][`array::as_mut_slice`]
518 - [`[T; N]::as_slice`][`array::as_slice`]
519 - [`collections::TryReserveError`]
520 - [`HashMap::try_reserve`]
521 - [`HashSet::try_reserve`]
522 - [`String::try_reserve`]
523 - [`String::try_reserve_exact`]
524 - [`Vec::try_reserve`]
525 - [`Vec::try_reserve_exact`]
526 - [`VecDeque::try_reserve`]
527 - [`VecDeque::try_reserve_exact`]
528 - [`Iterator::map_while`]
529 - [`iter::MapWhile`]
530 - [`proc_macro::is_available`]
531 - [`Command::get_program`]
532 - [`Command::get_args`]
533 - [`Command::get_envs`]
534 - [`Command::get_current_dir`]
535 - [`CommandArgs`]
536 - [`CommandEnvs`]
537
538 These APIs are now usable in const contexts:
539
540 - [`hint::unreachable_unchecked`]
541
542 Cargo
543 -----
544
545 - [Stabilize custom profiles][cargo/9943]
546
547 Compatibility notes
548 -------------------
549
550 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
551   This will break some builds that set `#![deny(dead_code)]`.
552
553 Internal changes
554 ----------------
555 These changes provide no direct user facing benefits, but represent significant
556 improvements to the internals and overall performance of rustc
557 and related tools.
558
559 - [Added an experimental backend for codegen with `libgccjit`.][87260]
560
561 [85200]: https://github.com/rust-lang/rust/pull/85200/
562 [86191]: https://github.com/rust-lang/rust/pull/86191/
563 [87220]: https://github.com/rust-lang/rust/pull/87220/
564 [87260]: https://github.com/rust-lang/rust/pull/87260/
565 [88321]: https://github.com/rust-lang/rust/pull/88321/
566 [88529]: https://github.com/rust-lang/rust/pull/88529/
567 [88690]: https://github.com/rust-lang/rust/pull/88690/
568 [88952]: https://github.com/rust-lang/rust/pull/88952/
569 [89337]: https://github.com/rust-lang/rust/pull/89337/
570 [89507]: https://github.com/rust-lang/rust/pull/89507/
571 [89508]: https://github.com/rust-lang/rust/pull/89508/
572 [89582]: https://github.com/rust-lang/rust/pull/89582/
573 [89597]: https://github.com/rust-lang/rust/pull/89597/
574 [89614]: https://github.com/rust-lang/rust/pull/89614/
575 [89692]: https://github.com/rust-lang/rust/issues/89692/
576 [cargo/9943]: https://github.com/rust-lang/cargo/pull/9943/
577 [`array::as_mut_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_mut_slice
578 [`array::as_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_slice
579 [`collections::TryReserveError`]: https://doc.rust-lang.org/std/collections/struct.TryReserveError.html
580 [`HashMap::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_map/struct.HashMap.html#method.try_reserve
581 [`HashSet::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_set/struct.HashSet.html#method.try_reserve
582 [`String::try_reserve`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve
583 [`String::try_reserve_exact`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve_exact
584 [`Vec::try_reserve`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve
585 [`Vec::try_reserve_exact`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve_exact
586 [`VecDeque::try_reserve`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve
587 [`VecDeque::try_reserve_exact`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve_exact
588 [`Iterator::map_while`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.map_while
589 [`iter::MapWhile`]: https://doc.rust-lang.org/std/iter/struct.MapWhile.html
590 [`proc_macro::is_available`]: https://doc.rust-lang.org/proc_macro/fn.is_available.html
591 [`Command::get_program`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program
592 [`Command::get_args`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_args
593 [`Command::get_envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_envs
594 [`Command::get_current_dir`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_current_dir
595 [`CommandArgs`]: https://doc.rust-lang.org/std/process/struct.CommandArgs.html
596 [`CommandEnvs`]: https://doc.rust-lang.org/std/process/struct.CommandEnvs.html
597
598 Version 1.56.1 (2021-11-01)
599 ===========================
600
601 - New lints to detect the presence of bidirectional-override Unicode
602   codepoints in the compiled source code ([CVE-2021-42574])
603
604 [CVE-2021-42574]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42574
605
606 Version 1.56.0 (2021-10-21)
607 ========================
608
609 Language
610 --------
611
612 - [The 2021 Edition is now stable.][rust#88100]
613   See [the edition guide][rust-2021-edition-guide] for more details.
614 - [The pattern in `binding @ pattern` can now also introduce new bindings.][rust#85305]
615 - [Union field access is permitted in `const fn`.][rust#85769]
616
617 [rust-2021-edition-guide]: https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html
618
619 Compiler
620 --------
621
622 - [Upgrade to LLVM 13.][rust#87570]
623 - [Support memory, address, and thread sanitizers on aarch64-unknown-freebsd.][rust#88023]
624 - [Allow specifying a deployment target version for all iOS targets][rust#87699]
625 - [Warnings can be forced on with `--force-warn`.][rust#87472]
626   This feature is primarily intended for usage by `cargo fix`, rather than end users.
627 - [Promote `aarch64-apple-ios-sim` to Tier 2\*.][rust#87760]
628 - [Add `powerpc-unknown-freebsd` at Tier 3\*.][rust#87370]
629 - [Add `riscv32imc-esp-espidf` at Tier 3\*.][rust#87666]
630
631 \* Refer to Rust's [platform support page][platform-support-doc] for more
632 information on Rust's tiered platform support.
633
634 Libraries
635 ---------
636
637 - [Allow writing of incomplete UTF-8 sequences via stdout/stderr on Windows.][rust#83342]
638   The Windows console still requires valid Unicode, but this change allows
639   splitting a UTF-8 character across multiple write calls. This allows, for
640   instance, programs that just read and write data buffers (e.g. copying a file
641   to stdout) without regard for Unicode or character boundaries.
642 - [Prefer `AtomicU{64,128}` over Mutex for Instant backsliding protection.][rust#83093]
643   For this use case, atomics scale much better under contention.
644 - [Implement `Extend<(A, B)>` for `(Extend<A>, Extend<B>)`][rust#85835]
645 - [impl Default, Copy, Clone for std::io::Sink and std::io::Empty][rust#86744]
646 - [`impl From<[(K, V); N]>` for all collections.][rust#84111]
647 - [Remove `P: Unpin` bound on impl Future for Pin.][rust#81363]
648 - [Treat invalid environment variable names as non-existent.][rust#86183]
649   Previously, the environment functions would panic if given a variable name
650   with an internal null character or equal sign (`=`). Now, these functions will
651   just treat such names as non-existent variables, since the OS cannot represent
652   the existence of a variable with such a name.
653
654 Stabilised APIs
655 ---------------
656
657 - [`std::os::unix::fs::chroot`]
658 - [`UnsafeCell::raw_get`]
659 - [`BufWriter::into_parts`]
660 - [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]
661   These APIs were previously stable in `std`, but are now also available in `core`.
662 - [`Vec::shrink_to`]
663 - [`String::shrink_to`]
664 - [`OsString::shrink_to`]
665 - [`PathBuf::shrink_to`]
666 - [`BinaryHeap::shrink_to`]
667 - [`VecDeque::shrink_to`]
668 - [`HashMap::shrink_to`]
669 - [`HashSet::shrink_to`]
670
671 These APIs are now usable in const contexts:
672
673 - [`std::mem::transmute`]
674 - [`[T]::first`][`slice::first`]
675 - [`[T]::split_first`][`slice::split_first`]
676 - [`[T]::last`][`slice::last`]
677 - [`[T]::split_last`][`slice::split_last`]
678
679 Cargo
680 -----
681
682 - [Cargo supports specifying a minimum supported Rust version in Cargo.toml.][`rust-version`]
683   This has no effect at present on dependency version selection.
684   We encourage crates to specify their minimum supported Rust version, and we encourage CI systems
685   that support Rust code to include a crate's specified minimum version in the test matrix for that
686   crate by default.
687
688 Compatibility notes
689 -------------------
690
691 - [Update to new argument parsing rules on Windows.][rust#87580]
692   This adjusts Rust's standard library to match the behavior of the standard
693   libraries for C/C++. The rules have changed slightly over time, and this PR
694   brings us to the latest set of rules (changed in 2008).
695 - [Disallow the aapcs calling convention on aarch64][rust#88399]
696   This was already not supported by LLVM; this change surfaces this lack of
697   support with a better error message.
698 - [Make `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` warn by default][rust#87385]
699 - [Warn when an escaped newline skips multiple lines.][rust#87671]
700 - [Calls to `libc::getpid` / `std::process::id` from `Command::pre_exec`
701    may return different values on glibc <= 2.24.][rust#81825]
702    Rust now invokes the `clone3` system call directly, when available, to use new functionality
703    available via that system call. Older versions of glibc cache the result of `getpid`, and only
704    update that cache when calling glibc's clone/fork functions, so a direct system call bypasses
705    that cache update. glibc 2.25 and newer no longer cache `getpid` for exactly this reason.
706
707 Internal changes
708 ----------------
709 These changes provide no direct user facing benefits, but represent significant
710 improvements to the internals and overall performance of rustc
711 and related tools.
712
713 - [LLVM is compiled with PGO in published x86_64-unknown-linux-gnu artifacts.][rust#88069]
714   This improves the performance of most Rust builds.
715 - [Unify representation of macros in internal data structures.][rust#88019]
716   This change fixes a host of bugs with the handling of macros by the compiler,
717   as well as rustdoc.
718
719 [`std::os::unix::fs::chroot`]: https://doc.rust-lang.org/stable/std/os/unix/fs/fn.chroot.html
720 [`UnsafeCell::raw_get`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.raw_get
721 [`BufWriter::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.BufWriter.html#method.into_parts
722 [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]: https://github.com/rust-lang/rust/pull/84662
723 [`Vec::shrink_to`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.shrink_to
724 [`String::shrink_to`]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.shrink_to
725 [`OsString::shrink_to`]: https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.shrink_to
726 [`PathBuf::shrink_to`]: https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.shrink_to
727 [`BinaryHeap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.BinaryHeap.html#method.shrink_to
728 [`VecDeque::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.shrink_to
729 [`HashMap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_map/struct.HashMap.html#method.shrink_to
730 [`HashSet::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_set/struct.HashSet.html#method.shrink_to
731 [`std::mem::transmute`]: https://doc.rust-lang.org/stable/std/mem/fn.transmute.html
732 [`slice::first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.first
733 [`slice::split_first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_first
734 [`slice::last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.last
735 [`slice::split_last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_last
736 [`rust-version`]: https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field
737 [rust#87671]: https://github.com/rust-lang/rust/pull/87671
738 [rust#86183]: https://github.com/rust-lang/rust/pull/86183
739 [rust#87385]: https://github.com/rust-lang/rust/pull/87385
740 [rust#88100]: https://github.com/rust-lang/rust/pull/88100
741 [rust#85305]: https://github.com/rust-lang/rust/pull/85305
742 [rust#88069]: https://github.com/rust-lang/rust/pull/88069
743 [rust#87472]: https://github.com/rust-lang/rust/pull/87472
744 [rust#87699]: https://github.com/rust-lang/rust/pull/87699
745 [rust#87570]: https://github.com/rust-lang/rust/pull/87570
746 [rust#88023]: https://github.com/rust-lang/rust/pull/88023
747 [rust#87760]: https://github.com/rust-lang/rust/pull/87760
748 [rust#87370]: https://github.com/rust-lang/rust/pull/87370
749 [rust#87580]: https://github.com/rust-lang/rust/pull/87580
750 [rust#83342]: https://github.com/rust-lang/rust/pull/83342
751 [rust#83093]: https://github.com/rust-lang/rust/pull/83093
752 [rust#85835]: https://github.com/rust-lang/rust/pull/85835
753 [rust#86744]: https://github.com/rust-lang/rust/pull/86744
754 [rust#81363]: https://github.com/rust-lang/rust/pull/81363
755 [rust#84111]: https://github.com/rust-lang/rust/pull/84111
756 [rust#85769]: https://github.com/rust-lang/rust/pull/85769#issuecomment-854363720
757 [rust#88399]: https://github.com/rust-lang/rust/pull/88399
758 [rust#81825]: https://github.com/rust-lang/rust/pull/81825#issuecomment-808406918
759 [rust#88019]: https://github.com/rust-lang/rust/pull/88019
760 [rust#87666]: https://github.com/rust-lang/rust/pull/87666
761
762 Version 1.55.0 (2021-09-09)
763 ============================
764
765 Language
766 --------
767 - [You can now write open "from" range patterns (`X..`), which will start at `X` and
768   will end at the maximum value of the integer.][83918]
769 - [You can now explicitly import the prelude of different editions
770   through `std::prelude` (e.g. `use std::prelude::rust_2021::*;`).][86294]
771
772 Compiler
773 --------
774 - [Added tier 3\* support for `powerpc64le-unknown-freebsd`.][83572]
775
776 \* Refer to Rust's [platform support page][platform-support-doc] for more
777    information on Rust's tiered platform support.
778
779 Libraries
780 ---------
781
782 - [Updated std's float parsing to use the Eisel-Lemire algorithm.][86761]
783   These improvements should in general provide faster string parsing of floats,
784   no longer reject certain valid floating point values, and reduce
785   the produced code size for non-stripped artifacts.
786 - [`string::Drain` now implements `AsRef<str>` and `AsRef<[u8]>`.][86858]
787
788 Stabilised APIs
789 ---------------
790
791 - [`Bound::cloned`]
792 - [`Drain::as_str`]
793 - [`IntoInnerError::into_error`]
794 - [`IntoInnerError::into_parts`]
795 - [`MaybeUninit::assume_init_mut`]
796 - [`MaybeUninit::assume_init_ref`]
797 - [`MaybeUninit::write`]
798 - [`array::map`]
799 - [`ops::ControlFlow`]
800 - [`x86::_bittest`]
801 - [`x86::_bittestandcomplement`]
802 - [`x86::_bittestandreset`]
803 - [`x86::_bittestandset`]
804 - [`x86_64::_bittest64`]
805 - [`x86_64::_bittestandcomplement64`]
806 - [`x86_64::_bittestandreset64`]
807 - [`x86_64::_bittestandset64`]
808
809 The following previously stable functions are now `const`.
810
811 - [`str::from_utf8_unchecked`]
812
813
814 Cargo
815 -----
816 - [Cargo will now deduplicate compiler diagnostics to the terminal when invoking
817   rustc in parallel such as when using `cargo test`.][cargo/9675]
818 - [The package definition in `cargo metadata` now includes the `"default_run"`
819   field from the manifest.][cargo/9550]
820 - [Added `cargo d` as an alias for `cargo doc`.][cargo/9680]
821 - [Added `{lib}` as formatting option for `cargo tree` to print the `"lib_name"`
822   of packages.][cargo/9663]
823
824 Rustdoc
825 -------
826 - [Added "Go to item on exact match" search option.][85876]
827 - [The "Implementors" section on traits no longer shows redundant
828   method definitions.][85970]
829 - [Trait implementations are toggled open by default.][86260] This should make the
830   implementations more searchable by tools like `CTRL+F` in your browser.
831 - [Intra-doc links should now correctly resolve associated items (e.g. methods)
832   through type aliases.][86334]
833 - [Traits which are marked with `#[doc(hidden)]` will no longer appear in the
834   "Trait Implementations" section.][86513]
835
836
837 Compatibility Notes
838 -------------------
839 - [std functions that return an `io::Error` will no longer use the
840   `ErrorKind::Other` variant.][85746] This is to better reflect that these
841   kinds of errors could be categorised [into newer more specific `ErrorKind`
842   variants][79965], and that they do not represent a user error.
843 - [Using environment variable names with `process::Command` on Windows now
844   behaves as expected.][85270] Previously using envionment variables with
845   `Command` would cause them to be ASCII-uppercased.
846 - [Rustdoc will now warn on using rustdoc lints that aren't prefixed
847   with `rustdoc::`][86849]
848 - `RUSTFLAGS` is no longer set for build scripts. Build scripts
849   should use `CARGO_ENCODED_RUSTFLAGS` instead. See the
850   [documentation](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts)
851   for more details.
852
853 [86849]: https://github.com/rust-lang/rust/pull/86849
854 [86513]: https://github.com/rust-lang/rust/pull/86513
855 [86334]: https://github.com/rust-lang/rust/pull/86334
856 [86260]: https://github.com/rust-lang/rust/pull/86260
857 [85970]: https://github.com/rust-lang/rust/pull/85970
858 [85876]: https://github.com/rust-lang/rust/pull/85876
859 [83572]: https://github.com/rust-lang/rust/pull/83572
860 [86294]: https://github.com/rust-lang/rust/pull/86294
861 [86858]: https://github.com/rust-lang/rust/pull/86858
862 [86761]: https://github.com/rust-lang/rust/pull/86761
863 [85746]: https://github.com/rust-lang/rust/pull/85746
864 [85270]: https://github.com/rust-lang/rust/pull/85270
865 [83918]: https://github.com/rust-lang/rust/pull/83918
866 [79965]: https://github.com/rust-lang/rust/pull/79965
867 [cargo/9663]: https://github.com/rust-lang/cargo/pull/9663
868 [cargo/9675]: https://github.com/rust-lang/cargo/pull/9675
869 [cargo/9550]: https://github.com/rust-lang/cargo/pull/9550
870 [cargo/9680]: https://github.com/rust-lang/cargo/pull/9680
871 [`array::map`]: https://doc.rust-lang.org/stable/std/primitive.array.html#method.map
872 [`Bound::cloned`]: https://doc.rust-lang.org/stable/std/ops/enum.Bound.html#method.cloned
873 [`Drain::as_str`]: https://doc.rust-lang.org/stable/std/string/struct.Drain.html#method.as_str
874 [`IntoInnerError::into_error`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_error
875 [`IntoInnerError::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_parts
876 [`MaybeUninit::assume_init_mut`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_mut
877 [`MaybeUninit::assume_init_ref`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
878 [`MaybeUninit::write`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.write
879 [`ops::ControlFlow`]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html
880 [`str::from_utf8_unchecked`]: https://doc.rust-lang.org/stable/std/str/fn.from_utf8_unchecked.html
881 [`x86::_bittest`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittest.html
882 [`x86::_bittestandcomplement`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandcomplement.html
883 [`x86::_bittestandreset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandreset.html
884 [`x86::_bittestandset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandset.html
885 [`x86_64::_bittest64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittest64.html
886 [`x86_64::_bittestandcomplement64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandcomplement64.html
887 [`x86_64::_bittestandreset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandreset64.html
888 [`x86_64::_bittestandset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandset64.html
889
890
891 Version 1.54.0 (2021-07-29)
892 ============================
893
894 Language
895 -----------------------
896
897 - [You can now use macros for values in some built-in attributes.][83366]
898   This primarily allows you to call macros within the `#[doc]` attribute. For
899   example, to include external documentation in your crate, you can now write
900   the following:
901   ```rust
902   #![doc = include_str!("README.md")]
903   ```
904
905 - [You can now cast between unsized slice types (and types which contain
906   unsized slices) in `const fn`.][85078]
907 - [You can now use multiple generic lifetimes with `impl Trait` where the
908    lifetimes don't explicitly outlive another.][84701] In code this means
909    that you can now have `impl Trait<'a, 'b>` where as before you could
910    only have `impl Trait<'a, 'b> where 'b: 'a`.
911
912 Compiler
913 -----------------------
914
915 - [Rustc will now search for custom JSON targets in
916   `/lib/rustlib/<target-triple>/target.json` where `/` is the "sysroot"
917   directory.][83800] You can find your sysroot directory by running
918   `rustc --print sysroot`.
919 - [Added `wasm` as a `target_family` for WebAssembly platforms.][84072]
920 - [You can now use `#[target_feature]` on safe functions when targeting
921   WebAssembly platforms.][84988]
922 - [Improved debugger output for enums on Windows MSVC platforms.][85292]
923 - [Added tier 3\* support for `bpfel-unknown-none`
924    and `bpfeb-unknown-none`.][79608]
925 - [`-Zmutable-noalias=yes`][82834] is enabled by default when using LLVM 12 or above.
926
927 \* Refer to Rust's [platform support page][platform-support-doc] for more
928    information on Rust's tiered platform support.
929
930 Libraries
931 -----------------------
932
933 - [`panic::panic_any` will now `#[track_caller]`.][85745]
934 - [Added `OutOfMemory` as a variant of `io::ErrorKind`.][84744]
935 - [ `proc_macro::Literal` now implements `FromStr`.][84717]
936 - [The implementations of vendor intrinsics in core::arch have been
937    significantly refactored.][83278] The main user-visible changes are
938    a 50% reduction in the size of libcore.rlib and stricter validation
939    of constant operands passed to intrinsics. The latter is technically
940    a breaking change, but allows Rust to more closely match the C vendor
941    intrinsics API.
942
943 Stabilized APIs
944 ---------------
945
946 - [`BTreeMap::into_keys`]
947 - [`BTreeMap::into_values`]
948 - [`HashMap::into_keys`]
949 - [`HashMap::into_values`]
950 - [`arch::wasm32`]
951 - [`VecDeque::binary_search`]
952 - [`VecDeque::binary_search_by`]
953 - [`VecDeque::binary_search_by_key`]
954 - [`VecDeque::partition_point`]
955
956 Cargo
957 -----
958
959 - [Added the `--prune <spec>` option to `cargo-tree` to remove a package from
960   the dependency graph.][cargo/9520]
961 - [Added the `--depth` option to `cargo-tree` to print only to a certain depth
962   in the tree ][cargo/9499]
963 - [Added the `no-proc-macro` value to `cargo-tree --edges` to hide procedural
964   macro dependencies.][cargo/9488]
965 - [A new environment variable named `CARGO_TARGET_TMPDIR` is available.][cargo/9375]
966   This variable points to a directory that integration tests and benches
967   can use as a "scratchpad" for testing filesystem operations.
968
969 Compatibility Notes
970 -------------------
971 - [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
972 - [Previously unsound code is no longer permitted where different constructors in branches
973   could require different lifetimes.][85574]
974 - As previously mentioned the [`std::arch` instrinsics now uses stricter const checking][83278]
975   than before and may reject some previously accepted code.
976 - [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
977    when compiled with `codegen-units = 1`.][86063]
978
979 [85574]: https://github.com/rust-lang/rust/issues/85574
980 [86831]: https://github.com/rust-lang/rust/issues/86831
981 [86063]: https://github.com/rust-lang/rust/issues/86063
982 [79608]: https://github.com/rust-lang/rust/pull/79608
983 [84988]: https://github.com/rust-lang/rust/pull/84988
984 [84701]: https://github.com/rust-lang/rust/pull/84701
985 [84072]: https://github.com/rust-lang/rust/pull/84072
986 [85745]: https://github.com/rust-lang/rust/pull/85745
987 [84744]: https://github.com/rust-lang/rust/pull/84744
988 [85078]: https://github.com/rust-lang/rust/pull/85078
989 [84717]: https://github.com/rust-lang/rust/pull/84717
990 [83800]: https://github.com/rust-lang/rust/pull/83800
991 [83366]: https://github.com/rust-lang/rust/pull/83366
992 [83278]: https://github.com/rust-lang/rust/pull/83278
993 [85292]: https://github.com/rust-lang/rust/pull/85292
994 [82834]: https://github.com/rust-lang/rust/pull/82834
995 [cargo/9520]: https://github.com/rust-lang/cargo/pull/9520
996 [cargo/9499]: https://github.com/rust-lang/cargo/pull/9499
997 [cargo/9488]: https://github.com/rust-lang/cargo/pull/9488
998 [cargo/9375]: https://github.com/rust-lang/cargo/pull/9375
999 [`BTreeMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_keys
1000 [`BTreeMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_values
1001 [`HashMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_keys
1002 [`HashMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_values
1003 [`arch::wasm32`]: https://doc.rust-lang.org/core/arch/wasm32/index.html
1004 [`VecDeque::binary_search`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search
1005 [`VecDeque::binary_search_by`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by
1006
1007 [`VecDeque::binary_search_by_key`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by_key
1008
1009 [`VecDeque::partition_point`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.partition_point
1010
1011 Version 1.53.0 (2021-06-17)
1012 ============================
1013
1014 Language
1015 -----------------------
1016 - [You can now use unicode for identifiers.][83799] This allows multilingual
1017   identifiers but still doesn't allow glyphs that are not considered characters
1018   such as `◆` or `🦀`. More specifically you can now use any identifier that
1019   matches the UAX #31 "Unicode Identifier and Pattern Syntax" standard. This
1020   is the same standard as languages like Python, however Rust uses NFC
1021   normalization which may be different from other languages.
1022 - [You can now specify "or patterns" inside pattern matches.][79278]
1023   Previously you could only use `|` (OR) on complete patterns. E.g.
1024   ```rust
1025   let x = Some(2u8);
1026   // Before
1027   matches!(x, Some(1) | Some(2));
1028   // Now
1029   matches!(x, Some(1 | 2));
1030   ```
1031 - [Added the `:pat_param` `macro_rules!` matcher.][83386] This matcher
1032   has the same semantics as the `:pat` matcher. This is to allow `:pat`
1033   to change semantics to being a pattern fragment in a future edition.
1034
1035 Compiler
1036 -----------------------
1037 - [Updated the minimum external LLVM version to LLVM 10.][83387]
1038 - [Added Tier 3\* support for the `wasm64-unknown-unknown` target.][80525]
1039 - [Improved debuginfo for closures and async functions on Windows MSVC.][83941]
1040
1041 \* Refer to Rust's [platform support page][platform-support-doc] for more
1042 information on Rust's tiered platform support.
1043
1044 Libraries
1045 -----------------------
1046 - [Abort messages will now forward to `android_set_abort_message` on
1047   Android platforms when available.][81469]
1048 - [`slice::IterMut<'_, T>` now implements `AsRef<[T]>`][82771]
1049 - [Arrays of any length now implement `IntoIterator`.][84147]
1050   Currently calling `.into_iter()` as a method on an array will
1051   return `impl Iterator<Item=&T>`, but this may change in a
1052   future edition to change `Item` to `T`. Calling `IntoIterator::into_iter`
1053   directly on arrays will provide `impl Iterator<Item=T>` as expected.
1054 - [`leading_zeros`, and `trailing_zeros` are now available on all
1055   `NonZero` integer types.][84082]
1056 - [`{f32, f64}::from_str` now parse and print special values
1057   (`NaN`, `-0`) according to IEEE 754.][78618]
1058 - [You can now index into slices using `(Bound<usize>, Bound<usize>)`.][77704]
1059 - [Add the `BITS` associated constant to all numeric types.][82565]
1060
1061 Stabilised APIs
1062 ---------------
1063 - [`AtomicBool::fetch_update`]
1064 - [`AtomicPtr::fetch_update`]
1065 - [`BTreeMap::retain`]
1066 - [`BTreeSet::retain`]
1067 - [`BufReader::seek_relative`]
1068 - [`DebugStruct::non_exhaustive`]
1069 - [`Duration::MAX`]
1070 - [`Duration::ZERO`]
1071 - [`Duration::is_zero`]
1072 - [`Duration::saturating_add`]
1073 - [`Duration::saturating_mul`]
1074 - [`Duration::saturating_sub`]
1075 - [`ErrorKind::Unsupported`]
1076 - [`Option::insert`]
1077 - [`Ordering::is_eq`]
1078 - [`Ordering::is_ge`]
1079 - [`Ordering::is_gt`]
1080 - [`Ordering::is_le`]
1081 - [`Ordering::is_lt`]
1082 - [`Ordering::is_ne`]
1083 - [`OsStr::is_ascii`]
1084 - [`OsStr::make_ascii_lowercase`]
1085 - [`OsStr::make_ascii_uppercase`]
1086 - [`OsStr::to_ascii_lowercase`]
1087 - [`OsStr::to_ascii_uppercase`]
1088 - [`Peekable::peek_mut`]
1089 - [`Rc::decrement_strong_count`]
1090 - [`Rc::increment_strong_count`]
1091 - [`Vec::extend_from_within`]
1092 - [`array::from_mut`]
1093 - [`array::from_ref`]
1094 - [`cmp::max_by_key`]
1095 - [`cmp::max_by`]
1096 - [`cmp::min_by_key`]
1097 - [`cmp::min_by`]
1098 - [`f32::is_subnormal`]
1099 - [`f64::is_subnormal`]
1100
1101 Cargo
1102 -----------------------
1103 - [Cargo now supports git repositories where the default `HEAD` branch is not
1104   "master".][cargo/9392] This also includes a switch to the version 3 `Cargo.lock` format
1105   which can handle default branches correctly.
1106 - [macOS targets now default to `unpacked` split-debuginfo.][cargo/9298]
1107 - [The `authors` field is no longer included in `Cargo.toml` for new
1108   projects.][cargo/9282]
1109
1110 Rustdoc
1111 -----------------------
1112 - [Added the `rustdoc::bare_urls` lint that warns when you have URLs
1113   without hyperlinks.][81764]
1114
1115 Compatibility Notes
1116 -------------------
1117 - [Implement token-based handling of attributes during expansion][82608]
1118 - [`Ipv4::from_str` will now reject octal format IP addresses in addition
1119   to rejecting hexadecimal IP addresses.][83652] The octal format can lead
1120   to confusion and potential security vulnerabilities and [is no
1121   longer recommended][ietf6943].
1122 - [The added `BITS` constant may conflict with external definitions.][85667]
1123   In particular, this was known to be a problem in the `lexical-core` crate,
1124   but they have published fixes for semantic versions 0.4 through 0.7. To
1125   update this dependency alone, use `cargo update -p lexical-core`.
1126 - Incremental compilation remains off by default, unless one uses the `RUSTC_FORCE_INCREMENTAL=1` environment variable added in 1.52.1.
1127
1128 Internal Only
1129 -------------
1130 These changes provide no direct user facing benefits, but represent significant
1131 improvements to the internals and overall performance of rustc and
1132 related tools.
1133
1134 - [Rework the `std::sys::windows::alloc` implementation.][83065]
1135 - [rustdoc: Don't enter an infer_ctxt in get_blanket_impls for impls that aren't blanket impls.][82864]
1136 - [rustdoc: Only look at blanket impls in `get_blanket_impls`][83681]
1137 - [Rework rustdoc const type][82873]
1138
1139 [85667]: https://github.com/rust-lang/rust/pull/85667
1140 [83386]: https://github.com/rust-lang/rust/pull/83386
1141 [82771]: https://github.com/rust-lang/rust/pull/82771
1142 [84147]: https://github.com/rust-lang/rust/pull/84147
1143 [84082]: https://github.com/rust-lang/rust/pull/84082
1144 [83799]: https://github.com/rust-lang/rust/pull/83799
1145 [83681]: https://github.com/rust-lang/rust/pull/83681
1146 [83652]: https://github.com/rust-lang/rust/pull/83652
1147 [83387]: https://github.com/rust-lang/rust/pull/83387
1148 [82873]: https://github.com/rust-lang/rust/pull/82873
1149 [82864]: https://github.com/rust-lang/rust/pull/82864
1150 [82608]: https://github.com/rust-lang/rust/pull/82608
1151 [82565]: https://github.com/rust-lang/rust/pull/82565
1152 [80525]: https://github.com/rust-lang/rust/pull/80525
1153 [79278]: https://github.com/rust-lang/rust/pull/79278
1154 [78618]: https://github.com/rust-lang/rust/pull/78618
1155 [77704]: https://github.com/rust-lang/rust/pull/77704
1156 [83941]: https://github.com/rust-lang/rust/pull/83941
1157 [83065]: https://github.com/rust-lang/rust/pull/83065
1158 [81764]: https://github.com/rust-lang/rust/pull/81764
1159 [81469]: https://github.com/rust-lang/rust/pull/81469
1160 [cargo/9298]: https://github.com/rust-lang/cargo/pull/9298
1161 [cargo/9282]: https://github.com/rust-lang/cargo/pull/9282
1162 [cargo/9392]: https://github.com/rust-lang/cargo/pull/9392
1163 [`AtomicBool::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicBool.html#method.fetch_update
1164 [`AtomicPtr::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html#method.fetch_update
1165 [`BTreeMap::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.retain
1166 [`BTreeSet::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.retain
1167 [`BufReader::seek_relative`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.seek_relative
1168 [`DebugStruct::non_exhaustive`]: https://doc.rust-lang.org/std/fmt/struct.DebugStruct.html#method.finish_non_exhaustive
1169 [`Duration::MAX`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.MAX
1170 [`Duration::ZERO`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.ZERO
1171 [`Duration::is_zero`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.is_zero
1172 [`Duration::saturating_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_add
1173 [`Duration::saturating_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_mul
1174 [`Duration::saturating_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_sub
1175 [`ErrorKind::Unsupported`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.Unsupported
1176 [`Option::insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.insert
1177 [`Ordering::is_eq`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_eq
1178 [`Ordering::is_ge`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ge
1179 [`Ordering::is_gt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_gt
1180 [`Ordering::is_le`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_le
1181 [`Ordering::is_lt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_lt
1182 [`Ordering::is_ne`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ne
1183 [`OsStr::is_ascii`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.is_ascii
1184 [`OsStr::make_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_lowercase
1185 [`OsStr::make_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_uppercase
1186 [`OsStr::to_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_lowercase
1187 [`OsStr::to_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_uppercase
1188 [`Peekable::peek_mut`]: https://doc.rust-lang.org/std/iter/struct.Peekable.html#method.peek_mut
1189 [`Rc::decrement_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1190 [`Rc::increment_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1191 [`Vec::extend_from_within`]: https://doc.rust-lang.org/beta/std/vec/struct.Vec.html#method.extend_from_within
1192 [`array::from_mut`]: https://doc.rust-lang.org/beta/std/array/fn.from_mut.html
1193 [`array::from_ref`]: https://doc.rust-lang.org/beta/std/array/fn.from_ref.html
1194 [`cmp::max_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by_key.html
1195 [`cmp::max_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by.html
1196 [`cmp::min_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by_key.html
1197 [`cmp::min_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by.html
1198 [`f32::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1199 [`f64::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1200 [ietf6943]: https://datatracker.ietf.org/doc/html/rfc6943#section-3.1.1
1201
1202
1203 Version 1.52.1 (2021-05-10)
1204 ============================
1205
1206 This release disables incremental compilation, unless the user has explicitly
1207 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
1208
1209 This is due to the widespread, and frequently occurring, breakage encountered by
1210 Rust users due to newly enabled incremental verification in 1.52.0. Notably,
1211 Rust users **should** upgrade to 1.52.0 or 1.52.1: the bugs that are detected by
1212 newly added incremental verification are still present in past stable versions,
1213 and are not yet fixed on any channel. These bugs can lead to miscompilation of
1214 Rust binaries.
1215
1216 These problems only affect incremental builds, so release builds with Cargo
1217 should not be affected unless the user has explicitly opted into incremental.
1218 Debug and check builds are affected.
1219
1220 See [84970] for more details.
1221
1222 [84970]: https://github.com/rust-lang/rust/issues/84970
1223
1224 Version 1.52.0 (2021-05-06)
1225 ============================
1226
1227 Language
1228 --------
1229 - [Added the `unsafe_op_in_unsafe_fn` lint, which checks whether the unsafe code
1230   in an `unsafe fn` is wrapped in a `unsafe` block.][79208] This lint
1231   is allowed by default, and may become a warning or hard error in a
1232   future edition.
1233 - [You can now cast mutable references to arrays to a pointer of the same type as
1234   the element.][81479]
1235
1236 Compiler
1237 --------
1238 - [Upgraded the default LLVM to LLVM 12.][81451]
1239
1240 Added tier 3\* support for the following targets.
1241
1242 - [`s390x-unknown-linux-musl`][82166]
1243 - [`riscv32gc-unknown-linux-musl` & `riscv64gc-unknown-linux-musl`][82202]
1244 - [`powerpc-unknown-openbsd`][82733]
1245
1246 \* Refer to Rust's [platform support page][platform-support-doc] for more
1247 information on Rust's tiered platform support.
1248
1249 Libraries
1250 ---------
1251 - [`OsString` now implements `Extend` and `FromIterator`.][82121]
1252 - [`cmp::Reverse` now has `#[repr(transparent)]` representation.][81879]
1253 - [`Arc<impl Error>` now implements `error::Error`.][80553]
1254 - [All integer division and remainder operations are now `const`.][80962]
1255
1256 Stabilised APIs
1257 -------------
1258 - [`Arguments::as_str`]
1259 - [`char::MAX`]
1260 - [`char::REPLACEMENT_CHARACTER`]
1261 - [`char::UNICODE_VERSION`]
1262 - [`char::decode_utf16`]
1263 - [`char::from_digit`]
1264 - [`char::from_u32_unchecked`]
1265 - [`char::from_u32`]
1266 - [`slice::partition_point`]
1267 - [`str::rsplit_once`]
1268 - [`str::split_once`]
1269
1270 The following previously stable APIs are now `const`.
1271
1272 - [`char::len_utf8`]
1273 - [`char::len_utf16`]
1274 - [`char::to_ascii_uppercase`]
1275 - [`char::to_ascii_lowercase`]
1276 - [`char::eq_ignore_ascii_case`]
1277 - [`u8::to_ascii_uppercase`]
1278 - [`u8::to_ascii_lowercase`]
1279 - [`u8::eq_ignore_ascii_case`]
1280
1281 Rustdoc
1282 -------
1283 - [Rustdoc lints are now treated as a tool lint, meaning that
1284   lints are now prefixed with `rustdoc::` (e.g. `#[warn(rustdoc::broken_intra_doc_links)]`).][80527]
1285   Using the old style is still allowed, and will become a warning in
1286   a future release.
1287 - [Rustdoc now supports argument files.][82261]
1288 - [Rustdoc now generates smart punctuation for documentation.][79423]
1289 - [You can now use "task lists" in Rustdoc Markdown.][81766] E.g.
1290   ```markdown
1291   - [x] Complete
1292   - [ ] Todo
1293   ```
1294
1295 Misc
1296 ----
1297 - [You can now pass multiple filters to tests.][81356] E.g.
1298   `cargo test -- foo bar` will run all tests that match `foo` and `bar`.
1299 - [Rustup now distributes PDB symbols for the `std` library on Windows,
1300   allowing you to see `std` symbols when debugging.][82218]
1301
1302 Internal Only
1303 -------------
1304 These changes provide no direct user facing benefits, but represent significant
1305 improvements to the internals and overall performance of rustc and
1306 related tools.
1307
1308 - [Check the result cache before the DepGraph when ensuring queries][81855]
1309 - [Try fast_reject::simplify_type in coherence before doing full check][81744]
1310 - [Only store a LocalDefId in some HIR nodes][81611]
1311 - [Store HIR attributes in a side table][79519]
1312
1313 Compatibility Notes
1314 -------------------
1315 - [Cargo build scripts are now forbidden from setting `RUSTC_BOOTSTRAP`.][cargo/9181]
1316 - [Removed support for the `x86_64-rumprun-netbsd` target.][82594]
1317 - [Deprecated the `x86_64-sun-solaris` target in favor of `x86_64-pc-solaris`.][82216]
1318 - [Rustdoc now only accepts `,`, ` `, and `\t` as delimiters for specifying
1319   languages in code blocks.][78429]
1320 - [Rustc now catches more cases of `pub_use_of_private_extern_crate`][80763]
1321 - [Changes in how proc macros handle whitespace may lead to panics when used
1322   with older `proc-macro-hack` versions. A `cargo update` should be sufficient to fix this in all cases.][84136]
1323 - [Turn `#[derive]` into a regular macro attribute][79078]
1324
1325 [84136]: https://github.com/rust-lang/rust/issues/84136
1326 [80763]: https://github.com/rust-lang/rust/pull/80763
1327 [82166]: https://github.com/rust-lang/rust/pull/82166
1328 [82121]: https://github.com/rust-lang/rust/pull/82121
1329 [81879]: https://github.com/rust-lang/rust/pull/81879
1330 [82261]: https://github.com/rust-lang/rust/pull/82261
1331 [82218]: https://github.com/rust-lang/rust/pull/82218
1332 [82216]: https://github.com/rust-lang/rust/pull/82216
1333 [82202]: https://github.com/rust-lang/rust/pull/82202
1334 [81855]: https://github.com/rust-lang/rust/pull/81855
1335 [81766]: https://github.com/rust-lang/rust/pull/81766
1336 [81744]: https://github.com/rust-lang/rust/pull/81744
1337 [81611]: https://github.com/rust-lang/rust/pull/81611
1338 [81479]: https://github.com/rust-lang/rust/pull/81479
1339 [81451]: https://github.com/rust-lang/rust/pull/81451
1340 [81356]: https://github.com/rust-lang/rust/pull/81356
1341 [80962]: https://github.com/rust-lang/rust/pull/80962
1342 [80553]: https://github.com/rust-lang/rust/pull/80553
1343 [80527]: https://github.com/rust-lang/rust/pull/80527
1344 [79519]: https://github.com/rust-lang/rust/pull/79519
1345 [79423]: https://github.com/rust-lang/rust/pull/79423
1346 [79208]: https://github.com/rust-lang/rust/pull/79208
1347 [78429]: https://github.com/rust-lang/rust/pull/78429
1348 [82733]: https://github.com/rust-lang/rust/pull/82733
1349 [82594]: https://github.com/rust-lang/rust/pull/82594
1350 [79078]: https://github.com/rust-lang/rust/pull/79078
1351 [cargo/9181]: https://github.com/rust-lang/cargo/pull/9181
1352 [`char::MAX`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.MAX
1353 [`char::REPLACEMENT_CHARACTER`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.REPLACEMENT_CHARACTER
1354 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.UNICODE_VERSION
1355 [`char::decode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.decode_utf16
1356 [`char::from_u32`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32
1357 [`char::from_u32_unchecked`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32_unchecked
1358 [`char::from_digit`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_digit
1359 [`Peekable::next_if`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if
1360 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_eq
1361 [`Arguments::as_str`]: https://doc.rust-lang.org/stable/std/fmt/struct.Arguments.html#method.as_str
1362 [`str::split_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_once
1363 [`str::rsplit_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.rsplit_once
1364 [`slice::partition_point`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.partition_point
1365 [`char::len_utf8`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf8
1366 [`char::len_utf16`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf16
1367 [`char::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_uppercase
1368 [`char::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_lowercase
1369 [`char::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.eq_ignore_ascii_case
1370 [`u8::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_uppercase
1371 [`u8::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_lowercase
1372 [`u8::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.eq_ignore_ascii_case
1373
1374 Version 1.51.0 (2021-03-25)
1375 ============================
1376
1377 Language
1378 --------
1379 - [You can now parameterize items such as functions, traits, and `struct`s by constant
1380   values in addition to by types and lifetimes.][79135] Also known as "const generics"
1381   E.g. you can now write the following. Note: Only values of primitive integers,
1382   `bool`, or `char` types are currently permitted.
1383   ```rust
1384   struct GenericArray<T, const LENGTH: usize> {
1385       inner: [T; LENGTH]
1386   }
1387
1388   impl<T, const LENGTH: usize> GenericArray<T, LENGTH> {
1389       const fn last(&self) -> Option<&T> {
1390           if LENGTH == 0 {
1391               None
1392           } else {
1393               Some(&self.inner[LENGTH - 1])
1394           }
1395       }
1396   }
1397   ```
1398
1399
1400 Compiler
1401 --------
1402
1403 - [Added the `-Csplit-debuginfo` codegen option for macOS platforms.][79570]
1404   This option controls whether debug information is split across multiple files
1405   or packed into a single file. **Note** This option is unstable on other platforms.
1406 - [Added tier 3\* support for `aarch64_be-unknown-linux-gnu`,
1407   `aarch64-unknown-linux-gnu_ilp32`, and `aarch64_be-unknown-linux-gnu_ilp32` targets.][81455]
1408 - [Added tier 3 support for `i386-unknown-linux-gnu` and `i486-unknown-linux-gnu` targets.][80662]
1409 - [The `target-cpu=native` option will now detect individual features of CPUs.][80749]
1410
1411 \* Refer to Rust's [platform support page][platform-support-doc] for more
1412 information on Rust's tiered platform support.
1413
1414 Libraries
1415 ---------
1416
1417 - [`Box::downcast` is now also implemented for any `dyn Any + Send + Sync` object.][80945]
1418 - [`str` now implements `AsMut<str>`.][80279]
1419 - [`u64` and `u128` now implement `From<char>`.][79502]
1420 - [`Error` is now implemented for `&T` where `T` implements `Error`.][75180]
1421 - [`Poll::{map_ok, map_err}` are now implemented for `Poll<Option<Result<T, E>>>`.][80968]
1422 - [`unsigned_abs` is now implemented for all signed integer types.][80959]
1423 - [`io::Empty` now implements `io::Seek`.][78044]
1424 - [`rc::Weak<T>` and `sync::Weak<T>`'s methods such as `as_ptr` are now implemented for
1425   `T: ?Sized` types.][80764]
1426 - [`Div` and `Rem` by their `NonZero` variant is now implemented for all unsigned integers.][79134]
1427
1428
1429 Stabilized APIs
1430 ---------------
1431
1432 - [`Arc::decrement_strong_count`]
1433 - [`Arc::increment_strong_count`]
1434 - [`Once::call_once_force`]
1435 - [`Peekable::next_if_eq`]
1436 - [`Peekable::next_if`]
1437 - [`Seek::stream_position`]
1438 - [`array::IntoIter`]
1439 - [`panic::panic_any`]
1440 - [`ptr::addr_of!`]
1441 - [`ptr::addr_of_mut!`]
1442 - [`slice::fill_with`]
1443 - [`slice::split_inclusive_mut`]
1444 - [`slice::split_inclusive`]
1445 - [`slice::strip_prefix`]
1446 - [`slice::strip_suffix`]
1447 - [`str::split_inclusive`]
1448 - [`sync::OnceState`]
1449 - [`task::Wake`]
1450 - [`VecDeque::range`]
1451 - [`VecDeque::range_mut`]
1452
1453 Cargo
1454 -----
1455 - [Added the `split-debuginfo` profile option to control the -Csplit-debuginfo
1456   codegen option.][cargo/9112]
1457 - [Added the `resolver` field to `Cargo.toml` to enable the new feature resolver
1458   and CLI option behavior.][cargo/8997] Version 2 of the feature resolver will try
1459   to avoid unifying features of dependencies where that unification could be unwanted.
1460   Such as using the same dependency with a `std` feature in a build scripts and
1461   proc-macros, while using the `no-std` feature in the final binary. See the
1462   [Cargo book documentation][feature-resolver@2.0] for more information on the feature.
1463
1464 Rustdoc
1465 -------
1466
1467 - [Rustdoc will now include documentation for methods available from _nested_ `Deref` traits.][80653]
1468 - [You can now provide a `--default-theme` flag which sets the default theme to use for
1469   documentation.][79642]
1470
1471 Various improvements to intra-doc links:
1472
1473 - [You can link to non-path primitives such as `slice`.][80181]
1474 - [You can link to associated items.][74489]
1475 - [You can now include generic parameters when linking to items, like `Vec<T>`.][76934]
1476
1477 Misc
1478 ----
1479 - [You can now pass `--include-ignored` to tests (e.g. with
1480   `cargo test -- --include-ignored`) to include testing tests marked `#[ignore]`.][80053]
1481
1482 Compatibility Notes
1483 -------------------
1484
1485 - [WASI platforms no longer use the `wasm-bindgen` ABI, and instead use the wasm32 ABI.][79998]
1486 - [`rustc` no longer promotes division, modulo and indexing operations to `const` that
1487   could fail.][80579]
1488 - [The minimum version of glibc for the following platforms has been bumped to version 2.31
1489   for the distributed artifacts.][81521]
1490     - `armv5te-unknown-linux-gnueabi`
1491     - `sparc64-unknown-linux-gnu`
1492     - `thumbv7neon-unknown-linux-gnueabihf`
1493     - `armv7-unknown-linux-gnueabi`
1494     - `x86_64-unknown-linux-gnux32`
1495 - [`atomic::spin_loop_hint` has been deprecated.][80966] It's recommended to use `hint::spin_loop` instead.
1496
1497 Internal Only
1498 -------------
1499
1500 - [Consistently avoid constructing optimized MIR when not doing codegen][80718]
1501
1502 [79135]: https://github.com/rust-lang/rust/pull/79135
1503 [74489]: https://github.com/rust-lang/rust/pull/74489
1504 [76934]: https://github.com/rust-lang/rust/pull/76934
1505 [79570]: https://github.com/rust-lang/rust/pull/79570
1506 [80181]: https://github.com/rust-lang/rust/pull/80181
1507 [79642]: https://github.com/rust-lang/rust/pull/79642
1508 [80945]: https://github.com/rust-lang/rust/pull/80945
1509 [80279]: https://github.com/rust-lang/rust/pull/80279
1510 [80053]: https://github.com/rust-lang/rust/pull/80053
1511 [79502]: https://github.com/rust-lang/rust/pull/79502
1512 [75180]: https://github.com/rust-lang/rust/pull/75180
1513 [81521]: https://github.com/rust-lang/rust/pull/81521
1514 [80968]: https://github.com/rust-lang/rust/pull/80968
1515 [80959]: https://github.com/rust-lang/rust/pull/80959
1516 [80718]: https://github.com/rust-lang/rust/pull/80718
1517 [80653]: https://github.com/rust-lang/rust/pull/80653
1518 [80579]: https://github.com/rust-lang/rust/pull/80579
1519 [79998]: https://github.com/rust-lang/rust/pull/79998
1520 [78044]: https://github.com/rust-lang/rust/pull/78044
1521 [81455]: https://github.com/rust-lang/rust/pull/81455
1522 [80764]: https://github.com/rust-lang/rust/pull/80764
1523 [80749]: https://github.com/rust-lang/rust/pull/80749
1524 [80662]: https://github.com/rust-lang/rust/pull/80662
1525 [79134]: https://github.com/rust-lang/rust/pull/79134
1526 [80966]: https://github.com/rust-lang/rust/pull/80966
1527 [cargo/8997]: https://github.com/rust-lang/cargo/pull/8997
1528 [cargo/9112]: https://github.com/rust-lang/cargo/pull/9112
1529 [feature-resolver@2.0]: https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
1530 [`Once::call_once_force`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.call_once_force
1531 [`sync::OnceState`]: https://doc.rust-lang.org/stable/std/sync/struct.OnceState.html
1532 [`panic::panic_any`]: https://doc.rust-lang.org/stable/std/panic/fn.panic_any.html
1533 [`slice::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1534 [`slice::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1535 [`Arc::increment_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.increment_strong_count
1536 [`Arc::decrement_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.decrement_strong_count
1537 [`slice::fill_with`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.fill_with
1538 [`ptr::addr_of!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of.html
1539 [`ptr::addr_of_mut!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of_mut.html
1540 [`array::IntoIter`]: https://doc.rust-lang.org/nightly/std/array/struct.IntoIter.html
1541 [`slice::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive
1542 [`slice::split_inclusive_mut`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive_mut
1543 [`str::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_inclusive
1544 [`task::Wake`]: https://doc.rust-lang.org/nightly/std/task/trait.Wake.html
1545 [`Seek::stream_position`]: https://doc.rust-lang.org/nightly/std/io/trait.Seek.html#method.stream_position
1546 [`Peekable::next_if`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if
1547 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if_eq
1548 [`VecDeque::range`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range
1549 [`VecDeque::range_mut`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range_mut
1550
1551 Version 1.50.0 (2021-02-11)
1552 ============================
1553
1554 Language
1555 -----------------------
1556 - [You can now use `const` values for `x` in `[x; N]` array expressions.][79270]
1557   This has been technically possible since 1.38.0, as it was unintentionally stabilized.
1558 - [Assignments to `ManuallyDrop<T>` union fields are now considered safe.][78068]
1559
1560 Compiler
1561 -----------------------
1562 - [Added tier 3\* support for the `armv5te-unknown-linux-uclibceabi` target.][78142]
1563 - [Added tier 3 support for the `aarch64-apple-ios-macabi` target.][77484]
1564 - [The `x86_64-unknown-freebsd` is now built with the full toolset.][79484]
1565 - [Dropped support for all cloudabi targets.][78439]
1566
1567 \* Refer to Rust's [platform support page][platform-support-doc] for more
1568 information on Rust's tiered platform support.
1569
1570 Libraries
1571 -----------------------
1572
1573 - [`proc_macro::Punct` now implements `PartialEq<char>`.][78636]
1574 - [`ops::{Index, IndexMut}` are now implemented for fixed sized arrays of any length.][74989]
1575 - [On Unix platforms, the `std::fs::File` type now has a "niche" of `-1`.][74699]
1576   This value cannot be a valid file descriptor, and now means `Option<File>` takes
1577   up the same amount of space as `File`.
1578
1579 Stabilized APIs
1580 ---------------
1581
1582 - [`bool::then`]
1583 - [`btree_map::Entry::or_insert_with_key`]
1584 - [`f32::clamp`]
1585 - [`f64::clamp`]
1586 - [`hash_map::Entry::or_insert_with_key`]
1587 - [`Ord::clamp`]
1588 - [`RefCell::take`]
1589 - [`slice::fill`]
1590 - [`UnsafeCell::get_mut`]
1591
1592 The following previously stable methods are now `const`.
1593
1594 - [`IpAddr::is_ipv4`]
1595 - [`IpAddr::is_ipv6`]
1596 - [`IpAddr::is_unspecified`]
1597 - [`IpAddr::is_loopback`]
1598 - [`IpAddr::is_multicast`]
1599 - [`Ipv4Addr::octets`]
1600 - [`Ipv4Addr::is_loopback`]
1601 - [`Ipv4Addr::is_private`]
1602 - [`Ipv4Addr::is_link_local`]
1603 - [`Ipv4Addr::is_multicast`]
1604 - [`Ipv4Addr::is_broadcast`]
1605 - [`Ipv4Addr::is_documentation`]
1606 - [`Ipv4Addr::to_ipv6_compatible`]
1607 - [`Ipv4Addr::to_ipv6_mapped`]
1608 - [`Ipv6Addr::segments`]
1609 - [`Ipv6Addr::is_unspecified`]
1610 - [`Ipv6Addr::is_loopback`]
1611 - [`Ipv6Addr::is_multicast`]
1612 - [`Ipv6Addr::to_ipv4`]
1613 - [`Layout::size`]
1614 - [`Layout::align`]
1615 - [`Layout::from_size_align`]
1616 - `pow` for all integer types.
1617 - `checked_pow` for all integer types.
1618 - `saturating_pow` for all integer types.
1619 - `wrapping_pow` for all integer types.
1620 - `next_power_of_two` for all unsigned integer types.
1621 - `checked_next_power_of_two` for all unsigned integer types.
1622
1623 Cargo
1624 -----------------------
1625
1626 - [Added the `[build.rustc-workspace-wrapper]` option.][cargo/8976]
1627   This option sets a wrapper to execute instead of `rustc`, for workspace members only.
1628 - [`cargo:rerun-if-changed` will now, if provided a directory, scan the entire
1629   contents of that directory for changes.][cargo/8973]
1630 - [Added the `--workspace` flag to the `cargo update` command.][cargo/8725]
1631
1632 Misc
1633 ----
1634
1635 - [The search results tab and the help button are focusable with keyboard in rustdoc.][79896]
1636 - [Running tests will now print the total time taken to execute.][75752]
1637
1638 Compatibility Notes
1639 -------------------
1640
1641 - [The `compare_and_swap` method on atomics has been deprecated.][79261] It's
1642   recommended to use the `compare_exchange` and `compare_exchange_weak` methods instead.
1643 - [Changes in how `TokenStream`s are checked have fixed some cases where you could write
1644   unhygenic `macro_rules!` macros.][79472]
1645 - [`#![test]` as an inner attribute is now considered unstable like other inner macro
1646   attributes, and reports an error by default through the `soft_unstable` lint.][79003]
1647 - [Overriding a `forbid` lint at the same level that it was set is now a hard error.][78864]
1648 - [You can no longer intercept `panic!` calls by supplying your own macro.][78343] It's
1649   recommended to use the `#[panic_handler]` attribute to provide your own implementation.
1650 - [Semi-colons after item statements (e.g. `struct Foo {};`) now produce a warning.][78296]
1651
1652 [74989]: https://github.com/rust-lang/rust/pull/74989
1653 [79261]: https://github.com/rust-lang/rust/pull/79261
1654 [79896]: https://github.com/rust-lang/rust/pull/79896
1655 [79484]: https://github.com/rust-lang/rust/pull/79484
1656 [79472]: https://github.com/rust-lang/rust/pull/79472
1657 [79270]: https://github.com/rust-lang/rust/pull/79270
1658 [79003]: https://github.com/rust-lang/rust/pull/79003
1659 [78864]: https://github.com/rust-lang/rust/pull/78864
1660 [78636]: https://github.com/rust-lang/rust/pull/78636
1661 [78439]: https://github.com/rust-lang/rust/pull/78439
1662 [78343]: https://github.com/rust-lang/rust/pull/78343
1663 [78296]: https://github.com/rust-lang/rust/pull/78296
1664 [78068]: https://github.com/rust-lang/rust/pull/78068
1665 [75752]: https://github.com/rust-lang/rust/pull/75752
1666 [74699]: https://github.com/rust-lang/rust/pull/74699
1667 [78142]: https://github.com/rust-lang/rust/pull/78142
1668 [77484]: https://github.com/rust-lang/rust/pull/77484
1669 [cargo/8976]: https://github.com/rust-lang/cargo/pull/8976
1670 [cargo/8973]: https://github.com/rust-lang/cargo/pull/8973
1671 [cargo/8725]: https://github.com/rust-lang/cargo/pull/8725
1672 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv4
1673 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv6
1674 [`IpAddr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_unspecified
1675 [`IpAddr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_loopback
1676 [`IpAddr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_multicast
1677 [`Ipv4Addr::octets`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.octets
1678 [`Ipv4Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_loopback
1679 [`Ipv4Addr::is_private`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_private
1680 [`Ipv4Addr::is_link_local`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_link_local
1681 [`Ipv4Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_multicast
1682 [`Ipv4Addr::is_broadcast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_broadcast
1683 [`Ipv4Addr::is_documentation`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_documentation
1684 [`Ipv4Addr::to_ipv6_compatible`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_compatible
1685 [`Ipv4Addr::to_ipv6_mapped`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_mapped
1686 [`Ipv6Addr::segments`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.segments
1687 [`Ipv6Addr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_unspecified
1688 [`Ipv6Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_loopback
1689 [`Ipv6Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_multicast
1690 [`Ipv6Addr::to_ipv4`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.to_ipv4
1691 [`Layout::align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.align
1692 [`Layout::from_size_align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.from_size_align
1693 [`Layout::size`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.size
1694 [`Ord::clamp`]: https://doc.rust-lang.org/stable/std/cmp/trait.Ord.html#method.clamp
1695 [`RefCell::take`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.take
1696 [`UnsafeCell::get_mut`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.get_mut
1697 [`bool::then`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then
1698 [`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
1699 [`f32::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.clamp
1700 [`f64::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.clamp
1701 [`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
1702 [`slice::fill`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.fill
1703
1704
1705 Version 1.49.0 (2020-12-31)
1706 ============================
1707
1708 Language
1709 -----------------------
1710
1711 - [Unions can now implement `Drop`, and you can now have a field in a union
1712   with `ManuallyDrop<T>`.][77547]
1713 - [You can now cast uninhabited enums to integers.][76199]
1714 - [You can now bind by reference and by move in patterns.][76119] This
1715   allows you to selectively borrow individual components of a type. E.g.
1716   ```rust
1717   #[derive(Debug)]
1718   struct Person {
1719       name: String,
1720       age: u8,
1721   }
1722
1723   let person = Person {
1724       name: String::from("Alice"),
1725       age: 20,
1726   };
1727
1728   // `name` is moved out of person, but `age` is referenced.
1729   let Person { name, ref age } = person;
1730   println!("{} {}", name, age);
1731   ```
1732
1733 Compiler
1734 -----------------------
1735
1736 - [Added tier 1\* support for `aarch64-unknown-linux-gnu`.][78228]
1737 - [Added tier 2 support for `aarch64-apple-darwin`.][75991]
1738 - [Added tier 2 support for `aarch64-pc-windows-msvc`.][75914]
1739 - [Added tier 3 support for `mipsel-unknown-none`.][78676]
1740 - [Raised the minimum supported LLVM version to LLVM 9.][78848]
1741 - [Output from threads spawned in tests is now captured.][78227]
1742 - [Change os and vendor values to "none" and "unknown" for some targets][78951]
1743
1744 \* Refer to Rust's [platform support page][platform-support-doc] for more
1745 information on Rust's tiered platform support.
1746
1747 Libraries
1748 -----------------------
1749
1750 - [`RangeInclusive` now checks for exhaustion when calling `contains` and indexing.][78109]
1751 - [`ToString::to_string` now no longer shrinks the internal buffer in the default implementation.][77997]
1752
1753 Stabilized APIs
1754 ---------------
1755
1756 - [`slice::select_nth_unstable`]
1757 - [`slice::select_nth_unstable_by`]
1758 - [`slice::select_nth_unstable_by_key`]
1759
1760 The following previously stable methods are now `const`.
1761
1762 - [`Poll::is_ready`]
1763 - [`Poll::is_pending`]
1764
1765 Cargo
1766 -----------------------
1767 - [Building a crate with `cargo-package` should now be independently reproducible.][cargo/8864]
1768 - [`cargo-tree` now marks proc-macro crates.][cargo/8765]
1769 - [Added `CARGO_PRIMARY_PACKAGE` build-time environment variable.][cargo/8758] This
1770   variable will be set if the crate being built is one the user selected to build, either
1771   with `-p` or through defaults.
1772 - [You can now use glob patterns when specifying packages & targets.][cargo/8752]
1773
1774
1775 Compatibility Notes
1776 -------------------
1777
1778 - [Demoted `i686-unknown-freebsd` from host tier 2 to target tier 2 support.][78746]
1779 - [Macros that end with a semi-colon are now treated as statements even if they expand to nothing.][78376]
1780 - [Rustc will now check for the validity of some built-in attributes on enum variants.][77015]
1781   Previously such invalid or unused attributes could be ignored.
1782 - Leading whitespace is stripped more uniformly in documentation comments, which may change behavior. You
1783   read [this post about the changes][rustdoc-ws-post] for more details.
1784 - [Trait bounds are no longer inferred for associated types.][79904]
1785
1786 Internal Only
1787 -------------
1788 These changes provide no direct user facing benefits, but represent significant
1789 improvements to the internals and overall performance of rustc and
1790 related tools.
1791
1792 - [rustc's internal crates are now compiled using the `initial-exec` Thread
1793   Local Storage model.][78201]
1794 - [Calculate visibilities once in resolve.][78077]
1795 - [Added `system` to the `llvm-libunwind` bootstrap config option.][77703]
1796 - [Added `--color` for configuring terminal color support to bootstrap.][79004]
1797
1798
1799 [75991]: https://github.com/rust-lang/rust/pull/75991
1800 [78951]: https://github.com/rust-lang/rust/pull/78951
1801 [78848]: https://github.com/rust-lang/rust/pull/78848
1802 [78746]: https://github.com/rust-lang/rust/pull/78746
1803 [78376]: https://github.com/rust-lang/rust/pull/78376
1804 [78228]: https://github.com/rust-lang/rust/pull/78228
1805 [78227]: https://github.com/rust-lang/rust/pull/78227
1806 [78201]: https://github.com/rust-lang/rust/pull/78201
1807 [78109]: https://github.com/rust-lang/rust/pull/78109
1808 [78077]: https://github.com/rust-lang/rust/pull/78077
1809 [77997]: https://github.com/rust-lang/rust/pull/77997
1810 [77703]: https://github.com/rust-lang/rust/pull/77703
1811 [77547]: https://github.com/rust-lang/rust/pull/77547
1812 [77015]: https://github.com/rust-lang/rust/pull/77015
1813 [76199]: https://github.com/rust-lang/rust/pull/76199
1814 [76119]: https://github.com/rust-lang/rust/pull/76119
1815 [75914]: https://github.com/rust-lang/rust/pull/75914
1816 [79004]: https://github.com/rust-lang/rust/pull/79004
1817 [78676]: https://github.com/rust-lang/rust/pull/78676
1818 [79904]: https://github.com/rust-lang/rust/issues/79904
1819 [cargo/8864]: https://github.com/rust-lang/cargo/pull/8864
1820 [cargo/8765]: https://github.com/rust-lang/cargo/pull/8765
1821 [cargo/8758]: https://github.com/rust-lang/cargo/pull/8758
1822 [cargo/8752]: https://github.com/rust-lang/cargo/pull/8752
1823 [`slice::select_nth_unstable`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable
1824 [`slice::select_nth_unstable_by`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by
1825 [`slice::select_nth_unstable_by_key`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by_key
1826 [`Poll::is_ready`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_ready
1827 [`Poll::is_pending`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_pending
1828 [rustdoc-ws-post]: https://blog.guillaume-gomez.fr/articles/2020-11-11+New+doc+comment+handling+in+rustdoc
1829
1830 Version 1.48.0 (2020-11-19)
1831 ==========================
1832
1833 Language
1834 --------
1835
1836 - [The `unsafe` keyword is now syntactically permitted on modules.][75857] This
1837   is still rejected *semantically*, but can now be parsed by procedural macros.
1838
1839 Compiler
1840 --------
1841 - [Stabilised the `-C link-self-contained=<yes|no>` compiler flag.][76158] This tells
1842   `rustc` whether to link its own C runtime and libraries or to rely on a external
1843   linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.)
1844 - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386]
1845   Note: If you're using cargo you must explicitly pass the `--target` flag.
1846 - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420]
1847
1848 \* Refer to Rust's [platform support page][platform-support-doc] for more
1849 information on Rust's tiered platform support.
1850
1851 Libraries
1852 ---------
1853 - [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`,
1854   and `&Stderr`.][76275]
1855 - [All arrays of any length now implement `TryFrom<Vec<T>>`.][76310]
1856 - [The `matches!` macro now supports having a trailing comma.][74880]
1857 - [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194]
1858 - [The `RefCell::{replace, replace_with, clone}` methods now all use `#[track_caller]`.][77055]
1859
1860 Stabilized APIs
1861 ---------------
1862 - [`slice::as_ptr_range`]
1863 - [`slice::as_mut_ptr_range`]
1864 - [`VecDeque::make_contiguous`]
1865 - [`future::pending`]
1866 - [`future::ready`]
1867
1868 The following previously stable methods are now `const fn`'s:
1869
1870 - [`Option::is_some`]
1871 - [`Option::is_none`]
1872 - [`Option::as_ref`]
1873 - [`Result::is_ok`]
1874 - [`Result::is_err`]
1875 - [`Result::as_ref`]
1876 - [`Ordering::reverse`]
1877 - [`Ordering::then`]
1878
1879 Cargo
1880 -----
1881
1882 Rustdoc
1883 -------
1884 - [You can now link to items in `rustdoc` using the intra-doc link
1885   syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate
1886   a link to `std::future`'s documentation. See ["Linking to items by
1887   name"][intradoc-links] for more information.
1888 - [You can now specify `#[doc(alias = "<alias>")]` on items to add search aliases
1889   when searching through `rustdoc`'s UI.][75740]
1890
1891 Compatibility Notes
1892 -------------------
1893 - [Promotion of references to `'static` lifetime inside `const fn` now follows the
1894   same rules as inside a `fn` body.][75502] In particular, `&foo()` will not be
1895   promoted to `'static` lifetime any more inside `const fn`s.
1896 - [Associated type bindings on trait objects are now verified to meet the bounds
1897   declared on the trait when checking that they implement the trait.][27675]
1898 - [When trait bounds on associated types or opaque types are ambiguous, the
1899   compiler no longer makes an arbitrary choice on which bound to use.][54121]
1900 - [Fixed recursive nonterminals not being expanded in macros during
1901   pretty-print/reparse check.][77153] This may cause errors if your macro wasn't
1902   correctly handling recursive nonterminal tokens.
1903 - [`&mut` references to non zero-sized types are no longer promoted.][75585]
1904 - [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]`
1905   in places where they have no effect.][73461]
1906 - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in
1907   `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166]
1908 - [`mem::uninitialized` will now panic if any inner types inside a struct or enum
1909   disallow zero-initialization.][71274]
1910 - [`#[target_feature]` will now error if used in a place where it has no effect.][78143]
1911 - [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212]
1912   Note: This behaviour is not guaranteed and is still considered undefined behaviour,
1913   see the [`catch_unwind`] documentation for further information.
1914
1915
1916
1917 Internal Only
1918 -------------
1919 These changes provide no direct user facing benefits, but represent significant
1920 improvements to the internals and overall performance of rustc and
1921 related tools.
1922
1923 - [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
1924   You can continue building with `make` by setting `ninja=false` in
1925   your `config.toml`.
1926 - [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
1927 - [Made `ensure_sufficient_stack()` non-generic][76680]
1928
1929 [78143]: https://github.com/rust-lang/rust/issues/78143
1930 [76680]: https://github.com/rust-lang/rust/pull/76680/
1931 [76030]: https://github.com/rust-lang/rust/pull/76030/
1932 [70212]: https://github.com/rust-lang/rust/pull/70212/
1933 [27675]: https://github.com/rust-lang/rust/issues/27675/
1934 [54121]: https://github.com/rust-lang/rust/issues/54121/
1935 [71274]: https://github.com/rust-lang/rust/pull/71274/
1936 [77386]: https://github.com/rust-lang/rust/pull/77386/
1937 [77153]: https://github.com/rust-lang/rust/pull/77153/
1938 [77055]: https://github.com/rust-lang/rust/pull/77055/
1939 [76275]: https://github.com/rust-lang/rust/pull/76275/
1940 [76310]: https://github.com/rust-lang/rust/pull/76310/
1941 [76420]: https://github.com/rust-lang/rust/pull/76420/
1942 [76158]: https://github.com/rust-lang/rust/pull/76158/
1943 [75857]: https://github.com/rust-lang/rust/pull/75857/
1944 [75585]: https://github.com/rust-lang/rust/pull/75585/
1945 [75740]: https://github.com/rust-lang/rust/pull/75740/
1946 [75502]: https://github.com/rust-lang/rust/pull/75502/
1947 [74880]: https://github.com/rust-lang/rust/pull/74880/
1948 [74922]: https://github.com/rust-lang/rust/pull/74922/
1949 [74430]: https://github.com/rust-lang/rust/pull/74430/
1950 [74194]: https://github.com/rust-lang/rust/pull/74194/
1951 [73461]: https://github.com/rust-lang/rust/pull/73461/
1952 [73166]: https://github.com/rust-lang/rust/pull/73166/
1953 [intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
1954 [`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
1955 [`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some
1956 [`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none
1957 [`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref
1958 [`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok
1959 [`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err
1960 [`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref
1961 [`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse
1962 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
1963 [`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range
1964 [`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range
1965 [`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous
1966 [`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html
1967 [`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html
1968
1969
1970 Version 1.47.0 (2020-10-08)
1971 ==========================
1972
1973 Language
1974 --------
1975 - [Closures will now warn when not used.][74869]
1976
1977 Compiler
1978 --------
1979 - [Stabilized the `-C control-flow-guard` codegen option][73893], which enables
1980   [Control Flow Guard][1.47.0-cfg] for Windows platforms, and is ignored on other
1981   platforms.
1982 - [Upgraded to LLVM 11.][73526]
1983 - [Added tier 3\* support for the `thumbv4t-none-eabi` target.][74419]
1984 - [Upgrade the FreeBSD toolchain to version 11.4][75204]
1985 - [`RUST_BACKTRACE`'s output is now more compact.][75048]
1986
1987 \* Refer to Rust's [platform support page][platform-support-doc] for more
1988 information on Rust's tiered platform support.
1989
1990 Libraries
1991 ---------
1992 - [`CStr` now implements `Index<RangeFrom<usize>>`.][74021]
1993 - [Traits in `std`/`core` are now implemented for arrays of any length, not just
1994   those of length less than 33.][74060]
1995 - [`ops::RangeFull` and `ops::Range` now implement Default.][73197]
1996 - [`panic::Location` now implements `Copy`, `Clone`, `Eq`, `Hash`, `Ord`,
1997   `PartialEq`, and `PartialOrd`.][73583]
1998
1999 Stabilized APIs
2000 ---------------
2001 - [`Ident::new_raw`]
2002 - [`Range::is_empty`]
2003 - [`RangeInclusive::is_empty`]
2004 - [`Result::as_deref`]
2005 - [`Result::as_deref_mut`]
2006 - [`Vec::leak`]
2007 - [`pointer::offset_from`]
2008 - [`f32::TAU`]
2009 - [`f64::TAU`]
2010
2011 The following previously stable APIs have now been made const.
2012
2013 - [The `new` method for all `NonZero` integers.][73858]
2014 - [The `checked_add`,`checked_sub`,`checked_mul`,`checked_neg`, `checked_shl`,
2015   `checked_shr`, `saturating_add`, `saturating_sub`, and `saturating_mul`
2016   methods for all integers.][73858]
2017 - [The `checked_abs`, `saturating_abs`, `saturating_neg`, and `signum`  for all
2018   signed integers.][73858]
2019 - [The `is_ascii_alphabetic`, `is_ascii_uppercase`, `is_ascii_lowercase`,
2020   `is_ascii_alphanumeric`, `is_ascii_digit`, `is_ascii_hexdigit`,
2021   `is_ascii_punctuation`, `is_ascii_graphic`, `is_ascii_whitespace`, and
2022   `is_ascii_control` methods for `char` and `u8`.][73858]
2023
2024 Cargo
2025 -----
2026 - [`build-dependencies` are now built with opt-level 0 by default.][cargo/8500]
2027   You can override this by setting the following in your `Cargo.toml`.
2028   ```toml
2029   [profile.release.build-override]
2030   opt-level = 3
2031   ```
2032 - [`cargo-help` will now display man pages for commands rather just the
2033   `--help` text.][cargo/8456]
2034 - [`cargo-metadata` now emits a `test` field indicating if a target has
2035   tests enabled.][cargo/8478]
2036 - [`workspace.default-members` now respects `workspace.exclude`.][cargo/8485]
2037 - [`cargo-publish` will now use an alternative registry by default if it's the
2038   only registry specified in `package.publish`.][cargo/8571]
2039
2040 Misc
2041 ----
2042 - [Added a help button beside Rustdoc's searchbar that explains rustdoc's
2043   type based search.][75366]
2044 - [Added the Ayu theme to rustdoc.][71237]
2045
2046 Compatibility Notes
2047 -------------------
2048 - [Bumped the minimum supported Emscripten version to 1.39.20.][75716]
2049 - [Fixed a regression parsing `{} && false` in tail expressions.][74650]
2050 - [Added changes to how proc-macros are expanded in `macro_rules!` that should
2051   help to preserve more span information.][73084] These changes may cause
2052   compiliation errors if your macro was unhygenic or didn't correctly handle
2053   `Delimiter::None`.
2054 - [Moved support for the CloudABI target to tier 3.][75568]
2055 - [`linux-gnu` targets now require minimum kernel 2.6.32 and glibc 2.11.][74163]
2056 - [Added the `rustc-docs` component.][75560] This allows you to install
2057   and read the documentation for the compiler internal APIs. (Currently only
2058   available for `x86_64-unknown-linux-gnu`.)
2059
2060 Internal Only
2061 --------
2062
2063 - [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.
2064
2065 [1.47.0-cfg]: https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard
2066 [75048]: https://github.com/rust-lang/rust/pull/75048/
2067 [74163]: https://github.com/rust-lang/rust/pull/74163/
2068 [71237]: https://github.com/rust-lang/rust/pull/71237/
2069 [74869]: https://github.com/rust-lang/rust/pull/74869/
2070 [73858]: https://github.com/rust-lang/rust/pull/73858/
2071 [75716]: https://github.com/rust-lang/rust/pull/75716/
2072 [75560]: https://github.com/rust-lang/rust/pull/75560/
2073 [75568]: https://github.com/rust-lang/rust/pull/75568/
2074 [75366]: https://github.com/rust-lang/rust/pull/75366/
2075 [75204]: https://github.com/rust-lang/rust/pull/75204/
2076 [74650]: https://github.com/rust-lang/rust/pull/74650/
2077 [74419]: https://github.com/rust-lang/rust/pull/74419/
2078 [73964]: https://github.com/rust-lang/rust/pull/73964/
2079 [74021]: https://github.com/rust-lang/rust/pull/74021/
2080 [74060]: https://github.com/rust-lang/rust/pull/74060/
2081 [73893]: https://github.com/rust-lang/rust/pull/73893/
2082 [73526]: https://github.com/rust-lang/rust/pull/73526/
2083 [73583]: https://github.com/rust-lang/rust/pull/73583/
2084 [73084]: https://github.com/rust-lang/rust/pull/73084/
2085 [73197]: https://github.com/rust-lang/rust/pull/73197/
2086 [cargo/8456]: https://github.com/rust-lang/cargo/pull/8456/
2087 [cargo/8478]: https://github.com/rust-lang/cargo/pull/8478/
2088 [cargo/8485]: https://github.com/rust-lang/cargo/pull/8485/
2089 [cargo/8500]: https://github.com/rust-lang/cargo/pull/8500/
2090 [cargo/8571]: https://github.com/rust-lang/cargo/pull/8571/
2091 [`Ident::new_raw`]:  https://doc.rust-lang.org/nightly/proc_macro/struct.Ident.html#method.new_raw
2092 [`Range::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.Range.html#method.is_empty
2093 [`RangeInclusive::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html#method.is_empty
2094 [`Result::as_deref_mut`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref_mut
2095 [`Result::as_deref`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref
2096 [`Vec::leak`]: https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.leak
2097 [`f32::TAU`]: https://doc.rust-lang.org/nightly/std/f32/consts/constant.TAU.html
2098 [`f64::TAU`]: https://doc.rust-lang.org/nightly/std/f64/consts/constant.TAU.html
2099 [`pointer::offset_from`]: https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset_from
2100
2101
2102 Version 1.46.0 (2020-08-27)
2103 ==========================
2104
2105 Language
2106 --------
2107 - [`if`, `match`, and `loop` expressions can now be used in const functions.][72437]
2108 - [Additionally you are now also able to coerce and cast to slices (`&[T]`) in
2109   const functions.][73862]
2110 - [The `#[track_caller]` attribute can now be added to functions to use the
2111   function's caller's location information for panic messages.][72445]
2112 - [Recursively indexing into tuples no longer needs parentheses.][71322] E.g.
2113   `x.0.0` over `(x.0).0`.
2114 - [`mem::transmute` can now be used in statics and constants.][72920] **Note**
2115   You currently can't use `mem::transmute` in constant functions.
2116
2117 Compiler
2118 --------
2119 - [You can now use the `cdylib` target on Apple iOS and tvOS platforms.][73516]
2120 - [Enabled static "Position Independent Executables" by default
2121   for `x86_64-unknown-linux-musl`.][70740]
2122
2123 Libraries
2124 ---------
2125 - [`mem::forget` is now a `const fn`.][73887]
2126 - [`String` now implements `From<char>`.][73466]
2127 - [The `leading_ones`, and `trailing_ones` methods have been stabilised for all
2128   integer types.][73032]
2129 - [`vec::IntoIter<T>` now implements `AsRef<[T]>`.][72583]
2130 - [All non-zero integer types (`NonZeroU8`) now implement `TryFrom` for their
2131   zero-able equivalent (e.g. `TryFrom<u8>`).][72717]
2132 - [`&[T]` and `&mut [T]` now implement `PartialEq<Vec<T>>`.][71660]
2133 - [`(String, u16)` now implements `ToSocketAddrs`.][73007]
2134 - [`vec::Drain<'_, T>` now implements `AsRef<[T]>`.][72584]
2135
2136 Stabilized APIs
2137 ---------------
2138 - [`Option::zip`]
2139 - [`vec::Drain::as_slice`]
2140
2141 Cargo
2142 -----
2143 Added a number of new environment variables that are now available when
2144 compiling your crate.
2145
2146 - [`CARGO_BIN_NAME` and `CARGO_CRATE_NAME`][cargo/8270] Providing the name of
2147   the specific binary being compiled and the name of the crate.
2148 - [`CARGO_PKG_LICENSE`][cargo/8325] The license from the manifest of the package.
2149 - [`CARGO_PKG_LICENSE_FILE`][cargo/8387] The path to the license file.
2150
2151 Compatibility Notes
2152 -------------------
2153 - [The target configuration option `abi_blacklist` has been renamed
2154   to `unsupported_abis`.][74150] The old name will still continue to work.
2155 - [Rustc will now warn if you cast a C-like enum that implements `Drop`.][72331]
2156   This was previously accepted but will become a hard error in a future release.
2157 - [Rustc will fail to compile if you have a struct with
2158   `#[repr(i128)]` or `#[repr(u128)]`.][74109] This representation is currently only
2159   allowed on `enum`s.
2160 - [Tokens passed to `macro_rules!` are now always captured.][73293] This helps
2161   ensure that spans have the correct information, and may cause breakage if you
2162   were relying on receiving spans with dummy information.
2163 - [The InnoSetup installer for Windows is no longer available.][72569] This was
2164   a legacy installer that was replaced by a MSI installer a few years ago but
2165   was still being built.
2166 - [`{f32, f64}::asinh` now returns the correct values for negative numbers.][72486]
2167 - [Rustc will no longer accept overlapping trait implementations that only
2168   differ in how the lifetime was bound.][72493]
2169 - [Rustc now correctly relates the lifetime of an existential associated
2170   type.][71896] This fixes some edge cases where `rustc` would erroneously allow
2171   you to pass a shorter lifetime than expected.
2172 - [Rustc now dynamically links to `libz` (also called `zlib`) on Linux.][74420]
2173   The library will need to be installed for `rustc` to work, even though we
2174   expect it to be already available on most systems.
2175 - [Tests annotated with `#[should_panic]` are broken on ARMv7 while running
2176   under QEMU.][74820]
2177 - [Pretty printing of some tokens in procedural macros changed.][75453] The
2178   exact output returned by rustc's pretty printing is an unstable
2179   implementation detail: we recommend any macro relying on it to switch to a
2180   more robust parsing system.
2181
2182 [75453]: https://github.com/rust-lang/rust/issues/75453/
2183 [74820]: https://github.com/rust-lang/rust/issues/74820/
2184 [74420]: https://github.com/rust-lang/rust/issues/74420/
2185 [74109]: https://github.com/rust-lang/rust/pull/74109/
2186 [74150]: https://github.com/rust-lang/rust/pull/74150/
2187 [73862]: https://github.com/rust-lang/rust/pull/73862/
2188 [73887]: https://github.com/rust-lang/rust/pull/73887/
2189 [73466]: https://github.com/rust-lang/rust/pull/73466/
2190 [73516]: https://github.com/rust-lang/rust/pull/73516/
2191 [73293]: https://github.com/rust-lang/rust/pull/73293/
2192 [73007]: https://github.com/rust-lang/rust/pull/73007/
2193 [73032]: https://github.com/rust-lang/rust/pull/73032/
2194 [72920]: https://github.com/rust-lang/rust/pull/72920/
2195 [72569]: https://github.com/rust-lang/rust/pull/72569/
2196 [72583]: https://github.com/rust-lang/rust/pull/72583/
2197 [72584]: https://github.com/rust-lang/rust/pull/72584/
2198 [72717]: https://github.com/rust-lang/rust/pull/72717/
2199 [72437]: https://github.com/rust-lang/rust/pull/72437/
2200 [72445]: https://github.com/rust-lang/rust/pull/72445/
2201 [72486]: https://github.com/rust-lang/rust/pull/72486/
2202 [72493]: https://github.com/rust-lang/rust/pull/72493/
2203 [72331]: https://github.com/rust-lang/rust/pull/72331/
2204 [71896]: https://github.com/rust-lang/rust/pull/71896/
2205 [71660]: https://github.com/rust-lang/rust/pull/71660/
2206 [71322]: https://github.com/rust-lang/rust/pull/71322/
2207 [70740]: https://github.com/rust-lang/rust/pull/70740/
2208 [cargo/8270]: https://github.com/rust-lang/cargo/pull/8270/
2209 [cargo/8325]: https://github.com/rust-lang/cargo/pull/8325/
2210 [cargo/8387]: https://github.com/rust-lang/cargo/pull/8387/
2211 [`Option::zip`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.zip
2212 [`vec::Drain::as_slice`]: https://doc.rust-lang.org/stable/std/vec/struct.Drain.html#method.as_slice
2213
2214
2215 Version 1.45.2 (2020-08-03)
2216 ==========================
2217
2218 * [Fix bindings in tuple struct patterns][74954]
2219 * [Fix track_caller integration with trait objects][74784]
2220
2221 [74954]: https://github.com/rust-lang/rust/issues/74954
2222 [74784]: https://github.com/rust-lang/rust/issues/74784
2223
2224
2225 Version 1.45.1 (2020-07-30)
2226 ==========================
2227
2228 * [Fix const propagation with references.][73613]
2229 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2230 * [Avoid spurious implicit region bound.][74509]
2231 * [Install clippy on x.py install][74457]
2232
2233 [73613]: https://github.com/rust-lang/rust/pull/73613
2234 [73078]: https://github.com/rust-lang/rust/issues/73078
2235 [74509]: https://github.com/rust-lang/rust/pull/74509
2236 [74457]: https://github.com/rust-lang/rust/pull/74457
2237
2238
2239 Version 1.45.0 (2020-07-16)
2240 ==========================
2241
2242 Language
2243 --------
2244 - [Out of range float to int conversions using `as` has been defined as a saturating
2245   conversion.][71269] This was previously undefined behaviour, but you can use the
2246    `{f64, f32}::to_int_unchecked` methods to continue using the current behaviour, which
2247    may be desirable in rare performance sensitive situations.
2248 - [`mem::Discriminant<T>` now uses `T`'s discriminant type instead of always
2249   using `u64`.][70705]
2250 - [Function like procedural macros can now be used in expression, pattern, and  statement
2251   positions.][68717] This means you can now use a function-like procedural macro
2252   anywhere you can use a declarative (`macro_rules!`) macro.
2253
2254 Compiler
2255 --------
2256 - [You can now override individual target features through the `target-feature`
2257   flag.][72094] E.g. `-C target-feature=+avx2 -C target-feature=+fma` is now
2258   equivalent to `-C target-feature=+avx2,+fma`.
2259 - [Added the `force-unwind-tables` flag.][69984] This option allows
2260   rustc to always generate unwind tables regardless of panic strategy.
2261 - [Added the `embed-bitcode` flag.][71716] This codegen flag allows rustc
2262   to include LLVM bitcode into generated `rlib`s (this is on by default).
2263 - [Added the `tiny` value to the `code-model` codegen flag.][72397]
2264 - [Added tier 3 support\* for the `mipsel-sony-psp` target.][72062]
2265 - [Added tier 3 support for the `thumbv7a-uwp-windows-msvc` target.][72133]
2266 - [Upgraded to LLVM 10.][67759]
2267
2268 \* Refer to Rust's [platform support page][platform-support-doc] for more
2269 information on Rust's tiered platform support.
2270
2271
2272 Libraries
2273 ---------
2274 - [`net::{SocketAddr, SocketAddrV4, SocketAddrV6}` now implements `PartialOrd`
2275   and `Ord`.][72239]
2276 - [`proc_macro::TokenStream` now implements `Default`.][72234]
2277 - [You can now use `char` with
2278   `ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeTo}` to iterate over
2279   a range of codepoints.][72413] E.g.
2280   you can now write the following;
2281   ```rust
2282   for ch in 'a'..='z' {
2283       print!("{}", ch);
2284   }
2285   println!();
2286   // Prints "abcdefghijklmnopqrstuvwxyz"
2287   ```
2288 - [`OsString` now implements `FromStr`.][71662]
2289 - [The `saturating_neg` method has been added to all signed integer primitive
2290   types, and the `saturating_abs` method has been added for all integer
2291   primitive types.][71886]
2292 - [`Arc<T>`, `Rc<T>` now implement  `From<Cow<'_, T>>`, and `Box` now
2293   implements `From<Cow>` when `T` is `[T: Copy]`, `str`, `CStr`, `OsStr`,
2294   or `Path`.][71447]
2295 - [`Box<[T]>` now implements `From<[T; N]>`.][71095]
2296 - [`BitOr` and `BitOrAssign` are implemented for all `NonZero`
2297   integer types.][69813]
2298 - [The `fetch_min`, and `fetch_max` methods have been added to all atomic
2299   integer types.][72324]
2300 - [The `fetch_update` method has been added to all atomic integer types.][71843]
2301
2302 Stabilized APIs
2303 ---------------
2304 - [`Arc::as_ptr`]
2305 - [`BTreeMap::remove_entry`]
2306 - [`Rc::as_ptr`]
2307 - [`rc::Weak::as_ptr`]
2308 - [`rc::Weak::from_raw`]
2309 - [`rc::Weak::into_raw`]
2310 - [`str::strip_prefix`]
2311 - [`str::strip_suffix`]
2312 - [`sync::Weak::as_ptr`]
2313 - [`sync::Weak::from_raw`]
2314 - [`sync::Weak::into_raw`]
2315 - [`char::UNICODE_VERSION`]
2316 - [`Span::resolved_at`]
2317 - [`Span::located_at`]
2318 - [`Span::mixed_site`]
2319 - [`unix::process::CommandExt::arg0`]
2320
2321 Cargo
2322 -----
2323
2324 - [Cargo uses the `embed-bitcode` flag to optimize disk usage and build
2325   time.][cargo/8066]
2326
2327 Misc
2328 ----
2329 - [Rustdoc now supports strikethrough text in Markdown.][71928] E.g.
2330   `~~outdated information~~` becomes "~~outdated information~~".
2331 - [Added an emoji to Rustdoc's deprecated API message.][72014]
2332
2333 Compatibility Notes
2334 -------------------
2335 - [Trying to self initialize a static value (that is creating a value using
2336   itself) is unsound and now causes a compile error.][71140]
2337 - [`{f32, f64}::powi` now returns a slightly different value on Windows.][73420]
2338   This is due to changes in LLVM's intrinsics which `{f32, f64}::powi` uses.
2339 - [Rustdoc's CLI's extra error exit codes have been removed.][71900] These were
2340   previously undocumented and not intended for public use. Rustdoc still provides
2341   a non-zero exit code on errors.
2342 - [Rustc's `lto` flag is incompatible with the new `embed-bitcode=no`.][71848]
2343   This may cause issues if LTO is enabled through `RUSTFLAGS` or `cargo rustc`
2344   flags while cargo is adding `embed-bitcode` itself. The recommended way to
2345   control LTO is with Cargo profiles, either in `Cargo.toml` or `.cargo/config`,
2346   or by setting `CARGO_PROFILE_<name>_LTO` in the environment.
2347
2348 Internals Only
2349 --------------
2350 - [Make clippy a git subtree instead of a git submodule][70655]
2351 - [Unify the undo log of all snapshot types][69464]
2352
2353 [71848]: https://github.com/rust-lang/rust/issues/71848/
2354 [73420]: https://github.com/rust-lang/rust/issues/73420/
2355 [72324]: https://github.com/rust-lang/rust/pull/72324/
2356 [71843]: https://github.com/rust-lang/rust/pull/71843/
2357 [71886]: https://github.com/rust-lang/rust/pull/71886/
2358 [72234]: https://github.com/rust-lang/rust/pull/72234/
2359 [72239]: https://github.com/rust-lang/rust/pull/72239/
2360 [72397]: https://github.com/rust-lang/rust/pull/72397/
2361 [72413]: https://github.com/rust-lang/rust/pull/72413/
2362 [72014]: https://github.com/rust-lang/rust/pull/72014/
2363 [72062]: https://github.com/rust-lang/rust/pull/72062/
2364 [72094]: https://github.com/rust-lang/rust/pull/72094/
2365 [72133]: https://github.com/rust-lang/rust/pull/72133/
2366 [67759]: https://github.com/rust-lang/rust/pull/67759/
2367 [71900]: https://github.com/rust-lang/rust/pull/71900/
2368 [71928]: https://github.com/rust-lang/rust/pull/71928/
2369 [71662]: https://github.com/rust-lang/rust/pull/71662/
2370 [71716]: https://github.com/rust-lang/rust/pull/71716/
2371 [71447]: https://github.com/rust-lang/rust/pull/71447/
2372 [71269]: https://github.com/rust-lang/rust/pull/71269/
2373 [71095]: https://github.com/rust-lang/rust/pull/71095/
2374 [71140]: https://github.com/rust-lang/rust/pull/71140/
2375 [70655]: https://github.com/rust-lang/rust/pull/70655/
2376 [70705]: https://github.com/rust-lang/rust/pull/70705/
2377 [69984]: https://github.com/rust-lang/rust/pull/69984/
2378 [69813]: https://github.com/rust-lang/rust/pull/69813/
2379 [69464]: https://github.com/rust-lang/rust/pull/69464/
2380 [68717]: https://github.com/rust-lang/rust/pull/68717/
2381 [cargo/8066]: https://github.com/rust-lang/cargo/pull/8066
2382 [`Arc::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.as_ptr
2383 [`BTreeMap::remove_entry`]: https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.remove_entry
2384 [`Rc::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.as_ptr
2385 [`rc::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.as_ptr
2386 [`rc::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.from_raw
2387 [`rc::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.into_raw
2388 [`sync::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.as_ptr
2389 [`sync::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.from_raw
2390 [`sync::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.into_raw
2391 [`str::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_prefix
2392 [`str::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_suffix
2393 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/stable/std/char/constant.UNICODE_VERSION.html
2394 [`Span::resolved_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.resolved_at
2395 [`Span::located_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.located_at
2396 [`Span::mixed_site`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.mixed_site
2397 [`unix::process::CommandExt::arg0`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.arg0
2398
2399
2400 Version 1.44.1 (2020-06-18)
2401 ===========================
2402
2403 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2404 * [Don't hash executable filenames on apple platforms, fixing backtraces.][cargo/8329]
2405 * [Fix crashes when finding backtrace on macOS.][71397]
2406 * [Clippy applies lint levels into different files.][clippy/5356]
2407
2408 [71397]: https://github.com/rust-lang/rust/issues/71397
2409 [73078]: https://github.com/rust-lang/rust/issues/73078
2410 [cargo/8329]: https://github.com/rust-lang/cargo/pull/8329
2411 [clippy/5356]: https://github.com/rust-lang/rust-clippy/issues/5356
2412
2413
2414 Version 1.44.0 (2020-06-04)
2415 ==========================
2416
2417 Language
2418 --------
2419 - [You can now use `async/.await` with `#[no_std]` enabled.][69033]
2420 - [Added the `unused_braces` lint.][70081]
2421
2422 **Syntax-only changes**
2423
2424 - [Expansion-driven outline module parsing][69838]
2425 ```rust
2426 #[cfg(FALSE)]
2427 mod foo {
2428     mod bar {
2429         mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
2430     }
2431 }
2432 ```
2433
2434 These are still rejected semantically, so you will likely receive an error but
2435 these changes can be seen and parsed by macros and conditional compilation.
2436
2437 Compiler
2438 --------
2439 - [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
2440   Additionally when in incremental mode rustc defaults to 256 codegen units.
2441 - [Refactored `catch_unwind` to have zero-cost, unless unwinding is enabled and
2442   a panic is thrown.][67502]
2443 - [Added tier 3\* support for the `aarch64-unknown-none` and
2444   `aarch64-unknown-none-softfloat` targets.][68334]
2445 - [Added tier 3 support for `arm64-apple-tvos` and
2446   `x86_64-apple-tvos` targets.][68191]
2447
2448
2449 Libraries
2450 ---------
2451 - [Special cased `vec![]` to map directly to `Vec::new()`.][70632] This allows
2452   `vec![]` to be able to be used in `const` contexts.
2453 - [`convert::Infallible` now implements `Hash`.][70281]
2454 - [`OsString` now implements `DerefMut` and `IndexMut` returning
2455   a `&mut OsStr`.][70048]
2456 - [Unicode 13 is now supported.][69929]
2457 - [`String` now implements `From<&mut str>`.][69661]
2458 - [`IoSlice` now implements `Copy`.][69403]
2459 - [`Vec<T>` now implements `From<[T; N]>`.][68692] Where `N` is at most 32.
2460 - [`proc_macro::LexError` now implements `fmt::Display` and `Error`.][68899]
2461 - [`from_le_bytes`, `to_le_bytes`, `from_be_bytes`, `to_be_bytes`,
2462   `from_ne_bytes`, and `to_ne_bytes` methods are now `const` for all
2463   integer types.][69373]
2464
2465 Stabilized APIs
2466 ---------------
2467 - [`PathBuf::with_capacity`]
2468 - [`PathBuf::capacity`]
2469 - [`PathBuf::clear`]
2470 - [`PathBuf::reserve`]
2471 - [`PathBuf::reserve_exact`]
2472 - [`PathBuf::shrink_to_fit`]
2473 - [`f32::to_int_unchecked`]
2474 - [`f64::to_int_unchecked`]
2475 - [`Layout::align_to`]
2476 - [`Layout::pad_to_align`]
2477 - [`Layout::array`]
2478 - [`Layout::extend`]
2479
2480 Cargo
2481 -----
2482 - [Added the `cargo tree` command which will print a tree graph of
2483   your dependencies.][cargo/8062] E.g.
2484   ```
2485     mdbook v0.3.2 (/Users/src/rust/mdbook)
2486   ├── ammonia v3.0.0
2487   │   ├── html5ever v0.24.0
2488   │   │   ├── log v0.4.8
2489   │   │   │   └── cfg-if v0.1.9
2490   │   │   ├── mac v0.1.1
2491   │   │   └── markup5ever v0.9.0
2492   │   │       ├── log v0.4.8 (*)
2493   │   │       ├── phf v0.7.24
2494   │   │       │   └── phf_shared v0.7.24
2495   │   │       │       ├── siphasher v0.2.3
2496   │   │       │       └── unicase v1.4.2
2497   │   │       │           [build-dependencies]
2498   │   │       │           └── version_check v0.1.5
2499   ...
2500   ```
2501   You can also display dependencies on multiple versions of the same crate with
2502   `cargo tree -d` (short for `cargo tree --duplicates`).
2503
2504 Misc
2505 ----
2506 - [Rustdoc now allows you to specify `--crate-version` to have rustdoc include
2507   the version in the sidebar.][69494]
2508
2509 Compatibility Notes
2510 -------------------
2511 - [Rustc now correctly generates static libraries on Windows GNU targets with
2512   the `.a` extension, rather than the previous `.lib`.][70937]
2513 - [Removed the `-C no_integrated_as` flag from rustc.][70345]
2514 - [The `file_name` property in JSON output of macro errors now points the actual
2515   source file rather than the previous format of `<NAME macros>`.][70969]
2516   **Note:** this may not point to a file that actually exists on the user's system.
2517 - [The minimum required external LLVM version has been bumped to LLVM 8.][71147]
2518 - [`mem::{zeroed, uninitialised}` will now panic when used with types that do
2519   not allow zero initialization such as `NonZeroU8`.][66059] This was
2520   previously a warning.
2521 - [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
2522   operator has been defined as a saturating operation.][71269] This was previously
2523   undefined behaviour, but you can use the `{f64, f32}::to_int_unchecked` methods to
2524   continue using the current behaviour, which may be desirable in rare performance
2525   sensitive situations.
2526
2527 Internal Only
2528 -------------
2529 These changes provide no direct user facing benefits, but represent significant
2530 improvements to the internals and overall performance of rustc and
2531 related tools.
2532
2533 - [dep_graph Avoid allocating a set on when the number reads are small.][69778]
2534 - [Replace big JS dict with JSON parsing.][71250]
2535
2536 [69373]: https://github.com/rust-lang/rust/pull/69373/
2537 [66059]: https://github.com/rust-lang/rust/pull/66059/
2538 [68191]: https://github.com/rust-lang/rust/pull/68191/
2539 [68899]: https://github.com/rust-lang/rust/pull/68899/
2540 [71147]: https://github.com/rust-lang/rust/pull/71147/
2541 [71250]: https://github.com/rust-lang/rust/pull/71250/
2542 [70937]: https://github.com/rust-lang/rust/pull/70937/
2543 [70969]: https://github.com/rust-lang/rust/pull/70969/
2544 [70632]: https://github.com/rust-lang/rust/pull/70632/
2545 [70281]: https://github.com/rust-lang/rust/pull/70281/
2546 [70345]: https://github.com/rust-lang/rust/pull/70345/
2547 [70048]: https://github.com/rust-lang/rust/pull/70048/
2548 [70081]: https://github.com/rust-lang/rust/pull/70081/
2549 [70156]: https://github.com/rust-lang/rust/pull/70156/
2550 [71269]: https://github.com/rust-lang/rust/pull/71269/
2551 [69838]: https://github.com/rust-lang/rust/pull/69838/
2552 [69929]: https://github.com/rust-lang/rust/pull/69929/
2553 [69661]: https://github.com/rust-lang/rust/pull/69661/
2554 [69778]: https://github.com/rust-lang/rust/pull/69778/
2555 [69494]: https://github.com/rust-lang/rust/pull/69494/
2556 [69403]: https://github.com/rust-lang/rust/pull/69403/
2557 [69033]: https://github.com/rust-lang/rust/pull/69033/
2558 [68692]: https://github.com/rust-lang/rust/pull/68692/
2559 [68334]: https://github.com/rust-lang/rust/pull/68334/
2560 [67502]: https://github.com/rust-lang/rust/pull/67502/
2561 [cargo/8062]: https://github.com/rust-lang/cargo/pull/8062/
2562 [`PathBuf::with_capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.with_capacity
2563 [`PathBuf::capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.capacity
2564 [`PathBuf::clear`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.clear
2565 [`PathBuf::reserve`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve
2566 [`PathBuf::reserve_exact`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve_exact
2567 [`PathBuf::shrink_to_fit`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.shrink_to_fit
2568 [`f32::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_int_unchecked
2569 [`f64::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_int_unchecked
2570 [`Layout::align_to`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.align_to
2571 [`Layout::pad_to_align`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.pad_to_align
2572 [`Layout::array`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.array
2573 [`Layout::extend`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.extend
2574
2575
2576 Version 1.43.1 (2020-05-07)
2577 ===========================
2578
2579 * [Updated openssl-src to 1.1.1g for CVE-2020-1967.][71430]
2580 * [Fixed the stabilization of AVX-512 features.][71473]
2581 * [Fixed `cargo package --list` not working with unpublished dependencies.][cargo/8151]
2582
2583 [71430]: https://github.com/rust-lang/rust/pull/71430
2584 [71473]: https://github.com/rust-lang/rust/issues/71473
2585 [cargo/8151]: https://github.com/rust-lang/cargo/issues/8151
2586
2587
2588 Version 1.43.0 (2020-04-23)
2589 ==========================
2590
2591 Language
2592 --------
2593 - [Fixed using binary operations with `&{number}` (e.g. `&1.0`) not having
2594   the type inferred correctly.][68129]
2595 - [Attributes such as `#[cfg()]` can now be used on `if` expressions.][69201]
2596
2597 **Syntax only changes**
2598 - [Allow `type Foo: Ord` syntactically.][69361]
2599 - [Fuse associated and extern items up to defaultness.][69194]
2600 - [Syntactically allow `self` in all `fn` contexts.][68764]
2601 - [Merge `fn` syntax + cleanup item parsing.][68728]
2602 - [`item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks.][69366]
2603   For example, you may now write:
2604   ```rust
2605   macro_rules! mac_trait {
2606       ($i:item) => {
2607           trait T { $i }
2608       }
2609   }
2610   mac_trait! {
2611       fn foo() {}
2612   }
2613   ```
2614
2615 These are still rejected *semantically*, so you will likely receive an error but
2616 these changes can be seen and parsed by macros and
2617 conditional compilation.
2618
2619
2620 Compiler
2621 --------
2622 - [You can now pass multiple lint flags to rustc to override the previous
2623   flags.][67885] For example; `rustc -D unused -A unused-variables` denies
2624   everything in the `unused` lint group except `unused-variables` which
2625   is explicitly allowed. However, passing `rustc -A unused-variables -D unused` denies
2626   everything in the `unused` lint group **including** `unused-variables` since
2627   the allow flag is specified before the deny flag (and therefore overridden).
2628 - [rustc will now prefer your system MinGW libraries over its bundled libraries
2629   if they are available on `windows-gnu`.][67429]
2630 - [rustc now buffers errors/warnings printed in JSON.][69227]
2631
2632 Libraries
2633 ---------
2634 - [`Arc<[T; N]>`, `Box<[T; N]>`, and `Rc<[T; N]>`, now implement
2635   `TryFrom<Arc<[T]>>`,`TryFrom<Box<[T]>>`, and `TryFrom<Rc<[T]>>`
2636   respectively.][69538] **Note** These conversions are only available when `N`
2637   is `0..=32`.
2638 - [You can now use associated constants on floats and integers directly, rather
2639   than having to import the module.][68952] e.g. You can now write `u32::MAX` or
2640   `f32::NAN` with no imports.
2641 - [`u8::is_ascii` is now `const`.][68984]
2642 - [`String` now implements `AsMut<str>`.][68742]
2643 - [Added the `primitive` module to `std` and `core`.][67637] This module
2644   reexports Rust's primitive types. This is mainly useful in macros
2645   where you want avoid these types being shadowed.
2646 - [Relaxed some of the trait bounds on `HashMap` and `HashSet`.][67642]
2647 - [`string::FromUtf8Error` now implements `Clone + Eq`.][68738]
2648
2649 Stabilized APIs
2650 ---------------
2651 - [`Once::is_completed`]
2652 - [`f32::LOG10_2`]
2653 - [`f32::LOG2_10`]
2654 - [`f64::LOG10_2`]
2655 - [`f64::LOG2_10`]
2656 - [`iter::once_with`]
2657
2658 Cargo
2659 -----
2660 - [You can now set config `[profile]`s in your `.cargo/config`, or through
2661   your environment.][cargo/7823]
2662 - [Cargo will now set `CARGO_BIN_EXE_<name>` pointing to a binary's
2663   executable path when running integration tests or benchmarks.][cargo/7697]
2664   `<name>` is the name of your binary as-is e.g. If you wanted the executable
2665   path for a binary named `my-program`you would use `env!("CARGO_BIN_EXE_my-program")`.
2666
2667 Misc
2668 ----
2669 - [Certain checks in the `const_err` lint were deemed unrelated to const
2670   evaluation][69185], and have been moved to the `unconditional_panic` and
2671   `arithmetic_overflow` lints.
2672
2673 Compatibility Notes
2674 -------------------
2675
2676 - [Having trailing syntax in the `assert!` macro is now a hard error.][69548] This
2677   has been a warning since 1.36.0.
2678 - [Fixed `Self` not having the correctly inferred type.][69340] This incorrectly
2679   led to some instances being accepted, and now correctly emits a hard error.
2680
2681 [69340]: https://github.com/rust-lang/rust/pull/69340
2682
2683 Internal Only
2684 -------------
2685 These changes provide no direct user facing benefits, but represent significant
2686 improvements to the internals and overall performance of `rustc` and
2687 related tools.
2688
2689 - [All components are now built with `opt-level=3` instead of `2`.][67878]
2690 - [Improved how rustc generates drop code.][67332]
2691 - [Improved performance from `#[inline]`-ing certain hot functions.][69256]
2692 - [traits: preallocate 2 Vecs of known initial size][69022]
2693 - [Avoid exponential behaviour when relating types][68772]
2694 - [Skip `Drop` terminators for enum variants without drop glue][68943]
2695 - [Improve performance of coherence checks][68966]
2696 - [Deduplicate types in the generator witness][68672]
2697 - [Invert control in struct_lint_level.][68725]
2698
2699 [67332]: https://github.com/rust-lang/rust/pull/67332/
2700 [67429]: https://github.com/rust-lang/rust/pull/67429/
2701 [67637]: https://github.com/rust-lang/rust/pull/67637/
2702 [67642]: https://github.com/rust-lang/rust/pull/67642/
2703 [67878]: https://github.com/rust-lang/rust/pull/67878/
2704 [67885]: https://github.com/rust-lang/rust/pull/67885/
2705 [68129]: https://github.com/rust-lang/rust/pull/68129/
2706 [68672]: https://github.com/rust-lang/rust/pull/68672/
2707 [68725]: https://github.com/rust-lang/rust/pull/68725/
2708 [68728]: https://github.com/rust-lang/rust/pull/68728/
2709 [68738]: https://github.com/rust-lang/rust/pull/68738/
2710 [68742]: https://github.com/rust-lang/rust/pull/68742/
2711 [68764]: https://github.com/rust-lang/rust/pull/68764/
2712 [68772]: https://github.com/rust-lang/rust/pull/68772/
2713 [68943]: https://github.com/rust-lang/rust/pull/68943/
2714 [68952]: https://github.com/rust-lang/rust/pull/68952/
2715 [68966]: https://github.com/rust-lang/rust/pull/68966/
2716 [68984]: https://github.com/rust-lang/rust/pull/68984/
2717 [69022]: https://github.com/rust-lang/rust/pull/69022/
2718 [69185]: https://github.com/rust-lang/rust/pull/69185/
2719 [69194]: https://github.com/rust-lang/rust/pull/69194/
2720 [69201]: https://github.com/rust-lang/rust/pull/69201/
2721 [69227]: https://github.com/rust-lang/rust/pull/69227/
2722 [69548]: https://github.com/rust-lang/rust/pull/69548/
2723 [69256]: https://github.com/rust-lang/rust/pull/69256/
2724 [69361]: https://github.com/rust-lang/rust/pull/69361/
2725 [69366]: https://github.com/rust-lang/rust/pull/69366/
2726 [69538]: https://github.com/rust-lang/rust/pull/69538/
2727 [cargo/7823]: https://github.com/rust-lang/cargo/pull/7823
2728 [cargo/7697]: https://github.com/rust-lang/cargo/pull/7697
2729 [`Once::is_completed`]: https://doc.rust-lang.org/std/sync/struct.Once.html#method.is_completed
2730 [`f32::LOG10_2`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG10_2.html
2731 [`f32::LOG2_10`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG2_10.html
2732 [`f64::LOG10_2`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG10_2.html
2733 [`f64::LOG2_10`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG2_10.html
2734 [`iter::once_with`]: https://doc.rust-lang.org/std/iter/fn.once_with.html
2735
2736
2737 Version 1.42.0 (2020-03-12)
2738 ==========================
2739
2740 Language
2741 --------
2742 - [You can now use the slice pattern syntax with subslices.][67712] e.g.
2743   ```rust
2744   fn foo(words: &[&str]) {
2745       match words {
2746           ["Hello", "World", "!", ..] => println!("Hello World!"),
2747           ["Foo", "Bar", ..] => println!("Baz"),
2748           rest => println!("{:?}", rest),
2749       }
2750   }
2751   ```
2752 - [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning
2753   that you can create an enum that has the exact layout and ABI of the type
2754   it contains.
2755 - [You can now use outer attribute procedural macros on inline modules.][64273]
2756 - [There are some *syntax-only* changes:][67131]
2757    - `default` is syntactically allowed before items in `trait` definitions.
2758    - Items in `impl`s (i.e. `const`s, `type`s, and `fn`s) may syntactically
2759      leave out their bodies in favor of `;`.
2760    - Bounds on associated types in `impl`s are now syntactically allowed
2761      (e.g. `type Foo: Ord;`).
2762    - `...` (the C-variadic type) may occur syntactically directly as the type of
2763       any function parameter.
2764
2765   These are still rejected *semantically*, so you will likely receive an error
2766   but these changes can be seen and parsed by procedural macros and
2767   conditional compilation.
2768
2769 Compiler
2770 --------
2771 - [Added tier 2\* support for `armv7a-none-eabi`.][68253]
2772 - [Added tier 2 support for `riscv64gc-unknown-linux-gnu`.][68339]
2773 - [`Option::{expect,unwrap}` and
2774    `Result::{expect, expect_err, unwrap, unwrap_err}` now produce panic messages
2775    pointing to the location where they were called, rather than
2776    `core`'s internals. ][67887]
2777
2778 \* Refer to Rust's [platform support page][platform-support-doc] for more
2779 information on Rust's tiered platform support.
2780
2781 Libraries
2782 ---------
2783 - [`iter::Empty<T>` now implements `Send` and `Sync` for any `T`.][68348]
2784 - [`Pin::{map_unchecked, map_unchecked_mut}` no longer require the return type
2785    to implement `Sized`.][67935]
2786 - [`io::Cursor` now derives `PartialEq` and `Eq`.][67233]
2787 - [`Layout::new` is now `const`.][66254]
2788 - [Added Standard Library support for `riscv64gc-unknown-linux-gnu`.][66899]
2789
2790
2791 Stabilized APIs
2792 ---------------
2793 - [`CondVar::wait_while`]
2794 - [`CondVar::wait_timeout_while`]
2795 - [`DebugMap::key`]
2796 - [`DebugMap::value`]
2797 - [`ManuallyDrop::take`]
2798 - [`matches!`]
2799 - [`ptr::slice_from_raw_parts_mut`]
2800 - [`ptr::slice_from_raw_parts`]
2801
2802 Cargo
2803 -----
2804 - [You no longer need to include `extern crate proc_macro;` to be able to
2805   `use proc_macro;` in the `2018` edition.][cargo/7700]
2806
2807 Compatibility Notes
2808 -------------------
2809 - [`Error::description` has been deprecated, and its use will now produce a
2810   warning.][66919] It's recommended to use `Display`/`to_string` instead.
2811
2812 [68253]: https://github.com/rust-lang/rust/pull/68253/
2813 [68348]: https://github.com/rust-lang/rust/pull/68348/
2814 [67935]: https://github.com/rust-lang/rust/pull/67935/
2815 [68339]: https://github.com/rust-lang/rust/pull/68339/
2816 [68122]: https://github.com/rust-lang/rust/pull/68122/
2817 [64273]: https://github.com/rust-lang/rust/pull/64273/
2818 [67712]: https://github.com/rust-lang/rust/pull/67712/
2819 [67887]: https://github.com/rust-lang/rust/pull/67887/
2820 [67131]: https://github.com/rust-lang/rust/pull/67131/
2821 [67233]: https://github.com/rust-lang/rust/pull/67233/
2822 [66899]: https://github.com/rust-lang/rust/pull/66899/
2823 [66919]: https://github.com/rust-lang/rust/pull/66919/
2824 [66254]: https://github.com/rust-lang/rust/pull/66254/
2825 [cargo/7700]: https://github.com/rust-lang/cargo/pull/7700
2826 [`DebugMap::key`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.key
2827 [`DebugMap::value`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.value
2828 [`ManuallyDrop::take`]: https://doc.rust-lang.org/stable/std/mem/struct.ManuallyDrop.html#method.take
2829 [`matches!`]: https://doc.rust-lang.org/stable/std/macro.matches.html
2830 [`ptr::slice_from_raw_parts_mut`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts_mut.html
2831 [`ptr::slice_from_raw_parts`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts.html
2832 [`CondVar::wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while
2833 [`CondVar::wait_timeout_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_timeout_while
2834
2835
2836 Version 1.41.1 (2020-02-27)
2837 ===========================
2838
2839 * [Always check types of static items][69145]
2840 * [Always check lifetime bounds of `Copy` impls][69145]
2841 * [Fix miscompilation in callers of `Layout::repeat`][69225]
2842
2843 [69225]: https://github.com/rust-lang/rust/issues/69225
2844 [69145]: https://github.com/rust-lang/rust/pull/69145
2845
2846
2847 Version 1.41.0 (2020-01-30)
2848 ===========================
2849
2850 Language
2851 --------
2852
2853 - [You can now pass type parameters to foreign items when implementing
2854   traits.][65879] E.g. You can now write `impl<T> From<Foo> for Vec<T> {}`.
2855 - [You can now arbitrarily nest receiver types in the `self` position.][64325] E.g. you can
2856   now write `fn foo(self: Box<Box<Self>>) {}`. Previously only `Self`, `&Self`,
2857   `&mut Self`, `Arc<Self>`, `Rc<Self>`, and `Box<Self>` were allowed.
2858 - [You can now use any valid identifier in a `format_args` macro.][66847]
2859   Previously identifiers starting with an underscore were not allowed.
2860 - [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
2861   enum variants.][66183] These are still rejected semantically, but
2862   can be seen and parsed by procedural macros and conditional compilation.
2863 - [You can now define a Rust `extern "C"` function with `Box<T>` and use `T*` as the corresponding
2864   type on the C side.][62514] Please see [the documentation][box-memory-layout] for more information,
2865   including the important caveat about preferring to avoid `Box<T>` in Rust signatures for functions defined in C.
2866
2867 [box-memory-layout]: https://doc.rust-lang.org/std/boxed/index.html#memory-layout
2868
2869 Compiler
2870 --------
2871
2872 - [Rustc will now warn if you have unused loop `'label`s.][66325]
2873 - [Removed support for the `i686-unknown-dragonfly` target.][67255]
2874 - [Added tier 3 support\* for the `riscv64gc-unknown-linux-gnu` target.][66661]
2875 - [You can now pass an arguments file passing the `@path` syntax
2876   to rustc.][66172] Note that the format differs somewhat from what is
2877   found in other tooling; please see [the documentation][argfile-docs] for
2878   more information.
2879 - [You can now provide `--extern` flag without a path, indicating that it is
2880   available from the search path or specified with an `-L` flag.][64882]
2881
2882 \* Refer to Rust's [platform support page][platform-support-doc] for more
2883 information on Rust's tiered platform support.
2884
2885 [argfile-docs]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#path-load-command-line-flags-from-a-path
2886
2887 Libraries
2888 ---------
2889
2890 - [The `core::panic` module is now stable.][66771] It was already stable
2891   through `std`.
2892 - [`NonZero*` numerics now implement `From<NonZero*>` if it's a smaller integer
2893   width.][66277] E.g. `NonZeroU16` now implements `From<NonZeroU8>`.
2894 - [`MaybeUninit<T>` now implements `fmt::Debug`.][65013]
2895
2896 Stabilized APIs
2897 ---------------
2898
2899 - [`Result::map_or`]
2900 - [`Result::map_or_else`]
2901 - [`std::rc::Weak::weak_count`]
2902 - [`std::rc::Weak::strong_count`]
2903 - [`std::sync::Weak::weak_count`]
2904 - [`std::sync::Weak::strong_count`]
2905
2906 Cargo
2907 -----
2908
2909 - [Cargo will now document all the private items for binary crates
2910   by default.][cargo/7593]
2911 - [`cargo-install` will now reinstall the package if it detects that it is out
2912   of date.][cargo/7560]
2913 - [Cargo.lock now uses a more git friendly format that should help to reduce
2914   merge conflicts.][cargo/7579]
2915 - [You can now override specific dependencies's build settings][cargo/7591] E.g.
2916   `[profile.dev.package.image] opt-level = 2` sets the `image` crate's
2917   optimisation level to `2` for debug builds. You can also use
2918   `[profile.<profile>.build-override]` to override build scripts and
2919   their dependencies.
2920
2921 Misc
2922 ----
2923
2924 - [You can now specify `edition` in documentation code blocks to compile the block
2925   for that edition.][66238] E.g. `edition2018` tells rustdoc that the code sample
2926   should be compiled the 2018 edition of Rust.
2927 - [You can now provide custom themes to rustdoc with `--theme`, and check the
2928   current theme with `--check-theme`.][54733]
2929 - [You can use `#[cfg(doc)]` to compile an item when building documentation.][61351]
2930
2931 Compatibility Notes
2932 -------------------
2933
2934 - [As previously announced 1.41.0 will be the last tier 1 release for 32-bit
2935   Apple targets.][apple-32bit-drop] This means that the source code is still
2936   available to build, but the targets are no longer being tested and release
2937   binaries for those platforms will no longer be distributed by the Rust project.
2938   Please refer to the linked blog post for more information.
2939
2940 [54733]: https://github.com/rust-lang/rust/pull/54733/
2941 [61351]: https://github.com/rust-lang/rust/pull/61351/
2942 [62514]: https://github.com/rust-lang/rust/pull/62514/
2943 [67255]: https://github.com/rust-lang/rust/pull/67255/
2944 [66661]: https://github.com/rust-lang/rust/pull/66661/
2945 [66771]: https://github.com/rust-lang/rust/pull/66771/
2946 [66847]: https://github.com/rust-lang/rust/pull/66847/
2947 [66238]: https://github.com/rust-lang/rust/pull/66238/
2948 [66277]: https://github.com/rust-lang/rust/pull/66277/
2949 [66325]: https://github.com/rust-lang/rust/pull/66325/
2950 [66172]: https://github.com/rust-lang/rust/pull/66172/
2951 [66183]: https://github.com/rust-lang/rust/pull/66183/
2952 [65879]: https://github.com/rust-lang/rust/pull/65879/
2953 [65013]: https://github.com/rust-lang/rust/pull/65013/
2954 [64882]: https://github.com/rust-lang/rust/pull/64882/
2955 [64325]: https://github.com/rust-lang/rust/pull/64325/
2956 [cargo/7560]: https://github.com/rust-lang/cargo/pull/7560/
2957 [cargo/7579]: https://github.com/rust-lang/cargo/pull/7579/
2958 [cargo/7591]: https://github.com/rust-lang/cargo/pull/7591/
2959 [cargo/7593]: https://github.com/rust-lang/cargo/pull/7593/
2960 [`Result::map_or_else`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or_else
2961 [`Result::map_or`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or
2962 [`std::rc::Weak::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.weak_count
2963 [`std::rc::Weak::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.strong_count
2964 [`std::sync::Weak::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.weak_count
2965 [`std::sync::Weak::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.strong_count
2966 [apple-32bit-drop]: https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html
2967
2968 Version 1.40.0 (2019-12-19)
2969 ===========================
2970
2971 Language
2972 --------
2973 - [You can now use tuple `struct`s and tuple `enum` variant's constructors in
2974   `const` contexts.][65188] e.g.
2975
2976   ```rust
2977   pub struct Point(i32, i32);
2978
2979   const ORIGIN: Point = {
2980       let constructor = Point;
2981
2982       constructor(0, 0)
2983   };
2984   ```
2985
2986 - [You can now mark `struct`s, `enum`s, and `enum` variants with the `#[non_exhaustive]` attribute to
2987   indicate that there may be variants or fields added in the future.][64639]
2988   For example this requires adding a wild-card branch (`_ => {}`) to any match
2989   statements on a non-exhaustive `enum`. [(RFC 2008)]
2990 - [You can now use function-like procedural macros in `extern` blocks and in
2991   type positions.][63931] e.g. `type Generated = macro!();`
2992 - [Function-like and attribute procedural macros can now emit
2993   `macro_rules!` items, so you can now have your macros generate macros.][64035]
2994 - [The `meta` pattern matcher in `macro_rules!` now correctly matches the modern
2995   attribute syntax.][63674] For example `(#[$m:meta])` now matches `#[attr]`,
2996   `#[attr{tokens}]`, `#[attr[tokens]]`, and `#[attr(tokens)]`.
2997
2998 Compiler
2999 --------
3000 - [Added tier 3 support\* for the
3001   `thumbv7neon-unknown-linux-musleabihf` target.][66103]
3002 - [Added tier 3 support for the
3003   `aarch64-unknown-none-softfloat` target.][64589]
3004 - [Added tier 3 support for the `mips64-unknown-linux-muslabi64`, and
3005   `mips64el-unknown-linux-muslabi64` targets.][65843]
3006
3007 \* Refer to Rust's [platform support page][platform-support-doc] for more
3008   information on Rust's tiered platform support.
3009
3010 Libraries
3011 ---------
3012 - [The `is_power_of_two` method on unsigned numeric types is now a `const` function.][65092]
3013
3014 Stabilized APIs
3015 ---------------
3016 - [`BTreeMap::get_key_value`]
3017 - [`HashMap::get_key_value`]
3018 - [`Option::as_deref_mut`]
3019 - [`Option::as_deref`]
3020 - [`Option::flatten`]
3021 - [`UdpSocket::peer_addr`]
3022 - [`f32::to_be_bytes`]
3023 - [`f32::to_le_bytes`]
3024 - [`f32::to_ne_bytes`]
3025 - [`f64::to_be_bytes`]
3026 - [`f64::to_le_bytes`]
3027 - [`f64::to_ne_bytes`]
3028 - [`f32::from_be_bytes`]
3029 - [`f32::from_le_bytes`]
3030 - [`f32::from_ne_bytes`]
3031 - [`f64::from_be_bytes`]
3032 - [`f64::from_le_bytes`]
3033 - [`f64::from_ne_bytes`]
3034 - [`mem::take`]
3035 - [`slice::repeat`]
3036 - [`todo!`]
3037
3038 Cargo
3039 -----
3040 - [Cargo will now always display warnings, rather than only on
3041   fresh builds.][cargo/7450]
3042 - [Feature flags (except `--all-features`) passed to a virtual workspace will
3043   now produce an error.][cargo/7507] Previously these flags were ignored.
3044 - [You can now publish `dev-dependencies` without including
3045   a `version`.][cargo/7333]
3046
3047 Misc
3048 ----
3049 - [You can now specify the `#[cfg(doctest)]` attribute to include an item only
3050   when running documentation tests with `rustdoc`.][63803]
3051
3052 Compatibility Notes
3053 -------------------
3054 - [As previously announced, any previous NLL warnings in the 2015 edition are
3055   now hard errors.][64221]
3056 - [The `include!` macro will now warn if it failed to include the
3057   entire file.][64284] The `include!` macro unintentionally only includes the
3058   first _expression_ in a file, and this can be unintuitive. This will become
3059   either a hard error in a future release, or the behavior may be fixed to include all expressions as expected.
3060 - [Using `#[inline]` on function prototypes and consts now emits a warning under
3061   `unused_attribute` lint.][65294] Using `#[inline]` anywhere else inside traits
3062   or `extern` blocks now correctly emits a hard error.
3063
3064 [65294]: https://github.com/rust-lang/rust/pull/65294/
3065 [66103]: https://github.com/rust-lang/rust/pull/66103/
3066 [65843]: https://github.com/rust-lang/rust/pull/65843/
3067 [65188]: https://github.com/rust-lang/rust/pull/65188/
3068 [65092]: https://github.com/rust-lang/rust/pull/65092/
3069 [64589]: https://github.com/rust-lang/rust/pull/64589/
3070 [64639]: https://github.com/rust-lang/rust/pull/64639/
3071 [64221]: https://github.com/rust-lang/rust/pull/64221/
3072 [64284]: https://github.com/rust-lang/rust/pull/64284/
3073 [63931]: https://github.com/rust-lang/rust/pull/63931/
3074 [64035]: https://github.com/rust-lang/rust/pull/64035/
3075 [63674]: https://github.com/rust-lang/rust/pull/63674/
3076 [63803]: https://github.com/rust-lang/rust/pull/63803/
3077 [cargo/7450]: https://github.com/rust-lang/cargo/pull/7450/
3078 [cargo/7507]: https://github.com/rust-lang/cargo/pull/7507/
3079 [cargo/7333]: https://github.com/rust-lang/cargo/pull/7333/
3080 [(rfc 2008)]: https://rust-lang.github.io/rfcs/2008-non-exhaustive.html
3081 [`f32::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_be_bytes
3082 [`f32::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_le_bytes
3083 [`f32::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_ne_bytes
3084 [`f64::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_be_bytes
3085 [`f64::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_le_bytes
3086 [`f64::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_ne_bytes
3087 [`f32::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_be_bytes
3088 [`f32::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_le_bytes
3089 [`f32::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_ne_bytes
3090 [`f64::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_be_bytes
3091 [`f64::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_le_bytes
3092 [`f64::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_ne_bytes
3093 [`option::flatten`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.flatten
3094 [`option::as_deref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref
3095 [`option::as_deref_mut`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref_mut
3096 [`hashmap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.get_key_value
3097 [`btreemap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.get_key_value
3098 [`slice::repeat`]: https://doc.rust-lang.org/std/primitive.slice.html#method.repeat
3099 [`mem::take`]: https://doc.rust-lang.org/std/mem/fn.take.html
3100 [`udpsocket::peer_addr`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peer_addr
3101 [`todo!`]: https://doc.rust-lang.org/std/macro.todo.html
3102
3103
3104 Version 1.39.0 (2019-11-07)
3105 ===========================
3106
3107 Language
3108 --------
3109 - [You can now create `async` functions and blocks with `async fn`, `async move {}`, and
3110   `async {}` respectively, and you can now call `.await` on async expressions.][63209]
3111 - [You can now use certain attributes on function, closure, and function pointer
3112   parameters.][64010] These attributes include `cfg`, `cfg_attr`, `allow`, `warn`,
3113   `deny`, `forbid` as well as inert helper attributes used by procedural macro
3114   attributes applied to items. e.g.
3115   ```rust
3116   fn len(
3117       #[cfg(windows)] slice: &[u16],
3118       #[cfg(not(windows))] slice: &[u8],
3119   ) -> usize {
3120       slice.len()
3121   }
3122   ```
3123 - [You can now take shared references to bind-by-move patterns in the `if` guards
3124   of `match` arms.][63118] e.g.
3125   ```rust
3126   fn main() {
3127       let array: Box<[u8; 4]> = Box::new([1, 2, 3, 4]);
3128
3129       match array {
3130           nums
3131   //      ---- `nums` is bound by move.
3132               if nums.iter().sum::<u8>() == 10
3133   //                 ^------ `.iter()` implicitly takes a reference to `nums`.
3134           => {
3135               drop(nums);
3136   //          ----------- Legal as `nums` was bound by move and so we have ownership.
3137           }
3138           _ => unreachable!(),
3139       }
3140   }
3141   ```
3142
3143
3144
3145 Compiler
3146 --------
3147 - [Added tier 3\* support for the `i686-unknown-uefi` target.][64334]
3148 - [Added tier 3 support for the `sparc64-unknown-openbsd` target.][63595]
3149 - [rustc will now trim code snippets in diagnostics to fit in your terminal.][63402]
3150   **Note** Cargo currently doesn't use this feature. Refer to
3151   [cargo#7315][cargo/7315] to track this feature's progress.
3152 - [You can now pass `--show-output` argument to test binaries to print the
3153   output of successful tests.][62600]
3154
3155
3156 \* Refer to Rust's [platform support page][platform-support-doc] for more
3157 information on Rust's tiered platform support.
3158
3159 Libraries
3160 ---------
3161 - [`Vec::new` and `String::new` are now `const` functions.][64028]
3162 - [`LinkedList::new` is now a `const` function.][63684]
3163 - [`str::len`, `[T]::len` and `str::as_bytes` are now `const` functions.][63770]
3164 - [The `abs`, `wrapping_abs`, and `overflowing_abs` numeric functions are
3165   now `const`.][63786]
3166
3167 Stabilized APIs
3168 ---------------
3169 - [`Pin::into_inner`]
3170 - [`Instant::checked_duration_since`]
3171 - [`Instant::saturating_duration_since`]
3172
3173 Cargo
3174 -----
3175 - [You can now publish git dependencies if supplied with a `version`.][cargo/7237]
3176 - [The `--all` flag has been renamed to `--workspace`.][cargo/7241] Using
3177   `--all` is now deprecated.
3178
3179 Misc
3180 ----
3181 - [You can now pass `-Clinker` to rustdoc to control the linker used
3182   for compiling doctests.][63834]
3183
3184 Compatibility Notes
3185 -------------------
3186 - [Code that was previously accepted by the old borrow checker, but rejected by
3187   the NLL borrow checker is now a hard error in Rust 2018.][63565] This was
3188   previously a warning, and will also become a hard error in the Rust 2015
3189   edition in the 1.40.0 release.
3190 - [`rustdoc` now requires `rustc` to be installed and in the same directory to
3191   run tests.][63827] This should improve performance when running a large
3192   amount of doctests.
3193 - [The `try!` macro will now issue a deprecation warning.][62672] It is
3194   recommended to use the `?` operator instead.
3195 - [`asinh(-0.0)` now correctly returns `-0.0`.][63698] Previously this
3196   returned `0.0`.
3197
3198 [62600]: https://github.com/rust-lang/rust/pull/62600/
3199 [62672]: https://github.com/rust-lang/rust/pull/62672/
3200 [63118]: https://github.com/rust-lang/rust/pull/63118/
3201 [63209]: https://github.com/rust-lang/rust/pull/63209/
3202 [63402]: https://github.com/rust-lang/rust/pull/63402/
3203 [63565]: https://github.com/rust-lang/rust/pull/63565/
3204 [63595]: https://github.com/rust-lang/rust/pull/63595/
3205 [63684]: https://github.com/rust-lang/rust/pull/63684/
3206 [63698]: https://github.com/rust-lang/rust/pull/63698/
3207 [63770]: https://github.com/rust-lang/rust/pull/63770/
3208 [63786]: https://github.com/rust-lang/rust/pull/63786/
3209 [63827]: https://github.com/rust-lang/rust/pull/63827/
3210 [63834]: https://github.com/rust-lang/rust/pull/63834/
3211 [64010]: https://github.com/rust-lang/rust/pull/64010/
3212 [64028]: https://github.com/rust-lang/rust/pull/64028/
3213 [64334]: https://github.com/rust-lang/rust/pull/64334/
3214 [cargo/7237]: https://github.com/rust-lang/cargo/pull/7237/
3215 [cargo/7241]: https://github.com/rust-lang/cargo/pull/7241/
3216 [cargo/7315]: https://github.com/rust-lang/cargo/pull/7315/
3217 [`Pin::into_inner`]: https://doc.rust-lang.org/std/pin/struct.Pin.html#method.into_inner
3218 [`Instant::checked_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_duration_since
3219 [`Instant::saturating_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.saturating_duration_since
3220
3221 Version 1.38.0 (2019-09-26)
3222 ==========================
3223
3224 Language
3225 --------
3226 - [The `#[global_allocator]` attribute can now be used in submodules.][62735]
3227 - [The `#[deprecated]` attribute can now be used on macros.][62042]
3228
3229 Compiler
3230 --------
3231 - [Added pipelined compilation support to `rustc`.][62766] This will
3232   improve compilation times in some cases. For further information please refer
3233   to the [_"Evaluating pipelined rustc compilation"_][pipeline-internals] thread.
3234 - [Added tier 3\* support for the `aarch64-uwp-windows-msvc`, `i686-uwp-windows-gnu`,
3235   `i686-uwp-windows-msvc`, `x86_64-uwp-windows-gnu`, and
3236   `x86_64-uwp-windows-msvc` targets.][60260]
3237 - [Added tier 3 support for the `armv7-unknown-linux-gnueabi` and
3238   `armv7-unknown-linux-musleabi` targets.][63107]
3239 - [Added tier 3 support for the `hexagon-unknown-linux-musl` target.][62814]
3240 - [Added tier 3 support for the `riscv32i-unknown-none-elf` target.][62784]
3241 - [Upgraded to LLVM 9.][62592]
3242
3243 \* Refer to Rust's [platform support page][platform-support-doc] for more
3244 information on Rust's tiered platform support.
3245
3246 Libraries
3247 ---------
3248 - [`ascii::EscapeDefault` now implements `Clone` and `Display`.][63421]
3249 - [Derive macros for prelude traits (e.g. `Clone`, `Debug`, `Hash`) are now
3250   available at the same path as the trait.][63056] (e.g. The `Clone` derive macro
3251   is available at `std::clone::Clone`). This also makes all built-in macros
3252   available in `std`/`core` root. e.g. `std::include_bytes!`.
3253 - [`str::Chars` now implements `Debug`.][63000]
3254 - [`slice::{concat, connect, join}` now accepts `&[T]` in addition to `&T`.][62528]
3255 - [`*const T` and `*mut T` now implement `marker::Unpin`.][62583]
3256 - [`Arc<[T]>` and `Rc<[T]>` now implement `FromIterator<T>`.][61953]
3257 - [Added euclidean remainder and division operations (`div_euclid`,
3258   `rem_euclid`) to all numeric primitives.][61884] Additionally `checked`,
3259   `overflowing`, and `wrapping` versions are available for all
3260   integer primitives.
3261 - [`thread::AccessError` now implements `Clone`, `Copy`, `Eq`, `Error`, and
3262   `PartialEq`.][61491]
3263 - [`iter::{StepBy, Peekable, Take}` now implement `DoubleEndedIterator`.][61457]
3264
3265 Stabilized APIs
3266 ---------------
3267 - [`<*const T>::cast`]
3268 - [`<*mut T>::cast`]
3269 - [`Duration::as_secs_f32`]
3270 - [`Duration::as_secs_f64`]
3271 - [`Duration::div_f32`]
3272 - [`Duration::div_f64`]
3273 - [`Duration::from_secs_f32`]
3274 - [`Duration::from_secs_f64`]
3275 - [`Duration::mul_f32`]
3276 - [`Duration::mul_f64`]
3277 - [`any::type_name`]
3278
3279 Cargo
3280 -----
3281 - [Added pipelined compilation support to `cargo`.][cargo/7143]
3282 - [You can now pass the `--features` option multiple times to enable
3283   multiple features.][cargo/7084]
3284
3285 Rustdoc
3286 -------
3287
3288 - [Documentation on `pub use` statements is prepended to the documentation of the re-exported item][63048]
3289
3290 Misc
3291 ----
3292 - [`rustc` will now warn about some incorrect uses of
3293   `mem::{uninitialized, zeroed}` that are known to cause undefined behaviour.][63346]
3294
3295 Compatibility Notes
3296 -------------------
3297 - The [`x86_64-unknown-uefi` platform can not be built][62785] with rustc
3298   1.38.0.
3299 - The [`armv7-unknown-linux-gnueabihf` platform is known to have
3300   issues][62896] with certain crates such as libc.
3301
3302 [60260]: https://github.com/rust-lang/rust/pull/60260/
3303 [61457]: https://github.com/rust-lang/rust/pull/61457/
3304 [61491]: https://github.com/rust-lang/rust/pull/61491/
3305 [61884]: https://github.com/rust-lang/rust/pull/61884/
3306 [61953]: https://github.com/rust-lang/rust/pull/61953/
3307 [62042]: https://github.com/rust-lang/rust/pull/62042/
3308 [62528]: https://github.com/rust-lang/rust/pull/62528/
3309 [62583]: https://github.com/rust-lang/rust/pull/62583/
3310 [62735]: https://github.com/rust-lang/rust/pull/62735/
3311 [62766]: https://github.com/rust-lang/rust/pull/62766/
3312 [62784]: https://github.com/rust-lang/rust/pull/62784/
3313 [62592]: https://github.com/rust-lang/rust/pull/62592/
3314 [62785]: https://github.com/rust-lang/rust/issues/62785/
3315 [62814]: https://github.com/rust-lang/rust/pull/62814/
3316 [62896]: https://github.com/rust-lang/rust/issues/62896/
3317 [63000]: https://github.com/rust-lang/rust/pull/63000/
3318 [63056]: https://github.com/rust-lang/rust/pull/63056/
3319 [63107]: https://github.com/rust-lang/rust/pull/63107/
3320 [63346]: https://github.com/rust-lang/rust/pull/63346/
3321 [63421]: https://github.com/rust-lang/rust/pull/63421/
3322 [cargo/7084]: https://github.com/rust-lang/cargo/pull/7084/
3323 [cargo/7143]: https://github.com/rust-lang/cargo/pull/7143/
3324 [63048]: https://github.com/rust-lang/rust/pull/63048
3325 [`<*const T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3326 [`<*mut T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3327 [`Duration::as_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f32
3328 [`Duration::as_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f64
3329 [`Duration::div_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f32
3330 [`Duration::div_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f64
3331 [`Duration::from_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f32
3332 [`Duration::from_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f64
3333 [`Duration::mul_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f32
3334 [`Duration::mul_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f64
3335 [`any::type_name`]: https://doc.rust-lang.org/std/any/fn.type_name.html
3336 [platform-support-doc]: https://doc.rust-lang.org/nightly/rustc/platform-support.html
3337 [pipeline-internals]: https://internals.rust-lang.org/t/evaluating-pipelined-rustc-compilation/10199
3338
3339 Version 1.37.0 (2019-08-15)
3340 ==========================
3341
3342 Language
3343 --------
3344 - `#[must_use]` will now warn if the type is contained in a [tuple][61100],
3345   [`Box`][62228], or an [array][62235] and unused.
3346 - [You can now use the `cfg` and `cfg_attr` attributes on
3347   generic parameters.][61547]
3348 - [You can now use enum variants through type alias.][61682] e.g. You can
3349   write the following:
3350   ```rust
3351   type MyOption = Option<u8>;
3352
3353   fn increment_or_zero(x: MyOption) -> u8 {
3354       match x {
3355           MyOption::Some(y) => y + 1,
3356           MyOption::None => 0,
3357       }
3358   }
3359   ```
3360 - [You can now use `_` as an identifier for consts.][61347] e.g. You can write
3361   `const _: u32 = 5;`.
3362 - [You can now use `#[repr(align(X)]` on enums.][61229]
3363 - [The  `?` Kleene macro operator is now available in the
3364   2015 edition.][60932]
3365
3366 Compiler
3367 --------
3368 - [You can now enable Profile-Guided Optimization with the `-C profile-generate`
3369   and `-C profile-use` flags.][61268] For more information on how to use profile
3370   guided optimization, please refer to the [rustc book][rustc-book-pgo].
3371 - [The `rust-lldb` wrapper script should now work again.][61827]
3372
3373 Libraries
3374 ---------
3375 - [`mem::MaybeUninit<T>` is now ABI-compatible with `T`.][61802]
3376
3377 Stabilized APIs
3378 ---------------
3379 - [`BufReader::buffer`]
3380 - [`BufWriter::buffer`]
3381 - [`Cell::from_mut`]
3382 - [`Cell<[T]>::as_slice_of_cells`][`Cell<slice>::as_slice_of_cells`]
3383 - [`DoubleEndedIterator::nth_back`]
3384 - [`Option::xor`]
3385 - [`Wrapping::reverse_bits`]
3386 - [`i128::reverse_bits`]
3387 - [`i16::reverse_bits`]
3388 - [`i32::reverse_bits`]
3389 - [`i64::reverse_bits`]
3390 - [`i8::reverse_bits`]
3391 - [`isize::reverse_bits`]
3392 - [`slice::copy_within`]
3393 - [`u128::reverse_bits`]
3394 - [`u16::reverse_bits`]
3395 - [`u32::reverse_bits`]
3396 - [`u64::reverse_bits`]
3397 - [`u8::reverse_bits`]
3398 - [`usize::reverse_bits`]
3399
3400 Cargo
3401 -----
3402 - [`Cargo.lock` files are now included by default when publishing executable crates
3403   with executables.][cargo/7026]
3404 - [You can now specify `default-run="foo"` in `[package]` to specify the
3405   default executable to use for `cargo run`.][cargo/7056]
3406
3407 Misc
3408 ----
3409
3410 Compatibility Notes
3411 -------------------
3412 - [Using `...` for inclusive range patterns will now warn by default.][61342]
3413   Please transition your code to using the `..=` syntax for inclusive
3414   ranges instead.
3415 - [Using a trait object without the `dyn` will now warn by default.][61203]
3416   Please transition your code to use `dyn Trait` for trait objects instead.
3417
3418 [62228]: https://github.com/rust-lang/rust/pull/62228/
3419 [62235]: https://github.com/rust-lang/rust/pull/62235/
3420 [61802]: https://github.com/rust-lang/rust/pull/61802/
3421 [61827]: https://github.com/rust-lang/rust/pull/61827/
3422 [61547]: https://github.com/rust-lang/rust/pull/61547/
3423 [61682]: https://github.com/rust-lang/rust/pull/61682/
3424 [61268]: https://github.com/rust-lang/rust/pull/61268/
3425 [61342]: https://github.com/rust-lang/rust/pull/61342/
3426 [61347]: https://github.com/rust-lang/rust/pull/61347/
3427 [61100]: https://github.com/rust-lang/rust/pull/61100/
3428 [61203]: https://github.com/rust-lang/rust/pull/61203/
3429 [61229]: https://github.com/rust-lang/rust/pull/61229/
3430 [60932]: https://github.com/rust-lang/rust/pull/60932/
3431 [cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/
3432 [cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/
3433 [`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer
3434 [`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer
3435 [`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut
3436 [`Cell<slice>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells
3437 [`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back
3438 [`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor
3439 [`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits
3440 [`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits
3441 [`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits
3442 [`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits
3443 [`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits
3444 [`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits
3445 [`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits
3446 [`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within
3447 [`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits
3448 [`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits
3449 [`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits
3450 [`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits
3451 [`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits
3452 [`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits
3453 [rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html
3454
3455
3456 Version 1.36.0 (2019-07-04)
3457 ==========================
3458
3459 Language
3460 --------
3461 - [Non-Lexical Lifetimes are now enabled on the 2015 edition.][59114]
3462 - [The order of traits in trait objects no longer affects the semantics of that
3463   object.][59445] e.g. `dyn Send + fmt::Debug` is now equivalent to
3464   `dyn fmt::Debug + Send`, where this was previously not the case.
3465
3466 Libraries
3467 ---------
3468 - [`HashMap`'s implementation has been replaced with `hashbrown::HashMap` implementation.][58623]
3469 - [`TryFromSliceError` now implements `From<Infallible>`.][60318]
3470 - [`mem::needs_drop` is now available as a const fn.][60364]
3471 - [`alloc::Layout::from_size_align_unchecked` is now available as a const fn.][60370]
3472 - [`String` now implements `BorrowMut<str>`.][60404]
3473 - [`io::Cursor` now implements `Default`.][60234]
3474 - [Both `NonNull::{dangling, cast}` are now const fns.][60244]
3475 - [The `alloc` crate is now stable.][59675] `alloc` allows you to use a subset
3476   of `std` (e.g. `Vec`, `Box`, `Arc`) in `#![no_std]` environments if the
3477   environment has access to heap memory allocation.
3478 - [`String` now implements `From<&String>`.][59825]
3479 - [You can now pass multiple arguments to the `dbg!` macro.][59826] `dbg!` will
3480   return a tuple of each argument when there is multiple arguments.
3481 - [`Result::{is_err, is_ok}` are now `#[must_use]` and will produce a warning if
3482   not used.][59648]
3483
3484 Stabilized APIs
3485 ---------------
3486 - [`VecDeque::rotate_left`]
3487 - [`VecDeque::rotate_right`]
3488 - [`Iterator::copied`]
3489 - [`io::IoSlice`]
3490 - [`io::IoSliceMut`]
3491 - [`Read::read_vectored`]
3492 - [`Write::write_vectored`]
3493 - [`str::as_mut_ptr`]
3494 - [`mem::MaybeUninit`]
3495 - [`pointer::align_offset`]
3496 - [`future::Future`]
3497 - [`task::Context`]
3498 - [`task::RawWaker`]
3499 - [`task::RawWakerVTable`]
3500 - [`task::Waker`]
3501 - [`task::Poll`]
3502
3503 Cargo
3504 -----
3505 - [Cargo will now produce an error if you attempt to use the name of a required dependency as a feature.][cargo/6860]
3506 - [You can now pass the `--offline` flag to run cargo without accessing the network.][cargo/6934]
3507
3508 You can find further change's in [Cargo's 1.36.0 release notes][cargo-1-36-0].
3509
3510 Clippy
3511 ------
3512 There have been numerous additions and fixes to clippy, see [Clippy's 1.36.0 release notes][clippy-1-36-0] for more details.
3513
3514 Misc
3515 ----
3516
3517 Compatibility Notes
3518 -------------------
3519 - With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no
3520   longer recommended, and will be deprecated in 1.39.0.
3521
3522 [60318]: https://github.com/rust-lang/rust/pull/60318/
3523 [60364]: https://github.com/rust-lang/rust/pull/60364/
3524 [60370]: https://github.com/rust-lang/rust/pull/60370/
3525 [60404]: https://github.com/rust-lang/rust/pull/60404/
3526 [60234]: https://github.com/rust-lang/rust/pull/60234/
3527 [60244]: https://github.com/rust-lang/rust/pull/60244/
3528 [58623]: https://github.com/rust-lang/rust/pull/58623/
3529 [59648]: https://github.com/rust-lang/rust/pull/59648/
3530 [59675]: https://github.com/rust-lang/rust/pull/59675/
3531 [59825]: https://github.com/rust-lang/rust/pull/59825/
3532 [59826]: https://github.com/rust-lang/rust/pull/59826/
3533 [59445]: https://github.com/rust-lang/rust/pull/59445/
3534 [59114]: https://github.com/rust-lang/rust/pull/59114/
3535 [cargo/6860]: https://github.com/rust-lang/cargo/pull/6860/
3536 [cargo/6934]: https://github.com/rust-lang/cargo/pull/6934/
3537 [`VecDeque::rotate_left`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_left
3538 [`VecDeque::rotate_right`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_right
3539 [`Iterator::copied`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#tymethod.copied
3540 [`io::IoSlice`]: https://doc.rust-lang.org/std/io/struct.IoSlice.html
3541 [`io::IoSliceMut`]: https://doc.rust-lang.org/std/io/struct.IoSliceMut.html
3542 [`Read::read_vectored`]: https://doc.rust-lang.org/std/io/trait.Read.html#method.read_vectored
3543 [`Write::write_vectored`]: https://doc.rust-lang.org/std/io/trait.Write.html#method.write_vectored
3544 [`str::as_mut_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_mut_ptr
3545 [`mem::MaybeUninit`]: https://doc.rust-lang.org/std/mem/union.MaybeUninit.html
3546 [`pointer::align_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.align_offset
3547 [`future::Future`]: https://doc.rust-lang.org/std/future/trait.Future.html
3548 [`task::Context`]: https://doc.rust-lang.org/beta/std/task/struct.Context.html
3549 [`task::RawWaker`]: https://doc.rust-lang.org/beta/std/task/struct.RawWaker.html
3550 [`task::RawWakerVTable`]: https://doc.rust-lang.org/beta/std/task/struct.RawWakerVTable.html
3551 [`task::Waker`]: https://doc.rust-lang.org/beta/std/task/struct.Waker.html
3552 [`task::Poll`]: https://doc.rust-lang.org/beta/std/task/enum.Poll.html
3553 [clippy-1-36-0]: https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-136
3554 [cargo-1-36-0]: https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-136-2019-07-04
3555
3556
3557 Version 1.35.0 (2019-05-23)
3558 ==========================
3559
3560 Language
3561 --------
3562 - [`FnOnce`, `FnMut`, and the `Fn` traits are now implemented for `Box<FnOnce>`,
3563   `Box<FnMut>`, and `Box<Fn>` respectively.][59500]
3564 - [You can now coerce closures into unsafe function pointers.][59580] e.g.
3565   ```rust
3566   unsafe fn call_unsafe(func: unsafe fn()) {
3567       func()
3568   }
3569
3570   pub fn main() {
3571       unsafe { call_unsafe(|| {}); }
3572   }
3573   ```
3574
3575
3576 Compiler
3577 --------
3578 - [Added the `armv6-unknown-freebsd-gnueabihf` and
3579   `armv7-unknown-freebsd-gnueabihf` targets.][58080]
3580 - [Added the `wasm32-unknown-wasi` target.][59464]
3581
3582
3583 Libraries
3584 ---------
3585 - [`Thread` will now show its ID in `Debug` output.][59460]
3586 - [`StdinLock`, `StdoutLock`, and `StderrLock` now implement `AsRawFd`.][59512]
3587 - [`alloc::System` now implements `Default`.][59451]
3588 - [Expanded `Debug` output (`{:#?}`) for structs now has a trailing comma on the
3589   last field.][59076]
3590 - [`char::{ToLowercase, ToUppercase}` now
3591   implement `ExactSizeIterator`.][58778]
3592 - [All `NonZero` numeric types now implement `FromStr`.][58717]
3593 - [Removed the `Read` trait bounds
3594   on the `BufReader::{get_ref, get_mut, into_inner}` methods.][58423]
3595 - [You can now call the `dbg!` macro without any parameters to print the file
3596   and line where it is called.][57847]
3597 - [In place ASCII case conversions are now up to 4× faster.][59283]
3598   e.g. `str::make_ascii_lowercase`
3599 - [`hash_map::{OccupiedEntry, VacantEntry}` now implement `Sync`
3600   and `Send`.][58369]
3601
3602 Stabilized APIs
3603 ---------------
3604 - [`f32::copysign`]
3605 - [`f64::copysign`]
3606 - [`RefCell::replace_with`]
3607 - [`RefCell::map_split`]
3608 - [`ptr::hash`]
3609 - [`Range::contains`]
3610 - [`RangeFrom::contains`]
3611 - [`RangeTo::contains`]
3612 - [`RangeInclusive::contains`]
3613 - [`RangeToInclusive::contains`]
3614 - [`Option::copied`]
3615
3616 Cargo
3617 -----
3618 - [You can now set `cargo:rustc-cdylib-link-arg` at build time to pass custom
3619   linker arguments when building a `cdylib`.][cargo/6298] Its usage is highly
3620   platform specific.
3621
3622 Misc
3623 ----
3624 - [The Rust toolchain is now available natively for musl based distros.][58575]
3625
3626 [59460]: https://github.com/rust-lang/rust/pull/59460/
3627 [59464]: https://github.com/rust-lang/rust/pull/59464/
3628 [59500]: https://github.com/rust-lang/rust/pull/59500/
3629 [59512]: https://github.com/rust-lang/rust/pull/59512/
3630 [59580]: https://github.com/rust-lang/rust/pull/59580/
3631 [59283]: https://github.com/rust-lang/rust/pull/59283/
3632 [59451]: https://github.com/rust-lang/rust/pull/59451/
3633 [59076]: https://github.com/rust-lang/rust/pull/59076/
3634 [58778]: https://github.com/rust-lang/rust/pull/58778/
3635 [58717]: https://github.com/rust-lang/rust/pull/58717/
3636 [58369]: https://github.com/rust-lang/rust/pull/58369/
3637 [58423]: https://github.com/rust-lang/rust/pull/58423/
3638 [58080]: https://github.com/rust-lang/rust/pull/58080/
3639 [57847]: https://github.com/rust-lang/rust/pull/57847/
3640 [58575]: https://github.com/rust-lang/rust/pull/58575
3641 [cargo/6298]: https://github.com/rust-lang/cargo/pull/6298/
3642 [`f32::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.copysign
3643 [`f64::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.copysign
3644 [`RefCell::replace_with`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.replace_with
3645 [`RefCell::map_split`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.map_split
3646 [`ptr::hash`]: https://doc.rust-lang.org/stable/std/ptr/fn.hash.html
3647 [`Range::contains`]: https://doc.rust-lang.org/std/ops/struct.Range.html#method.contains
3648 [`RangeFrom::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeFrom.html#method.contains
3649 [`RangeTo::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeTo.html#method.contains
3650 [`RangeInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.contains
3651 [`RangeToInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html#method.contains
3652 [`Option::copied`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.copied
3653
3654 Version 1.34.2 (2019-05-14)
3655 ===========================
3656
3657 * [Destabilize the `Error::type_id` function due to a security
3658    vulnerability][60785] ([CVE-2019-12083])
3659
3660 [60785]: https://github.com/rust-lang/rust/pull/60785
3661 [CVE-2019-12083]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12083
3662
3663 Version 1.34.1 (2019-04-25)
3664 ===========================
3665
3666 * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821]
3667 * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844]
3668 * [Fix Clippy panic when checking some macros][clippy/3805]
3669
3670 [clippy/3821]: https://github.com/rust-lang/rust-clippy/pull/3821
3671 [clippy/3844]: https://github.com/rust-lang/rust-clippy/pull/3844
3672 [clippy/3805]: https://github.com/rust-lang/rust-clippy/pull/3805
3673
3674 Version 1.34.0 (2019-04-11)
3675 ==========================
3676
3677 Language
3678 --------
3679 - [You can now use `#[deprecated = "reason"]`][58166] as a shorthand for
3680   `#[deprecated(note = "reason")]`. This was previously allowed by mistake
3681   but had no effect.
3682 - [You can now accept token streams in `#[attr()]`,`#[attr[]]`, and
3683   `#[attr{}]` procedural macros.][57367]
3684 - [You can now write `extern crate self as foo;`][57407] to import your
3685   crate's root into the extern prelude.
3686
3687
3688 Compiler
3689 --------
3690 - [You can now target `riscv64imac-unknown-none-elf` and
3691   `riscv64gc-unknown-none-elf`.][58406]
3692 - [You can now enable linker plugin LTO optimisations with
3693   `-C linker-plugin-lto`.][58057] This allows rustc to compile your Rust code
3694   into LLVM bitcode allowing LLVM to perform LTO optimisations across C/C++ FFI
3695   boundaries.
3696 - [You can now target `powerpc64-unknown-freebsd`.][57809]
3697
3698
3699 Libraries
3700 ---------
3701 - [The trait bounds have been removed on some of `HashMap<K, V, S>`'s and
3702   `HashSet<T, S>`'s basic methods.][58370] Most notably you no longer require
3703   the `Hash` trait to create an iterator.
3704 - [The `Ord` trait bounds have been removed on some of `BinaryHeap<T>`'s basic
3705   methods.][58421] Most notably you no longer require the `Ord` trait to create
3706   an iterator.
3707 - [The methods `overflowing_neg` and `wrapping_neg` are now `const` functions
3708   for all numeric types.][58044]
3709 - [Indexing a `str` is now generic over all types that
3710   implement `SliceIndex<str>`.][57604]
3711 - [`str::trim`, `str::trim_matches`, `str::trim_{start, end}`, and
3712   `str::trim_{start, end}_matches` are now `#[must_use]`][57106] and will
3713   produce a warning if their returning type is unused.
3714 - [The methods `checked_pow`, `saturating_pow`, `wrapping_pow`, and
3715   `overflowing_pow` are now available for all numeric types.][57873] These are
3716   equivalent to methods such as `wrapping_add` for the `pow` operation.
3717
3718
3719 Stabilized APIs
3720 ---------------
3721
3722 #### std & core
3723 * [`Any::type_id`]
3724 * [`Error::type_id`]
3725 * [`atomic::AtomicI16`]
3726 * [`atomic::AtomicI32`]
3727 * [`atomic::AtomicI64`]
3728 * [`atomic::AtomicI8`]
3729 * [`atomic::AtomicU16`]
3730 * [`atomic::AtomicU32`]
3731 * [`atomic::AtomicU64`]
3732 * [`atomic::AtomicU8`]
3733 * [`convert::Infallible`]
3734 * [`convert::TryFrom`]
3735 * [`convert::TryInto`]
3736 * [`iter::from_fn`]
3737 * [`iter::successors`]
3738 * [`num::NonZeroI128`]
3739 * [`num::NonZeroI16`]
3740 * [`num::NonZeroI32`]
3741 * [`num::NonZeroI64`]
3742 * [`num::NonZeroI8`]
3743 * [`num::NonZeroIsize`]
3744 * [`slice::sort_by_cached_key`]
3745 * [`str::escape_debug`]
3746 * [`str::escape_default`]
3747 * [`str::escape_unicode`]
3748 * [`str::split_ascii_whitespace`]
3749
3750 #### std
3751 * [`Instant::checked_add`]
3752 * [`Instant::checked_sub`]
3753 * [`SystemTime::checked_add`]
3754 * [`SystemTime::checked_sub`]
3755
3756 Cargo
3757 -----
3758 - [You can now use alternative registries to crates.io.][cargo/6654]
3759
3760 Misc
3761 ----
3762 - [You can now use the `?` operator in your documentation tests without manually
3763   adding `fn main() -> Result<(), _> {}`.][56470]
3764
3765 Compatibility Notes
3766 -------------------
3767 - [`Command::before_exec` is being replaced by the unsafe method
3768   `Command::pre_exec`][58059] and will be deprecated with Rust 1.37.0.
3769 - [Use of `ATOMIC_{BOOL, ISIZE, USIZE}_INIT` is now deprecated][57425] as you
3770   can now use `const` functions in `static` variables.
3771
3772 [58370]: https://github.com/rust-lang/rust/pull/58370/
3773 [58406]: https://github.com/rust-lang/rust/pull/58406/
3774 [58421]: https://github.com/rust-lang/rust/pull/58421/
3775 [58166]: https://github.com/rust-lang/rust/pull/58166/
3776 [58044]: https://github.com/rust-lang/rust/pull/58044/
3777 [58057]: https://github.com/rust-lang/rust/pull/58057/
3778 [58059]: https://github.com/rust-lang/rust/pull/58059/
3779 [57809]: https://github.com/rust-lang/rust/pull/57809/
3780 [57873]: https://github.com/rust-lang/rust/pull/57873/
3781 [57604]: https://github.com/rust-lang/rust/pull/57604/
3782 [57367]: https://github.com/rust-lang/rust/pull/57367/
3783 [57407]: https://github.com/rust-lang/rust/pull/57407/
3784 [57425]: https://github.com/rust-lang/rust/pull/57425/
3785 [57106]: https://github.com/rust-lang/rust/pull/57106/
3786 [56470]: https://github.com/rust-lang/rust/pull/56470/
3787 [cargo/6654]: https://github.com/rust-lang/cargo/pull/6654/
3788 [`Any::type_id`]: https://doc.rust-lang.org/std/any/trait.Any.html#tymethod.type_id
3789 [`Error::type_id`]: https://doc.rust-lang.org/std/error/trait.Error.html#method.type_id
3790 [`atomic::AtomicI16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI16.html
3791 [`atomic::AtomicI32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI32.html
3792 [`atomic::AtomicI64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI64.html
3793 [`atomic::AtomicI8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI8.html
3794 [`atomic::AtomicU16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU16.html
3795 [`atomic::AtomicU32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU32.html
3796 [`atomic::AtomicU64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html
3797 [`atomic::AtomicU8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html
3798 [`convert::Infallible`]: https://doc.rust-lang.org/std/convert/enum.Infallible.html
3799 [`convert::TryFrom`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html
3800 [`convert::TryInto`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html
3801 [`iter::from_fn`]: https://doc.rust-lang.org/std/iter/fn.from_fn.html
3802 [`iter::successors`]: https://doc.rust-lang.org/std/iter/fn.successors.html
3803 [`num::NonZeroI128`]: https://doc.rust-lang.org/std/num/struct.NonZeroI128.html
3804 [`num::NonZeroI16`]: https://doc.rust-lang.org/std/num/struct.NonZeroI16.html
3805 [`num::NonZeroI32`]: https://doc.rust-lang.org/std/num/struct.NonZeroI32.html
3806 [`num::NonZeroI64`]: https://doc.rust-lang.org/std/num/struct.NonZeroI64.html
3807 [`num::NonZeroI8`]: https://doc.rust-lang.org/std/num/struct.NonZeroI8.html
3808 [`num::NonZeroIsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroIsize.html
3809 [`slice::sort_by_cached_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key
3810 [`str::escape_debug`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_debug
3811 [`str::escape_default`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_default
3812 [`str::escape_unicode`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_unicode
3813 [`str::split_ascii_whitespace`]: https://doc.rust-lang.org/std/primitive.str.html#method.split_ascii_whitespace
3814 [`Instant::checked_add`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_add
3815 [`Instant::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_sub
3816 [`SystemTime::checked_add`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_add
3817 [`SystemTime::checked_sub`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_sub
3818
3819
3820 Version 1.33.0 (2019-02-28)
3821 ==========================
3822
3823 Language
3824 --------
3825 - [You can now use the `cfg(target_vendor)` attribute.][57465] E.g.
3826   `#[cfg(target_vendor="apple")] fn main() { println!("Hello Apple!"); }`
3827 - [Integer patterns such as in a match expression can now be exhaustive.][56362]
3828   E.g. You can have match statement on a `u8` that covers `0..=255` and
3829   you would no longer be required to have a `_ => unreachable!()` case.
3830 - [You can now have multiple patterns in `if let` and `while let`
3831   expressions.][57532] You can do this with the same syntax as a `match`
3832   expression. E.g.
3833   ```rust
3834   enum Creature {
3835       Crab(String),
3836       Lobster(String),
3837       Person(String),
3838   }
3839
3840   fn main() {
3841       let state = Creature::Crab("Ferris");
3842
3843       if let Creature::Crab(name) | Creature::Person(name) = state {
3844           println!("This creature's name is: {}", name);
3845       }
3846   }
3847   ```
3848 - [You can now have irrefutable `if let` and `while let` patterns.][57535] Using
3849   this feature will by default produce a warning as this behaviour can be
3850   unintuitive. E.g. `if let _ = 5 {}`
3851 - [You can now use `let` bindings, assignments, expression statements,
3852   and irrefutable pattern destructuring in const functions.][57175]
3853 - [You can now call unsafe const functions.][57067] E.g.
3854   ```rust
3855   const unsafe fn foo() -> i32 { 5 }
3856   const fn bar() -> i32 {
3857       unsafe { foo() }
3858   }
3859   ```
3860 - [You can now specify multiple attributes in a `cfg_attr` attribute.][57332]
3861   E.g. `#[cfg_attr(all(), must_use, optimize)]`
3862 - [You can now specify a specific alignment with the `#[repr(packed)]`
3863   attribute.][57049] E.g. `#[repr(packed(2))] struct Foo(i16, i32);` is a struct
3864   with an alignment of 2 bytes and a size of 6 bytes.
3865 - [You can now import an item from a module as an `_`.][56303] This allows you to
3866   import a trait's impls, and not have the name in the namespace. E.g.
3867   ```rust
3868   use std::io::Read as _;
3869
3870   // Allowed as there is only one `Read` in the module.
3871   pub trait Read {}
3872   ```
3873 - [You may now use `Rc`, `Arc`, and `Pin` as method receivers][56805].
3874
3875 Compiler
3876 --------
3877 - [You can now set a linker flavor for `rustc` with the `-Clinker-flavor`
3878   command line argument.][56351]
3879 - [The minimum required LLVM version has been bumped to 6.0.][56642]
3880 - [Added support for the PowerPC64 architecture on FreeBSD.][57615]
3881 - [The `x86_64-fortanix-unknown-sgx` target support has been upgraded to
3882   tier 2 support.][57130] Visit the [platform support][platform-support] page for
3883   information on Rust's platform support.
3884 - [Added support for the `thumbv7neon-linux-androideabi` and
3885   `thumbv7neon-unknown-linux-gnueabihf` targets.][56947]
3886 - [Added support for the `x86_64-unknown-uefi` target.][56769]
3887
3888 Libraries
3889 ---------
3890 - [The methods `overflowing_{add, sub, mul, shl, shr}` are now `const`
3891   functions for all numeric types.][57566]
3892 - [The methods `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
3893   are now `const` functions for all numeric types.][57105]
3894 - [The methods `is_positive` and `is_negative` are now `const` functions for
3895   all signed numeric types.][57105]
3896 - [The `get` method for all `NonZero` types is now `const`.][57167]
3897 - [The methods `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
3898   `swap_bytes`, `from_be`, `from_le`, `to_be`, `to_le` are now `const` for all
3899   numeric types.][57234]
3900 - [`Ipv4Addr::new` is now a `const` function][57234]
3901
3902 Stabilized APIs
3903 ---------------
3904 - [`unix::FileExt::read_exact_at`]
3905 - [`unix::FileExt::write_all_at`]
3906 - [`Option::transpose`]
3907 - [`Result::transpose`]
3908 - [`convert::identity`]
3909 - [`pin::Pin`]
3910 - [`marker::Unpin`]
3911 - [`marker::PhantomPinned`]
3912 - [`Vec::resize_with`]
3913 - [`VecDeque::resize_with`]
3914 - [`Duration::as_millis`]
3915 - [`Duration::as_micros`]
3916 - [`Duration::as_nanos`]
3917
3918
3919 Cargo
3920 -----
3921 - [You can now publish crates that require a feature flag to compile with
3922   `cargo publish --features` or `cargo publish --all-features`.][cargo/6453]
3923 - [Cargo should now rebuild a crate if a file was modified during the initial
3924   build.][cargo/6484]
3925
3926 Compatibility Notes
3927 -------------------
3928 - The methods `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
3929   are now deprecated in the standard library, and their usage will now produce a warning.
3930   Please use the `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}`
3931   methods instead.
3932 - The `Error::cause` method has been deprecated in favor of `Error::source` which supports
3933   downcasting.
3934 - [Libtest no longer creates a new thread for each test when
3935   `--test-threads=1`.  It also runs the tests in deterministic order][56243]
3936
3937 [56243]: https://github.com/rust-lang/rust/pull/56243
3938 [56303]: https://github.com/rust-lang/rust/pull/56303/
3939 [56351]: https://github.com/rust-lang/rust/pull/56351/
3940 [56362]: https://github.com/rust-lang/rust/pull/56362
3941 [56642]: https://github.com/rust-lang/rust/pull/56642/
3942 [56769]: https://github.com/rust-lang/rust/pull/56769/
3943 [56805]: https://github.com/rust-lang/rust/pull/56805
3944 [56947]: https://github.com/rust-lang/rust/pull/56947/
3945 [57049]: https://github.com/rust-lang/rust/pull/57049/
3946 [57067]: https://github.com/rust-lang/rust/pull/57067/
3947 [57105]: https://github.com/rust-lang/rust/pull/57105
3948 [57130]: https://github.com/rust-lang/rust/pull/57130/
3949 [57167]: https://github.com/rust-lang/rust/pull/57167/
3950 [57175]: https://github.com/rust-lang/rust/pull/57175/
3951 [57234]: https://github.com/rust-lang/rust/pull/57234/
3952 [57332]: https://github.com/rust-lang/rust/pull/57332/
3953 [57465]: https://github.com/rust-lang/rust/pull/57465/
3954 [57532]: https://github.com/rust-lang/rust/pull/57532/
3955 [57535]: https://github.com/rust-lang/rust/pull/57535/
3956 [57566]: https://github.com/rust-lang/rust/pull/57566/
3957 [57615]: https://github.com/rust-lang/rust/pull/57615/
3958 [cargo/6453]: https://github.com/rust-lang/cargo/pull/6453/
3959 [cargo/6484]: https://github.com/rust-lang/cargo/pull/6484/
3960 [`unix::FileExt::read_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
3961 [`unix::FileExt::write_all_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
3962 [`Option::transpose`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.transpose
3963 [`Result::transpose`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
3964 [`convert::identity`]: https://doc.rust-lang.org/std/convert/fn.identity.html
3965 [`pin::Pin`]: https://doc.rust-lang.org/std/pin/struct.Pin.html
3966 [`marker::Unpin`]: https://doc.rust-lang.org/stable/std/marker/trait.Unpin.html
3967 [`marker::PhantomPinned`]: https://doc.rust-lang.org/nightly/std/marker/struct.PhantomPinned.html
3968 [`Vec::resize_with`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize_with
3969 [`VecDeque::resize_with`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.resize_with
3970 [`Duration::as_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis
3971 [`Duration::as_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_micros
3972 [`Duration::as_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_nanos
3973 [platform-support]: https://forge.rust-lang.org/platform-support.html
3974
3975 Version 1.32.0 (2019-01-17)
3976 ==========================
3977
3978 Language
3979 --------
3980 #### 2018 edition
3981 - [You can now use the `?` operator in macro definitions.][56245] The `?`
3982   operator allows you to specify zero or one repetitions similar to the `*` and
3983   `+` operators.
3984 - [Module paths with no leading keyword like `super`, `self`, or `crate`, will
3985   now always resolve to the item (`enum`, `struct`, etc.) available in the
3986   module if present, before resolving to a external crate or an item the prelude.][56759]
3987   E.g.
3988   ```rust
3989   enum Color { Red, Green, Blue }
3990
3991   use Color::*;
3992   ```
3993
3994 #### All editions
3995 - [You can now match against `PhantomData<T>` types.][55837]
3996 - [You can now match against literals in macros with the `literal`
3997   specifier.][56072] This will match against a literal of any type.
3998   E.g. `1`, `'A'`, `"Hello World"`
3999 - [Self can now be used as a constructor and pattern for unit and tuple structs.][56365] E.g.
4000   ```rust
4001   struct Point(i32, i32);
4002
4003   impl Point {
4004       pub fn new(x: i32, y: i32) -> Self {
4005           Self(x, y)
4006       }
4007
4008       pub fn is_origin(&self) -> bool {
4009           match self {
4010               Self(0, 0) => true,
4011               _ => false,
4012           }
4013       }
4014   }
4015   ```
4016 - [Self can also now be used in type definitions.][56366] E.g.
4017   ```rust
4018   enum List<T>
4019   where
4020       Self: PartialOrd<Self> // can write `Self` instead of `List<T>`
4021   {
4022       Nil,
4023       Cons(T, Box<Self>) // likewise here
4024   }
4025   ```
4026 - [You can now mark traits with `#[must_use]`.][55663] This provides a warning if
4027   a `impl Trait` or `dyn Trait` is returned and unused in the program.
4028
4029 Compiler
4030 --------
4031 - [The default allocator has changed from jemalloc to the default allocator on
4032   your system.][55238] The compiler itself on Linux & macOS will still use
4033   jemalloc, but programs compiled with it will use the system allocator.
4034 - [Added the `aarch64-pc-windows-msvc` target.][55702]
4035
4036 Libraries
4037 ---------
4038 - [`PathBuf` now implements `FromStr`.][55148]
4039 - [`Box<[T]>` now implements `FromIterator<T>`.][55843]
4040 - [The `dbg!` macro has been stabilized.][56395] This macro enables you to
4041   easily debug expressions in your rust program. E.g.
4042   ```rust
4043   let a = 2;
4044   let b = dbg!(a * 2) + 1;
4045   //      ^-- prints: [src/main.rs:4] a * 2 = 4
4046   assert_eq!(b, 5);
4047   ```
4048
4049 The following APIs are now `const` functions and can be used in a
4050 `const` context.
4051
4052 - [`Cell::as_ptr`]
4053 - [`UnsafeCell::get`]
4054 - [`char::is_ascii`]
4055 - [`iter::empty`]
4056 - [`ManuallyDrop::new`]
4057 - [`ManuallyDrop::into_inner`]
4058 - [`RangeInclusive::start`]
4059 - [`RangeInclusive::end`]
4060 - [`NonNull::as_ptr`]
4061 - [`slice::as_ptr`]
4062 - [`str::as_ptr`]
4063 - [`Duration::as_secs`]
4064 - [`Duration::subsec_millis`]
4065 - [`Duration::subsec_micros`]
4066 - [`Duration::subsec_nanos`]
4067 - [`CStr::as_ptr`]
4068 - [`Ipv4Addr::is_unspecified`]
4069 - [`Ipv6Addr::new`]
4070 - [`Ipv6Addr::octets`]
4071
4072 Stabilized APIs
4073 ---------------
4074 - [`i8::to_be_bytes`]
4075 - [`i8::to_le_bytes`]
4076 - [`i8::to_ne_bytes`]
4077 - [`i8::from_be_bytes`]
4078 - [`i8::from_le_bytes`]
4079 - [`i8::from_ne_bytes`]
4080 - [`i16::to_be_bytes`]
4081 - [`i16::to_le_bytes`]
4082 - [`i16::to_ne_bytes`]
4083 - [`i16::from_be_bytes`]
4084 - [`i16::from_le_bytes`]
4085 - [`i16::from_ne_bytes`]
4086 - [`i32::to_be_bytes`]
4087 - [`i32::to_le_bytes`]
4088 - [`i32::to_ne_bytes`]
4089 - [`i32::from_be_bytes`]
4090 - [`i32::from_le_bytes`]
4091 - [`i32::from_ne_bytes`]
4092 - [`i64::to_be_bytes`]
4093 - [`i64::to_le_bytes`]
4094 - [`i64::to_ne_bytes`]
4095 - [`i64::from_be_bytes`]
4096 - [`i64::from_le_bytes`]
4097 - [`i64::from_ne_bytes`]
4098 - [`i128::to_be_bytes`]
4099 - [`i128::to_le_bytes`]
4100 - [`i128::to_ne_bytes`]
4101 - [`i128::from_be_bytes`]
4102 - [`i128::from_le_bytes`]
4103 - [`i128::from_ne_bytes`]
4104 - [`isize::to_be_bytes`]
4105 - [`isize::to_le_bytes`]
4106 - [`isize::to_ne_bytes`]
4107 - [`isize::from_be_bytes`]
4108 - [`isize::from_le_bytes`]
4109 - [`isize::from_ne_bytes`]
4110 - [`u8::to_be_bytes`]
4111 - [`u8::to_le_bytes`]
4112 - [`u8::to_ne_bytes`]
4113 - [`u8::from_be_bytes`]
4114 - [`u8::from_le_bytes`]
4115 - [`u8::from_ne_bytes`]
4116 - [`u16::to_be_bytes`]
4117 - [`u16::to_le_bytes`]
4118 - [`u16::to_ne_bytes`]
4119 - [`u16::from_be_bytes`]
4120 - [`u16::from_le_bytes`]
4121 - [`u16::from_ne_bytes`]
4122 - [`u32::to_be_bytes`]
4123 - [`u32::to_le_bytes`]
4124 - [`u32::to_ne_bytes`]
4125 - [`u32::from_be_bytes`]
4126 - [`u32::from_le_bytes`]
4127 - [`u32::from_ne_bytes`]
4128 - [`u64::to_be_bytes`]
4129 - [`u64::to_le_bytes`]
4130 - [`u64::to_ne_bytes`]
4131 - [`u64::from_be_bytes`]
4132 - [`u64::from_le_bytes`]
4133 - [`u64::from_ne_bytes`]
4134 - [`u128::to_be_bytes`]
4135 - [`u128::to_le_bytes`]
4136 - [`u128::to_ne_bytes`]
4137 - [`u128::from_be_bytes`]
4138 - [`u128::from_le_bytes`]
4139 - [`u128::from_ne_bytes`]
4140 - [`usize::to_be_bytes`]
4141 - [`usize::to_le_bytes`]
4142 - [`usize::to_ne_bytes`]
4143 - [`usize::from_be_bytes`]
4144 - [`usize::from_le_bytes`]
4145 - [`usize::from_ne_bytes`]
4146
4147 Cargo
4148 -----
4149 - [You can now run `cargo c` as an alias for `cargo check`.][cargo/6218]
4150 - [Usernames are now allowed in alt registry URLs.][cargo/6242]
4151
4152 Misc
4153 ----
4154 - [`libproc_macro` has been added to the `rust-src` distribution.][55280]
4155
4156 Compatibility Notes
4157 -------------------
4158 - [The argument types for AVX's
4159   `_mm256_stream_si256`, `_mm256_stream_pd`, `_mm256_stream_ps`][55610] have
4160   been changed from `*const` to `*mut` as the previous implementation
4161   was unsound.
4162
4163
4164 [55148]: https://github.com/rust-lang/rust/pull/55148/
4165 [55238]: https://github.com/rust-lang/rust/pull/55238/
4166 [55280]: https://github.com/rust-lang/rust/pull/55280/
4167 [55610]: https://github.com/rust-lang/rust/pull/55610/
4168 [55663]: https://github.com/rust-lang/rust/pull/55663/
4169 [55702]: https://github.com/rust-lang/rust/pull/55702/
4170 [55837]: https://github.com/rust-lang/rust/pull/55837/
4171 [55843]: https://github.com/rust-lang/rust/pull/55843/
4172 [56072]: https://github.com/rust-lang/rust/pull/56072/
4173 [56245]: https://github.com/rust-lang/rust/pull/56245/
4174 [56365]: https://github.com/rust-lang/rust/pull/56365/
4175 [56366]: https://github.com/rust-lang/rust/pull/56366/
4176 [56395]: https://github.com/rust-lang/rust/pull/56395/
4177 [56759]: https://github.com/rust-lang/rust/pull/56759/
4178 [cargo/6218]: https://github.com/rust-lang/cargo/pull/6218/
4179 [cargo/6242]: https://github.com/rust-lang/cargo/pull/6242/
4180 [`CStr::as_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.as_ptr
4181 [`Cell::as_ptr`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr
4182 [`Duration::as_secs`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs
4183 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4184 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4185 [`Duration::subsec_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_nanos
4186 [`Ipv4Addr::is_unspecified`]: https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified
4187 [`Ipv6Addr::new`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.new
4188 [`Ipv6Addr::octets`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets
4189 [`ManuallyDrop::into_inner`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.into_inner
4190 [`ManuallyDrop::new`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.new
4191 [`NonNull::as_ptr`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.as_ptr
4192 [`RangeInclusive::end`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
4193 [`RangeInclusive::start`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
4194 [`UnsafeCell::get`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html#method.get
4195 [`slice::as_ptr`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
4196 [`char::is_ascii`]: https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
4197 [`i128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_be_bytes
4198 [`i128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_le_bytes
4199 [`i128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_ne_bytes
4200 [`i128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_be_bytes
4201 [`i128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_le_bytes
4202 [`i128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_ne_bytes
4203 [`i16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
4204 [`i16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
4205 [`i16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_ne_bytes
4206 [`i16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_be_bytes
4207 [`i16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_le_bytes
4208 [`i16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_ne_bytes
4209 [`i32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_be_bytes
4210 [`i32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_le_bytes
4211 [`i32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_ne_bytes
4212 [`i32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_be_bytes
4213 [`i32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_le_bytes
4214 [`i32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_ne_bytes
4215 [`i64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_be_bytes
4216 [`i64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_le_bytes
4217 [`i64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_ne_bytes
4218 [`i64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_be_bytes
4219 [`i64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_le_bytes
4220 [`i64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_ne_bytes
4221 [`i8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_be_bytes
4222 [`i8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_le_bytes
4223 [`i8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_ne_bytes
4224 [`i8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_be_bytes
4225 [`i8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_le_bytes
4226 [`i8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_ne_bytes
4227 [`isize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_be_bytes
4228 [`isize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_le_bytes
4229 [`isize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_ne_bytes
4230 [`isize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_be_bytes
4231 [`isize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_le_bytes
4232 [`isize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_ne_bytes
4233 [`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
4234 [`str::as_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_ptr
4235 [`u128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_be_bytes
4236 [`u128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_le_bytes
4237 [`u128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_ne_bytes
4238 [`u128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_be_bytes
4239 [`u128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_le_bytes
4240 [`u128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_ne_bytes
4241 [`u16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_be_bytes
4242 [`u16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_le_bytes
4243 [`u16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_ne_bytes
4244 [`u16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_be_bytes
4245 [`u16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_le_bytes
4246 [`u16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_ne_bytes
4247 [`u32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_be_bytes
4248 [`u32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_le_bytes
4249 [`u32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_ne_bytes
4250 [`u32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_be_bytes
4251 [`u32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_le_bytes
4252 [`u32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_ne_bytes
4253 [`u64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_be_bytes
4254 [`u64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_le_bytes
4255 [`u64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_ne_bytes
4256 [`u64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_be_bytes
4257 [`u64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_le_bytes
4258 [`u64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_ne_bytes
4259 [`u8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_be_bytes
4260 [`u8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_le_bytes
4261 [`u8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_ne_bytes
4262 [`u8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_be_bytes
4263 [`u8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_le_bytes
4264 [`u8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ne_bytes
4265 [`usize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_be_bytes
4266 [`usize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_le_bytes
4267 [`usize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_ne_bytes
4268 [`usize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_be_bytes
4269 [`usize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_le_bytes
4270 [`usize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_ne_bytes
4271
4272
4273 Version 1.31.1 (2018-12-20)
4274 ===========================
4275
4276 - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562]
4277 - [Fix broken go-to-definition in RLS][rls/1171]
4278 - [Fix infinite loop on hover in RLS][rls/1170]
4279
4280 [56562]: https://github.com/rust-lang/rust/pull/56562
4281 [rls/1171]: https://github.com/rust-lang/rls/issues/1171
4282 [rls/1170]: https://github.com/rust-lang/rls/pull/1170
4283
4284 Version 1.31.0 (2018-12-06)
4285 ==========================
4286
4287 Language
4288 --------
4289 - 🎉 [This version marks the release of the 2018 edition of Rust.][54057] 🎉
4290 - [New lifetime elision rules now allow for eliding lifetimes in functions and
4291   impl headers.][54778] E.g. `impl<'a> Reader for BufReader<'a> {}` can now be
4292   `impl Reader for BufReader<'_> {}`. Lifetimes are still required to be defined
4293   in structs.
4294 - [You can now define and use `const` functions.][54835] These are currently
4295   a strict minimal subset of the [const fn RFC][RFC-911]. Refer to the
4296   [language reference][const-reference] for what exactly is available.
4297 - [You can now use tool lints, which allow you to scope lints from external
4298   tools using attributes.][54870] E.g. `#[allow(clippy::filter_map)]`.
4299 - [`#[no_mangle]` and `#[export_name]` attributes can now be located anywhere in
4300   a crate, not just in exported functions.][54451]
4301 - [You can now use parentheses in pattern matches.][54497]
4302
4303 Compiler
4304 --------
4305 - [Updated musl to 1.1.20][54430]
4306
4307 Libraries
4308 ---------
4309 - [You can now convert `num::NonZero*` types to their raw equivalents using the
4310   `From` trait.][54240] E.g. `u8` now implements `From<NonZeroU8>`.
4311 - [You can now convert a `&Option<T>` into `Option<&T>` and `&mut Option<T>`
4312   into `Option<&mut T>` using the `From` trait.][53218]
4313 - [You can now multiply (`*`) a `time::Duration` by a `u32`.][52813]
4314
4315
4316 Stabilized APIs
4317 ---------------
4318 - [`slice::align_to`]
4319 - [`slice::align_to_mut`]
4320 - [`slice::chunks_exact`]
4321 - [`slice::chunks_exact_mut`]
4322 - [`slice::rchunks`]
4323 - [`slice::rchunks_mut`]
4324 - [`slice::rchunks_exact`]
4325 - [`slice::rchunks_exact_mut`]
4326 - [`Option::replace`]
4327
4328 Cargo
4329 -----
4330 - [Cargo will now download crates in parallel using HTTP/2.][cargo/6005]
4331 - [You can now rename packages in your Cargo.toml][cargo/6319] We have a guide
4332   on [how to use the `package` key in your dependencies.][cargo-rename-reference]
4333
4334 [52813]: https://github.com/rust-lang/rust/pull/52813/
4335 [53218]: https://github.com/rust-lang/rust/pull/53218/
4336 [54057]: https://github.com/rust-lang/rust/pull/54057/
4337 [54240]: https://github.com/rust-lang/rust/pull/54240/
4338 [54430]: https://github.com/rust-lang/rust/pull/54430/
4339 [54451]: https://github.com/rust-lang/rust/pull/54451/
4340 [54497]: https://github.com/rust-lang/rust/pull/54497/
4341 [54778]: https://github.com/rust-lang/rust/pull/54778/
4342 [54835]: https://github.com/rust-lang/rust/pull/54835/
4343 [54870]: https://github.com/rust-lang/rust/pull/54870/
4344 [RFC-911]: https://github.com/rust-lang/rfcs/pull/911
4345 [`Option::replace`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.replace
4346 [`slice::align_to_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to_mut
4347 [`slice::align_to`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to
4348 [`slice::chunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact_mut
4349 [`slice::chunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact
4350 [`slice::rchunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4351 [`slice::rchunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_exact
4352 [`slice::rchunks_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4353 [`slice::rchunks`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks
4354 [cargo/6005]: https://github.com/rust-lang/cargo/pull/6005/
4355 [cargo/6319]: https://github.com/rust-lang/cargo/pull/6319/
4356 [cargo-rename-reference]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
4357 [const-reference]: https://doc.rust-lang.org/reference/items/functions.html#const-functions
4358
4359 Version 1.30.1 (2018-11-08)
4360 ===========================
4361
4362 - [Fixed overflow ICE in rustdoc][54199]
4363 - [Cap Cargo progress bar width at 60 in MSYS terminals][cargo/6122]
4364
4365 [54199]: https://github.com/rust-lang/rust/pull/54199
4366 [cargo/6122]: https://github.com/rust-lang/cargo/pull/6122
4367
4368 Version 1.30.0 (2018-10-25)
4369 ==========================
4370
4371 Language
4372 --------
4373 - [Procedural macros are now available.][52081] These kinds of macros allow for
4374   more powerful code generation. There is a [new chapter available][proc-macros]
4375   in the Rust Programming Language book that goes further in depth.
4376 - [You can now use keywords as identifiers using the raw identifiers
4377   syntax (`r#`),][53236] e.g. `let r#for = true;`
4378 - [Using anonymous parameters in traits is now deprecated with a warning and
4379   will be a hard error in the 2018 edition.][53272]
4380 - [You can now use `crate` in paths.][54404] This allows you to refer to the
4381   crate root in the path, e.g. `use crate::foo;` refers to `foo` in `src/lib.rs`.
4382 - [Using a external crate no longer requires being prefixed with `::`.][54404]
4383   Previously, using a external crate in a module without a use statement
4384   required `let json = ::serde_json::from_str(foo);` but can now be written
4385   as `let json = serde_json::from_str(foo);`.
4386 - [You can now apply the `#[used]` attribute to static items to prevent the
4387   compiler from optimising them away, even if they appear to be unused,][51363]
4388   e.g. `#[used] static FOO: u32 = 1;`
4389 - [You can now import and reexport macros from other crates with the `use`
4390   syntax.][50911] Macros exported with `#[macro_export]` are now placed into
4391   the root module of the crate. If your macro relies on calling other local
4392   macros, it is recommended to export with the
4393   `#[macro_export(local_inner_macros)]` attribute so users won't have to import
4394   those macros.
4395 - [You can now catch visibility keywords (e.g. `pub`, `pub(crate)`) in macros
4396   using the `vis` specifier.][53370]
4397 - [Non-macro attributes now allow all forms of literals, not just
4398   strings.][53044] Previously, you would write `#[attr("true")]`, and you can now
4399   write `#[attr(true)]`.
4400 - [You can now specify a function to handle a panic in the Rust runtime with the
4401   `#[panic_handler]` attribute.][51366]
4402
4403 Compiler
4404 --------
4405 - [Added the `riscv32imc-unknown-none-elf` target.][53822]
4406 - [Added the `aarch64-unknown-netbsd` target][53165]
4407 - [Upgraded to LLVM 8.][53611]
4408
4409 Libraries
4410 ---------
4411 - [`ManuallyDrop` now allows the inner type to be unsized.][53033]
4412
4413 Stabilized APIs
4414 ---------------
4415 - [`Ipv4Addr::BROADCAST`]
4416 - [`Ipv4Addr::LOCALHOST`]
4417 - [`Ipv4Addr::UNSPECIFIED`]
4418 - [`Ipv6Addr::LOCALHOST`]
4419 - [`Ipv6Addr::UNSPECIFIED`]
4420 - [`Iterator::find_map`]
4421
4422   The following methods are replacement methods for `trim_left`, `trim_right`,
4423   `trim_left_matches`, and `trim_right_matches`, which will be deprecated
4424   in 1.33.0:
4425 - [`str::trim_end_matches`]
4426 - [`str::trim_end`]
4427 - [`str::trim_start_matches`]
4428 - [`str::trim_start`]
4429
4430 Cargo
4431 ----
4432 - [`cargo run` doesn't require specifying a package in workspaces.][cargo/5877]
4433 - [`cargo doc` now supports `--message-format=json`.][cargo/5878] This is
4434   equivalent to calling `rustdoc --error-format=json`.
4435 - [Cargo will now provide a progress bar for builds.][cargo/5995]
4436
4437 Misc
4438 ----
4439 - [`rustdoc` allows you to specify what edition to treat your code as with the
4440   `--edition` option.][54057]
4441 - [`rustdoc` now has the `--color` (specify whether to output color) and
4442   `--error-format` (specify error format, e.g. `json`) options.][53003]
4443 - [We now distribute a `rust-gdbgui` script that invokes `gdbgui` with Rust
4444   debug symbols.][53774]
4445 - [Attributes from Rust tools such as `rustfmt` or `clippy` are now
4446   available,][53459] e.g. `#[rustfmt::skip]` will skip formatting the next item.
4447
4448 [50911]: https://github.com/rust-lang/rust/pull/50911/
4449 [51363]: https://github.com/rust-lang/rust/pull/51363/
4450 [51366]: https://github.com/rust-lang/rust/pull/51366/
4451 [52081]: https://github.com/rust-lang/rust/pull/52081/
4452 [53003]: https://github.com/rust-lang/rust/pull/53003/
4453 [53033]: https://github.com/rust-lang/rust/pull/53033/
4454 [53044]: https://github.com/rust-lang/rust/pull/53044/
4455 [53165]: https://github.com/rust-lang/rust/pull/53165/
4456 [53611]: https://github.com/rust-lang/rust/pull/53611/
4457 [53236]: https://github.com/rust-lang/rust/pull/53236/
4458 [53272]: https://github.com/rust-lang/rust/pull/53272/
4459 [53370]: https://github.com/rust-lang/rust/pull/53370/
4460 [53459]: https://github.com/rust-lang/rust/pull/53459/
4461 [53774]: https://github.com/rust-lang/rust/pull/53774/
4462 [53822]: https://github.com/rust-lang/rust/pull/53822/
4463 [54057]: https://github.com/rust-lang/rust/pull/54057/
4464 [54404]: https://github.com/rust-lang/rust/pull/54404/
4465 [cargo/5877]: https://github.com/rust-lang/cargo/pull/5877/
4466 [cargo/5878]: https://github.com/rust-lang/cargo/pull/5878/
4467 [cargo/5995]: https://github.com/rust-lang/cargo/pull/5995/
4468 [proc-macros]: https://doc.rust-lang.org/nightly/book/2018-edition/ch19-06-macros.html
4469
4470 [`Ipv4Addr::BROADCAST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.BROADCAST
4471 [`Ipv4Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.LOCALHOST
4472 [`Ipv4Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.UNSPECIFIED
4473 [`Ipv6Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.LOCALHOST
4474 [`Ipv6Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.UNSPECIFIED
4475 [`Iterator::find_map`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find_map
4476 [`str::trim_end_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end_matches
4477 [`str::trim_end`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end
4478 [`str::trim_start_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start_matches
4479 [`str::trim_start`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start
4480
4481
4482 Version 1.29.2 (2018-10-11)
4483 ===========================
4484
4485 - [Workaround for an aliasing-related LLVM bug, which caused miscompilation.][54639]
4486 - The `rls-preview` component on the windows-gnu targets has been restored.
4487
4488 [54639]: https://github.com/rust-lang/rust/pull/54639
4489
4490
4491 Version 1.29.1 (2018-09-25)
4492 ===========================
4493
4494 Security Notes
4495 --------------
4496
4497 - The standard library's `str::repeat` function contained an out of bounds write
4498   caused by an integer overflow. This has been fixed by deterministically
4499   panicking when an overflow happens.
4500
4501   Thank you to Scott McMurray for responsibly disclosing this vulnerability to
4502   us.
4503
4504
4505 Version 1.29.0 (2018-09-13)
4506 ==========================
4507
4508 Compiler
4509 --------
4510 - [Bumped minimum LLVM version to 5.0.][51899]
4511 - [Added `powerpc64le-unknown-linux-musl` target.][51619]
4512 - [Added `aarch64-unknown-hermit` and `x86_64-unknown-hermit` targets.][52861]
4513 - [Upgraded to LLVM 7.][51966]
4514
4515 Libraries
4516 ---------
4517 - [`Once::call_once` no longer requires `Once` to be `'static`.][52239]
4518 - [`BuildHasherDefault` now implements `PartialEq` and `Eq`.][52402]
4519 - [`Box<CStr>`, `Box<OsStr>`, and `Box<Path>` now implement `Clone`.][51912]
4520 - [Implemented `PartialEq<&str>` for `OsString` and `PartialEq<OsString>`
4521   for `&str`.][51178]
4522 - [`Cell<T>` now allows `T` to be unsized.][50494]
4523 - [`SocketAddr` is now stable on Redox.][52656]
4524
4525 Stabilized APIs
4526 ---------------
4527 - [`Arc::downcast`]
4528 - [`Iterator::flatten`]
4529 - [`Rc::downcast`]
4530
4531 Cargo
4532 -----
4533 - [Cargo can silently fix some bad lockfiles.][cargo/5831] You can use
4534   `--locked` to disable this behavior.
4535 - [`cargo-install` will now allow you to cross compile an install
4536   using `--target`.][cargo/5614]
4537 - [Added the `cargo-fix` subcommand to automatically move project code from
4538   2015 edition to 2018.][cargo/5723]
4539 - [`cargo doc` can now optionally document private types using the
4540   `--document-private-items` flag.][cargo/5543]
4541
4542 Misc
4543 ----
4544 - [`rustdoc` now has the `--cap-lints` option which demotes all lints above
4545   the specified level to that level.][52354] For example `--cap-lints warn`
4546   will demote `deny` and `forbid` lints to `warn`.
4547 - [`rustc` and `rustdoc` will now have the exit code of `1` if compilation
4548   fails and `101` if there is a panic.][52197]
4549 - [A preview of clippy has been made available through rustup.][51122]
4550   You can install the preview with `rustup component add clippy-preview`.
4551
4552 Compatibility Notes
4553 -------------------
4554 - [`str::{slice_unchecked, slice_unchecked_mut}` are now deprecated.][51807]
4555   Use `str::get_unchecked(begin..end)` instead.
4556 - [`std::env::home_dir` is now deprecated for its unintuitive behavior.][51656]
4557   Consider using the `home_dir` function from
4558   https://crates.io/crates/dirs instead.
4559 - [`rustc` will no longer silently ignore invalid data in target spec.][52330]
4560 - [`cfg` attributes and `--cfg` command line flags are now more
4561   strictly validated.][53893]
4562
4563 [53893]: https://github.com/rust-lang/rust/pull/53893/
4564 [52861]: https://github.com/rust-lang/rust/pull/52861/
4565 [51966]: https://github.com/rust-lang/rust/pull/51966/
4566 [52656]: https://github.com/rust-lang/rust/pull/52656/
4567 [52239]: https://github.com/rust-lang/rust/pull/52239/
4568 [52330]: https://github.com/rust-lang/rust/pull/52330/
4569 [52354]: https://github.com/rust-lang/rust/pull/52354/
4570 [52402]: https://github.com/rust-lang/rust/pull/52402/
4571 [52197]: https://github.com/rust-lang/rust/pull/52197/
4572 [51807]: https://github.com/rust-lang/rust/pull/51807/
4573 [51899]: https://github.com/rust-lang/rust/pull/51899/
4574 [51912]: https://github.com/rust-lang/rust/pull/51912/
4575 [51619]: https://github.com/rust-lang/rust/pull/51619/
4576 [51656]: https://github.com/rust-lang/rust/pull/51656/
4577 [51178]: https://github.com/rust-lang/rust/pull/51178/
4578 [51122]: https://github.com/rust-lang/rust/pull/51122
4579 [50494]: https://github.com/rust-lang/rust/pull/50494/
4580 [cargo/5543]: https://github.com/rust-lang/cargo/pull/5543
4581 [cargo/5614]: https://github.com/rust-lang/cargo/pull/5614/
4582 [cargo/5723]: https://github.com/rust-lang/cargo/pull/5723/
4583 [cargo/5831]: https://github.com/rust-lang/cargo/pull/5831/
4584 [`Arc::downcast`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.downcast
4585 [`Iterator::flatten`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flatten
4586 [`Rc::downcast`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.downcast
4587
4588
4589 Version 1.28.0 (2018-08-02)
4590 ===========================
4591
4592 Language
4593 --------
4594 - [The `#[repr(transparent)]` attribute is now stable.][51562] This attribute
4595   allows a Rust newtype wrapper (`struct NewType<T>(T);`) to be represented as
4596   the inner type across Foreign Function Interface (FFI) boundaries.
4597 - [The keywords `pure`, `sizeof`, `alignof`, and `offsetof` have been unreserved
4598   and can now be used as identifiers.][51196]
4599 - [The `GlobalAlloc` trait and `#[global_allocator]` attribute are now
4600   stable.][51241] This will allow users to specify a global allocator for
4601   their program.
4602 - [Unit test functions marked with the `#[test]` attribute can now return
4603   `Result<(), E: Debug>` in addition to `()`.][51298]
4604 - [The `lifetime` specifier for `macro_rules!` is now stable.][50385] This
4605   allows macros to easily target lifetimes.
4606
4607 Compiler
4608 --------
4609 - [The `s` and `z` optimisation levels are now stable.][50265] These optimisations
4610   prioritise making smaller binary sizes. `z` is the same as `s` with the
4611   exception that it does not vectorise loops, which typically results in an even
4612   smaller binary.
4613 - [The short error format is now stable.][49546] Specified with
4614   `--error-format=short` this option will provide a more compressed output of
4615   rust error messages.
4616 - [Added a lint warning when you have duplicated `macro_export`s.][50143]
4617 - [Reduced the number of allocations in the macro parser.][50855] This can
4618   improve compile times of macro heavy crates on average by 5%.
4619
4620 Libraries
4621 ---------
4622 - [Implemented `Default` for `&mut str`.][51306]
4623 - [Implemented `From<bool>` for all integer and unsigned number types.][50554]
4624 - [Implemented `Extend` for `()`.][50234]
4625 - [The `Debug` implementation of `time::Duration` should now be more easily
4626   human readable.][50364] Previously a `Duration` of one second would printed as
4627   `Duration { secs: 1, nanos: 0 }` and will now be printed as `1s`.
4628 - [Implemented `From<&String>` for `Cow<str>`, `From<&Vec<T>>` for `Cow<[T]>`,
4629   `From<Cow<CStr>>` for `CString`, `From<CString>, From<CStr>, From<&CString>`
4630   for `Cow<CStr>`, `From<OsString>, From<OsStr>, From<&OsString>` for
4631   `Cow<OsStr>`, `From<&PathBuf>` for `Cow<Path>`, and `From<Cow<Path>>`
4632   for `PathBuf`.][50170]
4633 - [Implemented `Shl` and `Shr` for `Wrapping<u128>`
4634   and `Wrapping<i128>`.][50465]
4635 - [`DirEntry::metadata` now uses `fstatat` instead of `lstat` when
4636   possible.][51050] This can provide up to a 40% speed increase.
4637 - [Improved error messages when using `format!`.][50610]
4638
4639 Stabilized APIs
4640 ---------------
4641 - [`Iterator::step_by`]
4642 - [`Path::ancestors`]
4643 - [`SystemTime::UNIX_EPOCH`]
4644 - [`alloc::GlobalAlloc`]
4645 - [`alloc::Layout`]
4646 - [`alloc::LayoutErr`]
4647 - [`alloc::System`]
4648 - [`alloc::alloc`]
4649 - [`alloc::alloc_zeroed`]
4650 - [`alloc::dealloc`]
4651 - [`alloc::realloc`]
4652 - [`alloc::handle_alloc_error`]
4653 - [`btree_map::Entry::or_default`]
4654 - [`fmt::Alignment`]
4655 - [`hash_map::Entry::or_default`]
4656 - [`iter::repeat_with`]
4657 - [`num::NonZeroUsize`]
4658 - [`num::NonZeroU128`]
4659 - [`num::NonZeroU16`]
4660 - [`num::NonZeroU32`]
4661 - [`num::NonZeroU64`]
4662 - [`num::NonZeroU8`]
4663 - [`ops::RangeBounds`]
4664 - [`slice::SliceIndex`]
4665 - [`slice::from_mut`]
4666 - [`slice::from_ref`]
4667 - [`{Any + Send + Sync}::downcast_mut`]
4668 - [`{Any + Send + Sync}::downcast_ref`]
4669 - [`{Any + Send + Sync}::is`]
4670
4671 Cargo
4672 -----
4673 - [Cargo will now no longer allow you to publish crates with build scripts that
4674   modify the `src` directory.][cargo/5584] The `src` directory in a crate should be
4675   considered to be immutable.
4676
4677 Misc
4678 ----
4679 - [The `suggestion_applicability` field in `rustc`'s json output is now
4680   stable.][50486] This will allow dev tools to check whether a code suggestion
4681   would apply to them.
4682
4683 Compatibility Notes
4684 -------------------
4685 - [Rust will consider trait objects with duplicated constraints to be the same
4686   type as without the duplicated constraint.][51276] For example the below code will
4687   now fail to compile.
4688   ```rust
4689   trait Trait {}
4690
4691   impl Trait + Send {
4692       fn test(&self) { println!("one"); } //~ ERROR duplicate definitions with name `test`
4693   }
4694
4695   impl Trait + Send + Send {
4696       fn test(&self) { println!("two"); }
4697   }
4698   ```
4699
4700 [49546]: https://github.com/rust-lang/rust/pull/49546/
4701 [50143]: https://github.com/rust-lang/rust/pull/50143/
4702 [50170]: https://github.com/rust-lang/rust/pull/50170/
4703 [50234]: https://github.com/rust-lang/rust/pull/50234/
4704 [50265]: https://github.com/rust-lang/rust/pull/50265/
4705 [50364]: https://github.com/rust-lang/rust/pull/50364/
4706 [50385]: https://github.com/rust-lang/rust/pull/50385/
4707 [50465]: https://github.com/rust-lang/rust/pull/50465/
4708 [50486]: https://github.com/rust-lang/rust/pull/50486/
4709 [50554]: https://github.com/rust-lang/rust/pull/50554/
4710 [50610]: https://github.com/rust-lang/rust/pull/50610/
4711 [50855]: https://github.com/rust-lang/rust/pull/50855/
4712 [51050]: https://github.com/rust-lang/rust/pull/51050/
4713 [51196]: https://github.com/rust-lang/rust/pull/51196/
4714 [51241]: https://github.com/rust-lang/rust/pull/51241/
4715 [51276]: https://github.com/rust-lang/rust/pull/51276/
4716 [51298]: https://github.com/rust-lang/rust/pull/51298/
4717 [51306]: https://github.com/rust-lang/rust/pull/51306/
4718 [51562]: https://github.com/rust-lang/rust/pull/51562/
4719 [cargo/5584]: https://github.com/rust-lang/cargo/pull/5584/
4720 [`Iterator::step_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by
4721 [`Path::ancestors`]: https://doc.rust-lang.org/std/path/struct.Path.html#method.ancestors
4722 [`SystemTime::UNIX_EPOCH`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#associatedconstant.UNIX_EPOCH
4723 [`alloc::GlobalAlloc`]: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html
4724 [`alloc::Layout`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html
4725 [`alloc::LayoutErr`]: https://doc.rust-lang.org/std/alloc/struct.LayoutErr.html
4726 [`alloc::System`]: https://doc.rust-lang.org/std/alloc/struct.System.html
4727 [`alloc::alloc`]: https://doc.rust-lang.org/std/alloc/fn.alloc.html
4728 [`alloc::alloc_zeroed`]: https://doc.rust-lang.org/std/alloc/fn.alloc_zeroed.html
4729 [`alloc::dealloc`]: https://doc.rust-lang.org/std/alloc/fn.dealloc.html
4730 [`alloc::realloc`]: https://doc.rust-lang.org/std/alloc/fn.realloc.html
4731 [`alloc::handle_alloc_error`]: https://doc.rust-lang.org/std/alloc/fn.handle_alloc_error.html
4732 [`btree_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.or_default
4733 [`fmt::Alignment`]: https://doc.rust-lang.org/std/fmt/enum.Alignment.html
4734 [`hash_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.or_default
4735 [`iter::repeat_with`]: https://doc.rust-lang.org/std/iter/fn.repeat_with.html
4736 [`num::NonZeroUsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroUsize.html
4737 [`num::NonZeroU128`]: https://doc.rust-lang.org/std/num/struct.NonZeroU128.html
4738 [`num::NonZeroU16`]: https://doc.rust-lang.org/std/num/struct.NonZeroU16.html
4739 [`num::NonZeroU32`]: https://doc.rust-lang.org/std/num/struct.NonZeroU32.html
4740 [`num::NonZeroU64`]: https://doc.rust-lang.org/std/num/struct.NonZeroU64.html
4741 [`num::NonZeroU8`]: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
4742 [`ops::RangeBounds`]: https://doc.rust-lang.org/std/ops/trait.RangeBounds.html
4743 [`slice::SliceIndex`]: https://doc.rust-lang.org/std/slice/trait.SliceIndex.html
4744 [`slice::from_mut`]: https://doc.rust-lang.org/std/slice/fn.from_mut.html
4745 [`slice::from_ref`]: https://doc.rust-lang.org/std/slice/fn.from_ref.html
4746 [`{Any + Send + Sync}::downcast_mut`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_mut-2
4747 [`{Any + Send + Sync}::downcast_ref`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_ref-2
4748 [`{Any + Send + Sync}::is`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.is-2
4749
4750 Version 1.27.2 (2018-07-20)
4751 ===========================
4752
4753 Compatibility Notes
4754 -------------------
4755
4756 - The borrow checker was fixed to avoid potential unsoundness when using
4757   match ergonomics: [#52213][52213].
4758
4759 [52213]: https://github.com/rust-lang/rust/issues/52213
4760
4761 Version 1.27.1 (2018-07-10)
4762 ===========================
4763
4764 Security Notes
4765 --------------
4766
4767 - rustdoc would execute plugins in the /tmp/rustdoc/plugins directory
4768   when running, which enabled executing code as some other user on a
4769   given machine. This release fixes that vulnerability; you can read
4770   more about this on the [blog][rustdoc-sec]. The associated CVE is [CVE-2018-1000622].
4771
4772   Thank you to Red Hat for responsibly disclosing this vulnerability to us.
4773
4774 Compatibility Notes
4775 -------------------
4776
4777 - The borrow checker was fixed to avoid an additional potential unsoundness when using
4778   match ergonomics: [#51415][51415], [#49534][49534].
4779
4780 [51415]: https://github.com/rust-lang/rust/issues/51415
4781 [49534]: https://github.com/rust-lang/rust/issues/49534
4782 [rustdoc-sec]: https://blog.rust-lang.org/2018/07/06/security-advisory-for-rustdoc.html
4783 [CVE-2018-1000622]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=%20CVE-2018-1000622
4784
4785 Version 1.27.0 (2018-06-21)
4786 ==========================
4787
4788 Language
4789 --------
4790 - [Removed 'proc' from the reserved keywords list.][49699] This allows `proc` to
4791   be used as an identifier.
4792 - [The dyn syntax is now available.][49968] This syntax is equivalent to the
4793   bare `Trait` syntax, and should make it clearer when being used in tandem with
4794   `impl Trait` because it is equivalent to the following syntax:
4795   `&Trait == &dyn Trait`, `&mut Trait == &mut dyn Trait`, and
4796   `Box<Trait> == Box<dyn Trait>`.
4797 - [Attributes on generic parameters such as types and lifetimes are
4798   now stable.][48851] e.g.
4799   `fn foo<#[lifetime_attr] 'a, #[type_attr] T: 'a>() {}`
4800 - [The `#[must_use]` attribute can now also be used on functions as well as
4801   types.][48925] It provides a lint that by default warns users when the
4802   value returned by a function has not been used.
4803
4804 Compiler
4805 --------
4806 - [Added the `armv5te-unknown-linux-musleabi` target.][50423]
4807
4808 Libraries
4809 ---------
4810 - [SIMD (Single Instruction Multiple Data) on x86/x86_64 is now stable.][49664]
4811   This includes [`arch::x86`] & [`arch::x86_64`] modules which contain
4812   SIMD intrinsics, a new macro called `is_x86_feature_detected!`, the
4813   `#[target_feature(enable="")]` attribute, and adding `target_feature = ""` to
4814   the `cfg` attribute.
4815 - [A lot of methods for `[u8]`, `f32`, and `f64` previously only available in
4816   std are now available in core.][49896]
4817 - [The generic `Rhs` type parameter on `ops::{Shl, ShlAssign, Shr}` now defaults
4818   to `Self`.][49630]
4819 - [`std::str::replace` now has the `#[must_use]` attribute][50177] to clarify
4820   that the operation isn't done in place.
4821 - [`Clone::clone`, `Iterator::collect`, and `ToOwned::to_owned` now have
4822   the `#[must_use]` attribute][49533] to warn about unused potentially
4823   expensive allocations.
4824
4825 Stabilized APIs
4826 ---------------
4827 - [`DoubleEndedIterator::rfind`]
4828 - [`DoubleEndedIterator::rfold`]
4829 - [`DoubleEndedIterator::try_rfold`]
4830 - [`Duration::from_micros`]
4831 - [`Duration::from_nanos`]
4832 - [`Duration::subsec_micros`]
4833 - [`Duration::subsec_millis`]
4834 - [`HashMap::remove_entry`]
4835 - [`Iterator::try_fold`]
4836 - [`Iterator::try_for_each`]
4837 - [`NonNull::cast`]
4838 - [`Option::filter`]
4839 - [`String::replace_range`]
4840 - [`Take::set_limit`]
4841 - [`hint::unreachable_unchecked`]
4842 - [`os::unix::process::parent_id`]
4843 - [`ptr::swap_nonoverlapping`]
4844 - [`slice::rsplit_mut`]
4845 - [`slice::rsplit`]
4846 - [`slice::swap_with_slice`]
4847
4848 Cargo
4849 -----
4850 - [`cargo-metadata` now includes `authors`, `categories`, `keywords`,
4851   `readme`, and `repository` fields.][cargo/5386]
4852 - [`cargo-metadata` now includes a package's `metadata` table.][cargo/5360]
4853 - [Added the `--target-dir` optional argument.][cargo/5393] This allows you to specify
4854   a different directory than `target` for placing compilation artifacts.
4855 - [Cargo will be adding automatic target inference for binaries, benchmarks,
4856   examples, and tests in the Rust 2018 edition.][cargo/5335] If your project specifies
4857   specific targets, e.g. using `[[bin]]`, and have other binaries in locations
4858   where cargo would infer a binary, Cargo will produce a warning. You can
4859   disable this feature ahead of time by setting any of the following to false:
4860   `autobins`, `autobenches`, `autoexamples`, `autotests`.
4861 - [Cargo will now cache compiler information.][cargo/5359] This can be disabled by
4862   setting `CARGO_CACHE_RUSTC_INFO=0` in your environment.
4863
4864 Misc
4865 ----
4866 - [Added “The Rustc book” into the official documentation.][49707]
4867   [“The Rustc book”] documents and teaches how to use the rustc compiler.
4868 - [All books available on `doc.rust-lang.org` are now searchable.][49623]
4869
4870 Compatibility Notes
4871 -------------------
4872 - [Calling a `CharExt` or `StrExt` method directly on core will no longer
4873   work.][49896] e.g. `::core::prelude::v1::StrExt::is_empty("")` will not
4874   compile, `"".is_empty()` will still compile.
4875 - [`Debug` output on `atomic::{AtomicBool, AtomicIsize, AtomicPtr, AtomicUsize}`
4876   will only print the inner type.][48553] E.g.
4877   `print!("{:?}", AtomicBool::new(true))` will print `true`,
4878   not `AtomicBool(true)`.
4879 - [The maximum number for `repr(align(N))` is now 2²⁹.][50378] Previously you
4880   could enter higher numbers but they were not supported by LLVM. Up to 512MB
4881   alignment should cover all use cases.
4882 - The `.description()` method on the `std::error::Error` trait
4883   [has been soft-deprecated][50163]. It is no longer required to implement it.
4884
4885 [48553]: https://github.com/rust-lang/rust/pull/48553/
4886 [48851]: https://github.com/rust-lang/rust/pull/48851/
4887 [48925]: https://github.com/rust-lang/rust/pull/48925/
4888 [49533]: https://github.com/rust-lang/rust/pull/49533/
4889 [49623]: https://github.com/rust-lang/rust/pull/49623/
4890 [49630]: https://github.com/rust-lang/rust/pull/49630/
4891 [49664]: https://github.com/rust-lang/rust/pull/49664/
4892 [49699]: https://github.com/rust-lang/rust/pull/49699/
4893 [49707]: https://github.com/rust-lang/rust/pull/49707/
4894 [49896]: https://github.com/rust-lang/rust/pull/49896/
4895 [49968]: https://github.com/rust-lang/rust/pull/49968/
4896 [50163]: https://github.com/rust-lang/rust/pull/50163
4897 [50177]: https://github.com/rust-lang/rust/pull/50177/
4898 [50378]: https://github.com/rust-lang/rust/pull/50378/
4899 [50423]: https://github.com/rust-lang/rust/pull/50423/
4900 [cargo/5335]: https://github.com/rust-lang/cargo/pull/5335/
4901 [cargo/5359]: https://github.com/rust-lang/cargo/pull/5359/
4902 [cargo/5360]: https://github.com/rust-lang/cargo/pull/5360/
4903 [cargo/5386]: https://github.com/rust-lang/cargo/pull/5386/
4904 [cargo/5393]: https://github.com/rust-lang/cargo/pull/5393/
4905 [`DoubleEndedIterator::rfind`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfind
4906 [`DoubleEndedIterator::rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfold
4907 [`DoubleEndedIterator::try_rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
4908 [`Duration::from_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_micros
4909 [`Duration::from_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_nanos
4910 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4911 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4912 [`HashMap::remove_entry`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.remove_entry
4913 [`Iterator::try_fold`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_fold
4914 [`Iterator::try_for_each`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
4915 [`NonNull::cast`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.cast
4916 [`Option::filter`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.filter
4917 [`String::replace_range`]: https://doc.rust-lang.org/std/string/struct.String.html#method.replace_range
4918 [`Take::set_limit`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.set_limit
4919 [`hint::unreachable_unchecked`]: https://doc.rust-lang.org/std/hint/fn.unreachable_unchecked.html
4920 [`os::unix::process::parent_id`]: https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html
4921 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
4922 [`ptr::swap_nonoverlapping`]: https://doc.rust-lang.org/std/ptr/fn.swap_nonoverlapping.html
4923 [`slice::rsplit_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit_mut
4924 [`slice::rsplit`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit
4925 [`slice::swap_with_slice`]: https://doc.rust-lang.org/std/primitive.slice.html#method.swap_with_slice
4926 [`arch::x86_64`]: https://doc.rust-lang.org/std/arch/x86_64/index.html
4927 [`arch::x86`]: https://doc.rust-lang.org/std/arch/x86/index.html
4928 [“The Rustc book”]: https://doc.rust-lang.org/rustc
4929
4930
4931 Version 1.26.2 (2018-06-05)
4932 ==========================
4933
4934 Compatibility Notes
4935 -------------------
4936
4937 - [The borrow checker was fixed to avoid unsoundness when using match ergonomics.][51117]
4938
4939 [51117]: https://github.com/rust-lang/rust/issues/51117
4940
4941
4942 Version 1.26.1 (2018-05-29)
4943 ==========================
4944
4945 Tools
4946 -----
4947
4948 - [RLS now works on Windows.][50646]
4949 - [Rustfmt stopped badly formatting text in some cases.][rustfmt/2695]
4950
4951
4952 Compatibility Notes
4953 --------
4954
4955 - [`fn main() -> impl Trait` no longer works for non-Termination
4956   trait.][50656]
4957   This reverts an accidental stabilization.
4958 - [`NaN > NaN` no longer returns true in const-fn contexts.][50812]
4959 - [Prohibit using turbofish for `impl Trait` in method arguments.][50950]
4960
4961 [50646]: https://github.com/rust-lang/rust/issues/50646
4962 [50656]: https://github.com/rust-lang/rust/pull/50656
4963 [50812]: https://github.com/rust-lang/rust/pull/50812
4964 [50950]: https://github.com/rust-lang/rust/issues/50950
4965 [rustfmt/2695]: https://github.com/rust-lang-nursery/rustfmt/issues/2695
4966
4967 Version 1.26.0 (2018-05-10)
4968 ==========================
4969
4970 Language
4971 --------
4972 - [Closures now implement `Copy` and/or `Clone` if all captured variables
4973   implement either or both traits.][49299]
4974 - [The inclusive range syntax e.g. `for x in 0..=10` is now stable.][47813]
4975 - [The `'_` lifetime is now stable. The underscore lifetime can be used anywhere a
4976   lifetime can be elided.][49458]
4977 - [`impl Trait` is now stable allowing you to have abstract types in returns
4978    or in function parameters.][49255] E.g. `fn foo() -> impl Iterator<Item=u8>` or
4979   `fn open(path: impl AsRef<Path>)`.
4980 - [Pattern matching will now automatically apply dereferences.][49394]
4981 - [128-bit integers in the form of `u128` and `i128` are now stable.][49101]
4982 - [`main` can now return `Result<(), E: Debug>`][49162] in addition to `()`.
4983 - [A lot of operations are now available in a const context.][46882] E.g. You
4984   can now index into constant arrays, reference and dereference into constants,
4985   and use tuple struct constructors.
4986 - [Fixed entry slice patterns are now stable.][48516] E.g.
4987   ```rust
4988   let points = [1, 2, 3, 4];
4989   match points {
4990       [1, 2, 3, 4] => println!("All points were sequential."),
4991       _ => println!("Not all points were sequential."),
4992   }
4993   ```
4994
4995
4996 Compiler
4997 --------
4998 - [LLD is now used as the default linker for `wasm32-unknown-unknown`.][48125]
4999 - [Fixed exponential projection complexity on nested types.][48296]
5000   This can provide up to a ~12% reduction in compile times for certain crates.
5001 - [Added the `--remap-path-prefix` option to rustc.][48359] Allowing you
5002   to remap path prefixes outputted by the compiler.
5003 - [Added `powerpc-unknown-netbsd` target.][48281]
5004
5005 Libraries
5006 ---------
5007 - [Implemented `From<u16> for usize` & `From<{u8, i16}> for isize`.][49305]
5008 - [Added hexadecimal formatting for integers with fmt::Debug][48978]
5009   e.g. `assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]")`
5010 - [Implemented `Default, Hash` for `cmp::Reverse`.][48628]
5011 - [Optimized `str::repeat` being 8x faster in large cases.][48657]
5012 - [`ascii::escape_default` is now available in libcore.][48735]
5013 - [Trailing commas are now supported in std and core macros.][48056]
5014 - [Implemented `Copy, Clone` for `cmp::Reverse`][47379]
5015 - [Implemented `Clone` for `char::{ToLowercase, ToUppercase}`.][48629]
5016
5017 Stabilized APIs
5018 ---------------
5019 - [`*const T::add`]
5020 - [`*const T::copy_to_nonoverlapping`]
5021 - [`*const T::copy_to`]
5022 - [`*const T::read_unaligned`]
5023 - [`*const T::read_volatile`]
5024 - [`*const T::read`]
5025 - [`*const T::sub`]
5026 - [`*const T::wrapping_add`]
5027 - [`*const T::wrapping_sub`]
5028 - [`*mut T::add`]
5029 - [`*mut T::copy_to_nonoverlapping`]
5030 - [`*mut T::copy_to`]
5031 - [`*mut T::read_unaligned`]
5032 - [`*mut T::read_volatile`]
5033 - [`*mut T::read`]
5034 - [`*mut T::replace`]
5035 - [`*mut T::sub`]
5036 - [`*mut T::swap`]
5037 - [`*mut T::wrapping_add`]
5038 - [`*mut T::wrapping_sub`]
5039 - [`*mut T::write_bytes`]
5040 - [`*mut T::write_unaligned`]
5041 - [`*mut T::write_volatile`]
5042 - [`*mut T::write`]
5043 - [`Box::leak`]
5044 - [`FromUtf8Error::as_bytes`]
5045 - [`LocalKey::try_with`]
5046 - [`Option::cloned`]
5047 - [`btree_map::Entry::and_modify`]
5048 - [`fs::read_to_string`]
5049 - [`fs::read`]
5050 - [`fs::write`]
5051 - [`hash_map::Entry::and_modify`]
5052 - [`iter::FusedIterator`]
5053 - [`ops::RangeInclusive`]
5054 - [`ops::RangeToInclusive`]
5055 - [`process::id`]
5056 - [`slice::rotate_left`]
5057 - [`slice::rotate_right`]
5058 - [`String::retain`]
5059
5060
5061 Cargo
5062 -----
5063 - [Cargo will now output path to custom commands when `-v` is
5064   passed with `--list`][cargo/5041]
5065 - [The Cargo binary version is now the same as the Rust version][cargo/5083]
5066
5067 Misc
5068 ----
5069 - [The second edition of "The Rust Programming Language" book is now recommended
5070   over the first.][48404]
5071
5072 Compatibility Notes
5073 -------------------
5074
5075 - [aliasing a `Fn` trait as `dyn` no longer works.][48481] E.g. the following
5076   syntax is now invalid.
5077   ```
5078   use std::ops::Fn as dyn;
5079   fn g(_: Box<dyn(std::fmt::Debug)>) {}
5080   ```
5081 - [The result of dereferences are no longer promoted to `'static`.][47408]
5082   e.g.
5083   ```rust
5084   fn main() {
5085       const PAIR: &(i32, i32) = &(0, 1);
5086       let _reversed_pair: &'static _ = &(PAIR.1, PAIR.0); // Doesn't work
5087   }
5088   ```
5089 - [Deprecate `AsciiExt` trait in favor of inherent methods.][49109]
5090 - [`".e0"` will now no longer parse as `0.0` and will instead cause
5091   an error.][48235]
5092 - [Removed hoedown from rustdoc.][48274]
5093 - [Bounds on higher-kinded lifetimes a hard error.][48326]
5094
5095 [46882]: https://github.com/rust-lang/rust/pull/46882
5096 [47379]: https://github.com/rust-lang/rust/pull/47379
5097 [47408]: https://github.com/rust-lang/rust/pull/47408
5098 [47813]: https://github.com/rust-lang/rust/pull/47813
5099 [48056]: https://github.com/rust-lang/rust/pull/48056
5100 [48125]: https://github.com/rust-lang/rust/pull/48125
5101 [48235]: https://github.com/rust-lang/rust/pull/48235
5102 [48274]: https://github.com/rust-lang/rust/pull/48274
5103 [48281]: https://github.com/rust-lang/rust/pull/48281
5104 [48296]: https://github.com/rust-lang/rust/pull/48296
5105 [48326]: https://github.com/rust-lang/rust/pull/48326
5106 [48359]: https://github.com/rust-lang/rust/pull/48359
5107 [48404]: https://github.com/rust-lang/rust/pull/48404
5108 [48481]: https://github.com/rust-lang/rust/pull/48481
5109 [48516]: https://github.com/rust-lang/rust/pull/48516
5110 [48628]: https://github.com/rust-lang/rust/pull/48628
5111 [48629]: https://github.com/rust-lang/rust/pull/48629
5112 [48657]: https://github.com/rust-lang/rust/pull/48657
5113 [48735]: https://github.com/rust-lang/rust/pull/48735
5114 [48978]: https://github.com/rust-lang/rust/pull/48978
5115 [49101]: https://github.com/rust-lang/rust/pull/49101
5116 [49109]: https://github.com/rust-lang/rust/pull/49109
5117 [49162]: https://github.com/rust-lang/rust/pull/49162
5118 [49255]: https://github.com/rust-lang/rust/pull/49255
5119 [49299]: https://github.com/rust-lang/rust/pull/49299
5120 [49305]: https://github.com/rust-lang/rust/pull/49305
5121 [49394]: https://github.com/rust-lang/rust/pull/49394
5122 [49458]: https://github.com/rust-lang/rust/pull/49458
5123 [`*const T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add
5124 [`*const T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping
5125 [`*const T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to
5126 [`*const T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned
5127 [`*const T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile
5128 [`*const T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read
5129 [`*const T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub
5130 [`*const T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add
5131 [`*const T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub
5132 [`*mut T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add-1
5133 [`*mut T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping-1
5134 [`*mut T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to-1
5135 [`*mut T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned-1
5136 [`*mut T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile-1
5137 [`*mut T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read-1
5138 [`*mut T::replace`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.replace
5139 [`*mut T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub-1
5140 [`*mut T::swap`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.swap
5141 [`*mut T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add-1
5142 [`*mut T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub-1
5143 [`*mut T::write_bytes`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_bytes
5144 [`*mut T::write_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_unaligned
5145 [`*mut T::write_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_volatile
5146 [`*mut T::write`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write
5147 [`Box::leak`]: https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak
5148 [`FromUtf8Error::as_bytes`]: https://doc.rust-lang.org/std/string/struct.FromUtf8Error.html#method.as_bytes
5149 [`LocalKey::try_with`]: https://doc.rust-lang.org/std/thread/struct.LocalKey.html#method.try_with
5150 [`Option::cloned`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.cloned
5151 [`btree_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.and_modify
5152 [`fs::read_to_string`]: https://doc.rust-lang.org/std/fs/fn.read_to_string.html
5153 [`fs::read`]: https://doc.rust-lang.org/std/fs/fn.read.html
5154 [`fs::write`]: https://doc.rust-lang.org/std/fs/fn.write.html
5155 [`hash_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.and_modify
5156 [`iter::FusedIterator`]: https://doc.rust-lang.org/std/iter/trait.FusedIterator.html
5157 [`ops::RangeInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html
5158 [`ops::RangeToInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html
5159 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
5160 [`slice::rotate_left`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_left
5161 [`slice::rotate_right`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_right
5162 [`String::retain`]: https://doc.rust-lang.org/std/string/struct.String.html#method.retain
5163 [cargo/5041]: https://github.com/rust-lang/cargo/pull/5041
5164 [cargo/5083]: https://github.com/rust-lang/cargo/pull/5083
5165
5166
5167 Version 1.25.0 (2018-03-29)
5168 ==========================
5169
5170 Language
5171 --------
5172 - [The `#[repr(align(x))]` attribute is now stable.][47006] [RFC 1358]
5173 - [You can now use nested groups of imports.][47948]
5174   e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};`
5175 - [You can now have `|` at the start of a match arm.][47947] e.g.
5176 ```rust
5177 enum Foo { A, B, C }
5178
5179 fn main() {
5180     let x = Foo::A;
5181     match x {
5182         | Foo::A
5183         | Foo::B => println!("AB"),
5184         | Foo::C => println!("C"),
5185     }
5186 }
5187 ```
5188
5189 Compiler
5190 --------
5191 - [Upgraded to LLVM 6.][47828]
5192 - [Added `-C lto=val` option.][47521]
5193 - [Added `i586-unknown-linux-musl` target][47282]
5194
5195 Libraries
5196 ---------
5197 - [Impl Send for `process::Command` on Unix.][47760]
5198 - [Impl PartialEq and Eq for `ParseCharError`.][47790]
5199 - [`UnsafeCell::into_inner` is now safe.][47204]
5200 - [Implement libstd for CloudABI.][47268]
5201 - [`Float::{from_bits, to_bits}` is now available in libcore.][46931]
5202 - [Implement `AsRef<Path>` for Component][46985]
5203 - [Implemented `Write` for `Cursor<&mut Vec<u8>>`][46830]
5204 - [Moved `Duration` to libcore.][46666]
5205
5206 Stabilized APIs
5207 ---------------
5208 - [`Location::column`]
5209 - [`ptr::NonNull`]
5210
5211 The following functions can now be used in a constant expression.
5212 eg. `static MINUTE: Duration = Duration::from_secs(60);`
5213 - [`Duration::new`][47300]
5214 - [`Duration::from_secs`][47300]
5215 - [`Duration::from_millis`][47300]
5216
5217 Cargo
5218 -----
5219 - [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
5220 - [`cargo new` now defaults to creating a binary crate, instead of a
5221   library crate.][cargo/5029]
5222
5223 Misc
5224 ----
5225 - [Rust by example is now shipped with new releases][46196]
5226
5227 Compatibility Notes
5228 -------------------
5229 - [Deprecated `net::lookup_host`.][47510]
5230 - [`rustdoc` has switched to pulldown as the default markdown renderer.][47398]
5231 - The borrow checker was sometimes incorrectly permitting overlapping borrows
5232   around indexing operations (see [#47349][47349]). This has been fixed (which also
5233   enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]).
5234 - [Removed deprecated unstable attribute `#[simd]`.][47251]
5235
5236 [33903]: https://github.com/rust-lang/rust/pull/33903
5237 [47947]: https://github.com/rust-lang/rust/pull/47947
5238 [47948]: https://github.com/rust-lang/rust/pull/47948
5239 [47760]: https://github.com/rust-lang/rust/pull/47760
5240 [47790]: https://github.com/rust-lang/rust/pull/47790
5241 [47828]: https://github.com/rust-lang/rust/pull/47828
5242 [47398]: https://github.com/rust-lang/rust/pull/47398
5243 [47510]: https://github.com/rust-lang/rust/pull/47510
5244 [47521]: https://github.com/rust-lang/rust/pull/47521
5245 [47204]: https://github.com/rust-lang/rust/pull/47204
5246 [47251]: https://github.com/rust-lang/rust/pull/47251
5247 [47268]: https://github.com/rust-lang/rust/pull/47268
5248 [47282]: https://github.com/rust-lang/rust/pull/47282
5249 [47300]: https://github.com/rust-lang/rust/pull/47300
5250 [47349]: https://github.com/rust-lang/rust/pull/47349
5251 [46931]: https://github.com/rust-lang/rust/pull/46931
5252 [46985]: https://github.com/rust-lang/rust/pull/46985
5253 [47006]: https://github.com/rust-lang/rust/pull/47006
5254 [46830]: https://github.com/rust-lang/rust/pull/46830
5255 [46095]: https://github.com/rust-lang/rust/pull/46095
5256 [46666]: https://github.com/rust-lang/rust/pull/46666
5257 [46196]: https://github.com/rust-lang/rust/pull/46196
5258 [cargo/5013]: https://github.com/rust-lang/cargo/pull/5013
5259 [cargo/5029]: https://github.com/rust-lang/cargo/pull/5029
5260 [RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358
5261 [`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column
5262 [`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
5263
5264
5265 Version 1.24.1 (2018-03-01)
5266 ==========================
5267
5268  - [Do not abort when unwinding through FFI][48251]
5269  - [Emit UTF-16 files for linker arguments on Windows][48318]
5270  - [Make the error index generator work again][48308]
5271  - [Cargo will warn on Windows 7 if an update is needed][cargo/5069].
5272
5273 [48251]: https://github.com/rust-lang/rust/issues/48251
5274 [48308]: https://github.com/rust-lang/rust/issues/48308
5275 [48318]: https://github.com/rust-lang/rust/issues/48318
5276 [cargo/5069]: https://github.com/rust-lang/cargo/pull/5069
5277
5278
5279 Version 1.24.0 (2018-02-15)
5280 ==========================
5281
5282 Language
5283 --------
5284 - [External `sysv64` ffi is now available.][46528]
5285   eg. `extern "sysv64" fn foo () {}`
5286
5287 Compiler
5288 --------
5289 - [rustc now uses 16 codegen units by default for release builds.][46910]
5290   For the fastest builds, utilize `codegen-units=1`.
5291 - [Added `armv4t-unknown-linux-gnueabi` target.][47018]
5292 - [Add `aarch64-unknown-openbsd` support][46760]
5293
5294 Libraries
5295 ---------
5296 - [`str::find::<char>` now uses memchr.][46735] This should lead to a 10x
5297   improvement in performance in the majority of cases.
5298 - [`OsStr`'s `Debug` implementation is now lossless and consistent
5299   with Windows.][46798]
5300 - [`time::{SystemTime, Instant}` now implement `Hash`.][46828]
5301 - [impl `From<bool>` for `AtomicBool`][46293]
5302 - [impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`][45990]
5303 - [impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`][45990]
5304 - [impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`][45990]
5305 - [float::from_bits now just uses transmute.][46012] This provides
5306   some optimisations from LLVM.
5307 - [Copied `AsciiExt` methods onto `char`][46077]
5308 - [Remove `T: Sized` requirement on `ptr::is_null()`][46094]
5309 - [impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`][45506]
5310 - [Optimised `f32::{min, max}` to generate more efficient x86 assembly][47080]
5311 - [`[u8]::contains` now uses memchr which provides a 3x speed improvement][46713]
5312
5313 Stabilized APIs
5314 ---------------
5315 - [`RefCell::replace`]
5316 - [`RefCell::swap`]
5317 - [`atomic::spin_loop_hint`]
5318
5319 The following functions can now be used in a constant expression.
5320 eg. `let buffer: [u8; size_of::<usize>()];`, `static COUNTER: AtomicUsize = AtomicUsize::new(1);`
5321
5322 - [`AtomicBool::new`][46287]
5323 - [`AtomicUsize::new`][46287]
5324 - [`AtomicIsize::new`][46287]
5325 - [`AtomicPtr::new`][46287]
5326 - [`Cell::new`][46287]
5327 - [`{integer}::min_value`][46287]
5328 - [`{integer}::max_value`][46287]
5329 - [`mem::size_of`][46287]
5330 - [`mem::align_of`][46287]
5331 - [`ptr::null`][46287]
5332 - [`ptr::null_mut`][46287]
5333 - [`RefCell::new`][46287]
5334 - [`UnsafeCell::new`][46287]
5335
5336 Cargo
5337 -----
5338 - [Added a `workspace.default-members` config that
5339   overrides implied `--all` in virtual workspaces.][cargo/4743]
5340 - [Enable incremental by default on development builds.][cargo/4817] Also added
5341   configuration keys to `Cargo.toml` and `.cargo/config` to disable on a
5342   per-project or global basis respectively.
5343
5344 Misc
5345 ----
5346
5347 Compatibility Notes
5348 -------------------
5349 - [Floating point types `Debug` impl now always prints a decimal point.][46831]
5350 - [`Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses][46671] This is
5351   in accordance with IETF RFC 4291 §2.2.
5352 - [Unwinding will no longer go past FFI boundaries, and will instead abort.][46833]
5353 - [`Formatter::flags` method is now deprecated.][46284] The `sign_plus`,
5354   `sign_minus`, `alternate`, and `sign_aware_zero_pad` should be used instead.
5355 - [Leading zeros in tuple struct members is now an error][47084]
5356 - [`column!()` macro is one-based instead of zero-based][46977]
5357 - [`fmt::Arguments` can no longer be shared across threads][45198]
5358 - [Access to `#[repr(packed)]` struct fields is now unsafe][44884]
5359 - [Cargo sets a different working directory for the compiler][cargo/4788]
5360
5361 [44884]: https://github.com/rust-lang/rust/pull/44884
5362 [45198]: https://github.com/rust-lang/rust/pull/45198
5363 [45506]: https://github.com/rust-lang/rust/pull/45506
5364 [45990]: https://github.com/rust-lang/rust/pull/45990
5365 [46012]: https://github.com/rust-lang/rust/pull/46012
5366 [46077]: https://github.com/rust-lang/rust/pull/46077
5367 [46094]: https://github.com/rust-lang/rust/pull/46094
5368 [46284]: https://github.com/rust-lang/rust/pull/46284
5369 [46287]: https://github.com/rust-lang/rust/pull/46287
5370 [46293]: https://github.com/rust-lang/rust/pull/46293
5371 [46528]: https://github.com/rust-lang/rust/pull/46528
5372 [46671]: https://github.com/rust-lang/rust/pull/46671
5373 [46713]: https://github.com/rust-lang/rust/pull/46713
5374 [46735]: https://github.com/rust-lang/rust/pull/46735
5375 [46760]: https://github.com/rust-lang/rust/pull/46760
5376 [46798]: https://github.com/rust-lang/rust/pull/46798
5377 [46828]: https://github.com/rust-lang/rust/pull/46828
5378 [46831]: https://github.com/rust-lang/rust/pull/46831
5379 [46833]: https://github.com/rust-lang/rust/pull/46833
5380 [46910]: https://github.com/rust-lang/rust/pull/46910
5381 [46977]: https://github.com/rust-lang/rust/pull/46977
5382 [47018]: https://github.com/rust-lang/rust/pull/47018
5383 [47080]: https://github.com/rust-lang/rust/pull/47080
5384 [47084]: https://github.com/rust-lang/rust/pull/47084
5385 [cargo/4743]: https://github.com/rust-lang/cargo/pull/4743
5386 [cargo/4788]: https://github.com/rust-lang/cargo/pull/4788
5387 [cargo/4817]: https://github.com/rust-lang/cargo/pull/4817
5388 [`RefCell::replace`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.replace
5389 [`RefCell::swap`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.swap
5390 [`atomic::spin_loop_hint`]: https://doc.rust-lang.org/std/sync/atomic/fn.spin_loop_hint.html
5391
5392
5393 Version 1.23.0 (2018-01-04)
5394 ==========================
5395
5396 Language
5397 --------
5398 - [Arbitrary `auto` traits are now permitted in trait objects.][45772]
5399 - [rustc now uses subtyping on the left hand side of binary operations.][45435]
5400   Which should fix some confusing errors in some operations.
5401
5402 Compiler
5403 --------
5404 - [Enabled `TrapUnreachable` in LLVM which should mitigate the impact of
5405   undefined behavior.][45920]
5406 - [rustc now suggests renaming import if names clash.][45660]
5407 - [Display errors/warnings correctly when there are zero-width or
5408   wide characters.][45711]
5409 - [rustc now avoids unnecessary copies of arguments that are
5410   simple bindings][45380] This should improve memory usage on average by 5-10%.
5411 - [Updated musl used to build musl rustc to 1.1.17][45393]
5412
5413 Libraries
5414 ---------
5415 - [Allow a trailing comma in `assert_eq/ne` macro][45887]
5416 - [Implement Hash for raw pointers to unsized types][45483]
5417 - [impl `From<*mut T>` for `AtomicPtr<T>`][45610]
5418 - [impl `From<usize/isize>` for `AtomicUsize/AtomicIsize`.][45610]
5419 - [Removed the `T: Sync` requirement for `RwLock<T>: Send`][45267]
5420 - [Removed `T: Sized` requirement for `{<*const T>, <*mut T>}::as_ref`
5421   and `<*mut T>::as_mut`][44932]
5422 - [Optimized `Thread::{park, unpark}` implementation][45524]
5423 - [Improved `SliceExt::binary_search` performance.][45333]
5424 - [impl `FromIterator<()>` for `()`][45379]
5425 - [Copied `AsciiExt` trait methods to primitive types.][44042] Use of `AsciiExt`
5426   is now deprecated.
5427
5428 Stabilized APIs
5429 ---------------
5430
5431 Cargo
5432 -----
5433 - [Cargo now supports uninstallation of multiple packages][cargo/4561]
5434   eg. `cargo uninstall foo bar` uninstalls `foo` and `bar`.
5435 - [Added unit test checking to `cargo check`][cargo/4592]
5436 - [Cargo now lets you install a specific version
5437   using `cargo install --version`][cargo/4637]
5438
5439 Misc
5440 ----
5441 - [Releases now ship with the Cargo book documentation.][45692]
5442 - [rustdoc now prints rendering warnings on every run.][45324]
5443
5444 Compatibility Notes
5445 -------------------
5446 - [Changes have been made to type equality to make it more correct,
5447   in rare cases this could break some code.][45853] [Tracking issue for
5448   further information][45852]
5449 - [`char::escape_debug` now uses Unicode 10 over 9.][45571]
5450 - [Upgraded Android SDK to 27, and NDK to r15c.][45580] This drops support for
5451   Android 9, the minimum supported version is Android 14.
5452 - [Bumped the minimum LLVM to 3.9][45326]
5453
5454 [44042]: https://github.com/rust-lang/rust/pull/44042
5455 [44932]: https://github.com/rust-lang/rust/pull/44932
5456 [45267]: https://github.com/rust-lang/rust/pull/45267
5457 [45324]: https://github.com/rust-lang/rust/pull/45324
5458 [45326]: https://github.com/rust-lang/rust/pull/45326
5459 [45333]: https://github.com/rust-lang/rust/pull/45333
5460 [45379]: https://github.com/rust-lang/rust/pull/45379
5461 [45380]: https://github.com/rust-lang/rust/pull/45380
5462 [45393]: https://github.com/rust-lang/rust/pull/45393
5463 [45435]: https://github.com/rust-lang/rust/pull/45435
5464 [45483]: https://github.com/rust-lang/rust/pull/45483
5465 [45524]: https://github.com/rust-lang/rust/pull/45524
5466 [45571]: https://github.com/rust-lang/rust/pull/45571
5467 [45580]: https://github.com/rust-lang/rust/pull/45580
5468 [45610]: https://github.com/rust-lang/rust/pull/45610
5469 [45660]: https://github.com/rust-lang/rust/pull/45660
5470 [45692]: https://github.com/rust-lang/rust/pull/45692
5471 [45711]: https://github.com/rust-lang/rust/pull/45711
5472 [45772]: https://github.com/rust-lang/rust/pull/45772
5473 [45852]: https://github.com/rust-lang/rust/issues/45852
5474 [45853]: https://github.com/rust-lang/rust/pull/45853
5475 [45887]: https://github.com/rust-lang/rust/pull/45887
5476 [45920]: https://github.com/rust-lang/rust/pull/45920
5477 [cargo/4561]: https://github.com/rust-lang/cargo/pull/4561
5478 [cargo/4592]: https://github.com/rust-lang/cargo/pull/4592
5479 [cargo/4637]: https://github.com/rust-lang/cargo/pull/4637
5480
5481
5482 Version 1.22.1 (2017-11-22)
5483 ==========================
5484
5485 - [Update Cargo to fix an issue with macOS 10.13 "High Sierra"][46183]
5486
5487 [46183]: https://github.com/rust-lang/rust/pull/46183
5488
5489 Version 1.22.0 (2017-11-22)
5490 ==========================
5491
5492 Language
5493 --------
5494 - [`non_snake_case` lint now allows extern no-mangle functions][44966]
5495 - [Now accepts underscores in unicode escapes][43716]
5496 - [`T op= &T` now works for numeric types.][44287] eg. `let mut x = 2; x += &8;`
5497 - [types that impl `Drop` are now allowed in `const` and `static` types][44456]
5498
5499 Compiler
5500 --------
5501 - [rustc now defaults to having 16 codegen units at debug on supported platforms.][45064]
5502 - [rustc will no longer inline in codegen units when compiling for debug][45075]
5503   This should decrease compile times for debug builds.
5504 - [strict memory alignment now enabled on ARMv6][45094]
5505 - [Remove support for the PNaCl target `le32-unknown-nacl`][45041]
5506
5507 Libraries
5508 ---------
5509 - [Allow atomic operations up to 32 bits
5510   on `armv5te_unknown_linux_gnueabi`][44978]
5511 - [`Box<Error>` now impls `From<Cow<str>>`][44466]
5512 - [`std::mem::Discriminant` is now guaranteed to be `Send + Sync`][45095]
5513 - [`fs::copy` now returns the length of the main stream on NTFS.][44895]
5514 - [Properly detect overflow in `Instant += Duration`.][44220]
5515 - [impl `Hasher` for `{&mut Hasher, Box<Hasher>}`][44015]
5516 - [impl `fmt::Debug` for `SplitWhitespace`.][44303]
5517 - [`Option<T>` now impls `Try`][42526] This allows for using `?` with `Option` types.
5518
5519 Stabilized APIs
5520 ---------------
5521
5522 Cargo
5523 -----
5524 - [Cargo will now build multi file examples in subdirectories of the `examples`
5525   folder that have a `main.rs` file.][cargo/4496]
5526 - [Changed `[root]` to `[package]` in `Cargo.lock`][cargo/4571] Packages with
5527   the old format will continue to work and can be updated with `cargo update`.
5528 - [Now supports vendoring git repositories][cargo/3992]
5529
5530 Misc
5531 ----
5532 - [`libbacktrace` is now available on Apple platforms.][44251]
5533 - [Stabilised the `compile_fail` attribute for code fences in doc-comments.][43949]
5534   This now lets you specify that a given code example will fail to compile.
5535
5536 Compatibility Notes
5537 -------------------
5538 - [The minimum Android version that rustc can build for has been bumped
5539   to `4.0` from `2.3`][45656]
5540 - [Allowing `T op= &T` for numeric types has broken some type
5541   inference cases][45480]
5542
5543
5544 [42526]: https://github.com/rust-lang/rust/pull/42526
5545 [43716]: https://github.com/rust-lang/rust/pull/43716
5546 [43949]: https://github.com/rust-lang/rust/pull/43949
5547 [44015]: https://github.com/rust-lang/rust/pull/44015
5548 [44220]: https://github.com/rust-lang/rust/pull/44220
5549 [44251]: https://github.com/rust-lang/rust/pull/44251
5550 [44287]: https://github.com/rust-lang/rust/pull/44287
5551 [44303]: https://github.com/rust-lang/rust/pull/44303
5552 [44456]: https://github.com/rust-lang/rust/pull/44456
5553 [44466]: https://github.com/rust-lang/rust/pull/44466
5554 [44895]: https://github.com/rust-lang/rust/pull/44895
5555 [44966]: https://github.com/rust-lang/rust/pull/44966
5556 [44978]: https://github.com/rust-lang/rust/pull/44978
5557 [45041]: https://github.com/rust-lang/rust/pull/45041
5558 [45064]: https://github.com/rust-lang/rust/pull/45064
5559 [45075]: https://github.com/rust-lang/rust/pull/45075
5560 [45094]: https://github.com/rust-lang/rust/pull/45094
5561 [45095]: https://github.com/rust-lang/rust/pull/45095
5562 [45480]: https://github.com/rust-lang/rust/issues/45480
5563 [45656]: https://github.com/rust-lang/rust/pull/45656
5564 [cargo/3992]: https://github.com/rust-lang/cargo/pull/3992
5565 [cargo/4496]: https://github.com/rust-lang/cargo/pull/4496
5566 [cargo/4571]: https://github.com/rust-lang/cargo/pull/4571
5567
5568
5569
5570
5571
5572
5573 Version 1.21.0 (2017-10-12)
5574 ==========================
5575
5576 Language
5577 --------
5578 - [You can now use static references for literals.][43838]
5579   Example:
5580   ```rust
5581   fn main() {
5582       let x: &'static u32 = &0;
5583   }
5584   ```
5585 - [Relaxed path syntax. Optional `::` before `<` is now allowed in all contexts.][43540]
5586   Example:
5587   ```rust
5588   my_macro!(Vec<i32>::new); // Always worked
5589   my_macro!(Vec::<i32>::new); // Now works
5590   ```
5591
5592 Compiler
5593 --------
5594 - [Upgraded jemalloc to 4.5.0][43911]
5595 - [Enabled unwinding panics on Redox][43917]
5596 - [Now runs LLVM in parallel during translation phase.][43506]
5597   This should reduce peak memory usage.
5598
5599 Libraries
5600 ---------
5601 - [Generate builtin impls for `Clone` for all arrays and tuples that
5602   are `T: Clone`][43690]
5603 - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459]
5604 - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From<str>`,
5605   `From<String>`, `From<Box<T>> where T: ?Sized`, and `From<Vec<T>>`.][42565]
5606
5607 Stabilized APIs
5608 ---------------
5609
5610 [`std::mem::discriminant`]
5611
5612 Cargo
5613 -----
5614 - [You can now call `cargo install` with multiple package names][cargo/4216]
5615 - [Cargo commands inside a virtual workspace will now implicitly
5616   pass `--all`][cargo/4335]
5617 - [Added a `[patch]` section to `Cargo.toml` to handle
5618   prepublication dependencies][cargo/4123] [RFC 1969]
5619 - [`include` & `exclude` fields in `Cargo.toml` now accept gitignore
5620   like patterns][cargo/4270]
5621 - [Added the `--all-targets` option][cargo/4400]
5622 - [Using required dependencies as a feature is now deprecated and emits
5623   a warning][cargo/4364]
5624
5625
5626 Misc
5627 ----
5628 - [Cargo docs are moving][43916]
5629   to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo)
5630 - [The rustdoc book is now available][43863]
5631   at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc)
5632 - [Added a preview of RLS has been made available through rustup][44204]
5633   Install with `rustup component add rls-preview`
5634 - [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348]
5635   Previously only showed `std::os::unix`.
5636
5637 Compatibility Notes
5638 -------------------
5639 - [Changes in method matching against higher-ranked types][43880] This may cause
5640   breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880]
5641 - [rustc's JSON error output's byte position start at top of file.][42973]
5642   Was previously relative to the rustc's internal `CodeMap` struct which
5643   required the unstable library `libsyntax` to correctly use.
5644 - [`unused_results` lint no longer ignores booleans][43728]
5645
5646 [42565]: https://github.com/rust-lang/rust/pull/42565
5647 [42973]: https://github.com/rust-lang/rust/pull/42973
5648 [43348]: https://github.com/rust-lang/rust/pull/43348
5649 [43459]: https://github.com/rust-lang/rust/pull/43459
5650 [43506]: https://github.com/rust-lang/rust/pull/43506
5651 [43540]: https://github.com/rust-lang/rust/pull/43540
5652 [43690]: https://github.com/rust-lang/rust/pull/43690
5653 [43728]: https://github.com/rust-lang/rust/pull/43728
5654 [43838]: https://github.com/rust-lang/rust/pull/43838
5655 [43863]: https://github.com/rust-lang/rust/pull/43863
5656 [43880]: https://github.com/rust-lang/rust/pull/43880
5657 [43911]: https://github.com/rust-lang/rust/pull/43911
5658 [43916]: https://github.com/rust-lang/rust/pull/43916
5659 [43917]: https://github.com/rust-lang/rust/pull/43917
5660 [44204]: https://github.com/rust-lang/rust/pull/44204
5661 [cargo/4123]: https://github.com/rust-lang/cargo/pull/4123
5662 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216
5663 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
5664 [cargo/4335]: https://github.com/rust-lang/cargo/pull/4335
5665 [cargo/4364]: https://github.com/rust-lang/cargo/pull/4364
5666 [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400
5667 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969
5668 [info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902
5669 [`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html
5670
5671 Version 1.20.0 (2017-08-31)
5672 ===========================
5673
5674 Language
5675 --------
5676 - [Associated constants are now stabilised.][42809]
5677 - [A lot of macro bugs are now fixed.][42913]
5678
5679 Compiler
5680 --------
5681
5682 - [Struct fields are now properly coerced to the expected field type.][42807]
5683 - [Enabled wasm LLVM backend][42571] WASM can now be built with the
5684   `wasm32-experimental-emscripten` target.
5685 - [Changed some of the error messages to be more helpful.][42033]
5686 - [Add support for RELRO(RELocation Read-Only) for platforms that support
5687   it.][43170]
5688 - [rustc now reports the total number of errors on compilation failure][43015]
5689   previously this was only the number of errors in the pass that failed.
5690 - [Expansion in rustc has been sped up 29x.][42533]
5691 - [added `msp430-none-elf` target.][43099]
5692 - [rustc will now suggest one-argument enum variant to fix type mismatch when
5693   applicable][43178]
5694 - [Fixes backtraces on Redox][43228]
5695 - [rustc now identifies different versions of same crate when absolute paths of
5696   different types match in an error message.][42826]
5697
5698 Libraries
5699 ---------
5700
5701
5702 - [Relaxed Debug constraints on `{HashMap,BTreeMap}::{Keys,Values}`.][42854]
5703 - [Impl `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Debug`, `Hash` for unsized
5704   tuples.][43011]
5705 - [Impl `fmt::{Display, Debug}` for `Ref`, `RefMut`, `MutexGuard`,
5706   `RwLockReadGuard`, `RwLockWriteGuard`][42822]
5707 - [Impl `Clone` for `DefaultHasher`.][42799]
5708 - [Impl `Sync` for `SyncSender`.][42397]
5709 - [Impl `FromStr` for `char`][42271]
5710 - [Fixed how `{f32, f64}::{is_sign_negative, is_sign_positive}` handles
5711   NaN.][42431]
5712 - [allow messages in the `unimplemented!()` macro.][42155]
5713   ie. `unimplemented!("Waiting for 1.21 to be stable")`
5714 - [`pub(restricted)` is now supported in the `thread_local!` macro.][43185]
5715 - [Upgrade to Unicode 10.0.0][42999]
5716 - [Reimplemented `{f32, f64}::{min, max}` in Rust instead of using CMath.][42430]
5717 - [Skip the main thread's manual stack guard on Linux][43072]
5718 - [Iterator::nth for `ops::{Range, RangeFrom}` is now done in *O*(1) time][43077]
5719 - [`#[repr(align(N))]` attribute max number is now 2^31 - 1.][43097] This was
5720   previously 2^15.
5721 - [`{OsStr, Path}::Display` now avoids allocations where possible][42613]
5722
5723 Stabilized APIs
5724 ---------------
5725
5726 - [`CStr::into_c_string`]
5727 - [`CString::as_c_str`]
5728 - [`CString::into_boxed_c_str`]
5729 - [`Chain::get_mut`]
5730 - [`Chain::get_ref`]
5731 - [`Chain::into_inner`]
5732 - [`Option::get_or_insert_with`]
5733 - [`Option::get_or_insert`]
5734 - [`OsStr::into_os_string`]
5735 - [`OsString::into_boxed_os_str`]
5736 - [`Take::get_mut`]
5737 - [`Take::get_ref`]
5738 - [`Utf8Error::error_len`]
5739 - [`char::EscapeDebug`]
5740 - [`char::escape_debug`]
5741 - [`compile_error!`]
5742 - [`f32::from_bits`]
5743 - [`f32::to_bits`]
5744 - [`f64::from_bits`]
5745 - [`f64::to_bits`]
5746 - [`mem::ManuallyDrop`]
5747 - [`slice::sort_unstable_by_key`]
5748 - [`slice::sort_unstable_by`]
5749 - [`slice::sort_unstable`]
5750 - [`str::from_boxed_utf8_unchecked`]
5751 - [`str::as_bytes_mut`]
5752 - [`str::as_bytes_mut`]
5753 - [`str::from_utf8_mut`]
5754 - [`str::from_utf8_unchecked_mut`]
5755 - [`str::get_mut`]
5756 - [`str::get_unchecked_mut`]
5757 - [`str::get_unchecked`]
5758 - [`str::get`]
5759 - [`str::into_boxed_bytes`]
5760
5761
5762 Cargo
5763 -----
5764 - [Cargo API token location moved from `~/.cargo/config` to
5765   `~/.cargo/credentials`.][cargo/3978]
5766 - [Cargo will now build `main.rs` binaries that are in sub-directories of
5767   `src/bin`.][cargo/4214] ie. Having `src/bin/server/main.rs` and
5768   `src/bin/client/main.rs` generates `target/debug/server` and `target/debug/client`
5769 - [You can now specify version of a binary when installed through
5770   `cargo install` using `--vers`.][cargo/4229]
5771 - [Added `--no-fail-fast` flag to cargo to run all benchmarks regardless of
5772   failure.][cargo/4248]
5773 - [Changed the convention around which file is the crate root.][cargo/4259]
5774
5775 Compatibility Notes
5776 -------------------
5777
5778 - [Functions with `'static` in their return types will now not be as usable as
5779   if they were using lifetime parameters instead.][42417]
5780 - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now
5781   takes the sign of NaN into account where previously didn't.][42430]
5782
5783 [42033]: https://github.com/rust-lang/rust/pull/42033
5784 [42155]: https://github.com/rust-lang/rust/pull/42155
5785 [42271]: https://github.com/rust-lang/rust/pull/42271
5786 [42397]: https://github.com/rust-lang/rust/pull/42397
5787 [42417]: https://github.com/rust-lang/rust/pull/42417
5788 [42430]: https://github.com/rust-lang/rust/pull/42430
5789 [42431]: https://github.com/rust-lang/rust/pull/42431
5790 [42533]: https://github.com/rust-lang/rust/pull/42533
5791 [42571]: https://github.com/rust-lang/rust/pull/42571
5792 [42613]: https://github.com/rust-lang/rust/pull/42613
5793 [42799]: https://github.com/rust-lang/rust/pull/42799
5794 [42807]: https://github.com/rust-lang/rust/pull/42807
5795 [42809]: https://github.com/rust-lang/rust/pull/42809
5796 [42822]: https://github.com/rust-lang/rust/pull/42822
5797 [42826]: https://github.com/rust-lang/rust/pull/42826
5798 [42854]: https://github.com/rust-lang/rust/pull/42854
5799 [42913]: https://github.com/rust-lang/rust/pull/42913
5800 [42999]: https://github.com/rust-lang/rust/pull/42999
5801 [43011]: https://github.com/rust-lang/rust/pull/43011
5802 [43015]: https://github.com/rust-lang/rust/pull/43015
5803 [43072]: https://github.com/rust-lang/rust/pull/43072
5804 [43077]: https://github.com/rust-lang/rust/pull/43077
5805 [43097]: https://github.com/rust-lang/rust/pull/43097
5806 [43099]: https://github.com/rust-lang/rust/pull/43099
5807 [43170]: https://github.com/rust-lang/rust/pull/43170
5808 [43178]: https://github.com/rust-lang/rust/pull/43178
5809 [43185]: https://github.com/rust-lang/rust/pull/43185
5810 [43228]: https://github.com/rust-lang/rust/pull/43228
5811 [cargo/3978]: https://github.com/rust-lang/cargo/pull/3978
5812 [cargo/4214]: https://github.com/rust-lang/cargo/pull/4214
5813 [cargo/4229]: https://github.com/rust-lang/cargo/pull/4229
5814 [cargo/4248]: https://github.com/rust-lang/cargo/pull/4248
5815 [cargo/4259]: https://github.com/rust-lang/cargo/pull/4259
5816 [`CStr::into_c_string`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.into_c_string
5817 [`CString::as_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.as_c_str
5818 [`CString::into_boxed_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str
5819 [`Chain::get_mut`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_mut
5820 [`Chain::get_ref`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_ref
5821 [`Chain::into_inner`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.into_inner
5822 [`Option::get_or_insert_with`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert_with
5823 [`Option::get_or_insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert
5824 [`OsStr::into_os_string`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.into_os_string
5825 [`OsString::into_boxed_os_str`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.into_boxed_os_str
5826 [`Take::get_mut`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_mut
5827 [`Take::get_ref`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_ref
5828 [`Utf8Error::error_len`]: https://doc.rust-lang.org/std/str/struct.Utf8Error.html#method.error_len
5829 [`char::EscapeDebug`]: https://doc.rust-lang.org/std/char/struct.EscapeDebug.html
5830 [`char::escape_debug`]: https://doc.rust-lang.org/std/primitive.char.html#method.escape_debug
5831 [`compile_error!`]: https://doc.rust-lang.org/std/macro.compile_error.html
5832 [`f32::from_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits
5833 [`f32::to_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_bits
5834 [`f64::from_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_bits
5835 [`f64::to_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_bits
5836 [`mem::ManuallyDrop`]: https://doc.rust-lang.org/std/mem/union.ManuallyDrop.html
5837 [`slice::sort_unstable_by_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by_key
5838 [`slice::sort_unstable_by`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by
5839 [`slice::sort_unstable`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable
5840 [`str::from_boxed_utf8_unchecked`]: https://doc.rust-lang.org/std/str/fn.from_boxed_utf8_unchecked.html
5841 [`str::as_bytes_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_bytes_mut
5842 [`str::from_utf8_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_mut.html
5843 [`str::from_utf8_unchecked_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_unchecked_mut.html
5844 [`str::get_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_mut
5845 [`str::get_unchecked_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked_mut
5846 [`str::get_unchecked`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked
5847 [`str::get`]: https://doc.rust-lang.org/std/primitive.str.html#method.get
5848 [`str::into_boxed_bytes`]: https://doc.rust-lang.org/std/primitive.str.html#method.into_boxed_bytes
5849
5850
5851 Version 1.19.0 (2017-07-20)
5852 ===========================
5853
5854 Language
5855 --------
5856
5857 - [Numeric fields can now be used for creating tuple structs.][41145] [RFC 1506]
5858   For example `struct Point(u32, u32); let x = Point { 0: 7, 1: 0 };`.
5859 - [Macro recursion limit increased to 1024 from 64.][41676]
5860 - [Added lint for detecting unused macros.][41907]
5861 - [`loop` can now return a value with `break`.][42016] [RFC 1624]
5862   For example: `let x = loop { break 7; };`
5863 - [C compatible `union`s are now available.][42068] [RFC 1444] They can only
5864   contain `Copy` types and cannot have a `Drop` implementation.
5865   Example: `union Foo { bar: u8, baz: usize }`
5866 - [Non capturing closures can now be coerced into `fn`s,][42162] [RFC 1558]
5867   Example: `let foo: fn(u8) -> u8 = |v: u8| { v };`
5868
5869 Compiler
5870 --------
5871
5872 - [Add support for bootstrapping the Rust compiler toolchain on Android.][41370]
5873 - [Change `arm-linux-androideabi` to correspond to the `armeabi`
5874   official ABI.][41656] If you wish to continue targeting the `armeabi-v7a` ABI
5875   you should use `--target armv7-linux-androideabi`.
5876 - [Fixed ICE when removing a source file between compilation sessions.][41873]
5877 - [Minor optimisation of string operations.][42037]
5878 - [Compiler error message is now `aborting due to previous error(s)` instead of
5879   `aborting due to N previous errors`][42150] This was previously inaccurate and
5880   would only count certain kinds of errors.
5881 - [The compiler now supports Visual Studio 2017][42225]
5882 - [The compiler is now built against LLVM 4.0.1 by default][42948]
5883 - [Added a lot][42264] of [new error codes][42302]
5884 - [Added `target-feature=+crt-static` option][37406] [RFC 1721] Which allows
5885   libraries with C Run-time Libraries(CRT) to be statically linked.
5886 - [Fixed various ARM codegen bugs][42740]
5887
5888 Libraries
5889 ---------
5890
5891 - [`String` now implements `FromIterator<Cow<'a, str>>` and
5892   `Extend<Cow<'a, str>>`][41449]
5893 - [`Vec` now implements `From<&mut [T]>`][41530]
5894 - [`Box<[u8]>` now implements `From<Box<str>>`][41258]
5895 - [`SplitWhitespace` now implements `Clone`][41659]
5896 - [`[u8]::reverse` is now 5x faster and `[u16]::reverse` is now
5897   1.5x faster][41764]
5898 - [`eprint!` and `eprintln!` macros added to prelude.][41192] Same as the `print!`
5899   macros, but for printing to stderr.
5900
5901 Stabilized APIs
5902 ---------------
5903
5904 - [`OsString::shrink_to_fit`]
5905 - [`cmp::Reverse`]
5906 - [`Command::envs`]
5907 - [`thread::ThreadId`]
5908
5909 Cargo
5910 -----
5911
5912 - [Build scripts can now add environment variables to the environment
5913   the crate is being compiled in.
5914   Example: `println!("cargo:rustc-env=FOO=bar");`][cargo/3929]
5915 - [Subcommands now replace the current process rather than spawning a new
5916   child process][cargo/3970]
5917 - [Workspace members can now accept glob file patterns][cargo/3979]
5918 - [Added `--all` flag to the `cargo bench` subcommand to run benchmarks of all
5919   the members in a given workspace.][cargo/3988]
5920 - [Updated `libssh2-sys` to 0.2.6][cargo/4008]
5921 - [Target directory path is now in the cargo metadata][cargo/4022]
5922 - [Cargo no longer checks out a local working directory for the
5923   crates.io index][cargo/4026] This should provide smaller file size for the
5924   registry, and improve cloning times, especially on Windows machines.
5925 - [Added an `--exclude` option for excluding certain packages when using the
5926   `--all` option][cargo/4031]
5927 - [Cargo will now automatically retry when receiving a 5xx error
5928   from crates.io][cargo/4032]
5929 - [The `--features` option now accepts multiple comma or space
5930   delimited values.][cargo/4084]
5931 - [Added support for custom target specific runners][cargo/3954]
5932
5933 Misc
5934 ----
5935
5936 - [Added `rust-windbg.cmd`][39983] for loading rust `.natvis` files in the
5937   Windows Debugger.
5938 - [Rust will now release XZ compressed packages][rust-installer/57]
5939 - [rustup will now prefer to download rust packages with
5940   XZ compression][rustup/1100] over GZip packages.
5941 - [Added the ability to escape `#` in rust documentation][41785] By adding
5942   additional `#`'s ie. `##` is now `#`
5943
5944 Compatibility Notes
5945 -------------------
5946
5947 - [`MutexGuard<T>` may only be `Sync` if `T` is `Sync`.][41624]
5948 - [`-Z` flags are now no longer allowed to be used on the stable
5949   compiler.][41751] This has been a warning for a year previous to this.
5950 - [As a result of the `-Z` flag change, the `cargo-check` plugin no
5951   longer works][42844]. Users should migrate to the built-in `check`
5952   command, which has been available since 1.16.
5953 - [Ending a float literal with `._` is now a hard error.
5954   Example: `42._` .][41946]
5955 - [Any use of a private `extern crate` outside of its module is now a
5956   hard error.][36886] This was previously a warning.
5957 - [`use ::self::foo;` is now a hard error.][36888] `self` paths are always
5958   relative while the `::` prefix makes a path absolute, but was ignored and the
5959   path was relative regardless.
5960 - [Floating point constants in match patterns is now a hard error][36890]
5961   This was previously a warning.
5962 - [Struct or enum constants that don't derive `PartialEq` & `Eq` used
5963   match patterns is now a hard error][36891] This was previously a warning.
5964 - [Lifetimes named `'_` are no longer allowed.][36892] This was previously
5965   a warning.
5966 - [From the pound escape, lines consisting of multiple `#`s are
5967   now visible][41785]
5968 - [It is an error to re-export private enum variants][42460]. This is
5969   known to break a number of crates that depend on an older version of
5970   mustache.
5971 - [On Windows, if `VCINSTALLDIR` is set incorrectly, `rustc` will try
5972   to use it to find the linker, and the build will fail where it did
5973   not previously][42607]
5974
5975 [36886]: https://github.com/rust-lang/rust/issues/36886
5976 [36888]: https://github.com/rust-lang/rust/issues/36888
5977 [36890]: https://github.com/rust-lang/rust/issues/36890
5978 [36891]: https://github.com/rust-lang/rust/issues/36891
5979 [36892]: https://github.com/rust-lang/rust/issues/36892
5980 [37406]: https://github.com/rust-lang/rust/issues/37406
5981 [39983]: https://github.com/rust-lang/rust/pull/39983
5982 [41145]: https://github.com/rust-lang/rust/pull/41145
5983 [41192]: https://github.com/rust-lang/rust/pull/41192
5984 [41258]: https://github.com/rust-lang/rust/pull/41258
5985 [41370]: https://github.com/rust-lang/rust/pull/41370
5986 [41449]: https://github.com/rust-lang/rust/pull/41449
5987 [41530]: https://github.com/rust-lang/rust/pull/41530
5988 [41624]: https://github.com/rust-lang/rust/pull/41624
5989 [41656]: https://github.com/rust-lang/rust/pull/41656
5990 [41659]: https://github.com/rust-lang/rust/pull/41659
5991 [41676]: https://github.com/rust-lang/rust/pull/41676
5992 [41751]: https://github.com/rust-lang/rust/pull/41751
5993 [41764]: https://github.com/rust-lang/rust/pull/41764
5994 [41785]: https://github.com/rust-lang/rust/pull/41785
5995 [41873]: https://github.com/rust-lang/rust/pull/41873
5996 [41907]: https://github.com/rust-lang/rust/pull/41907
5997 [41946]: https://github.com/rust-lang/rust/pull/41946
5998 [42016]: https://github.com/rust-lang/rust/pull/42016
5999 [42037]: https://github.com/rust-lang/rust/pull/42037
6000 [42068]: https://github.com/rust-lang/rust/pull/42068
6001 [42150]: https://github.com/rust-lang/rust/pull/42150
6002 [42162]: https://github.com/rust-lang/rust/pull/42162
6003 [42225]: https://github.com/rust-lang/rust/pull/42225
6004 [42264]: https://github.com/rust-lang/rust/pull/42264
6005 [42302]: https://github.com/rust-lang/rust/pull/42302
6006 [42460]: https://github.com/rust-lang/rust/issues/42460
6007 [42607]: https://github.com/rust-lang/rust/issues/42607
6008 [42740]: https://github.com/rust-lang/rust/pull/42740
6009 [42844]: https://github.com/rust-lang/rust/issues/42844
6010 [42948]: https://github.com/rust-lang/rust/pull/42948
6011 [RFC 1444]: https://github.com/rust-lang/rfcs/pull/1444
6012 [RFC 1506]: https://github.com/rust-lang/rfcs/pull/1506
6013 [RFC 1558]: https://github.com/rust-lang/rfcs/pull/1558
6014 [RFC 1624]: https://github.com/rust-lang/rfcs/pull/1624
6015 [RFC 1721]: https://github.com/rust-lang/rfcs/pull/1721
6016 [`Command::envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.envs
6017 [`OsString::shrink_to_fit`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.shrink_to_fit
6018 [`cmp::Reverse`]: https://doc.rust-lang.org/std/cmp/struct.Reverse.html
6019 [`thread::ThreadId`]: https://doc.rust-lang.org/std/thread/struct.ThreadId.html
6020 [cargo/3929]: https://github.com/rust-lang/cargo/pull/3929
6021 [cargo/3954]: https://github.com/rust-lang/cargo/pull/3954
6022 [cargo/3970]: https://github.com/rust-lang/cargo/pull/3970
6023 [cargo/3979]: https://github.com/rust-lang/cargo/pull/3979
6024 [cargo/3988]: https://github.com/rust-lang/cargo/pull/3988
6025 [cargo/4008]: https://github.com/rust-lang/cargo/pull/4008
6026 [cargo/4022]: https://github.com/rust-lang/cargo/pull/4022
6027 [cargo/4026]: https://github.com/rust-lang/cargo/pull/4026
6028 [cargo/4031]: https://github.com/rust-lang/cargo/pull/4031
6029 [cargo/4032]: https://github.com/rust-lang/cargo/pull/4032
6030 [cargo/4084]: https://github.com/rust-lang/cargo/pull/4084
6031 [rust-installer/57]: https://github.com/rust-lang/rust-installer/pull/57
6032 [rustup/1100]: https://github.com/rust-lang-nursery/rustup.rs/pull/1100
6033
6034
6035 Version 1.18.0 (2017-06-08)
6036 ===========================
6037
6038 Language
6039 --------
6040
6041 - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to
6042   make the item visible to just that module tree. Also accepts the keyword
6043   `crate` to make something public to the whole crate but not users of the
6044   library. Example: `pub(crate) mod utils;`. [RFC 1422].
6045 - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the
6046   `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665].
6047 - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept
6048   types like `Write + Send`, trailing `+` are now supported in trait objects,
6049   and better error reporting for trait objects starting with `?Sized`.
6050 - [0e+10 is now a valid floating point literal][40589]
6051 - [Now warns if you bind a lifetime parameter to 'static][40734]
6052 - [Tuples, Enum variant fields, and structs with no `repr` attribute or with
6053   `#[repr(Rust)]` are reordered to minimize padding and produce a smaller
6054   representation in some cases.][40377]
6055
6056 Compiler
6057 --------
6058
6059 - [rustc can now emit mir with `--emit mir`][39891]
6060 - [Improved LLVM IR for trivial functions][40367]
6061 - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723]
6062 - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation
6063   opportunities found through profiling
6064 - [Improved backtrace formatting when panicking][38165]
6065
6066 Libraries
6067 ---------
6068
6069 - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the
6070   iterator hasn't been advanced the original `Vec` is reassembled with no actual
6071   iteration or reallocation.
6072 - [Simplified HashMap Bucket interface][40561] provides performance
6073   improvements for iterating and cloning.
6074 - [Specialize Vec::from_elem to use calloc][40409]
6075 - [Fixed Race condition in fs::create_dir_all][39799]
6076 - [No longer caching stdio on Windows][40516]
6077 - [Optimized insertion sort in slice][40807] insertion sort in some cases
6078   2.50%~ faster and in one case now 12.50% faster.
6079 - [Optimized `AtomicBool::fetch_nand`][41143]
6080
6081 Stabilized APIs
6082 ---------------
6083
6084 - [`Child::try_wait`]
6085 - [`HashMap::retain`]
6086 - [`HashSet::retain`]
6087 - [`PeekMut::pop`]
6088 - [`TcpStream::peek`]
6089 - [`UdpSocket::peek`]
6090 - [`UdpSocket::peek_from`]
6091
6092 Cargo
6093 -----
6094
6095 - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust.
6096   You can now create new cargo projects with Pijul using `cargo new --vcs pijul`
6097 - [Now always emits build script warnings for crates that fail to build][cargo/3847]
6098 - [Added Android build support][cargo/3885]
6099 - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs
6100   of a certain type, for example `cargo build --bins` will build all
6101   binaries.
6102 - [Added support for haiku][cargo/3952]
6103
6104 Misc
6105 ----
6106
6107 - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338]
6108 - [Rust now uses the official cross compiler for NetBSD][40612]
6109 - [rustdoc now accepts `#` at the start of files][40828]
6110 - [Fixed jemalloc support for musl][41168]
6111
6112 Compatibility Notes
6113 -------------------
6114
6115 - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now
6116   always placed after the sign if it exists and before the digits. With the `#`
6117   flag the zeroes are placed after the prefix and before the digits.
6118 - [Due to the struct field optimisation][40377], using `transmute` on structs
6119   that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has
6120   always been undefined behavior, but is now more likely to break in practice.
6121 - [The refactor of trait object type parsing][40043] fixed a bug where `+` was
6122   receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as
6123   `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send`
6124 - [Overlapping inherent `impl`s are now a hard error][40728]
6125 - [`PartialOrd` and `Ord` must agree on the ordering.][41270]
6126 - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output
6127   `out.asm` and `out.ll` instead of only one of the filetypes.
6128 - [ calling a function that returns `Self` will no longer work][41805] when
6129   the size of `Self` cannot be statically determined.
6130 - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805]
6131   this has caused a few regressions namely:
6132
6133   - Changed the link order of local static/dynamic libraries (respecting the
6134     order on given rather than having the compiler reorder).
6135   - Changed how MinGW is linked, native code linked to dynamic libraries
6136     may require manually linking to the gcc support library (for the native
6137     code itself)
6138
6139 [38165]: https://github.com/rust-lang/rust/pull/38165
6140 [39799]: https://github.com/rust-lang/rust/pull/39799
6141 [39891]: https://github.com/rust-lang/rust/pull/39891
6142 [40043]: https://github.com/rust-lang/rust/pull/40043
6143 [40241]: https://github.com/rust-lang/rust/pull/40241
6144 [40338]: https://github.com/rust-lang/rust/pull/40338
6145 [40367]: https://github.com/rust-lang/rust/pull/40367
6146 [40377]: https://github.com/rust-lang/rust/pull/40377
6147 [40409]: https://github.com/rust-lang/rust/pull/40409
6148 [40516]: https://github.com/rust-lang/rust/pull/40516
6149 [40556]: https://github.com/rust-lang/rust/pull/40556
6150 [40561]: https://github.com/rust-lang/rust/pull/40561
6151 [40589]: https://github.com/rust-lang/rust/pull/40589
6152 [40612]: https://github.com/rust-lang/rust/pull/40612
6153 [40723]: https://github.com/rust-lang/rust/pull/40723
6154 [40728]: https://github.com/rust-lang/rust/pull/40728
6155 [40731]: https://github.com/rust-lang/rust/pull/40731
6156 [40734]: https://github.com/rust-lang/rust/pull/40734
6157 [40805]: https://github.com/rust-lang/rust/pull/40805
6158 [40807]: https://github.com/rust-lang/rust/pull/40807
6159 [40828]: https://github.com/rust-lang/rust/pull/40828
6160 [40870]: https://github.com/rust-lang/rust/pull/40870
6161 [41085]: https://github.com/rust-lang/rust/pull/41085
6162 [41143]: https://github.com/rust-lang/rust/pull/41143
6163 [41168]: https://github.com/rust-lang/rust/pull/41168
6164 [41270]: https://github.com/rust-lang/rust/issues/41270
6165 [41469]: https://github.com/rust-lang/rust/pull/41469
6166 [41805]: https://github.com/rust-lang/rust/issues/41805
6167 [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md
6168 [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md
6169 [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
6170 [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain
6171 [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain
6172 [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop
6173 [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek
6174 [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from
6175 [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek
6176 [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842
6177 [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847
6178 [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885
6179 [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901
6180 [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952
6181
6182
6183 Version 1.17.0 (2017-04-27)
6184 ===========================
6185
6186 Language
6187 --------
6188
6189 * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
6190 * [Fields of structs may be initialized without duplicating the field/variable
6191   names][39761]. [RFC 1682]
6192 * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
6193 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6194   there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
6195   coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
6196   `'b`. Soundness fix.
6197 * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
6198 * [Static variables may contain references to other statics][40027]
6199
6200 Compiler
6201 --------
6202
6203 * [Exit quickly on only `--emit dep-info`][40336]
6204 * [Make `-C relocation-model` more correctly determine whether the linker
6205   creates a position-independent executable][40245]
6206 * [Add `-C overflow-checks` to directly control whether integer overflow
6207   panics][40037]
6208 * [The rustc type checker now checks items on demand instead of in a single
6209   in-order pass][40008]. This is mostly an internal refactoring in support of
6210   future work, including incremental type checking, but also resolves [RFC
6211   1647], allowing `Self` to appear in `impl` `where` clauses.
6212 * [Optimize vtable loads][39995]
6213 * [Turn off vectorization for Emscripten targets][39990]
6214 * [Provide suggestions for unknown macros imported with `use`][39953]
6215 * [Fix ICEs in path resolution][39939]
6216 * [Strip exception handling code on Emscripten when `panic=abort`][39193]
6217 * [Add clearer error message using `&str + &str`][39116]
6218
6219 Stabilized APIs
6220 ---------------
6221
6222 * [`Arc::into_raw`]
6223 * [`Arc::from_raw`]
6224 * [`Arc::ptr_eq`]
6225 * [`Rc::into_raw`]
6226 * [`Rc::from_raw`]
6227 * [`Rc::ptr_eq`]
6228 * [`Ordering::then`]
6229 * [`Ordering::then_with`]
6230 * [`BTreeMap::range`]
6231 * [`BTreeMap::range_mut`]
6232 * [`collections::Bound`]
6233 * [`process::abort`]
6234 * [`ptr::read_unaligned`]
6235 * [`ptr::write_unaligned`]
6236 * [`Result::expect_err`]
6237 * [`Cell::swap`]
6238 * [`Cell::replace`]
6239 * [`Cell::into_inner`]
6240 * [`Cell::take`]
6241
6242 Libraries
6243 ---------
6244
6245 * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
6246 * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
6247 * [`String` implements `FromIterator<&char>`][40028]
6248 * `Box` [implements][40009] a number of new conversions:
6249   `From<Box<str>> for String`,
6250   `From<Box<[T]>> for Vec<T>`,
6251   `From<Box<CStr>> for CString`,
6252   `From<Box<OsStr>> for OsString`,
6253   `From<Box<Path>> for PathBuf`,
6254   `Into<Box<str>> for String`,
6255   `Into<Box<[T]>> for Vec<T>`,
6256   `Into<Box<CStr>> for CString`,
6257   `Into<Box<OsStr>> for OsString`,
6258   `Into<Box<Path>> for PathBuf`,
6259   `Default for Box<str>`,
6260   `Default for Box<CStr>`,
6261   `Default for Box<OsStr>`,
6262   `From<&CStr> for Box<CStr>`,
6263   `From<&OsStr> for Box<OsStr>`,
6264   `From<&Path> for Box<Path>`
6265 * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
6266 * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
6267 * [Slightly optimize `slice::sort`][39538]
6268 * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
6269 * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
6270   `Box<str>` implements `From<&str>`][39438]
6271 * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
6272   `From<(I, u16)> where I: Into<IpAddr>`][39372]
6273 * [`format!` estimates the needed capacity before writing a string][39356]
6274 * [Support unprivileged symlink creation in Windows][38921]
6275 * [`PathBuf` implements `Default`][38764]
6276 * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
6277 * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
6278   and poor hash functions.
6279
6280 Cargo
6281 -----
6282
6283 * [Add `cargo check --all`][cargo/3731]
6284 * [Add an option to ignore SSL revocation checking][cargo/3699]
6285 * [Add `cargo run --package`][cargo/3691]
6286 * [Add `required_features`][cargo/3667]
6287 * [Assume `build.rs` is a build script][cargo/3664]
6288 * [Find workspace via `workspace_root` link in containing member][cargo/3562]
6289
6290 Misc
6291 ----
6292
6293 * [Documentation is rendered with mdbook instead of the obsolete, in-tree
6294   `rustbook`][39633]
6295 * [The "Unstable Book" documents nightly-only features][ubook]
6296 * [Improve the style of the sidebar in rustdoc output][40265]
6297 * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
6298 * [Fix MSP430 breakage due to `i128`][40257]
6299 * [Preliminary Solaris/SPARCv9 support][39903]
6300 * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
6301   run without installing the MSVC runtime.
6302 * [`rustdoc --test` includes file names in test names][39788]
6303 * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
6304   `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
6305 * [Initial support for `aarch64-unknown-freebsd`][39491]
6306 * [Initial support for `i686-unknown-netbsd`][39426]
6307 * [This release no longer includes the old makefile build system][39431]. Rust
6308   is built with a custom build system, written in Rust, and with Cargo.
6309 * [Add Debug implementations for libcollection structs][39002]
6310 * [`TypeId` implements `PartialOrd` and `Ord`][38981]
6311 * [`--test-threads=0` produces an error][38945]
6312 * [`rustup` installs documentation by default][40526]
6313 * [The Rust source includes NatVis visualizations][39843]. These can be used by
6314   WinDbg and Visual Studio to improve the debugging experience.
6315
6316 Compatibility Notes
6317 -------------------
6318
6319 * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
6320   workaround, either use MSVC 2015 or run vcvars.bat.
6321 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6322   disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
6323   `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
6324   fix.
6325 * [`format!` and `Display::to_string` panic if an underlying formatting
6326   implementation returns an error][40117]. Previously the error was silently
6327   ignored. It is incorrect for `write_fmt` to return an error when writing
6328   to a string.
6329 * [In-tree crates are verified to be unstable][39851]. Previously, some minor
6330   crates were marked stable and could be accessed from the stable toolchain.
6331 * [Rust git source no longer includes vendored crates][39728]. Those that need
6332   to build with vendored crates should build from release tarballs.
6333 * [Fix inert attributes from `proc_macro_derives`][39572]
6334 * [During crate resolution, rustc prefers a crate in the sysroot if two crates
6335   are otherwise identical][39518]. Unlikely to be encountered outside the Rust
6336   build system.
6337 * [Fixed bugs around how type inference interacts with dead-code][39485]. The
6338   existing code generally ignores the type of dead-code unless a type-hint is
6339   provided; this can cause surprising inference interactions particularly around
6340   defaulting. The new code uniformly ignores the result type of dead-code.
6341 * [Tuple-struct constructors with private fields are no longer visible][38932]
6342 * [Lifetime parameters that do not appear in the arguments are now considered
6343   early-bound][38897], resolving a soundness bug (#[32330]). The
6344   `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
6345   April of 2016.
6346 * [rustdoc: fix doctests with non-feature crate attributes][38161]
6347 * [Make transmuting from fn item types to pointer-sized types a hard
6348   error][34198]
6349
6350 [27787]: https://github.com/rust-lang/rust/issues/27787
6351 [32330]: https://github.com/rust-lang/rust/issues/32330
6352 [34198]: https://github.com/rust-lang/rust/pull/34198
6353 [38161]: https://github.com/rust-lang/rust/pull/38161
6354 [38368]: https://github.com/rust-lang/rust/pull/38368
6355 [38584]: https://github.com/rust-lang/rust/issues/38584
6356 [38661]: https://github.com/rust-lang/rust/pull/38661
6357 [38764]: https://github.com/rust-lang/rust/pull/38764
6358 [38864]: https://github.com/rust-lang/rust/issues/38864
6359 [38897]: https://github.com/rust-lang/rust/pull/38897
6360 [38921]: https://github.com/rust-lang/rust/pull/38921
6361 [38932]: https://github.com/rust-lang/rust/pull/38932
6362 [38945]: https://github.com/rust-lang/rust/pull/38945
6363 [38981]: https://github.com/rust-lang/rust/pull/38981
6364 [39002]: https://github.com/rust-lang/rust/pull/39002
6365 [39116]: https://github.com/rust-lang/rust/pull/39116
6366 [39193]: https://github.com/rust-lang/rust/pull/39193
6367 [39265]: https://github.com/rust-lang/rust/pull/39265
6368 [39356]: https://github.com/rust-lang/rust/pull/39356
6369 [39372]: https://github.com/rust-lang/rust/pull/39372
6370 [39426]: https://github.com/rust-lang/rust/pull/39426
6371 [39431]: https://github.com/rust-lang/rust/pull/39431
6372 [39438]: https://github.com/rust-lang/rust/pull/39438
6373 [39440]: https://github.com/rust-lang/rust/pull/39440
6374 [39485]: https://github.com/rust-lang/rust/pull/39485
6375 [39491]: https://github.com/rust-lang/rust/pull/39491
6376 [39518]: https://github.com/rust-lang/rust/pull/39518
6377 [39538]: https://github.com/rust-lang/rust/pull/39538
6378 [39572]: https://github.com/rust-lang/rust/pull/39572
6379 [39633]: https://github.com/rust-lang/rust/pull/39633
6380 [39642]: https://github.com/rust-lang/rust/pull/39642
6381 [39728]: https://github.com/rust-lang/rust/pull/39728
6382 [39761]: https://github.com/rust-lang/rust/pull/39761
6383 [39788]: https://github.com/rust-lang/rust/pull/39788
6384 [39793]: https://github.com/rust-lang/rust/pull/39793
6385 [39837]: https://github.com/rust-lang/rust/pull/39837
6386 [39843]: https://github.com/rust-lang/rust/pull/39843
6387 [39851]: https://github.com/rust-lang/rust/pull/39851
6388 [39903]: https://github.com/rust-lang/rust/pull/39903
6389 [39939]: https://github.com/rust-lang/rust/pull/39939
6390 [39953]: https://github.com/rust-lang/rust/pull/39953
6391 [39960]: https://github.com/rust-lang/rust/pull/39960
6392 [39990]: https://github.com/rust-lang/rust/pull/39990
6393 [39995]: https://github.com/rust-lang/rust/pull/39995
6394 [40008]: https://github.com/rust-lang/rust/pull/40008
6395 [40009]: https://github.com/rust-lang/rust/pull/40009
6396 [40027]: https://github.com/rust-lang/rust/pull/40027
6397 [40028]: https://github.com/rust-lang/rust/pull/40028
6398 [40037]: https://github.com/rust-lang/rust/pull/40037
6399 [40117]: https://github.com/rust-lang/rust/pull/40117
6400 [40166]: https://github.com/rust-lang/rust/pull/40166
6401 [40245]: https://github.com/rust-lang/rust/pull/40245
6402 [40257]: https://github.com/rust-lang/rust/pull/40257
6403 [40261]: https://github.com/rust-lang/rust/pull/40261
6404 [40265]: https://github.com/rust-lang/rust/pull/40265
6405 [40319]: https://github.com/rust-lang/rust/pull/40319
6406 [40336]: https://github.com/rust-lang/rust/pull/40336
6407 [40526]: https://github.com/rust-lang/rust/pull/40526
6408 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
6409 [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
6410 [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
6411 [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
6412 [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
6413 [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
6414 [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
6415 [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
6416 [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
6417 [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
6418 [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
6419 [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
6420 [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
6421 [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
6422 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
6423 [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
6424 [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
6425 [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
6426 [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
6427 [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
6428 [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
6429 [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
6430 [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
6431 [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
6432 [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
6433 [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
6434 [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
6435 [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
6436 [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
6437 [ubook]: https://doc.rust-lang.org/unstable-book/
6438
6439
6440 Version 1.16.0 (2017-03-16)
6441 ===========================
6442
6443 Language
6444 --------
6445
6446 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6447 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6448   match patterns][38069]
6449 * [Clean up semantics of `self` in an import list][38313]
6450 * [`Self` may appear in `impl` headers][38920]
6451 * [`Self` may appear in struct expressions][39282]
6452
6453 Compiler
6454 --------
6455
6456 * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
6457   a `.rmeta` file containing only crate metadata][38571]. This can be
6458   used by tools like the Rust Language Service to perform
6459   metadata-only builds.
6460 * [Levenshtein based typo suggestions now work in most places, while
6461   previously they worked only for fields and sometimes for local
6462   variables][38927]. Together with the overhaul of "no
6463   resolution"/"unexpected resolution" errors (#[38154]) they result in
6464   large and systematic improvement in resolution diagnostics.
6465 * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
6466   `U`][38670]
6467 * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
6468 * [`rustc` no longer attempts to provide "consider using an explicit
6469   lifetime" suggestions][37057]. They were inaccurate.
6470
6471 Stabilized APIs
6472 ---------------
6473
6474 * [`VecDeque::truncate`]
6475 * [`VecDeque::resize`]
6476 * [`String::insert_str`]
6477 * [`Duration::checked_add`]
6478 * [`Duration::checked_sub`]
6479 * [`Duration::checked_div`]
6480 * [`Duration::checked_mul`]
6481 * [`str::replacen`]
6482 * [`str::repeat`]
6483 * [`SocketAddr::is_ipv4`]
6484 * [`SocketAddr::is_ipv6`]
6485 * [`IpAddr::is_ipv4`]
6486 * [`IpAddr::is_ipv6`]
6487 * [`Vec::dedup_by`]
6488 * [`Vec::dedup_by_key`]
6489 * [`Result::unwrap_or_default`]
6490 * [`<*const T>::wrapping_offset`]
6491 * [`<*mut T>::wrapping_offset`]
6492 * `CommandExt::creation_flags`
6493 * [`File::set_permissions`]
6494 * [`String::split_off`]
6495
6496 Libraries
6497 ---------
6498
6499 * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
6500   their argument by `Borrow` parameter][37761]
6501 * [All public types in std implement `Debug`][38006]
6502 * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
6503 * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
6504 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6505   Windows][38274]
6506 * [std: Fix partial writes in `LineWriter`][38062]
6507 * [std: Clamp max read/write sizes on Unix][38622]
6508 * [Use more specific panic message for `&str` slicing errors][38066]
6509 * [`TcpListener::set_only_v6` is deprecated][38304]. This
6510   functionality cannot be achieved in std currently.
6511 * [`writeln!`, like `println!`, now accepts a form with no string
6512   or formatting arguments, to just print a newline][38469]
6513 * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
6514 * [Reduce the size of static data in `std_unicode::tables`][38781]
6515 * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
6516   `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
6517   `Display`][38909]
6518 * [`Duration` implements `Sum`][38712]
6519 * [`String` implements `ToSocketAddrs`][39048]
6520
6521 Cargo
6522 -----
6523
6524 * [The `cargo check` command does a type check of a project without
6525   building it][cargo/3296]
6526 * [crates.io will display CI badges from Travis and AppVeyor, if
6527   specified in Cargo.toml][cargo/3546]
6528 * [crates.io will display categories listed in Cargo.toml][cargo/3301]
6529 * [Compilation profiles accept integer values for `debug`, in addition
6530   to `true` and `false`. These are passed to `rustc` as the value to
6531   `-C debuginfo`][cargo/3534]
6532 * [Implement `cargo --version --verbose`][cargo/3604]
6533 * [All builds now output 'dep-info' build dependencies compatible with
6534   make and ninja][cargo/3557]
6535 * [Build all workspace members with `build --all`][cargo/3511]
6536 * [Document all workspace members with `doc --all`][cargo/3515]
6537 * [Path deps outside workspace are not members][cargo/3443]
6538
6539 Misc
6540 ----
6541
6542 * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
6543   the path to the Rust implementation][38589]
6544 * [The `armv7-linux-androideabi` target no longer enables NEON
6545   extensions, per Google's ABI guide][38413]
6546 * [The stock standard library can be compiled for Redox OS][38401]
6547 * [Rust has initial SPARC support][38726]. Tier 3. No builds
6548   available.
6549 * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
6550   builds available.
6551 * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
6552
6553 Compatibility Notes
6554 -------------------
6555
6556 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6557   match patterns][38069]
6558 * In this release, references to uninhabited types can not be
6559   pattern-matched. This was accidentally allowed in 1.15.
6560 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6561 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6562   Windows][38274]
6563 * [Clean up semantics of `self` in an import list][38313]
6564 * Reimplemented lifetime elision. This change was almost entirely compatible
6565   with existing code, but it did close a number of small bugs and loopholes,
6566   as well as being more accepting in some other [cases][41105].
6567
6568 [37057]: https://github.com/rust-lang/rust/pull/37057
6569 [37761]: https://github.com/rust-lang/rust/pull/37761
6570 [38006]: https://github.com/rust-lang/rust/pull/38006
6571 [38051]: https://github.com/rust-lang/rust/pull/38051
6572 [38062]: https://github.com/rust-lang/rust/pull/38062
6573 [38622]: https://github.com/rust-lang/rust/pull/38622
6574 [38066]: https://github.com/rust-lang/rust/pull/38066
6575 [38069]: https://github.com/rust-lang/rust/pull/38069
6576 [38131]: https://github.com/rust-lang/rust/pull/38131
6577 [38154]: https://github.com/rust-lang/rust/pull/38154
6578 [38274]: https://github.com/rust-lang/rust/pull/38274
6579 [38304]: https://github.com/rust-lang/rust/pull/38304
6580 [38313]: https://github.com/rust-lang/rust/pull/38313
6581 [38327]: https://github.com/rust-lang/rust/pull/38327
6582 [38401]: https://github.com/rust-lang/rust/pull/38401
6583 [38413]: https://github.com/rust-lang/rust/pull/38413
6584 [38469]: https://github.com/rust-lang/rust/pull/38469
6585 [38559]: https://github.com/rust-lang/rust/pull/38559
6586 [38571]: https://github.com/rust-lang/rust/pull/38571
6587 [38580]: https://github.com/rust-lang/rust/pull/38580
6588 [38589]: https://github.com/rust-lang/rust/pull/38589
6589 [38670]: https://github.com/rust-lang/rust/pull/38670
6590 [38712]: https://github.com/rust-lang/rust/pull/38712
6591 [38726]: https://github.com/rust-lang/rust/pull/38726
6592 [38781]: https://github.com/rust-lang/rust/pull/38781
6593 [38798]: https://github.com/rust-lang/rust/pull/38798
6594 [38909]: https://github.com/rust-lang/rust/pull/38909
6595 [38920]: https://github.com/rust-lang/rust/pull/38920
6596 [38927]: https://github.com/rust-lang/rust/pull/38927
6597 [39048]: https://github.com/rust-lang/rust/pull/39048
6598 [39282]: https://github.com/rust-lang/rust/pull/39282
6599 [39379]: https://github.com/rust-lang/rust/pull/39379
6600 [41105]: https://github.com/rust-lang/rust/issues/41105
6601 [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6602 [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6603 [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
6604 [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
6605 [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
6606 [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
6607 [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
6608 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
6609 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
6610 [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
6611 [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
6612 [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
6613 [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
6614 [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
6615 [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
6616 [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
6617 [`VecDeque::resize`]:  https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
6618 [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
6619 [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
6620 [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
6621 [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
6622 [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
6623 [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
6624 [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
6625 [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
6626 [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
6627 [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
6628 [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
6629 [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
6630
6631
6632 Version 1.15.1 (2017-02-09)
6633 ===========================
6634
6635 * [Fix IntoIter::as_mut_slice's signature][39466]
6636 * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
6637
6638 [39466]: https://github.com/rust-lang/rust/pull/39466
6639 [39523]: https://github.com/rust-lang/rust/pull/39523
6640
6641
6642 Version 1.15.0 (2017-02-02)
6643 ===========================
6644
6645 Language
6646 --------
6647
6648 * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
6649   stable. This allows popular code-generating crates like Serde and Diesel to
6650   work ergonomically. [RFC 1681].
6651 * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
6652   with curly braces][36868]. Part of [RFC 1506].
6653 * [A number of minor changes to name resolution have been activated][37127].
6654   They add up to more consistent semantics, allowing for future evolution of
6655   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6656   details of what is different. The breaking changes here have been transitioned
6657   through the [`legacy_imports`] lint since 1.14, with no known regressions.
6658 * [In `macro_rules`, `path` fragments can now be parsed as type parameter
6659   bounds][38279]
6660 * [`?Sized` can be used in `where` clauses][37791]
6661 * [There is now a limit on the size of monomorphized types and it can be
6662   modified with the `#![type_size_limit]` crate attribute, similarly to
6663   the `#![recursion_limit]` attribute][37789]
6664
6665 Compiler
6666 --------
6667
6668 * [On Windows, the compiler will apply dllimport attributes when linking to
6669   extern functions][37973]. Additional attributes and flags can control which
6670   library kind is linked and its name. [RFC 1717].
6671 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6672 * [The `--test` flag works with procedural macro crates][38107]
6673 * [Fix `extern "aapcs" fn` ABI][37814]
6674 * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
6675 * [The `format!` expander recognizes incorrect `printf` and shell-style
6676   formatting directives and suggests the correct format][37613].
6677 * [Only report one error for all unused imports in an import list][37456]
6678
6679 Compiler Performance
6680 --------------------
6681
6682 * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
6683 * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
6684 * [Don't clone in `UnificationTable::probe`][37848]
6685 * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
6686 * [Use small vectors in type walker][37760]
6687 * [Macro expansion performance was improved][37701]
6688 * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
6689 * [Replace FNV with a faster hash function][37229]
6690
6691 Stabilized APIs
6692 ---------------
6693
6694 * [`std::iter::Iterator::min_by`]
6695 * [`std::iter::Iterator::max_by`]
6696 * [`std::os::*::fs::FileExt`]
6697 * [`std::sync::atomic::Atomic*::get_mut`]
6698 * [`std::sync::atomic::Atomic*::into_inner`]
6699 * [`std::vec::IntoIter::as_slice`]
6700 * [`std::vec::IntoIter::as_mut_slice`]
6701 * [`std::sync::mpsc::Receiver::try_iter`]
6702 * [`std::os::unix::process::CommandExt::before_exec`]
6703 * [`std::rc::Rc::strong_count`]
6704 * [`std::rc::Rc::weak_count`]
6705 * [`std::sync::Arc::strong_count`]
6706 * [`std::sync::Arc::weak_count`]
6707 * [`std::char::encode_utf8`]
6708 * [`std::char::encode_utf16`]
6709 * [`std::cell::Ref::clone`]
6710 * [`std::io::Take::into_inner`]
6711
6712 Libraries
6713 ---------
6714
6715 * [The standard sorting algorithm has been rewritten for dramatic performance
6716   improvements][38192]. It is a hybrid merge sort, drawing influences from
6717   Timsort. Previously it was a naive merge sort.
6718 * [`Iterator::nth` no longer has a `Sized` bound][38134]
6719 * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
6720   performance.
6721 * [`chars().count()` is much faster][37888] and so are [`chars().last()`
6722   and `char_indices().last()`][37882]
6723 * [Fix ARM Objective-C ABI in `std::env::args`][38146]
6724 * [Chinese characters display correctly in `fmt::Debug`][37855]
6725 * [Derive `Default` for `Duration`][37699]
6726 * [Support creation of anonymous pipes on WinXP/2k][37677]
6727 * [`mpsc::RecvTimeoutError` implements `Error`][37527]
6728 * [Don't pass overlapped handles to processes][38835]
6729
6730 Cargo
6731 -----
6732
6733 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6734   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6735   should instead check the variable at runtime with `std::env`. That the value
6736   was set at build time was a bug, and incorrect when cross-compiling. This
6737   change is known to cause breakage.
6738 * [Add `--all` flag to `cargo test`][cargo/3221]
6739 * [Compile statically against the MSVC CRT][cargo/3363]
6740 * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
6741 * [Link OpenSSL statically on OSX][cargo/3311]
6742 * [Apply new fingerprinting to build dir outputs][cargo/3310]
6743 * [Test for bad path overrides with summaries][cargo/3336]
6744 * [Require `cargo install --vers` to take a semver version][cargo/3338]
6745 * [Fix retrying crate downloads for network errors][cargo/3348]
6746 * [Implement string lookup for `build.rustflags` config key][cargo/3356]
6747 * [Emit more info on --message-format=json][cargo/3319]
6748 * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
6749 * [Don't ignore errors in workspace manifest][cargo/3409]
6750 * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
6751
6752 Tooling
6753 -------
6754
6755 * [Test runners (binaries built with `--test`) now support a `--list` argument
6756   that lists the tests it contains][38185]
6757 * [Test runners now support a `--exact` argument that makes the test filter
6758   match exactly, instead of matching only a substring of the test name][38181]
6759 * [rustdoc supports a `--playground-url` flag][37763]
6760 * [rustdoc provides more details about `#[should_panic]` errors][37749]
6761
6762 Misc
6763 ----
6764
6765 * [The Rust build system is now written in Rust][37817]. The Makefiles may
6766   continue to be used in this release by passing `--disable-rustbuild` to the
6767   configure script, but they will be deleted soon. Note that the new build
6768   system uses a different on-disk layout that will likely affect any scripts
6769   building Rust.
6770 * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
6771   releases.
6772 * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
6773 * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
6774   releases.
6775
6776 Compatibility Notes
6777 -------------------
6778
6779 * [A number of minor changes to name resolution have been activated][37127].
6780   They add up to more consistent semantics, allowing for future evolution of
6781   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6782   details of what is different. The breaking changes here have been transitioned
6783   through the [`legacy_imports`] lint since 1.14, with no known regressions.
6784 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6785   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6786   should instead check the variable at runtime with `std::env`. That the value
6787   was set at build time was a bug, and incorrect when cross-compiling. This
6788   change is known to cause breakage.
6789 * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
6790   types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
6791   1.10 and is now an error by default. It will become a hard error in the near
6792   future.
6793 * [The semantics relating modules to file system directories are changing in
6794   minor ways][37602]. This is captured in the new `legacy_directory_ownership`
6795   lint, which is a warning in this release, and will become a hard error in the
6796   future.
6797 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6798 * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
6799   the underlying iterator][37834]
6800
6801 ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
6802 [33685]: https://github.com/rust-lang/rust/issues/33685
6803 [36868]: https://github.com/rust-lang/rust/pull/36868
6804 [37127]: https://github.com/rust-lang/rust/pull/37127
6805 [37229]: https://github.com/rust-lang/rust/pull/37229
6806 [37456]: https://github.com/rust-lang/rust/pull/37456
6807 [37527]: https://github.com/rust-lang/rust/pull/37527
6808 [37602]: https://github.com/rust-lang/rust/pull/37602
6809 [37613]: https://github.com/rust-lang/rust/pull/37613
6810 [37615]: https://github.com/rust-lang/rust/pull/37615
6811 [37636]: https://github.com/rust-lang/rust/pull/37636
6812 [37627]: https://github.com/rust-lang/rust/pull/37627
6813 [37642]: https://github.com/rust-lang/rust/pull/37642
6814 [37677]: https://github.com/rust-lang/rust/pull/37677
6815 [37699]: https://github.com/rust-lang/rust/pull/37699
6816 [37701]: https://github.com/rust-lang/rust/pull/37701
6817 [37705]: https://github.com/rust-lang/rust/pull/37705
6818 [37749]: https://github.com/rust-lang/rust/pull/37749
6819 [37760]: https://github.com/rust-lang/rust/pull/37760
6820 [37763]: https://github.com/rust-lang/rust/pull/37763
6821 [37764]: https://github.com/rust-lang/rust/pull/37764
6822 [37789]: https://github.com/rust-lang/rust/pull/37789
6823 [37791]: https://github.com/rust-lang/rust/pull/37791
6824 [37814]: https://github.com/rust-lang/rust/pull/37814
6825 [37817]: https://github.com/rust-lang/rust/pull/37817
6826 [37834]: https://github.com/rust-lang/rust/pull/37834
6827 [37848]: https://github.com/rust-lang/rust/pull/37848
6828 [37855]: https://github.com/rust-lang/rust/pull/37855
6829 [37882]: https://github.com/rust-lang/rust/pull/37882
6830 [37888]: https://github.com/rust-lang/rust/pull/37888
6831 [37973]: https://github.com/rust-lang/rust/pull/37973
6832 [37979]: https://github.com/rust-lang/rust/pull/37979
6833 [38086]: https://github.com/rust-lang/rust/pull/38086
6834 [38107]: https://github.com/rust-lang/rust/pull/38107
6835 [38117]: https://github.com/rust-lang/rust/pull/38117
6836 [38134]: https://github.com/rust-lang/rust/pull/38134
6837 [38146]: https://github.com/rust-lang/rust/pull/38146
6838 [38181]: https://github.com/rust-lang/rust/pull/38181
6839 [38182]: https://github.com/rust-lang/rust/pull/38182
6840 [38185]: https://github.com/rust-lang/rust/pull/38185
6841 [38192]: https://github.com/rust-lang/rust/pull/38192
6842 [38279]: https://github.com/rust-lang/rust/pull/38279
6843 [38835]: https://github.com/rust-lang/rust/pull/38835
6844 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
6845 [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
6846 [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
6847 [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
6848 [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
6849 [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
6850 [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
6851 [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
6852 [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
6853 [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
6854 [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
6855 [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
6856 [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
6857 [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
6858 [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
6859 [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
6860 [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
6861 [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
6862 [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
6863 [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
6864 [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
6865 [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
6866 [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
6867 [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
6868 [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
6869 [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
6870 [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
6871 [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
6872 [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
6873 [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
6874 [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
6875 [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
6876 [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
6877 [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
6878 [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
6879 [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
6880 [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
6881
6882
6883 Version 1.14.0 (2016-12-22)
6884 ===========================
6885
6886 Language
6887 --------
6888
6889 * [`..` matches multiple tuple fields in enum variants, structs
6890   and tuples][36843]. [RFC 1492].
6891 * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
6892 * [`use *` and `use ::*` both glob-import from the crate root][37367]
6893 * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
6894   dereferencing][36822]
6895
6896 Compiler
6897 --------
6898
6899 * [Mark enums with non-zero discriminant as non-zero][37224]
6900 * [Lower-case `static mut` names are linted like other
6901   statics and consts][37162]
6902 * [Fix ICE on some macros in const integer positions
6903    (e.g. `[u8; m!()]`)][36819]
6904 * [Improve error message and snippet for "did you mean `x`"][36798]
6905 * [Add a panic-strategy field to the target specification][36794]
6906 * [Include LLVM version in `--version --verbose`][37200]
6907
6908 Compile-time Optimizations
6909 --------------------------
6910
6911 * [Improve macro expansion performance][37569]
6912 * [Shrink `Expr_::ExprInlineAsm`][37445]
6913 * [Replace all uses of SHA-256 with BLAKE2b][37439]
6914 * [Reduce the number of bytes hashed by `IchHasher`][37427]
6915 * [Avoid more allocations when compiling html5ever][37373]
6916 * [Use `SmallVector` in `CombineFields::instantiate`][37322]
6917 * [Avoid some allocations in the macro parser][37318]
6918 * [Use a faster deflate setting][37298]
6919 * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
6920   during interning of slices][37270]
6921 * [Optimize `write_metadata`][37267]
6922 * [Don't process obligation forest cycles when stalled][37231]
6923 * [Avoid many `CrateConfig` clones][37161]
6924 * [Optimize `Substs::super_fold_with`][37108]
6925 * [Optimize `ObligationForest`'s `NodeState` handling][36993]
6926 * [Speed up `plug_leaks`][36917]
6927
6928 Libraries
6929 ---------
6930
6931 * [`println!()`, with no arguments, prints newline][36825].
6932   Previously, an empty string was required to achieve the same.
6933 * [`Wrapping` impls standard binary and unary operators, as well as
6934    the `Sum` and `Product` iterators][37356]
6935 * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
6936   Vec<T>`][37326]
6937 * [Improve `fold` performance for `chain`, `cloned`, `map`, and
6938   `VecDeque` iterators][37315]
6939 * [Improve `SipHasher` performance on small values][37312]
6940 * [Add Iterator trait TrustedLen to enable better FromIterator /
6941   Extend][37306]
6942 * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
6943 * [`ReadDir` implements `Debug`][37221]
6944 * [Implement `RefUnwindSafe` for atomic types][37178]
6945 * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
6946 * [Avoid allocations in `Decoder::read_str`][37064]
6947 * [`io::Error` implements `From<io::ErrorKind>`][37037]
6948 * [Impl `Debug` for raw pointers to unsized data][36880]
6949 * [Don't reuse `HashMap` random seeds][37470]
6950 * [The internal memory layout of `HashMap` is more cache-friendly, for
6951   significant improvements in some operations][36692]
6952 * [`HashMap` uses less memory on 32-bit architectures][36595]
6953 * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
6954
6955 Cargo
6956 -----
6957
6958 * [Expose rustc cfg values to build scripts][cargo/3243]
6959 * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
6960 * [Fix passing --features when testing multiple packages][cargo/3280]
6961 * [Use a single profile set per workspace][cargo/3249]
6962 * [Load `replace` sections from lock files][cargo/3220]
6963 * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
6964
6965 Tooling
6966 -------
6967
6968 * [rustup is the recommended Rust installation method][1.14rustup]
6969 * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
6970   S390x. These are [tier 2] platforms and may have major defects. Follow the
6971   instructions on the website to install, or add the targets to an existing
6972   installation with `rustup target add`. The new target triples are:
6973   - `mips-unknown-linux-gnu`
6974   - `mipsel-unknown-linux-gnu`
6975   - `mips64-unknown-linux-gnuabi64`
6976   - `mips64el-unknown-linux-gnuabi64 `
6977   - `powerpc-unknown-linux-gnu`
6978   - `powerpc64-unknown-linux-gnu`
6979   - `powerpc64le-unknown-linux-gnu`
6980   - `s390x-unknown-linux-gnu `
6981 * This release includes target (std) builds for ARM Linux running MUSL
6982   libc. These are [tier 2] platforms and may have major defects. Add the
6983   following triples to an existing rustup installation with `rustup target add`:
6984   - `arm-unknown-linux-musleabi`
6985   - `arm-unknown-linux-musleabihf`
6986   - `armv7-unknown-linux-musleabihf`
6987 * This release includes [experimental support for WebAssembly][1.14wasm], via
6988   the `wasm32-unknown-emscripten` target. This target is known to have major
6989   defects. Please test, report, and fix.
6990 * rustup no longer installs documentation by default. Run `rustup
6991   component add rust-docs` to install.
6992 * [Fix line stepping in debugger][37310]
6993 * [Enable line number debuginfo in releases][37280]
6994
6995 Misc
6996 ----
6997
6998 * [Disable jemalloc on aarch64/powerpc/mips][37392]
6999 * [Add support for Fuchsia OS][37313]
7000 * [Detect local-rebuild by only MAJOR.MINOR version][37273]
7001
7002 Compatibility Notes
7003 -------------------
7004
7005 * [A number of forward-compatibility lints used by the compiler
7006   to gradually introduce language changes have been converted
7007   to deny by default][36894]:
7008   - ["use of inaccessible extern crate erroneously allowed"][36886]
7009   - ["type parameter default erroneously allowed in invalid location"][36887]
7010   - ["detects super or self keywords at the beginning of global path"][36888]
7011   - ["two overlapping inherent impls define an item with the same name
7012     were erroneously allowed"][36889]
7013   - ["floating-point constants cannot be used in patterns"][36890]
7014   - ["constants of struct or enum type can only be used in a pattern if
7015      the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
7016   - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
7017 * [Prohibit patterns in trait methods without bodies][37378]
7018 * [The atomic `Ordering` enum may not be matched exhaustively][37351]
7019 * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
7020 * [The `$crate` macro variable is accepted in fewer locations][37213]
7021 * [Impls specifying extra region requirements beyond the trait
7022   they implement are rejected][37167]
7023 * [Enums may not be unsized][37111]. Unsized enums are intended to
7024   work but never have. For now they are forbidden.
7025 * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
7026
7027 [tier 2]: https://forge.rust-lang.org/platform-support.html
7028 [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
7029 [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
7030 [36430]: https://github.com/rust-lang/rust/pull/36430
7031 [36595]: https://github.com/rust-lang/rust/pull/36595
7032 [36692]: https://github.com/rust-lang/rust/pull/36692
7033 [36767]: https://github.com/rust-lang/rust/pull/36767
7034 [36794]: https://github.com/rust-lang/rust/pull/36794
7035 [36798]: https://github.com/rust-lang/rust/pull/36798
7036 [36819]: https://github.com/rust-lang/rust/pull/36819
7037 [36822]: https://github.com/rust-lang/rust/pull/36822
7038 [36825]: https://github.com/rust-lang/rust/pull/36825
7039 [36843]: https://github.com/rust-lang/rust/pull/36843
7040 [36880]: https://github.com/rust-lang/rust/pull/36880
7041 [36886]: https://github.com/rust-lang/rust/issues/36886
7042 [36887]: https://github.com/rust-lang/rust/issues/36887
7043 [36888]: https://github.com/rust-lang/rust/issues/36888
7044 [36889]: https://github.com/rust-lang/rust/issues/36889
7045 [36890]: https://github.com/rust-lang/rust/issues/36890
7046 [36891]: https://github.com/rust-lang/rust/issues/36891
7047 [36892]: https://github.com/rust-lang/rust/issues/36892
7048 [36894]: https://github.com/rust-lang/rust/pull/36894
7049 [36917]: https://github.com/rust-lang/rust/pull/36917
7050 [36993]: https://github.com/rust-lang/rust/pull/36993
7051 [37037]: https://github.com/rust-lang/rust/pull/37037
7052 [37064]: https://github.com/rust-lang/rust/pull/37064
7053 [37094]: https://github.com/rust-lang/rust/pull/37094
7054 [37108]: https://github.com/rust-lang/rust/pull/37108
7055 [37111]: https://github.com/rust-lang/rust/pull/37111
7056 [37161]: https://github.com/rust-lang/rust/pull/37161
7057 [37162]: https://github.com/rust-lang/rust/pull/37162
7058 [37167]: https://github.com/rust-lang/rust/pull/37167
7059 [37178]: https://github.com/rust-lang/rust/pull/37178
7060 [37200]: https://github.com/rust-lang/rust/pull/37200
7061 [37213]: https://github.com/rust-lang/rust/pull/37213
7062 [37221]: https://github.com/rust-lang/rust/pull/37221
7063 [37224]: https://github.com/rust-lang/rust/pull/37224
7064 [37230]: https://github.com/rust-lang/rust/pull/37230
7065 [37231]: https://github.com/rust-lang/rust/pull/37231
7066 [37247]: https://github.com/rust-lang/rust/pull/37247
7067 [37267]: https://github.com/rust-lang/rust/pull/37267
7068 [37270]: https://github.com/rust-lang/rust/pull/37270
7069 [37273]: https://github.com/rust-lang/rust/pull/37273
7070 [37280]: https://github.com/rust-lang/rust/pull/37280
7071 [37298]: https://github.com/rust-lang/rust/pull/37298
7072 [37306]: https://github.com/rust-lang/rust/pull/37306
7073 [37310]: https://github.com/rust-lang/rust/pull/37310
7074 [37312]: https://github.com/rust-lang/rust/pull/37312
7075 [37313]: https://github.com/rust-lang/rust/pull/37313
7076 [37315]: https://github.com/rust-lang/rust/pull/37315
7077 [37318]: https://github.com/rust-lang/rust/pull/37318
7078 [37322]: https://github.com/rust-lang/rust/pull/37322
7079 [37326]: https://github.com/rust-lang/rust/pull/37326
7080 [37351]: https://github.com/rust-lang/rust/pull/37351
7081 [37356]: https://github.com/rust-lang/rust/pull/37356
7082 [37367]: https://github.com/rust-lang/rust/pull/37367
7083 [37373]: https://github.com/rust-lang/rust/pull/37373
7084 [37378]: https://github.com/rust-lang/rust/pull/37378
7085 [37389]: https://github.com/rust-lang/rust/pull/37389
7086 [37392]: https://github.com/rust-lang/rust/pull/37392
7087 [37427]: https://github.com/rust-lang/rust/pull/37427
7088 [37439]: https://github.com/rust-lang/rust/pull/37439
7089 [37445]: https://github.com/rust-lang/rust/pull/37445
7090 [37470]: https://github.com/rust-lang/rust/pull/37470
7091 [37569]: https://github.com/rust-lang/rust/pull/37569
7092 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
7093 [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
7094 [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
7095 [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
7096 [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
7097 [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
7098 [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
7099
7100
7101 Version 1.13.0 (2016-11-10)
7102 ===========================
7103
7104 Language
7105 --------
7106
7107 * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
7108   errors, like the `try!` macro, described in [RFC 0243].
7109 * [Stabilize macros in type position][36014]. Described in [RFC 873].
7110 * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
7111 * [Fix `#[derive]` for empty tuple structs/variants][35728]
7112 * [Fix lifetime rules for 'if' conditions][36029]
7113 * [Avoid loading and parsing unconfigured non-inline modules][36482]
7114
7115 Compiler
7116 --------
7117
7118 * [Add the `-C link-arg` argument][36574]
7119 * [Remove the old AST-based backend from rustc_trans][35764]
7120 * [Don't enable NEON by default on armv7 Linux][35814]
7121 * [Fix debug line number info for macro expansions][35238]
7122 * [Do not emit "class method" debuginfo for types that are not
7123   DICompositeType][36008]
7124 * [Warn about multiple conflicting #[repr] hints][34623]
7125 * [When sizing DST, don't double-count nested struct prefixes][36351]
7126 * [Default RUST_MIN_STACK to 16MiB for now][36505]
7127 * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
7128 * [Reject macros with empty repetitions to avoid infinite loop][36721]
7129 * [Expand macros without recursing to avoid stack overflows][36214]
7130
7131 Diagnostics
7132 -----------
7133
7134 * [Replace macro backtraces with labeled local uses][35702]
7135 * [Improve error message for misplaced doc comments][33922]
7136 * [Buffer unix and lock windows to prevent message interleaving][35975]
7137 * [Update lifetime errors to specifically note temporaries][36171]
7138 * [Special case a few colors for Windows][36178]
7139 * [Suggest `use self` when such an import resolves][36289]
7140 * [Be more specific when type parameter shadows primitive type][36338]
7141 * Many minor improvements
7142
7143 Compile-time Optimizations
7144 --------------------------
7145
7146 * [Compute and cache HIR hashes at beginning][35854]
7147 * [Don't hash types in loan paths][36004]
7148 * [Cache projections in trans][35761]
7149 * [Optimize the parser's last token handling][36527]
7150 * [Only instantiate #[inline] functions in codegen units referencing
7151   them][36524]. This leads to big improvements in cases where crates export
7152   define many inline functions without using them directly.
7153 * [Lazily allocate TypedArena's first chunk][36592]
7154 * [Don't allocate during default HashSet creation][36734]
7155
7156 Stabilized APIs
7157 ---------------
7158
7159 * [`checked_abs`]
7160 * [`wrapping_abs`]
7161 * [`overflowing_abs`]
7162 * [`RefCell::try_borrow`]
7163 * [`RefCell::try_borrow_mut`]
7164
7165 Libraries
7166 ---------
7167
7168 * [Add `assert_ne!` and `debug_assert_ne!`][35074]
7169 * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
7170   covariant][35354]
7171 * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
7172 * [Implement `Debug` for `std::vec::IntoIter`][35707]
7173 * [`CString`: avoid excessive growth just to 0-terminate][35871]
7174 * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
7175 * [Use arc4rand on FreeBSD][35884]
7176 * [memrchr: Correct aligned offset computation][35969]
7177 * [Improve Demangling of Rust Symbols][36059]
7178 * [Use monotonic time in condition variables][35048]
7179 * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
7180 * [Implement conversion traits for `char`][35755]
7181 * [Fix illegal instruction caused by overflow in channel cloning][36104]
7182 * [Zero first byte of CString on drop][36264]
7183 * [Inherit overflow checks for sum and product][36372]
7184 * [Add missing Eq implementations][36423]
7185 * [Implement `Debug` for `DirEntry`][36631]
7186 * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
7187   `errno`][36754]
7188 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7189 * [Implement more traits for `std::io::ErrorKind`][35911]
7190 * [Optimize BinaryHeap bounds checking][36072]
7191 * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
7192   `extend_with_element`][36355]
7193 * [Fix overflow checking in unsigned pow()][34942]
7194
7195 Cargo
7196 -----
7197
7198 * This release includes security fixes to both curl and OpenSSL.
7199 * [Fix transitive doctests when panic=abort][cargo/3021]
7200 * [Add --all-features flag to cargo][cargo/3038]
7201 * [Reject path-based dependencies in `cargo package`][cargo/3060]
7202 * [Don't parse the home directory more than once][cargo/3078]
7203 * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
7204 * [Update OpenSSL to 1.0.2j][cargo/3121]
7205 * [Add license and license_file to cargo metadata output][cargo/3110]
7206 * [Make crates-io registry URL optional in config; ignore all changes to
7207   source.crates-io][cargo/3089]
7208 * [Don't download dependencies from other platforms][cargo/3123]
7209 * [Build transitive dev-dependencies when needed][cargo/3125]
7210 * [Add support for per-target rustflags in .cargo/config][cargo/3157]
7211 * [Avoid updating registry when adding existing deps][cargo/3144]
7212 * [Warn about path overrides that won't work][cargo/3136]
7213 * [Use workspaces during `cargo install`][cargo/3146]
7214 * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
7215 * [Add --message-format flag][cargo/3000]
7216 * [Pass target environment for rustdoc][cargo/3205]
7217 * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
7218 * [Update curl and curl-sys][cargo/3241]
7219 * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
7220
7221 Tooling
7222 -------
7223
7224 * [rustdoc: Add the `--sysroot` argument][36586]
7225 * [rustdoc: Fix a couple of issues with the search results][35655]
7226 * [rustdoc: remove the `!` from macro URLs and titles][35234]
7227 * [gdb: Fix pretty-printing special-cased Rust types][35585]
7228 * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
7229
7230 Misc
7231 ----
7232
7233 * [Remove unmaintained style guide][35124]
7234 * [Add s390x support][36369]
7235 * [Initial work at Haiku OS support][36727]
7236 * [Add mips-uclibc targets][35734]
7237 * [Crate-ify compiler-rt into compiler-builtins][35021]
7238 * [Add rustc version info (git hash + date) to dist tarball][36213]
7239 * Many documentation improvements
7240
7241 Compatibility Notes
7242 -------------------
7243
7244 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7245 * [Deny (by default) transmuting from fn item types to pointer-sized
7246   types][34923]. Continuing the long transition to zero-sized fn items,
7247   per [RFC 401].
7248 * [Fix `#[derive]` for empty tuple structs/variants][35728].
7249   Part of [RFC 1506].
7250 * [Issue deprecation warnings for safe accesses to extern statics][36173]
7251 * [Fix lifetime rules for 'if' conditions][36029].
7252 * [Inherit overflow checks for sum and product][36372].
7253 * [Forbid user-defined macros named "macro_rules"][36730].
7254
7255 [33922]: https://github.com/rust-lang/rust/pull/33922
7256 [34623]: https://github.com/rust-lang/rust/pull/34623
7257 [34923]: https://github.com/rust-lang/rust/pull/34923
7258 [34942]: https://github.com/rust-lang/rust/pull/34942
7259 [35021]: https://github.com/rust-lang/rust/pull/35021
7260 [35048]: https://github.com/rust-lang/rust/pull/35048
7261 [35074]: https://github.com/rust-lang/rust/pull/35074
7262 [35124]: https://github.com/rust-lang/rust/pull/35124
7263 [35234]: https://github.com/rust-lang/rust/pull/35234
7264 [35238]: https://github.com/rust-lang/rust/pull/35238
7265 [35354]: https://github.com/rust-lang/rust/pull/35354
7266 [35559]: https://github.com/rust-lang/rust/pull/35559
7267 [35585]: https://github.com/rust-lang/rust/pull/35585
7268 [35627]: https://github.com/rust-lang/rust/pull/35627
7269 [35655]: https://github.com/rust-lang/rust/pull/35655
7270 [35702]: https://github.com/rust-lang/rust/pull/35702
7271 [35707]: https://github.com/rust-lang/rust/pull/35707
7272 [35728]: https://github.com/rust-lang/rust/pull/35728
7273 [35734]: https://github.com/rust-lang/rust/pull/35734
7274 [35755]: https://github.com/rust-lang/rust/pull/35755
7275 [35761]: https://github.com/rust-lang/rust/pull/35761
7276 [35764]: https://github.com/rust-lang/rust/pull/35764
7277 [35814]: https://github.com/rust-lang/rust/pull/35814
7278 [35854]: https://github.com/rust-lang/rust/pull/35854
7279 [35871]: https://github.com/rust-lang/rust/pull/35871
7280 [35884]: https://github.com/rust-lang/rust/pull/35884
7281 [35911]: https://github.com/rust-lang/rust/pull/35911
7282 [35969]: https://github.com/rust-lang/rust/pull/35969
7283 [35975]: https://github.com/rust-lang/rust/pull/35975
7284 [36004]: https://github.com/rust-lang/rust/pull/36004
7285 [36008]: https://github.com/rust-lang/rust/pull/36008
7286 [36014]: https://github.com/rust-lang/rust/pull/36014
7287 [36029]: https://github.com/rust-lang/rust/pull/36029
7288 [36059]: https://github.com/rust-lang/rust/pull/36059
7289 [36072]: https://github.com/rust-lang/rust/pull/36072
7290 [36101]: https://github.com/rust-lang/rust/pull/36101
7291 [36104]: https://github.com/rust-lang/rust/pull/36104
7292 [36171]: https://github.com/rust-lang/rust/pull/36171
7293 [36173]: https://github.com/rust-lang/rust/pull/36173
7294 [36178]: https://github.com/rust-lang/rust/pull/36178
7295 [36213]: https://github.com/rust-lang/rust/pull/36213
7296 [36214]: https://github.com/rust-lang/rust/pull/36214
7297 [36264]: https://github.com/rust-lang/rust/pull/36264
7298 [36266]: https://github.com/rust-lang/rust/pull/36266
7299 [36289]: https://github.com/rust-lang/rust/pull/36289
7300 [36338]: https://github.com/rust-lang/rust/pull/36338
7301 [36351]: https://github.com/rust-lang/rust/pull/36351
7302 [36355]: https://github.com/rust-lang/rust/pull/36355
7303 [36369]: https://github.com/rust-lang/rust/pull/36369
7304 [36372]: https://github.com/rust-lang/rust/pull/36372
7305 [36423]: https://github.com/rust-lang/rust/pull/36423
7306 [36482]: https://github.com/rust-lang/rust/pull/36482
7307 [36505]: https://github.com/rust-lang/rust/pull/36505
7308 [36524]: https://github.com/rust-lang/rust/pull/36524
7309 [36527]: https://github.com/rust-lang/rust/pull/36527
7310 [36551]: https://github.com/rust-lang/rust/pull/36551
7311 [36574]: https://github.com/rust-lang/rust/pull/36574
7312 [36586]: https://github.com/rust-lang/rust/pull/36586
7313 [36592]: https://github.com/rust-lang/rust/pull/36592
7314 [36631]: https://github.com/rust-lang/rust/pull/36631
7315 [36721]: https://github.com/rust-lang/rust/pull/36721
7316 [36727]: https://github.com/rust-lang/rust/pull/36727
7317 [36730]: https://github.com/rust-lang/rust/pull/36730
7318 [36734]: https://github.com/rust-lang/rust/pull/36734
7319 [36754]: https://github.com/rust-lang/rust/pull/36754
7320 [36995]: https://github.com/rust-lang/rust/pull/36995
7321 [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
7322 [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
7323 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
7324 [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
7325 [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
7326 [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
7327 [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
7328 [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
7329 [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
7330 [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
7331 [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
7332 [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
7333 [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
7334 [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
7335 [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
7336 [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
7337 [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
7338 [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
7339 [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
7340 [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
7341 [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
7342 [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
7343 [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
7344 [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
7345 [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
7346 [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
7347 [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
7348 [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
7349 [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
7350 [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
7351 [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
7352 [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
7353
7354
7355 Version 1.12.1 (2016-10-20)
7356 ===========================
7357
7358 Regression Fixes
7359 ----------------
7360
7361 * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
7362 * [Confusion with double negation and booleans][36856]
7363 * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
7364 * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
7365 * [1.12.0: High memory usage when linking in release mode with debug info][36926]
7366 * [Corrupted memory after updated to 1.12][36936]
7367 * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
7368 * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
7369 * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
7370
7371 [36381]: https://github.com/rust-lang/rust/issues/36381
7372 [36856]: https://github.com/rust-lang/rust/issues/36856
7373 [36875]: https://github.com/rust-lang/rust/issues/36875
7374 [36924]: https://github.com/rust-lang/rust/issues/36924
7375 [36926]: https://github.com/rust-lang/rust/issues/36926
7376 [36936]: https://github.com/rust-lang/rust/issues/36936
7377 [37026]: https://github.com/rust-lang/rust/issues/37026
7378 [37112]: https://github.com/rust-lang/rust/issues/37112
7379 [37153]: https://github.com/rust-lang/rust/issues/37153
7380
7381
7382 Version 1.12.0 (2016-09-29)
7383 ===========================
7384
7385 Highlights
7386 ----------
7387
7388 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7389   This translation pass is far simpler than the previous AST->LLVM pass, and
7390   creates opportunities to perform new optimizations directly on the MIR. It
7391   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7392 * [`rustc` presents a new, more readable error format, along with
7393   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7394   Most common editors supporting Rust have been updated to work with it. It was
7395   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7396
7397 Compiler
7398 --------
7399
7400 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7401   This translation pass is far simpler than the previous AST->LLVM pass, and
7402   creates opportunities to perform new optimizations directly on the MIR. It
7403   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7404 * [Print the Rust target name, not the LLVM target name, with
7405   `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
7406 * [The computation of `TypeId` is correct in some cases where it was previously
7407   producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
7408 * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
7409 * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
7410   `--print relocation-models`, and `--print code-models` print the available
7411   options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
7412   `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
7413 * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
7414   `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
7415   These targets produce statically-linked binaries. There are no binary release
7416   builds yet though.
7417
7418 Diagnostics
7419 -----------
7420
7421 * [`rustc` presents a new, more readable error format, along with
7422   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7423   Most common editors supporting Rust have been updated to work with it. It was
7424   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7425 * [In error descriptions, references are now described in plain English,
7426   instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
7427 * [In error type descriptions, unknown numeric types are named `{integer}` or
7428   `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
7429 * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
7430
7431 Language
7432 --------
7433
7434 * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
7435 * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
7436 * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
7437   useful](https://github.com/rust-lang/rust/pull/34908)
7438 * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
7439   inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
7440 * [Semicolons are properly required as statement delimiters inside
7441   `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
7442 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
7443
7444 Stabilized APIs
7445 ---------------
7446
7447 * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
7448 * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
7449 * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
7450 * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
7451 * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
7452 * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
7453 * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
7454 * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
7455 * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
7456 * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
7457   Both on Unix and Windows.
7458 * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
7459 * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
7460 * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
7461 * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
7462 * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
7463 * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
7464 * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
7465 * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
7466
7467 Libraries
7468 ---------
7469
7470 * [The `format!` macro and friends now allow a single argument to be formatted
7471   in multiple styles](https://github.com/rust-lang/rust/pull/33642)
7472 * [The lifetime bounds on `[T]::binary_search_by` and
7473   `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
7474 * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
7475 * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
7476 * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
7477 * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
7478 * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
7479 * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
7480 * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
7481 * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
7482   implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
7483 * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
7484   implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
7485 * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
7486 * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
7487   `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
7488 * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
7489 * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
7490 * [`mpsc::sync_channel` `Receiver`s return any available message before
7491   reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
7492 * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
7493 * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
7494
7495 Cargo
7496 -----
7497
7498 * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
7499 * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
7500 * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
7501 * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
7502 * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
7503 * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
7504 * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
7505 * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
7506 * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
7507 * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
7508 * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
7509 * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
7510 * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
7511 * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
7512 * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
7513 * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
7514
7515 Performance
7516 -----------
7517
7518 * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
7519 * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
7520
7521 Tooling
7522 -------
7523
7524 * [Test binaries now support a `--test-threads` argument to specify the number
7525   of threads used to run tests, and which acts the same as the
7526   `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
7527 * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
7528 * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
7529 * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7530 * [Rust releases now come with source packages that can be installed by rustup
7531   via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
7532   The resulting source code can be used by tools and IDES, located in the
7533   sysroot under `lib/rustlib/src`.
7534
7535 Misc
7536 ----
7537
7538 * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
7539 * Many minor improvements to the documentation.
7540 * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
7541
7542 Compatibility Notes
7543 -------------------
7544
7545 * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
7546   with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
7547 * [When formatting strings, if "precision" is specified, the "fill",
7548   "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
7549 * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
7550
7551
7552 Version 1.11.0 (2016-08-18)
7553 ===========================
7554
7555 Language
7556 --------
7557
7558 * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
7559 * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
7560 * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
7561 * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
7562
7563 Stabilized APIs
7564 ---------------
7565
7566 * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
7567 * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
7568 * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
7569 * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
7570 * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
7571 * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
7572   (in libcore - previously stabilized in libstd)
7573 * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
7574   (in libcore - previously stabilized in libstd)
7575 * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
7576   (in libcore - previously stabilized in libstd)
7577 * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
7578   (in libcore - previously stabilized in libstd)
7579 * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7580 * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7581 * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
7582 * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
7583
7584 Libraries
7585 ---------
7586
7587 * [The `thread_local!` macro supports multiple definitions in a single
7588    invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
7589 * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
7590 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
7591   `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
7592 * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
7593 * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
7594 * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
7595 * [The main thread is now called "main" instead of "&lt;main&gt;"](https://github.com/rust-lang/rust/pull/33803)
7596
7597 Cargo
7598 -----
7599
7600 * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
7601 * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
7602 * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
7603 * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
7604 * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
7605   and `-vv` prints warnings for all crates.
7606 * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
7607 * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
7608   This provides room for expansion by arbitrary tools.
7609 * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
7610 * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
7611 * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
7612 * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
7613 * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
7614 * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
7615 * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
7616
7617 Performance
7618 -----------
7619
7620 * [Caching projections speeds up type check dramatically for some
7621   workloads](https://github.com/rust-lang/rust/pull/33816)
7622 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
7623   This hasher is faster, but is believed to provide sufficient
7624   protection from collision attacks.
7625 * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
7626
7627 Rustdoc
7628 -------
7629
7630 * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
7631 * [Fix inlined renamed re-exports in import lists](https://github.com/rust-lang/rust/pull/34479)
7632 * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
7633 * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
7634 * [Fix redirect pages for renamed re-exports](https://github.com/rust-lang/rust/pull/34245)
7635
7636 Tooling
7637 -------
7638
7639 * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
7640 * [When emitting debug info, rustc emits frame pointers for closures,
7641   shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
7642 * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7643 * Many more errors have been given error codes and extended
7644   explanations
7645 * API documentation continues to be improved, with many new examples
7646
7647 Misc
7648 ----
7649
7650 * [rustc no longer hangs when dependencies recursively re-export
7651   submodules](https://github.com/rust-lang/rust/pull/34542)
7652 * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
7653 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
7654   rewritten](https://github.com/rust-lang/rust/pull/33895)
7655 * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
7656   No targets use this yet, but it works toward AVR support.
7657
7658 Compatibility Notes
7659 -------------------
7660
7661 * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
7662 * [The new follow-set rules that place restrictions on `macro_rules!`
7663   in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
7664   This was an [amendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
7665   and has been a warning since 1.10.
7666 * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
7667   This causes breakage in some corner cases.
7668
7669
7670 Version 1.10.0 (2016-07-07)
7671 ===========================
7672
7673 Language
7674 --------
7675
7676 * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
7677   [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
7678 * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
7679 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
7680 * [`panic!` can be converted to a runtime abort with the
7681   `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
7682   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7683 * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
7684   cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
7685   [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md).
7686   Note that Cargo does not yet directly support cdylibs.
7687
7688 Stabilized APIs
7689 ---------------
7690
7691 * `os::windows::fs::OpenOptionsExt::access_mode`
7692 * `os::windows::fs::OpenOptionsExt::share_mode`
7693 * `os::windows::fs::OpenOptionsExt::custom_flags`
7694 * `os::windows::fs::OpenOptionsExt::attributes`
7695 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
7696 * `os::unix::fs::OpenOptionsExt::custom_flags`
7697 * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
7698 * `Default for sync::Weak`
7699 * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
7700 * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
7701 * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
7702 * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
7703 * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
7704 * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
7705 * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
7706 * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
7707 * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
7708 * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
7709 * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
7710 * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
7711 * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
7712 * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
7713 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
7714 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
7715 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
7716 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
7717 * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
7718 * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
7719 * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
7720 * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
7721 * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
7722 * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
7723 * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
7724 * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7725 * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7726 * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7727 * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7728 * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
7729 * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
7730 * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
7731 * Read/Write/RawFd impls for `UnixStream`
7732 * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
7733 * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
7734 * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
7735 * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
7736 * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
7737 * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
7738 * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
7739 * RawFd impls for `UnixListener`
7740 * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
7741 * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
7742 * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
7743 * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
7744 * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
7745 * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
7746 * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
7747 * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
7748 * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
7749 * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
7750 * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
7751 * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
7752 * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
7753 * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
7754 * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
7755 * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
7756 * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
7757 * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
7758 * RawFd impls for `UnixDatagram`
7759 * `{BTree,Hash}Map::values_mut`
7760 * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/std/primitive.slice.html#method.binary_search_by_key)
7761
7762 Libraries
7763 ---------
7764
7765 * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
7766   The semantics of this minor method are subtle and probably not what
7767   most people want.
7768 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
7769 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
7770   will fall back to `/dev/urandom` temporarily to avoid blocking
7771   during early boot](https://github.com/rust-lang/rust/pull/33086).
7772 * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
7773 * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
7774 * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
7775 * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
7776 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
7777 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
7778   `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
7779
7780 Cargo
7781 -----
7782 * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
7783   This controls the runtime behavior of the `panic!` macro
7784   and can be either "unwind" (the default), or "abort".
7785   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7786 * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
7787 * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
7788 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
7789   variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
7790 * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
7791 * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
7792 * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
7793   By default they are retried twice, which can be customized with the
7794   `net.retry` value in `.cargo/config`.
7795 * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
7796 * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
7797 * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
7798 * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
7799   Makes it possible to install multiple crates in parallel.
7800 * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
7801 * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
7802 * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
7803 * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
7804 * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
7805 * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
7806
7807 Performance
7808 -----------
7809
7810 * [rustc memory usage was reduced by refactoring the context used for
7811   type checking](https://github.com/rust-lang/rust/pull/33425).
7812 * [Speed up creation of `HashMap`s by caching the random keys used
7813   to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
7814 * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
7815 * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
7816 * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
7817   10x faster than the previous lookup tables.
7818 * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
7819
7820 Usability
7821 ---------
7822
7823 * Many incremental improvements to documentation and rustdoc.
7824 * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
7825 * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
7826 * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
7827 * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
7828 * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
7829 * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
7830 * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
7831
7832 Misc
7833 ----
7834
7835 * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
7836 * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
7837 * [`std` no longer prints backtraces on platforms where the running
7838   module must be loaded with `env::current_exe`, which can't be relied
7839   on](https://github.com/rust-lang/rust/pull/33554).
7840 * This release includes std binaries for the i586-unknown-linux-gnu,
7841   i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
7842   i586 target is for old x86 hardware without SSE2, and the armv7
7843   target is for Android running on modern ARM architectures.
7844 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
7845   Unix platforms](https://github.com/rust-lang/rust/pull/32835).
7846 * [On Unix the runtime aborts by calling `libc::abort` instead of
7847   generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
7848 * [Rust is now bootstrapped from the previous release of Rust,
7849   instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
7850
7851 Compatibility Notes
7852 -------------------
7853
7854 * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
7855 * [`target_env` for Linux ARM targets is just `gnu`, not
7856   `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
7857 * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
7858 * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
7859 * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
7860   Affects how macros are parsed.
7861 * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
7862 * [Feature-gated attributes on macro-generated macro invocations are
7863   now rejected](https://github.com/rust-lang/rust/pull/32791).
7864 * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
7865   This caused some minor changes to type inference.
7866
7867
7868 Version 1.9.0 (2016-05-26)
7869 ==========================
7870
7871 Language
7872 --------
7873
7874 * The `#[deprecated]` attribute when applied to an API will generate
7875   warnings when used. The warnings may be suppressed with
7876   `#[allow(deprecated)]`. [RFC 1270].
7877 * [`fn` item types are zero sized, and each `fn` names a unique
7878   type][1.9fn]. This will break code that transmutes `fn`s, so calling
7879   `transmute` on a `fn` type will generate a warning for a few cycles,
7880   then will be converted to an error.
7881 * [Field and method resolution understand visibility, so private
7882   fields and methods cannot prevent the proper use of public fields
7883   and methods][1.9fv].
7884 * [The parser considers unicode codepoints in the
7885   `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
7886
7887 Stabilized APIs
7888 ---------------
7889
7890 * [`std::panic`]
7891 * [`std::panic::catch_unwind`] (renamed from `recover`)
7892 * [`std::panic::resume_unwind`] (renamed from `propagate`)
7893 * [`std::panic::AssertUnwindSafe`] (renamed from `AssertRecoverSafe`)
7894 * [`std::panic::UnwindSafe`] (renamed from `RecoverSafe`)
7895 * [`str::is_char_boundary`]
7896 * [`<*const T>::as_ref`]
7897 * [`<*mut T>::as_ref`]
7898 * [`<*mut T>::as_mut`]
7899 * [`AsciiExt::make_ascii_uppercase`]
7900 * [`AsciiExt::make_ascii_lowercase`]
7901 * [`char::decode_utf16`]
7902 * [`char::DecodeUtf16`]
7903 * [`char::DecodeUtf16Error`]
7904 * [`char::DecodeUtf16Error::unpaired_surrogate`]
7905 * [`BTreeSet::take`]
7906 * [`BTreeSet::replace`]
7907 * [`BTreeSet::get`]
7908 * [`HashSet::take`]
7909 * [`HashSet::replace`]
7910 * [`HashSet::get`]
7911 * [`OsString::with_capacity`]
7912 * [`OsString::clear`]
7913 * [`OsString::capacity`]
7914 * [`OsString::reserve`]
7915 * [`OsString::reserve_exact`]
7916 * [`OsStr::is_empty`]
7917 * [`OsStr::len`]
7918 * [`std::os::unix::thread`]
7919 * [`RawPthread`]
7920 * [`JoinHandleExt`]
7921 * [`JoinHandleExt::as_pthread_t`]
7922 * [`JoinHandleExt::into_pthread_t`]
7923 * [`HashSet::hasher`]
7924 * [`HashMap::hasher`]
7925 * [`CommandExt::exec`]
7926 * [`File::try_clone`]
7927 * [`SocketAddr::set_ip`]
7928 * [`SocketAddr::set_port`]
7929 * [`SocketAddrV4::set_ip`]
7930 * [`SocketAddrV4::set_port`]
7931 * [`SocketAddrV6::set_ip`]
7932 * [`SocketAddrV6::set_port`]
7933 * [`SocketAddrV6::set_flowinfo`]
7934 * [`SocketAddrV6::set_scope_id`]
7935 * [`slice::copy_from_slice`]
7936 * [`ptr::read_volatile`]
7937 * [`ptr::write_volatile`]
7938 * [`OpenOptions::create_new`]
7939 * [`TcpStream::set_nodelay`]
7940 * [`TcpStream::nodelay`]
7941 * [`TcpStream::set_ttl`]
7942 * [`TcpStream::ttl`]
7943 * [`TcpStream::set_only_v6`]
7944 * [`TcpStream::only_v6`]
7945 * [`TcpStream::take_error`]
7946 * [`TcpStream::set_nonblocking`]
7947 * [`TcpListener::set_ttl`]
7948 * [`TcpListener::ttl`]
7949 * [`TcpListener::set_only_v6`]
7950 * [`TcpListener::only_v6`]
7951 * [`TcpListener::take_error`]
7952 * [`TcpListener::set_nonblocking`]
7953 * [`UdpSocket::set_broadcast`]
7954 * [`UdpSocket::broadcast`]
7955 * [`UdpSocket::set_multicast_loop_v4`]
7956 * [`UdpSocket::multicast_loop_v4`]
7957 * [`UdpSocket::set_multicast_ttl_v4`]
7958 * [`UdpSocket::multicast_ttl_v4`]
7959 * [`UdpSocket::set_multicast_loop_v6`]
7960 * [`UdpSocket::multicast_loop_v6`]
7961 * [`UdpSocket::set_multicast_ttl_v6`]
7962 * [`UdpSocket::multicast_ttl_v6`]
7963 * [`UdpSocket::set_ttl`]
7964 * [`UdpSocket::ttl`]
7965 * [`UdpSocket::set_only_v6`]
7966 * [`UdpSocket::only_v6`]
7967 * [`UdpSocket::join_multicast_v4`]
7968 * [`UdpSocket::join_multicast_v6`]
7969 * [`UdpSocket::leave_multicast_v4`]
7970 * [`UdpSocket::leave_multicast_v6`]
7971 * [`UdpSocket::take_error`]
7972 * [`UdpSocket::connect`]
7973 * [`UdpSocket::send`]
7974 * [`UdpSocket::recv`]
7975 * [`UdpSocket::set_nonblocking`]
7976
7977 Libraries
7978 ---------
7979
7980 * [`std::sync::Once` is poisoned if its initialization function
7981   fails][1.9o].
7982 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
7983 * [Most types implement `fmt::Debug`][1.9db].
7984 * [The default buffer size used by `BufReader` and `BufWriter` was
7985   reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
7986   used by other languages.
7987 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
7988   `Duration` additionally implements `*=` and `/=`][1.9ta].
7989 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
7990 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
7991 * [`Chain` implements `BufRead`][1.9ch].
7992 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
7993
7994 Cargo
7995 -----
7996
7997 * [Cargo can now run concurrently][1.9cc].
7998 * [Top-level overrides allow specific revisions of crates to be
7999   overridden through the entire crate graph][1.9ct].  This is intended
8000   to make upgrades easier for large projects, by allowing crates to be
8001   forked temporarily until they've been upgraded and republished.
8002 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
8003 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
8004   on the commandline][1.9cf]. `rustc` arguments can also be specified
8005   in the `build.rustflags` configuration key.
8006
8007 Performance
8008 -----------
8009
8010 * [The time complexity of comparing variables for equivalence during type
8011   unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
8012   to major compilation time improvement in some scenarios.
8013 * [`ToString` is specialized for `str`, giving it the same performance
8014   as `to_owned`][1.9ts].
8015 * [Spawning processes with `Command::output` no longer creates extra
8016   threads][1.9sp].
8017 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
8018   for C-like enums][1.9cl].
8019
8020 Misc
8021 ----
8022
8023 * [Passing the `--quiet` flag to a test runner will produce
8024   much-abbreviated output][1.9q].
8025 * The Rust Project now publishes std binaries for the
8026   `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
8027   `i586-pc-windows-msvc` targets.
8028
8029 Compatibility Notes
8030 -------------------
8031
8032 * [`std::sync::Once` is poisoned if its initialization function
8033   fails][1.9o].
8034 * [It is illegal to define methods with the same name in overlapping
8035   inherent `impl` blocks][1.9sn].
8036 * [`fn` item types are zero sized, and each `fn` names a unique
8037   type][1.9fn]. This will break code that transmutes `fn`s, so calling
8038   `transmute` on a `fn` type will generate a warning for a few cycles,
8039   then will be converted to an error.
8040 * [Improvements to const evaluation may trigger new errors when integer
8041   literals are out of range][1.9ce].
8042
8043
8044 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
8045 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
8046 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
8047 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
8048 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
8049 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
8050 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
8051 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
8052 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
8053 [1.9db]: https://github.com/rust-lang/rust/pull/32054
8054 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
8055 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
8056 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
8057 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
8058 [1.9o]: https://github.com/rust-lang/rust/pull/32325
8059 [1.9q]: https://github.com/rust-lang/rust/pull/31887
8060 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
8061 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
8062 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
8063 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
8064 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
8065 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
8066 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
8067 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
8068 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8069 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
8070 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8071 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
8072 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
8073 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
8074 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
8075 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
8076 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
8077 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
8078 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
8079 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
8080 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
8081 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
8082 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
8083 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
8084 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
8085 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
8086 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
8087 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
8088 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
8089 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
8090 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
8091 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
8092 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
8093 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
8094 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
8095 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
8096 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
8097 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
8098 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
8099 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
8100 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
8101 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
8102 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
8103 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
8104 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8105 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8106 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8107 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8108 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8109 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8110 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
8111 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8112 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
8113 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8114 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8115 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8116 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8117 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8118 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
8119 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
8120 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
8121 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
8122 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
8123 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
8124 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
8125 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
8126 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
8127 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
8128 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
8129 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
8130 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
8131 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
8132 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
8133 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
8134 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
8135 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
8136 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
8137 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
8138 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
8139 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
8140 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
8141 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
8142 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
8143 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
8144 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
8145 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
8146 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
8147 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
8148 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
8149 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
8150 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
8151 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
8152 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
8153 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
8154
8155
8156 Version 1.8.0 (2016-04-14)
8157 ==========================
8158
8159 Language
8160 --------
8161
8162 * Rust supports overloading of compound assignment statements like
8163   `+=` by implementing the [`AddAssign`], [`SubAssign`],
8164   [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
8165   [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
8166   traits. [RFC 953].
8167 * Empty structs can be defined with braces, as in `struct Foo { }`, in
8168   addition to the non-braced form, `struct Foo;`. [RFC 218].
8169
8170 Libraries
8171 ---------
8172
8173 * Stabilized APIs:
8174   * [`str::encode_utf16`] (renamed from `utf16_units`)
8175   * [`str::EncodeUtf16`] (renamed from `Utf16Units`)
8176   * [`Ref::map`]
8177   * [`RefMut::map`]
8178   * [`ptr::drop_in_place`]
8179   * [`time::Instant`]
8180   * [`time::SystemTime`]
8181   * [`Instant::now`]
8182   * [`Instant::duration_since`] (renamed from `duration_from_earlier`)
8183   * [`Instant::elapsed`]
8184   * [`SystemTime::now`]
8185   * [`SystemTime::duration_since`] (renamed from `duration_from_earlier`)
8186   * [`SystemTime::elapsed`]
8187   * Various `Add`/`Sub` impls for `Time` and `SystemTime`
8188   * [`SystemTimeError`]
8189   * [`SystemTimeError::duration`]
8190   * Various impls for `SystemTimeError`
8191   * [`UNIX_EPOCH`]
8192   * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
8193     [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
8194     [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
8195 * [The `write!` and `writeln!` macros correctly emit errors if any of
8196   their arguments can't be formatted][1.8w].
8197 * [Various I/O functions support large files on 32-bit Linux][1.8l].
8198 * [The Unix-specific `raw` modules, which contain a number of
8199   redefined C types are deprecated][1.8r], including `os::raw::unix`,
8200   `os::raw::macos`, and `os::raw::linux`. These modules defined types
8201   such as `ino_t` and `dev_t`. The inconsistency of these definitions
8202   across platforms was making it difficult to implement `std`
8203   correctly. Those that need these definitions should use the `libc`
8204   crate. [RFC 1415].
8205 * The Unix-specific `MetadataExt` traits, including
8206   `os::unix::fs::MetadataExt`, which expose values such as inode
8207   numbers [no longer return platform-specific types][1.8r], but
8208   instead return widened integers. [RFC 1415].
8209 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
8210 * [Atomic loads and stores are not volatile][1.8a].
8211 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
8212
8213 Performance
8214 -----------
8215
8216 * [Inlining hash functions lead to a 3% compile-time improvement in
8217   some workloads][1.8h].
8218 * When using jemalloc, its symbols are [unprefixed so that it
8219   overrides the libc malloc implementation][1.8h]. This means that for
8220   rustc, LLVM is now using jemalloc, which results in a 6%
8221   compile-time improvement on a specific workload.
8222 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
8223
8224 Misc
8225 ----
8226
8227 * [32-bit MSVC builds finally implement unwinding][1.8ms].
8228   i686-pc-windows-msvc is now considered a tier-1 platform.
8229 * [The `--print targets` flag prints a list of supported targets][1.8t].
8230 * [The `--print cfg` flag prints the `cfg`s defined for the current
8231   target][1.8cf].
8232 * [`rustc` can be built with an new Cargo-based build system, written
8233   in Rust][1.8b].  It will eventually replace Rust's Makefile-based
8234   build system. To enable it configure with `configure --rustbuild`.
8235 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
8236   variants while also indicating the total number of missing variants
8237   if more than 3][1.8m].
8238 * [Executable stacks are disabled on Linux and BSD][1.8nx].
8239 * The Rust Project now publishes binary releases of the standard
8240   library for a number of tier-2 targets:
8241   `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
8242   `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
8243   `x86_64-rumprun-netbsd`. These can be installed with
8244   tools such as [multirust][1.8mr].
8245
8246 Cargo
8247 -----
8248
8249 * [`cargo init` creates a new Cargo project in the current
8250   directory][1.8ci].  It is otherwise like `cargo new`.
8251 * [Cargo has configuration keys for `-v` and
8252   `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
8253   `[term]` section of `.cargo/config`.
8254 * [Configuration keys that evaluate to strings or integers can be set
8255   via environment variables][1.8ce]. For example the `build.jobs` key
8256   can be set via `CARGO_BUILD_JOBS`. Environment variables take
8257   precedence over config files.
8258 * [Target-specific dependencies support Rust `cfg` syntax for
8259   describing targets][1.8cfg] so that dependencies for multiple
8260   targets can be specified together. [RFC 1361].
8261 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
8262   `RUSTDOC` take precedence over the `build.target-dir`,
8263   `build.rustc`, and `build.rustdoc` configuration values][1.8cfv].
8264 * [The child process tree is killed on Windows when Cargo is
8265   killed][1.8ck].
8266 * [The `build.target` configuration value sets the target platform,
8267   like `--target`][1.8ct].
8268
8269 Compatibility Notes
8270 -------------------
8271
8272 * [Unstable compiler flags have been further restricted][1.8u]. Since
8273   1.0 `-Z` flags have been considered unstable, and other flags that
8274   were considered unstable additionally required passing `-Z
8275   unstable-options` to access. Unlike unstable language and library
8276   features though, these options have been accessible on the stable
8277   release channel. Going forward, *new unstable flags will not be
8278   available on the stable release channel*, and old unstable flags
8279   will warn about their usage. In the future, all unstable flags will
8280   be unavailable on the stable release channel.
8281 * [It is no longer possible to `match` on empty enum variants using
8282   the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
8283 * The Unix-specific `MetadataExt` traits, including
8284   `os::unix::fs::MetadataExt`, which expose values such as inode
8285   numbers [no longer return platform-specific types][1.8r], but
8286   instead return widened integers. [RFC 1415].
8287 * [Modules sourced from the filesystem cannot appear within arbitrary
8288   blocks, but only within other modules][1.8mf].
8289 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
8290 * On Unix, [stack overflow triggers a runtime abort instead of a
8291   SIGSEGV][1.8so].
8292 * [`Command::spawn` and its equivalents return an error if any of
8293   its command-line arguments contain interior `NUL`s][1.8n].
8294 * [Tuple and unit enum variants from other crates are in the type
8295   namespace][1.8tn].
8296 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
8297   type instead of `.a` files][1.8st]. Additionally, for the MSVC
8298   toolchain, `rustc` emits import libraries named `foo.dll.lib`
8299   instead of `foo.lib`.
8300
8301
8302 [1.8a]: https://github.com/rust-lang/rust/pull/30962
8303 [1.8b]: https://github.com/rust-lang/rust/pull/31123
8304 [1.8c]: https://github.com/rust-lang/rust/pull/31530
8305 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
8306 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
8307 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
8308 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
8309 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
8310 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
8311 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
8312 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
8313 [1.8cfv]: https://github.com/rust-lang/cargo/issues/2365
8314 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
8315 [1.8h]: https://github.com/rust-lang/rust/pull/31460
8316 [1.8l]: https://github.com/rust-lang/rust/pull/31668
8317 [1.8m]: https://github.com/rust-lang/rust/pull/31020
8318 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
8319 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
8320 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
8321 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
8322 [1.8n]: https://github.com/rust-lang/rust/pull/31056
8323 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
8324 [1.8r]: https://github.com/rust-lang/rust/pull/31551
8325 [1.8so]: https://github.com/rust-lang/rust/pull/31333
8326 [1.8st]: https://github.com/rust-lang/rust/pull/29520
8327 [1.8t]: https://github.com/rust-lang/rust/pull/31358
8328 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
8329 [1.8u]: https://github.com/rust-lang/rust/pull/31793
8330 [1.8v]: https://github.com/rust-lang/rust/pull/31757
8331 [1.8w]: https://github.com/rust-lang/rust/pull/31904
8332 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
8333 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
8334 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
8335 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
8336 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
8337 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
8338 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
8339 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
8340 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
8341 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
8342 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
8343 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
8344 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
8345 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
8346 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
8347 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
8348 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
8349 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
8350 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
8351 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
8352 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
8353 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
8354 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
8355 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
8356 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
8357 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
8358 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
8359 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
8360 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
8361 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
8362
8363
8364 Version 1.7.0 (2016-03-03)
8365 ==========================
8366
8367 Libraries
8368 ---------
8369
8370 * Stabilized APIs
8371   * `Path`
8372     * [`Path::strip_prefix`] (renamed from relative_from)
8373     * [`path::StripPrefixError`] (new error type returned from strip_prefix)
8374   * `Ipv4Addr`
8375     * [`Ipv4Addr::is_loopback`]
8376     * [`Ipv4Addr::is_private`]
8377     * [`Ipv4Addr::is_link_local`]
8378     * [`Ipv4Addr::is_multicast`]
8379     * [`Ipv4Addr::is_broadcast`]
8380     * [`Ipv4Addr::is_documentation`]
8381   * `Ipv6Addr`
8382     * [`Ipv6Addr::is_unspecified`]
8383     * [`Ipv6Addr::is_loopback`]
8384     * [`Ipv6Addr::is_multicast`]
8385   * `Vec`
8386     * [`Vec::as_slice`]
8387     * [`Vec::as_mut_slice`]
8388   * `String`
8389     * [`String::as_str`]
8390     * [`String::as_mut_str`]
8391   * Slices
8392     * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
8393     be the same length
8394     * `<[T]>::`[`sort_by_key`]
8395   * checked, saturated, and overflowing operations
8396     * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
8397     * [`i32::saturating_mul`]
8398     * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
8399     * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
8400     * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
8401     * [`u32::saturating_mul`]
8402     * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
8403     * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
8404     * and checked, saturated, and overflowing operations for other primitive types
8405   * FFI
8406     * [`ffi::IntoStringError`]
8407     * [`CString::into_string`]
8408     * [`CString::into_bytes`]
8409     * [`CString::into_bytes_with_nul`]
8410     * `From<CString> for Vec<u8>`
8411   * `IntoStringError`
8412     * [`IntoStringError::into_cstring`]
8413     * [`IntoStringError::utf8_error`]
8414     * `Error for IntoStringError`
8415   * Hashing
8416     * [`std::hash::BuildHasher`]
8417     * [`BuildHasher::Hasher`]
8418     * [`BuildHasher::build_hasher`]
8419     * [`std::hash::BuildHasherDefault`]
8420     * [`HashMap::with_hasher`]
8421     * [`HashMap::with_capacity_and_hasher`]
8422     * [`HashSet::with_hasher`]
8423     * [`HashSet::with_capacity_and_hasher`]
8424     * [`std::collections::hash_map::RandomState`]
8425     * [`RandomState::new`]
8426 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
8427   ASCII input][1.7utf8]. This means that creating `String`s and `str`s
8428   from bytes is faster.
8429 * [The performance of `LineWriter` (and thus `io::stdout`) was
8430   improved by using `memchr` to search for newlines][1.7m].
8431 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
8432   `f64` variants were stabilized previously.
8433 * [`BTreeMap` was rewritten to use less memory and improve the performance
8434   of insertion and iteration, the latter by as much as 5x][1.7bm].
8435 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
8436   covariant over their contained type][1.7bt].
8437 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
8438   over their contained type][1.7ll].
8439 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
8440   searching methods.
8441 * [`Any` is implemented for unsized types][1.7a].
8442 * [`Hash` is implemented for `Duration`][1.7h].
8443
8444 Misc
8445 ----
8446
8447 * [When running tests with `--test`, rustdoc will pass `--cfg`
8448   arguments to the compiler][1.7dt].
8449 * [The compiler is built with RPATH information by default][1.7rpa].
8450   This means that it will be possible to run `rustc` when installed in
8451   unusual configurations without configuring the dynamic linker search
8452   path explicitly.
8453 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
8454   any RPATH entries (emitted with `-C rpath`) *not* take precedence
8455   over `LD_LIBRARY_PATH`.
8456
8457 Cargo
8458 -----
8459
8460 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
8461   any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
8462 * [The `rerun-if-changed` build script directive no longer causes the
8463   build script to incorrectly run twice in certain scenarios][1.7rr].
8464
8465 Compatibility Notes
8466 -------------------
8467
8468 * Soundness fixes to the interactions between associated types and
8469   lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
8470   code that violates the new rules. This is a significant change that
8471   is known to break existing code, so it has emitted warnings for the
8472   new error cases since 1.4 to give crate authors time to adapt. The
8473   details of what is changing are subtle; read the RFC for more.
8474 * [Several bugs in the compiler's visibility calculations were
8475   fixed][1.7v]. Since this was found to break significant amounts of
8476   code, the new errors will be emitted as warnings for several release
8477   cycles, under the `private_in_public` lint.
8478 * Defaulted type parameters were accidentally accepted in positions
8479   that were not intended. In this release, [defaulted type parameters
8480   appearing outside of type definitions will generate a
8481   warning][1.7d], which will become an error in future releases.
8482 * [Parsing "." as a float results in an error instead of 0][1.7p].
8483   That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
8484 * [Borrows of closure parameters may not outlive the closure][1.7bc].
8485
8486 [1.7a]: https://github.com/rust-lang/rust/pull/30928
8487 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
8488 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
8489 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
8490 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
8491 [1.7d]: https://github.com/rust-lang/rust/pull/30724
8492 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
8493 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
8494 [1.7f]: https://github.com/rust-lang/rust/pull/30672
8495 [1.7h]: https://github.com/rust-lang/rust/pull/30818
8496 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
8497 [1.7m]: https://github.com/rust-lang/rust/pull/30381
8498 [1.7p]: https://github.com/rust-lang/rust/pull/30681
8499 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
8500 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
8501 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
8502 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
8503 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
8504 [1.7v]: https://github.com/rust-lang/rust/pull/29973
8505 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8506 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
8507 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
8508 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
8509 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
8510 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
8511 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
8512 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
8513 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
8514 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
8515 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
8516 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
8517 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
8518 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
8519 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
8520 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
8521 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
8522 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
8523 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
8524 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
8525 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
8526 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
8527 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
8528 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
8529 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
8530 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
8531 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
8532 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
8533 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
8534 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
8535 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
8536 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
8537 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
8538 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
8539 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
8540 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
8541 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
8542 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
8543 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
8544 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
8545 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
8546 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
8547 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
8548 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
8549 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
8550 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
8551 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
8552 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8553 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
8554 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8555 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
8556 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
8557 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
8558 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
8559 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
8560 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
8561 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
8562 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
8563 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
8564 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
8565
8566
8567 Version 1.6.0 (2016-01-21)
8568 ==========================
8569
8570 Language
8571 --------
8572
8573 * The `#![no_std]` attribute causes a crate to not be linked to the
8574   standard library, but only the [core library][1.6co], as described
8575   in [RFC 1184]. The core library defines common types and traits but
8576   has no platform dependencies whatsoever, and is the basis for Rust
8577   software in environments that cannot support a full port of the
8578   standard library, such as operating systems. Most of the core
8579   library is now stable.
8580
8581 Libraries
8582 ---------
8583
8584 * Stabilized APIs:
8585   [`Read::read_exact`],
8586   [`ErrorKind::UnexpectedEof`] (renamed from `UnexpectedEOF`),
8587   [`fs::DirBuilder`], [`fs::DirBuilder::new`],
8588   [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
8589   [`os::unix::fs::DirBuilderExt`],
8590   [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
8591   [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
8592   [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
8593   [`collections::hash_map::Drain`],
8594   [`collections::hash_map::HashMap::drain`],
8595   [`collections::hash_set::Drain`],
8596   [`collections::hash_set::HashSet::drain`],
8597   [`collections::binary_heap::Drain`],
8598   [`collections::binary_heap::BinaryHeap::drain`],
8599   [`Vec::extend_from_slice`] (renamed from `push_all`),
8600   [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
8601   [`RwLock::into_inner`],
8602   [`Iterator::min_by_key`] (renamed from `min_by`),
8603   [`Iterator::max_by_key`] (renamed from `max_by`).
8604 * The [core library][1.6co] is stable, as are most of its APIs.
8605 * [The `assert_eq!` macro supports arguments that don't implement
8606   `Sized`][1.6ae], such as arrays. In this way it behaves more like
8607   `assert!`.
8608 * Several timer functions that take duration in milliseconds [are
8609   deprecated in favor of those that take `Duration`][1.6ms]. These
8610   include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
8611   `thread::park_timeout_ms`.
8612 * The algorithm by which `Vec` reserves additional elements was
8613   [tweaked to not allocate excessive space][1.6a] while still growing
8614   exponentially.
8615 * `From` conversions are [implemented from integers to floats][1.6f]
8616   in cases where the conversion is lossless. Thus they are not
8617   implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
8618   or `f64`. They are also not implemented for `isize` and `usize`
8619   because the implementations would be platform-specific. `From` is
8620   also implemented from `f32` to `f64`.
8621 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
8622 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
8623 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
8624 * [`BinaryHeap` was refactored][1.6bh] for modest performance
8625   improvements.
8626 * Sorting slices that are already sorted [is 50% faster in some
8627   cases][1.6s].
8628
8629 Cargo
8630 -----
8631
8632 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
8633 * Cargo build scripts can specify their dependencies by emitting the
8634   [`rerun-if-changed`][1.6rr] key.
8635 * crates.io will reject publication of crates with dependencies that
8636   have a wildcard version constraint. Crates with wildcard
8637   dependencies were seen to cause a variety of problems, as described
8638   in [RFC 1241]. Since 1.5 publication of such crates has emitted a
8639   warning.
8640 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
8641   release folder.  A variety of artifacts that Cargo failed to clean
8642   are now correctly deleted.
8643
8644 Misc
8645 ----
8646
8647 * The `unreachable_code` lint [warns when a function call's argument
8648   diverges][1.6dv].
8649 * The parser indicates [failures that may be caused by
8650   confusingly-similar Unicode characters][1.6uc]
8651 * Certain macro errors [are reported at definition time][1.6m], not
8652   expansion.
8653
8654 Compatibility Notes
8655 -------------------
8656
8657 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
8658   environment variable when locating crates. This was a pre-cargo
8659   feature for integrating with the package manager that was
8660   accidentally never removed.
8661 * [A number of bugs were fixed in the privacy checker][1.6p] that
8662   could cause previously-accepted code to break.
8663 * [Modules and unit/tuple structs may not share the same name][1.6ts].
8664 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
8665   struct pattern syntax (`Foo(..)`) can no longer be used to match
8666   unit structs. This is a warning now, but will become an error in
8667   future releases. Patterns that share the same name as a const are
8668   now an error.
8669 * A bug was fixed that causes [rustc not to apply default type
8670   parameters][1.6xc] when resolving certain method implementations of
8671   traits defined in other crates.
8672
8673 [1.6a]: https://github.com/rust-lang/rust/pull/29454
8674 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
8675 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
8676 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
8677 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
8678 [1.6co]: http://doc.rust-lang.org/core/index.html
8679 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
8680 [1.6f]: https://github.com/rust-lang/rust/pull/29129
8681 [1.6m]: https://github.com/rust-lang/rust/pull/29828
8682 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
8683 [1.6p]: https://github.com/rust-lang/rust/pull/29726
8684 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
8685 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
8686 [1.6s]: https://github.com/rust-lang/rust/pull/29675
8687 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
8688 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
8689 [1.6us]: https://github.com/rust-lang/rust/pull/29383
8690 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
8691 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
8692 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
8693 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
8694 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
8695 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
8696 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
8697 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
8698 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
8699 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
8700 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
8701 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
8702 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
8703 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
8704 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
8705 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
8706 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
8707 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
8708 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
8709 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
8710 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
8711 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
8712 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
8713 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
8714 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
8715 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
8716 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
8717 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
8718 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
8719 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
8720
8721
8722 Version 1.5.0 (2015-12-10)
8723 ==========================
8724
8725 * ~700 changes, numerous bugfixes
8726
8727 Highlights
8728 ----------
8729
8730 * Stabilized APIs:
8731   [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
8732   [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
8733   [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
8734   [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
8735   [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
8736   [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
8737   [`Formatter::sign_minus`], [`Formatter::sign_plus`],
8738   [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
8739   [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
8740   [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
8741   [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
8742   [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
8743   [`Path::read_link`], [`Path::symlink_metadata`],
8744   [`Utf8Error::valid_up_to`], [`Vec::resize`],
8745   [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
8746   [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
8747   [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
8748   [`slice::split_first_mut`], [`slice::split_first`],
8749   [`slice::split_last_mut`], [`slice::split_last`],
8750   [`char::from_u32_unchecked`], [`fs::canonicalize`],
8751   [`str::MatchIndices`], [`str::RMatchIndices`],
8752   [`str::match_indices`], [`str::rmatch_indices`],
8753   [`str::slice_mut_unchecked`], [`string::ParseError`].
8754 * Rust applications hosted on crates.io can be installed locally to
8755   `~/.cargo/bin` with the [`cargo install`] command. Among other
8756   things this makes it easier to augment Cargo with new subcommands:
8757   when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
8758   invoked as `cargo foo`.
8759 * Crates with wildcard (`*`) dependencies will [emit warnings when
8760   published][1.5w]. In 1.6 it will no longer be possible to publish
8761   crates with wildcard dependencies.
8762
8763 Breaking Changes
8764 ----------------
8765
8766 * The rules determining when a particular lifetime must outlive
8767   a particular value (known as '[dropck]') have been [modified
8768   to not rely on parametricity][1.5p].
8769 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
8770   and `Arc`][1.5a]. Because these smart pointer types implement
8771   `Deref`, this causes breakage in cases where the interior type
8772   contains methods of the same name.
8773 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
8774   that they could drop their content. Soundness fix.
8775 * All method invocations are [properly checked][1.5wf1] for
8776   [well-formedness][1.5wf2]. Soundness fix.
8777 * Traits whose supertraits contain `Self` are [not object
8778   safe][1.5o]. Soundness fix.
8779 * Target specifications support a [`no_default_libraries`][1.5nd]
8780   setting that controls whether `-nodefaultlibs` is passed to the
8781   linker, and in turn the `is_like_windows` setting no longer affects
8782   the `-nodefaultlibs` flag.
8783 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
8784 * The `#[inline]` and `#[repr]` attributes [can only appear
8785   in valid locations][1.5at].
8786 * Native libraries linked from the local crate are [passed to
8787   the linker before native libraries from upstream crates][1.5nl].
8788 * Two rarely-used attributes, `#[no_debug]` and
8789   `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
8790 * Negation of unsigned integers, which has been a warning for
8791   several releases, [is now behind a feature gate and will
8792   generate errors][1.5nu].
8793 * The parser accidentally accepted visibility modifiers on
8794   enum variants, a bug [which has been fixed][1.5ev].
8795 * [A bug was fixed that allowed `use` statements to import unstable
8796   features][1.5use].
8797
8798 Language
8799 --------
8800
8801 * When evaluating expressions at compile-time that are not
8802   compile-time constants (const-evaluating expressions in non-const
8803   contexts), incorrect code such as overlong bitshifts and arithmetic
8804   overflow will [generate a warning instead of an error][1.5ce],
8805   delaying the error until runtime. This will allow the
8806   const-evaluator to be expanded in the future backwards-compatibly.
8807 * The `improper_ctypes` lint [no longer warns about using `isize` and
8808   `usize` in FFI][1.5ict].
8809
8810 Libraries
8811 ---------
8812
8813 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
8814   invariant][1.5c].
8815 * `Default` is [implemented for mutable slices][1.5d].
8816 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
8817 * There are now `From` conversions [between floating point
8818   types][1.5f] where the conversions are lossless.
8819 * There are now `From` conversions [between integer types][1.5i] where
8820   the conversions are lossless.
8821 * [`fs::Metadata` implements `Clone`][1.5fs].
8822 * The `parse` method [accepts a leading "+" when parsing
8823   integers][1.5pi].
8824 * [`AsMut` is implemented for `Vec`][1.5am].
8825 * The `clone_from` implementations for `String` and `BinaryHeap` [have
8826   been optimized][1.5cf] and no longer rely on the default impl.
8827 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
8828   `unsafe extern "C"` function types now [implement `Clone`,
8829   `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
8830   `fmt::Debug` for up to 12 arguments][1.5fp].
8831 * [Dropping `Vec`s is much faster in unoptimized builds when the
8832   element types don't implement `Drop`][1.5dv].
8833 * A bug that caused in incorrect behavior when [combining `VecDeque`
8834   with zero-sized types][1.5vdz] was resolved.
8835 * [`PartialOrd` for slices is faster][1.5po].
8836
8837 Miscellaneous
8838 -------------
8839
8840 * [Crate metadata size was reduced by 20%][1.5md].
8841 * [Improvements to code generation reduced the size of libcore by 3.3
8842   MB and rustc's memory usage by 18MB][1.5m].
8843 * [Improvements to deref translation increased performance in
8844   unoptimized builds][1.5dr].
8845 * Various errors in trait resolution [are deduplicated to only be
8846   reported once][1.5te].
8847 * Rust has preliminary [support for rumprun kernels][1.5rr].
8848 * Rust has preliminary [support for NetBSD on amd64][1.5na].
8849
8850 [1.5use]: https://github.com/rust-lang/rust/pull/28364
8851 [1.5po]: https://github.com/rust-lang/rust/pull/28436
8852 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
8853 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
8854 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
8855 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
8856 [1.5md]: https://github.com/rust-lang/rust/pull/28521
8857 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
8858 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
8859 [1.5na]: https://github.com/rust-lang/rust/pull/28543
8860 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
8861 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
8862 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
8863 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
8864 [1.5te]: https://github.com/rust-lang/rust/pull/28645
8865 [1.5at]: https://github.com/rust-lang/rust/pull/28650
8866 [1.5am]: https://github.com/rust-lang/rust/pull/28663
8867 [1.5m]: https://github.com/rust-lang/rust/pull/28778
8868 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
8869 [1.5a]: https://github.com/rust-lang/rust/pull/28811
8870 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
8871 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
8872 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
8873 [1.5i]: https://github.com/rust-lang/rust/pull/28921
8874 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
8875 [1.5f]: https://github.com/rust-lang/rust/pull/29129
8876 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
8877 [1.5s]: https://github.com/rust-lang/rust/pull/29190
8878 [1.5d]: https://github.com/rust-lang/rust/pull/29245
8879 [1.5o]: https://github.com/rust-lang/rust/pull/29259
8880 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
8881 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8882 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
8883 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
8884 [1.5c]: https://github.com/rust-lang/rust/pull/29110
8885 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
8886 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
8887 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
8888 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
8889 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
8890 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
8891 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
8892 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
8893 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
8894 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
8895 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
8896 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
8897 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
8898 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
8899 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
8900 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
8901 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
8902 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
8903 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
8904 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
8905 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
8906 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
8907 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
8908 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
8909 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
8910 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
8911 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
8912 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
8913 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
8914 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
8915 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
8916 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
8917 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
8918 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
8919 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
8920 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
8921 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
8922 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
8923 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
8924 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
8925 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
8926 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
8927 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
8928 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
8929 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
8930 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
8931 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
8932 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
8933 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
8934 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
8935 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
8936 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
8937 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
8938 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
8939
8940 Version 1.4.0 (2015-10-29)
8941 ==========================
8942
8943 * ~1200 changes, numerous bugfixes
8944
8945 Highlights
8946 ----------
8947
8948 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
8949   GNU) are now supported and recommended for use.
8950
8951 Breaking Changes
8952 ----------------
8953
8954 * [Several changes have been made to fix type soundness and improve
8955   the behavior of associated types][sound]. See [RFC 1214]. Although
8956   we have mostly introduced these changes as warnings this release, to
8957   become errors next release, there are still some scenarios that will
8958   see immediate breakage.
8959 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
8960   line breaks in addition to `\n`][crlf].
8961 * [Loans of `'static` lifetime extend to the end of a function][stat].
8962 * [`str::parse` no longer introduces avoidable rounding error when
8963   parsing floating point numbers. Together with earlier changes to
8964   float formatting/output, "round trips" like f.to_string().parse()
8965   now preserve the value of f exactly. Additionally, leading plus
8966   signs are now accepted][fp3].
8967
8968
8969 Language
8970 --------
8971
8972 * `use` statements that import multiple items [can now rename
8973   them][i], as in `use foo::{bar as kitten, baz as puppy}`.
8974 * [Binops work correctly on fat pointers][binfat].
8975 * `pub extern crate`, which does not behave as expected, [issues a
8976   warning][pec] until a better solution is found.
8977
8978 Libraries
8979 ---------
8980
8981 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
8982   [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
8983   [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
8984   [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
8985   [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
8986   `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
8987   `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
8988   [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
8989   [`String::into_boxed_str`], [`TcpStream::read_timeout`],
8990   [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
8991   [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
8992   [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
8993   [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
8994   [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
8995   [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
8996   [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
8997   [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
8998   [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
8999   [`thread::sleep`].
9000 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
9001   `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
9002   `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
9003   `f64::from_str_radix`.
9004 * [Reverse-searching strings is faster with the 'two-way'
9005   algorithm][s].
9006 * [`std::io::copy` allows `?Sized` arguments][cc].
9007 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
9008   [override `count`, `nth` and `last` with an *O*(1)
9009   implementation][it].
9010 * [`Default` is implemented for arrays up to `[T; 32]`][d].
9011 * [`IntoRawFd` has been added to the Unix-specific prelude,
9012   `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
9013   prelude][pr].
9014 * [`Extend<String>` and `FromIterator<String` are both implemented for
9015   `String`][es].
9016 * [`IntoIterator` is implemented for references to `Option` and
9017   `Result`][into2].
9018 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
9019   Copy`][ext] as part of [RFC 839]. This will cause type inference
9020   breakage in rare situations.
9021 * [`BinaryHeap` implements `Debug`][bh2].
9022 * [`Borrow` and `BorrowMut` are implemented for fixed-size
9023   arrays][bm].
9024 * [`extern fn`s with the "Rust" and "C" ABIs implement common
9025   traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
9026 * [String comparison is faster][faststr].
9027 * `&mut T` where `T: std::fmt::Write` [also implements
9028   `std::fmt::Write`][mutw].
9029 * [A stable regression in `VecDeque::push_back` and other
9030   capacity-altering methods that caused panics for zero-sized types
9031   was fixed][vd].
9032 * [Function pointers implement traits for up to 12 parameters][fp2].
9033
9034 Miscellaneous
9035 -------------
9036
9037 * The compiler [no longer uses the 'morestack' feature to prevent
9038   stack overflow][mm]. Instead it uses guard pages and stack
9039   probes (though stack probes are not yet implemented on any platform
9040   but Windows).
9041 * [The compiler matches traits faster when projections are involved][p].
9042 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
9043   `usize`][ffi].
9044 * [Cargo now displays useful information about what its doing during
9045   `cargo update`][cu].
9046
9047 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
9048 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
9049 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
9050 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
9051 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
9052 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
9053 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
9054 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
9055 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
9056 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
9057 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
9058 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
9059 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
9060 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
9061 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
9062 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
9063 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
9064 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
9065 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9066 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9067 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9068 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9069 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9070 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9071 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9072 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9073 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
9074 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
9075 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
9076 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
9077 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
9078 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
9079 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
9080 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
9081 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
9082 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
9083 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
9084 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
9085 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
9086 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
9087 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
9088 [bh2]: https://github.com/rust-lang/rust/pull/28156
9089 [binfat]: https://github.com/rust-lang/rust/pull/28270
9090 [bm]: https://github.com/rust-lang/rust/pull/28197
9091 [cc]: https://github.com/rust-lang/rust/pull/27531
9092 [crlf]: https://github.com/rust-lang/rust/pull/28034
9093 [cu]: https://github.com/rust-lang/cargo/pull/1931
9094 [d]: https://github.com/rust-lang/rust/pull/27825
9095 [dep]: https://github.com/rust-lang/rust/pull/28339
9096 [es]: https://github.com/rust-lang/rust/pull/27956
9097 [ext]: https://github.com/rust-lang/rust/pull/28094
9098 [faststr]: https://github.com/rust-lang/rust/pull/28338
9099 [ffi]: https://github.com/rust-lang/rust/pull/28779
9100 [fp]: https://github.com/rust-lang/rust/pull/28268
9101 [fp2]: https://github.com/rust-lang/rust/pull/28560
9102 [fp3]: https://github.com/rust-lang/rust/pull/27307
9103 [i]: https://github.com/rust-lang/rust/pull/27451
9104 [into2]: https://github.com/rust-lang/rust/pull/28039
9105 [it]: https://github.com/rust-lang/rust/pull/27652
9106 [mm]: https://github.com/rust-lang/rust/pull/27338
9107 [mutw]: https://github.com/rust-lang/rust/pull/28368
9108 [sound]: https://github.com/rust-lang/rust/pull/27641
9109 [p]: https://github.com/rust-lang/rust/pull/27866
9110 [pec]: https://github.com/rust-lang/rust/pull/28486
9111 [pr]: https://github.com/rust-lang/rust/pull/27896
9112 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9113 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
9114 [s]: https://github.com/rust-lang/rust/pull/27474
9115 [stab]: https://github.com/rust-lang/rust/pull/28339
9116 [stat]: https://github.com/rust-lang/rust/pull/28321
9117 [vd]: https://github.com/rust-lang/rust/pull/28494
9118
9119 Version 1.3.0 (2015-09-17)
9120 ==============================
9121
9122 * ~900 changes, numerous bugfixes
9123
9124 Highlights
9125 ----------
9126
9127 * The [new object lifetime defaults][nold] have been [turned
9128   on][nold2] after a cycle of warnings about the change. Now types
9129   like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
9130   being interpreted as `&'a Box<Trait+'a>` to `&'a
9131   Box<Trait+'static>`.
9132 * [The Rustonomicon][nom] is a new book in the official documentation
9133   that dives into writing unsafe Rust.
9134 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
9135   timekeeping is employed by other std APIs, as well as out-of-tree
9136   time crates.
9137
9138 Breaking Changes
9139 ----------------
9140
9141 * The [new object lifetime defaults][nold] have been [turned
9142   on][nold2] after a cycle of warnings about the change.
9143 * There is a known [regression][lr] in how object lifetime elision is
9144   interpreted, the proper solution for which is undetermined.
9145 * The `#[prelude_import]` attribute, an internal implementation
9146   detail, was accidentally stabilized previously. [It has been put
9147   behind the `prelude_import` feature gate][pi]. This change is
9148   believed to break no existing code.
9149 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9150   [more sane for dynamically sized types][dst3]. Code that relied on
9151   the previous behavior is thought to be broken.
9152 * The `dropck` rules, which checks that destructors can't access
9153   destroyed values, [have been updated][dropck] to match the
9154   [RFC][dropckrfc]. This fixes some soundness holes, and as such will
9155   cause some previously-compiling code to no longer build.
9156
9157 Language
9158 --------
9159
9160 * The [new object lifetime defaults][nold] have been [turned
9161   on][nold2] after a cycle of warnings about the change.
9162 * Semicolons may [now follow types and paths in
9163   macros](https://github.com/rust-lang/rust/pull/27000).
9164 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9165   [more sane for dynamically sized types][dst3]. Code that relied on
9166   the previous behavior is not known to exist, and suspected to be
9167   broken.
9168 * `'static` variables [may now be recursive][st].
9169 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
9170   implementations correctly.
9171 * The `dropck` rules, which checks that destructors can't access
9172   destroyed values, [have been updated][dropck] to match the
9173   [RFC][dropckrfc].
9174
9175 Libraries
9176 ---------
9177
9178 * The [`Duration`] API, [has been stabilized][ds], as well as the
9179   `std::time` module, which presently contains only `Duration`.
9180 * `Box<str>` and `Box<[T]>` both implement `Clone`.
9181 * The owned C string, [`CString`], implements [`Borrow`] and the
9182   borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
9183   these allow C strings to be borrowed and cloned in generic code.
9184 * [`CStr`] implements [`Debug`].
9185 * [`AtomicPtr`] implements [`Debug`].
9186 * [`Error`] trait objects [can be downcast to their concrete types][e]
9187   in many common configurations, using the [`is`], [`downcast`],
9188   [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
9189   [`Any`] trait.
9190 * Searching for substrings now [employs the two-way algorithm][search]
9191   instead of doing a naive search. This gives major speedups to a
9192   number of methods, including [`contains`][sc], [`find`][sf],
9193   [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
9194   [`ends_with`][sew] are also faster.
9195 * The performance of `PartialEq` for slices is [much faster][ps].
9196 * The [`Hash`] trait offers the default method, [`hash_slice`], which
9197   is overridden and optimized by the implementations for scalars.
9198 * The [`Hasher`] trait now has a number of specialized `write_*`
9199   methods for primitive types, for efficiency.
9200 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
9201   methods for accessing the 'inner error', if any: [`get_ref`][iegr],
9202   [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
9203   of [`std::error::Error::cause`][iec] also delegates to the inner
9204   error.
9205 * [`process::Child`][pc] gained the [`id`] method, which returns a
9206   `u32` representing the platform-specific process identifier.
9207 * The [`connect`] method on slices is deprecated, replaced by the new
9208   [`join`] method (note that both of these are on the *unstable*
9209   [`SliceConcatExt`] trait, but through the magic of the prelude are
9210   available to stable code anyway).
9211 * The [`Div`] operator is implemented for [`Wrapping`] types.
9212 * [`DerefMut` is implemented for `String`][dms].
9213 * Performance of SipHash (the default hasher for `HashMap`) is
9214   [better for long data][sh].
9215 * [`AtomicPtr`] implements [`Send`].
9216 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
9217   are now [specialized to use uninitialized buffers for increased
9218   performance][rte].
9219 * Lifetime parameters of foreign functions [are now resolved
9220   properly][f].
9221
9222 Misc
9223 ----
9224
9225 * Rust can now, with some coercion, [produce programs that run on
9226   Windows XP][xp], though XP is not considered a supported platform.
9227 * Porting Rust on Windows from the GNU toolchain to MSVC continues
9228   ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
9229   recommended for use in 1.3, though should be fully-functional
9230   in the [64-bit 1.4 beta][b14].
9231 * On Fedora-based systems installation will [properly configure the
9232   dynamic linker][fl].
9233 * The compiler gained many new extended error descriptions, which can
9234   be accessed with the `--explain` flag.
9235 * The `dropck` pass, which checks that destructors can't access
9236   destroyed values, [has been rewritten][27261]. This fixes some
9237   soundness holes, and as such will cause some previously-compiling
9238   code to no longer build.
9239 * `rustc` now uses [LLVM to write archive files where possible][ar].
9240   Eventually this will eliminate the compiler's dependency on the ar
9241   utility.
9242 * Rust has [preliminary support for i686 FreeBSD][26959] (it has long
9243   supported FreeBSD on x86_64).
9244 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
9245   [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
9246   more strict.
9247 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
9248   will kill the process instead of leaking][nlp].
9249
9250 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
9251 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
9252 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
9253 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
9254 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
9255 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9256 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9257 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
9258 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
9259 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
9260 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
9261 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
9262 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
9263 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
9264 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
9265 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
9266 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
9267 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
9268 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9269 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
9270 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
9271 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
9272 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
9273 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
9274 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
9275 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
9276 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
9277 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
9278 [ar]: https://github.com/rust-lang/rust/pull/26926
9279 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
9280 [dms]: https://github.com/rust-lang/rust/pull/26241
9281 [27261]: https://github.com/rust-lang/rust/pull/27261
9282 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9283 [ds]: https://github.com/rust-lang/rust/pull/26818
9284 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
9285 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
9286 [dst3]: https://github.com/rust-lang/rust/pull/27351
9287 [e]: https://github.com/rust-lang/rust/pull/24793
9288 [f]: https://github.com/rust-lang/rust/pull/26588
9289 [26959]: https://github.com/rust-lang/rust/pull/26959
9290 [fl]: https://github.com/rust-lang/rust-installer/pull/41
9291 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
9292 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
9293 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
9294 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
9295 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
9296 [lic]: https://github.com/rust-lang/rust/pull/26583
9297 [lnu]: https://github.com/rust-lang/rust/pull/27026
9298 [lr]: https://github.com/rust-lang/rust/issues/27248
9299 [lum]: https://github.com/rust-lang/rust/pull/26378
9300 [lur]: https://github.com/rust-lang/rust/pull/26783
9301 [nlp]: https://github.com/rust-lang/rust/pull/27176
9302 [nold2]: https://github.com/rust-lang/rust/pull/27045
9303 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
9304 [nom]: http://doc.rust-lang.org/nightly/nomicon/
9305 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
9306 [pi]: https://github.com/rust-lang/rust/pull/26699
9307 [ps]: https://github.com/rust-lang/rust/pull/26884
9308 [rte]: https://github.com/rust-lang/rust/pull/26950
9309 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
9310 [search]: https://github.com/rust-lang/rust/pull/26327
9311 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
9312 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
9313 [sh]: https://github.com/rust-lang/rust/pull/27280
9314 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
9315 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
9316 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
9317 [st]: https://github.com/rust-lang/rust/pull/26630
9318 [win1]: https://github.com/rust-lang/rust/pull/26569
9319 [win2]: https://github.com/rust-lang/rust/pull/26741
9320 [win3]: https://github.com/rust-lang/rust/pull/26741
9321 [win4]: https://github.com/rust-lang/rust/pull/27210
9322 [xp]: https://github.com/rust-lang/rust/pull/26569
9323
9324 Version 1.2.0 (2015-08-07)
9325 ==========================
9326
9327 * ~1200 changes, numerous bugfixes
9328
9329 Highlights
9330 ----------
9331
9332 * [Dynamically-sized-type coercions][dst] allow smart pointer types
9333   like `Rc` to contain types without a fixed size, arrays and trait
9334   objects, finally enabling use of `Rc<[T]>` and completing the
9335   implementation of DST.
9336 * [Parallel codegen][parcodegen] is now working again, which can
9337   substantially speed up large builds in debug mode; It also gets
9338   another ~33% speedup when bootstrapping on a 4 core machine (using 8
9339   jobs). It's not enabled by default, but will be "in the near
9340   future". It can be activated with the `-C codegen-units=N` flag to
9341   `rustc`.
9342 * This is the first release with [experimental support for linking
9343   with the MSVC linker and lib C on Windows (instead of using the GNU
9344   variants via MinGW)][win]. It is yet recommended only for the most
9345   intrepid Rustaceans.
9346 * Benchmark compilations are showing a 30% improvement in
9347   bootstrapping over 1.1.
9348
9349 Breaking Changes
9350 ----------------
9351
9352 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
9353   unicode case mapping, which is a previously-planned change in
9354   behavior and considered a bugfix.
9355 * [`mem::align_of`] now specifies [the *minimum alignment* for
9356   T][align], which is usually the alignment programs are interested
9357   in, and the same value reported by clang's
9358   `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
9359   break real code.
9360 * [The `#[packed]` attribute is no longer silently accepted by the
9361   compiler][packed]. This attribute did nothing and code that
9362   mentioned it likely did not work as intended.
9363 * Associated type defaults are [now behind the
9364   `associated_type_defaults` feature gate][ad]. In 1.1 associated type
9365   defaults *did not work*, but could be mentioned syntactically. As
9366   such this breakage has minimal impact.
9367
9368 Language
9369 --------
9370
9371 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
9372   matching against dereferenceable values.
9373
9374 Libraries
9375 ---------
9376
9377 * The [`Extend`] trait, which grows a collection from an iterator, is
9378   implemented over iterators of references, for `String`, `Vec`,
9379   `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
9380   `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
9381 * The [`iter::once`] function returns an iterator that yields a single
9382   element, and [`iter::empty`] returns an iterator that yields no
9383   elements.
9384 * The [`matches`] and [`rmatches`] methods on `str` return iterators
9385   over substring matches.
9386 * [`Cell`] and [`RefCell`] both implement `Eq`.
9387 * A number of methods for wrapping arithmetic are added to the
9388   integral types, [`wrapping_div`], [`wrapping_rem`],
9389   [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
9390   addition to the existing [`wrapping_add`], [`wrapping_sub`], and
9391   [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
9392   type.. It is illegal for the default arithmetic operations in Rust
9393   to overflow; the desire to wrap must be explicit.
9394 * The `{:#?}` formatting specifier [displays the alternate,
9395   pretty-printed][debugfmt] form of the `Debug` formatter. This
9396   feature was actually introduced prior to 1.0 with little
9397   fanfare.
9398 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
9399   for writing data to formatted strings, similar to [`io::Write`].
9400 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
9401   [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
9402   are used by code generators to emit implementations of [`Debug`].
9403 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
9404   methods that convert case, following Unicode case mapping.
9405 * It is now easier to handle poisoned locks. The [`PoisonError`]
9406   type, returned by failing lock operations, exposes `into_inner`,
9407   `get_ref`, and `get_mut`, which all give access to the inner lock
9408   guard, and allow the poisoned lock to continue to operate. The
9409   `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
9410   poisoned lock without attempting to take the lock.
9411 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
9412   [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
9413   On Windows the `FromRawHandle` trait is implemented for `Stdio`,
9414   and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
9415   `ChildStderr`.
9416 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
9417   malformed input.
9418
9419 Misc
9420 ----
9421
9422 * `rustc` employs smarter heuristics for guessing at [typos].
9423 * `rustc` emits more efficient code for [no-op conversions between
9424   unsafe pointers][nop].
9425 * Fat pointers are now [passed in pairs of immediate arguments][fat],
9426   resulting in faster compile times and smaller code.
9427
9428 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
9429 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9430 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
9431 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
9432 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
9433 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
9434 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
9435 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
9436 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
9437 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
9438 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
9439 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
9440 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
9441 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
9442 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
9443 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
9444 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9445 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
9446 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
9447 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
9448 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
9449 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
9450 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
9451 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
9452 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
9453 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9454 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
9455 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
9456 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
9457 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
9458 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
9459 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
9460 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
9461 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9462 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9463 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
9464 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
9465 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
9466 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
9467 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
9468 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
9469 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9470 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
9471 [align]: https://github.com/rust-lang/rust/pull/25646
9472 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
9473 [typos]: https://github.com/rust-lang/rust/pull/26087
9474 [nop]: https://github.com/rust-lang/rust/pull/26336
9475 [fat]: https://github.com/rust-lang/rust/pull/26411
9476 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
9477 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
9478 [packed]: https://github.com/rust-lang/rust/pull/25541
9479 [ad]: https://github.com/rust-lang/rust/pull/27382
9480 [win]: https://github.com/rust-lang/rust/pull/25350
9481
9482 Version 1.1.0 (2015-06-25)
9483 =========================
9484
9485 * ~850 changes, numerous bugfixes
9486
9487 Highlights
9488 ----------
9489
9490 * The [`std::fs` module has been expanded][fs] to expand the set of
9491   functionality exposed:
9492   * `DirEntry` now supports optimizations like `file_type` and `metadata` which
9493     don't incur a syscall on some platforms.
9494   * A `symlink_metadata` function has been added.
9495   * The `fs::Metadata` structure now lowers to its OS counterpart, providing
9496     access to all underlying information.
9497 * The compiler now contains extended explanations of many errors. When an error
9498   with an explanation occurs the compiler suggests using the `--explain` flag
9499   to read the explanation. Error explanations are also [available online][err-index].
9500 * Thanks to multiple [improvements][sk] to [type checking][pre], as
9501   well as other work, the time to bootstrap the compiler decreased by
9502   32%.
9503
9504 Libraries
9505 ---------
9506
9507 * The [`str::split_whitespace`] method splits a string on unicode
9508   whitespace boundaries.
9509 * On both Windows and Unix, new extension traits provide conversion of
9510   I/O types to and from the underlying system handles. On Unix, these
9511   traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
9512   and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
9513   `TcpListener`, and `UpdSocket`. Further implementations for
9514   `std::process` will be stabilized later.
9515 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
9516   Windows, symlinks can be created with
9517   `std::os::windows::symlink_dir` and
9518   `std::os::windows::symlink_file`.
9519 * The `mpsc::Receiver` type can now be converted into an iterator with
9520   `into_iter` on the [`IntoIterator`] trait.
9521 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
9522   implementation of the [`From`] trait.
9523 * The `Debug` implementation for `RangeFull` [creates output that is
9524   more consistent with other implementations][rf].
9525 * [`Debug` is implemented for `File`][file].
9526 * The `Default` implementation for `Arc` [no longer requires `Sync +
9527   Send`][arc].
9528 * [The `Iterator` methods `count`, `nth`, and `last` have been
9529   overridden for slices to have *O*(1) performance instead of *O*(*n*)][si].
9530 * Incorrect handling of paths on Windows has been improved in both the
9531   compiler and the standard library.
9532 * [`AtomicPtr` gained a `Default` implementation][ap].
9533 * In accordance with Rust's policy on arithmetic overflow `abs` now
9534   [panics on overflow when debug assertions are enabled][abs].
9535 * The [`Cloned`] iterator, which was accidentally left unstable for
9536   1.0 [has been stabilized][c].
9537 * The [`Incoming`] iterator, which iterates over incoming TCP
9538   connections, and which was accidentally unnamable in 1.0, [is now
9539   properly exported][inc].
9540 * [`BinaryHeap`] no longer corrupts itself [when functions called by
9541   `sift_up` or `sift_down` panic][bh].
9542 * The [`split_off`] method of `LinkedList` [no longer corrupts
9543   the list in certain scenarios][ll].
9544
9545 Misc
9546 ----
9547
9548 * Type checking performance [has improved notably][sk] with
9549   [multiple improvements][pre].
9550 * The compiler [suggests code changes][ch] for more errors.
9551 * rustc and it's build system have experimental support for [building
9552   toolchains against MUSL][m] instead of glibc on Linux.
9553 * The compiler defines the `target_env` cfg value, which is used for
9554   distinguishing toolchains that are otherwise for the same
9555   platform. Presently this is set to `gnu` for common GNU Linux
9556   targets and for MinGW targets, and `musl` for MUSL Linux targets.
9557 * The [`cargo rustc`][crc] command invokes a build with custom flags
9558   to rustc.
9559 * [Android executables are always position independent][pie].
9560 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
9561   with `Drop`][24935].
9562
9563 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
9564 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9565 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9566 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
9567 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
9568 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
9569 [rf]: https://github.com/rust-lang/rust/pull/24491
9570 [err-index]: https://doc.rust-lang.org/error-index.html
9571 [sk]: https://github.com/rust-lang/rust/pull/24615
9572 [pre]: https://github.com/rust-lang/rust/pull/25323
9573 [file]: https://github.com/rust-lang/rust/pull/24598
9574 [ch]: https://github.com/rust-lang/rust/pull/24683
9575 [arc]: https://github.com/rust-lang/rust/pull/24695
9576 [si]: https://github.com/rust-lang/rust/pull/24701
9577 [ap]: https://github.com/rust-lang/rust/pull/24834
9578 [m]: https://github.com/rust-lang/rust/pull/24777
9579 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
9580 [crc]: https://github.com/rust-lang/cargo/pull/1568
9581 [pie]: https://github.com/rust-lang/rust/pull/24953
9582 [abs]: https://github.com/rust-lang/rust/pull/25441
9583 [c]: https://github.com/rust-lang/rust/pull/25496
9584 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
9585 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
9586 [inc]: https://github.com/rust-lang/rust/pull/25522
9587 [bh]: https://github.com/rust-lang/rust/pull/25856
9588 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
9589 [ll]: https://github.com/rust-lang/rust/pull/26022
9590 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
9591 [24935]: https://github.com/rust-lang/rust/pull/24935
9592
9593 Version 1.0.0 (2015-05-15)
9594 ========================
9595
9596 * ~1500 changes, numerous bugfixes
9597
9598 Highlights
9599 ----------
9600
9601 * The vast majority of the standard library is now `#[stable]`. It is
9602   no longer possible to use unstable features with a stable build of
9603   the compiler.
9604 * Many popular crates on [crates.io] now work on the stable release
9605   channel.
9606 * Arithmetic on basic integer types now [checks for overflow in debug
9607   builds][overflow].
9608
9609 Language
9610 --------
9611
9612 * Several [restrictions have been added to trait coherence][coh] in
9613   order to make it easier for upstream authors to change traits
9614   without breaking downstream code.
9615 * Digits of binary and octal literals are [lexed more eagerly][lex] to
9616   improve error messages and macro behavior. For example, `0b1234` is
9617   now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
9618 * Trait bounds [are always invariant][inv], eliminating the need for
9619   the `PhantomFn` and `MarkerTrait` lang items, which have been
9620   removed.
9621 * ["-" is no longer a valid character in crate names][cr], the `extern crate
9622   "foo" as bar` syntax has been replaced with `extern crate foo as
9623   bar`, and Cargo now automatically translates "-" in *package* names
9624   to underscore for the crate name.
9625 * [Lifetime shadowing is an error][lt].
9626 * [`Send` no longer implies `'static`][send-rfc].
9627 * [UFCS now supports trait-less associated paths][moar-ufcs] like
9628   `MyType::default()`.
9629 * Primitive types [now have inherent methods][prim-inherent],
9630   obviating the need for extension traits like `SliceExt`.
9631 * Methods with `Self: Sized` in their `where` clause are [considered
9632   object-safe][self-sized], allowing many extension traits like
9633   `IteratorExt` to be merged into the traits they extended.
9634 * You can now [refer to associated types][assoc-where] whose
9635   corresponding trait bounds appear only in a `where` clause.
9636 * The final bits of [OIBIT landed][oibit-final], meaning that traits
9637   like `Send` and `Sync` are now library-defined.
9638 * A [Reflect trait][reflect] was introduced, which means that
9639   downcasting via the `Any` trait is effectively limited to concrete
9640   types. This helps retain the potentially-important "parametricity"
9641   property: generic code cannot behave differently for different type
9642   arguments except in minor ways.
9643 * The `unsafe_destructor` feature is now deprecated in favor of the
9644   [new `dropck`][rfc769]. This change is a major reduction in unsafe
9645   code.
9646
9647 Libraries
9648 ---------
9649
9650 * The `thread_local` module [has been renamed to `std::thread`][th].
9651 * The methods of `IteratorExt` [have been moved to the `Iterator`
9652   trait itself][23300].
9653 * Several traits that implement Rust's conventions for type
9654   conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
9655   [centralized in the `std::convert` module][con].
9656 * The `FromError` trait [was removed in favor of `From`][fe].
9657 * The basic sleep function [has moved to
9658   `std::thread::sleep_ms`][slp].
9659 * The `splitn` function now takes an `n` parameter that represents the
9660   number of items yielded by the returned iterator [instead of the
9661   number of 'splits'][spl].
9662 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
9663 * [Derived implementations of `PartialOrd` now order enums according
9664   to their explicitly-assigned discriminants][po].
9665 * [Methods for searching strings are generic over `Pattern`s][pat],
9666   implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
9667   some others.
9668 * [In method resolution, object methods are resolved before inherent
9669   methods][meth].
9670 * [`String::from_str` has been deprecated in favor of the `From` impl,
9671   `String::from`][24517].
9672 * [`io::Error` implements `Sync`][ios].
9673 * [The `words` method on `&str` has been replaced with
9674   `split_whitespace`][sw], to avoid answering the tricky question, 'what is
9675   a word?'
9676 * The new path and IO modules are complete and `#[stable]`. This
9677   was the major library focus for this cycle.
9678 * The path API was [revised][path-normalize] to normalize `.`,
9679   adjusting the tradeoffs in favor of the most common usage.
9680 * A large number of remaining APIs in `std` were also stabilized
9681   during this cycle; about 75% of the non-deprecated API surface
9682   is now stable.
9683 * The new [string pattern API][string-pattern] landed, which makes
9684   the string slice API much more internally consistent and flexible.
9685 * A new set of [generic conversion traits][conversion] replaced
9686   many existing ad hoc traits.
9687 * Generic numeric traits were [completely removed][num-traits]. This
9688   was made possible thanks to inherent methods for primitive types,
9689   and the removal gives maximal flexibility for designing a numeric
9690   hierarchy in the future.
9691 * The `Fn` traits are now related via [inheritance][fn-inherit]
9692   and provide ergonomic [blanket implementations][fn-blanket].
9693 * The `Index` and `IndexMut` traits were changed to
9694   [take the index by value][index-value], enabling code like
9695   `hash_map["string"]` to work.
9696 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
9697   `Copy` data is known to be `Clone` as well.
9698
9699 Misc
9700 ----
9701
9702 * Many errors now have extended explanations that can be accessed with
9703   the `--explain` flag to `rustc`.
9704 * Many new examples have been added to the standard library
9705   documentation.
9706 * rustdoc has received a number of improvements focused on completion
9707   and polish.
9708 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
9709 * Much headway was made on ecosystem-wide CI, making it possible
9710   to [compare builds for breakage][ci-compare].
9711
9712
9713 [crates.io]: http://crates.io
9714 [clo]: https://github.com/rust-lang/rust/pull/24034
9715 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
9716 [con]: https://github.com/rust-lang/rust/pull/23875
9717 [cr]: https://github.com/rust-lang/rust/pull/23419
9718 [fe]: https://github.com/rust-lang/rust/pull/23879
9719 [23300]: https://github.com/rust-lang/rust/pull/23300
9720 [inv]: https://github.com/rust-lang/rust/pull/23938
9721 [ios]: https://github.com/rust-lang/rust/pull/24133
9722 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
9723 [lt]: https://github.com/rust-lang/rust/pull/24057
9724 [meth]: https://github.com/rust-lang/rust/pull/24056
9725 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
9726 [po]: https://github.com/rust-lang/rust/pull/24270
9727 [24517]: https://github.com/rust-lang/rust/pull/24517
9728 [slp]: https://github.com/rust-lang/rust/pull/23949
9729 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
9730 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
9731 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
9732 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
9733 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
9734 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
9735 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
9736 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
9737 [self-sized]: https://github.com/rust-lang/rust/pull/22301
9738 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
9739 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
9740 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
9741 [reflect]: https://github.com/rust-lang/rust/pull/23712
9742 [conversion]: https://github.com/rust-lang/rfcs/pull/529
9743 [num-traits]: https://github.com/rust-lang/rust/pull/23549
9744 [index-value]: https://github.com/rust-lang/rust/pull/23601
9745 [rfc769]: https://github.com/rust-lang/rfcs/pull/769
9746 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
9747 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
9748 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
9749 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
9750 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
9751
9752
9753 Version 1.0.0-alpha.2 (2015-02-20)
9754 =====================================
9755
9756 * ~1300 changes, numerous bugfixes
9757
9758 * Highlights
9759
9760     * The various I/O modules were [overhauled][io-rfc] to reduce
9761       unnecessary abstractions and provide better interoperation with
9762       the underlying platform. The old `io` module remains temporarily
9763       at `std::old_io`.
9764     * The standard library now [participates in feature gating][feat],
9765       so use of unstable libraries now requires a `#![feature(...)]`
9766       attribute. The impact of this change is [described on the
9767       forum][feat-forum]. [RFC][feat-rfc].
9768
9769 * Language
9770
9771     * `for` loops [now operate on the `IntoIterator` trait][into],
9772       which eliminates the need to call `.iter()`, etc. to iterate
9773       over collections. There are some new subtleties to remember
9774       though regarding what sort of iterators various types yield, in
9775       particular that `for foo in bar { }` yields values from a move
9776       iterator, destroying the original collection. [RFC][into-rfc].
9777     * Objects now have [default lifetime bounds][obj], so you don't
9778       have to write `Box<Trait+'static>` when you don't care about
9779       storing references. [RFC][obj-rfc].
9780     * In types that implement `Drop`, [lifetimes must outlive the
9781       value][drop]. This will soon make it possible to safely
9782       implement `Drop` for types where `#[unsafe_destructor]` is now
9783       required. Read the [gorgeous RFC][drop-rfc] for details.
9784     * The fully qualified <T as Trait>::X syntax lets you set the Self
9785       type for a trait method or associated type. [RFC][ufcs-rfc].
9786     * References to types that implement `Deref<U>` now [automatically
9787       coerce to references][deref] to the dereferenced type `U`,
9788       e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
9789       should eliminate many unsightly uses of `&*`, as when converting
9790       from references to vectors into references to
9791       slices. [RFC][deref-rfc].
9792     * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
9793       `|:|`) is obsolete and closure kind is inferred from context.
9794     * [`Self` is a keyword][Self].
9795
9796 * Libraries
9797
9798     * The `Show` and `String` formatting traits [have been
9799       renamed][fmt] to `Debug` and `Display` to more clearly reflect
9800       their related purposes. Automatically getting a string
9801       conversion to use with `format!("{:?}", something_to_debug)` is
9802       now written `#[derive(Debug)]`.
9803     * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
9804       OsStr}`, provide strings in platform-specific encodings for easier
9805       interop with system APIs. [RFC][osstr-rfc].
9806     * The `boxed::into_raw` and `Box::from_raw` functions [convert
9807       between `Box<T>` and `*mut T`][boxraw], a common pattern for
9808       creating raw pointers.
9809
9810 * Tooling
9811
9812     * Certain long error messages of the form 'expected foo found bar'
9813       are now [split neatly across multiple
9814       lines][multiline]. Examples in the PR.
9815     * On Unix Rust can be [uninstalled][un] by running
9816       `/usr/local/lib/rustlib/uninstall.sh`.
9817     * The `#[rustc_on_unimplemented]` attribute, requiring the
9818       'on_unimplemented' feature, lets rustc [display custom error
9819       messages when a trait is expected to be implemented for a type
9820       but is not][onun].
9821
9822 * Misc
9823
9824     * Rust is tested against a [LALR grammar][lalr], which parses
9825       almost all the Rust files that rustc does.
9826
9827 [boxraw]: https://github.com/rust-lang/rust/pull/21318
9828 [close]: https://github.com/rust-lang/rust/pull/21843
9829 [deref]: https://github.com/rust-lang/rust/pull/21351
9830 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
9831 [drop]: https://github.com/rust-lang/rust/pull/21972
9832 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9833 [feat]: https://github.com/rust-lang/rust/pull/21248
9834 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
9835 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
9836 [fmt]: https://github.com/rust-lang/rust/pull/21457
9837 [into]: https://github.com/rust-lang/rust/pull/20790
9838 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
9839 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9840 [lalr]: https://github.com/rust-lang/rust/pull/21452
9841 [multiline]: https://github.com/rust-lang/rust/pull/19870
9842 [obj]: https://github.com/rust-lang/rust/pull/22230
9843 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
9844 [onun]: https://github.com/rust-lang/rust/pull/20889
9845 [osstr]: https://github.com/rust-lang/rust/pull/21488
9846 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9847 [Self]: https://github.com/rust-lang/rust/pull/22158
9848 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
9849 [un]: https://github.com/rust-lang/rust/pull/22256
9850
9851
9852 Version 1.0.0-alpha (2015-01-09)
9853 ==================================
9854
9855   * ~2400 changes, numerous bugfixes
9856
9857   * Highlights
9858
9859     * The language itself is considered feature complete for 1.0,
9860       though there will be many usability improvements and bugfixes
9861       before the final release.
9862     * Nearly 50% of the public API surface of the standard library has
9863       been declared 'stable'. Those interfaces are unlikely to change
9864       before 1.0.
9865     * The long-running debate over integer types has been
9866       [settled][ints]: Rust will ship with types named `isize` and
9867       `usize`, rather than `int` and `uint`, for pointer-sized
9868       integers. Guidelines will be rolled out during the alpha cycle.
9869     * Most crates that are not `std` have been moved out of the Rust
9870       distribution into the Cargo ecosystem so they can evolve
9871       separately and don't need to be stabilized as quickly, including
9872       'time', 'getopts', 'num', 'regex', and 'term'.
9873     * Documentation continues to be expanded with more API coverage, more
9874       examples, and more in-depth explanations. The guides have been
9875       consolidated into [The Rust Programming Language][trpl].
9876     * "[Rust By Example][rbe]" is now maintained by the Rust team.
9877     * All official Rust binary installers now come with [Cargo], the
9878       Rust package manager.
9879
9880 * Language
9881
9882     * Closures have been [completely redesigned][unboxed] to be
9883       implemented in terms of traits, can now be used as generic type
9884       bounds and thus monomorphized and inlined, or via an opaque
9885       pointer (boxed) as in the old system. The new system is often
9886       referred to as 'unboxed' closures.
9887     * Traits now support [associated types][assoc], allowing families
9888       of related types to be defined together and used generically in
9889       powerful ways.
9890     * Enum variants are [namespaced by their type names][enum].
9891     * [`where` clauses][where] provide a more versatile and attractive
9892       syntax for specifying generic bounds, though the previous syntax
9893       remains valid.
9894     * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
9895       numeric types.
9896     * Rust [no longer has a runtime][rt] of any description, and only
9897       supports OS threads, not green threads.
9898     * At long last, Rust has been overhauled for 'dynamically-sized
9899       types' ([DST]), which integrates 'fat pointers' (object types,
9900       arrays, and `str`) more deeply into the type system, making it
9901       more consistent.
9902     * Rust now has a general [range syntax][range], `i..j`, `i..`, and
9903       `..j` that produce range types and which, when combined with the
9904       `Index` operator and multidispatch, leads to a convenient slice
9905       notation, `[i..j]`.
9906     * The new range syntax revealed an ambiguity in the fixed-length
9907       array syntax, so now fixed length arrays [are written `[T;
9908       N]`][arrays].
9909     * The `Copy` trait is no longer implemented automatically. Unsafe
9910       pointers no longer implement `Sync` and `Send` so types
9911       containing them don't automatically either. `Sync` and `Send`
9912       are now 'unsafe traits' so one can "forcibly" implement them via
9913       `unsafe impl` if a type confirms to the requirements for them
9914       even though the internals do not (e.g. structs containing unsafe
9915       pointers like `Arc`). These changes are intended to prevent some
9916       footguns and are collectively known as [opt-in built-in
9917       traits][oibit] (though `Sync` and `Send` will soon become pure
9918       library types unknown to the compiler).
9919     * Operator traits now take their operands [by value][ops], and
9920       comparison traits can use multidispatch to compare one type
9921       against multiple other types, allowing e.g. `String` to be
9922       compared with `&str`.
9923     * `if let` and `while let` are no longer feature-gated.
9924     * Rust has adopted a more [uniform syntax for escaping unicode
9925       characters][unicode].
9926     * `macro_rules!` [has been declared stable][mac]. Though it is a
9927       flawed system it is sufficiently popular that it must be usable
9928       for 1.0. Effort has gone into [future-proofing][mac-future] it
9929       in ways that will allow other macro systems to be developed in
9930       parallel, and won't otherwise impact the evolution of the
9931       language.
9932     * The prelude has been [pared back significantly][prelude] such
9933       that it is the minimum necessary to support the most pervasive
9934       code patterns, and through [generalized where clauses][where]
9935       many of the prelude extension traits have been consolidated.
9936     * Rust's rudimentary reflection [has been removed][refl], as it
9937       incurred too much code generation for little benefit.
9938     * [Struct variants][structvars] are no longer feature-gated.
9939     * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
9940       known as 'higher-ranked trait bounds', this crucially allows
9941       unboxed closures to work.
9942     * Macros invocations surrounded by parens or square brackets and
9943       not terminated by a semicolon are [parsed as
9944       expressions][macros], which makes expressions like `vec![1i32,
9945       2, 3].len()` work as expected.
9946     * Trait objects now implement their traits automatically, and
9947       traits that can be coerced to objects now must be [object
9948       safe][objsafe].
9949     * Automatically deriving traits is now done with `#[derive(...)]`
9950       not `#[deriving(...)]` for [consistency with other naming
9951       conventions][derive].
9952     * Importing the containing module or enum at the same time as
9953       items or variants they contain is [now done with `self` instead
9954       of `mod`][self], as in use `foo::{self, bar}`
9955     * Glob imports are no longer feature-gated.
9956     * The `box` operator and `box` patterns have been feature-gated
9957       pending a redesign. For now unique boxes should be allocated
9958       like other containers, with `Box::new`.
9959
9960 * Libraries
9961
9962     * A [series][coll1] of [efforts][coll2] to establish
9963       [conventions][coll3] for collections types has resulted in API
9964       improvements throughout the standard library.
9965     * New [APIs for error handling][err] provide ergonomic interop
9966       between error types, and [new conventions][err-conv] describe
9967       more clearly the recommended error handling strategies in Rust.
9968     * The `fail!` macro has been renamed to [`panic!`][panic] so that
9969       it is easier to discuss failure in the context of error handling
9970       without making clarifications as to whether you are referring to
9971       the 'fail' macro or failure more generally.
9972     * On Linux, `OsRng` prefers the new, more reliable `getrandom`
9973       syscall when available.
9974     * The 'serialize' crate has been renamed 'rustc-serialize' and
9975       moved out of the distribution to Cargo. Although it is widely
9976       used now, it is expected to be superseded in the near future.
9977     * The `Show` formatter, typically implemented with
9978       `#[derive(Show)]` is [now requested with the `{:?}`
9979       specifier][show] and is intended for use by all types, for uses
9980       such as `println!` debugging. The new `String` formatter must be
9981       implemented by hand, uses the `{}` specifier, and is intended
9982       for full-fidelity conversions of things that can logically be
9983       represented as strings.
9984
9985 * Tooling
9986
9987     * [Flexible target specification][flex] allows rustc's code
9988       generation to be configured to support otherwise-unsupported
9989       platforms.
9990     * Rust comes with rust-gdb and rust-lldb scripts that launch their
9991       respective debuggers with Rust-appropriate pretty-printing.
9992     * The Windows installation of Rust is distributed with the
9993       MinGW components currently required to link binaries on that
9994       platform.
9995
9996 * Misc
9997
9998     * Nullable enum optimizations have been extended to more types so
9999       that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
10000       space than the inner types themselves.
10001     * Work has begun on supporting AArch64.
10002
10003 [Cargo]: https://crates.io
10004 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
10005 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
10006 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
10007 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
10008 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
10009 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
10010 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
10011 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
10012 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
10013 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
10014 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
10015 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
10016 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
10017 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
10018 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
10019 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
10020 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
10021 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
10022 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
10023 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
10024 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
10025 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
10026 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
10027 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
10028 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
10029 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
10030 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
10031 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
10032 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
10033 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
10034 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
10035 [trpl]: https://doc.rust-lang.org/book/index.html
10036 [rbe]: http://rustbyexample.com/
10037
10038
10039 Version 0.12.0 (2014-10-09)
10040 =============================
10041
10042   * ~1900 changes, numerous bugfixes
10043
10044   * Highlights
10045
10046     * The introductory documentation (now called The Rust Guide) has
10047       been completely rewritten, as have a number of supplementary
10048       guides.
10049     * Rust's package manager, Cargo, continues to improve and is
10050       sometimes considered to be quite awesome.
10051     * Many API's in `std` have been reviewed and updated for
10052       consistency with the in-development Rust coding
10053       guidelines. The standard library documentation tracks
10054       stabilization progress.
10055     * Minor libraries have been moved out-of-tree to the rust-lang org
10056       on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
10057       be installed with Cargo.
10058     * Lifetime elision allows lifetime annotations to be left off of
10059       function declarations in many common scenarios.
10060     * Rust now works on 64-bit Windows.
10061
10062   * Language
10063     * Indexing can be overloaded with the `Index` and `IndexMut`
10064       traits.
10065     * The `if let` construct takes a branch only if the `let` pattern
10066       matches, currently behind the 'if_let' feature gate.
10067     * 'where clauses', a more flexible syntax for specifying trait
10068       bounds that is more aesthetic, have been added for traits and
10069       free functions. Where clauses will in the future make it
10070       possible to constrain associated types, which would be
10071       impossible with the existing syntax.
10072     * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
10073       the 'slicing_syntax' feature gate, and can be overloaded with
10074       the `Slice` or `SliceMut` traits.
10075     * The syntax for matching of sub-slices has been changed to use a
10076       postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
10077       consistency with other uses of `..` and to future-proof
10078       potential additional uses of the syntax.
10079     * The syntax for matching inclusive ranges in patterns has changed
10080       from `0..3` to `0...4` to be consistent with the exclusive range
10081       syntax for slicing.
10082     * Matching of sub-slices in non-tail positions (e.g.  `[a.., b,
10083       c]`) has been put behind the 'advanced_slice_patterns' feature
10084       gate and may be removed in the future.
10085     * Components of tuples and tuple structs can be extracted using
10086       the `value.0` syntax, currently behind the `tuple_indexing`
10087       feature gate.
10088     * The `#[crate_id]` attribute is no longer supported; versioning
10089       is handled by the package manager.
10090     * Renaming crate imports are now written `extern crate foo as bar`
10091       instead of `extern crate bar = foo`.
10092     * Renaming use statements are now written `use foo as bar` instead
10093       of `use bar = foo`.
10094     * `let` and `match` bindings and argument names in macros are now
10095       hygienic.
10096     * The new, more efficient, closure types ('unboxed closures') have
10097       been added under a feature gate, 'unboxed_closures'. These will
10098       soon replace the existing closure types, once higher-ranked
10099       trait lifetimes are added to the language.
10100     * `move` has been added as a keyword, for indicating closures
10101       that capture by value.
10102     * Mutation and assignment is no longer allowed in pattern guards.
10103     * Generic structs and enums can now have trait bounds.
10104     * The `Share` trait is now called `Sync` to free up the term
10105       'shared' to refer to 'shared reference' (the default reference
10106       type.
10107     * Dynamically-sized types have been mostly implemented,
10108       unifying the behavior of fat-pointer types with the rest of the
10109       type system.
10110     * As part of dynamically-sized types, the `Sized` trait has been
10111       introduced, which qualifying types implement by default, and
10112       which type parameters expect by default. To specify that a type
10113       parameter does not need to be sized, write `<Sized? T>`. Most
10114       types are `Sized`, notable exceptions being unsized arrays
10115       (`[T]`) and trait types.
10116     * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
10117     * Lifetime bounds can now be applied to type parameters and object
10118       types.
10119     * The old, reference counted GC type, `Gc<T>` which was once
10120       denoted by the `@` sigil, has finally been removed. GC will be
10121       revisited in the future.
10122
10123   * Libraries
10124     * Library documentation has been improved for a number of modules.
10125     * Bit-vectors, collections::bitv has been modernized.
10126     * The url crate is deprecated in favor of
10127       http://github.com/servo/rust-url, which can be installed with
10128       Cargo.
10129     * Most I/O stream types can be cloned and subsequently closed from
10130       a different thread.
10131     * A `std::time::Duration` type has been added for use in I/O
10132       methods that rely on timers, as well as in the 'time' crate's
10133       `Timespec` arithmetic.
10134     * The runtime I/O abstraction layer that enabled the green thread
10135       scheduler to do non-thread-blocking I/O has been removed, along
10136       with the libuv-based implementation employed by the green thread
10137       scheduler. This will greatly simplify the future I/O work.
10138     * `collections::btree` has been rewritten to have a more
10139       idiomatic and efficient design.
10140
10141   * Tooling
10142     * rustdoc output now indicates the stability levels of API's.
10143     * The `--crate-name` flag can specify the name of the crate
10144       being compiled, like `#[crate_name]`.
10145     * The `-C metadata` specifies additional metadata to hash into
10146       symbol names, and `-C extra-filename` specifies additional
10147       information to put into the output filename, for use by the
10148       package manager for versioning.
10149     * debug info generation has continued to improve and should be
10150       more reliable under both gdb and lldb.
10151     * rustc has experimental support for compiling in parallel
10152       using the `-C codegen-units` flag.
10153     * rustc no longer encodes rpath information into binaries by
10154       default.
10155
10156   * Misc
10157     * Stack usage has been optimized with LLVM lifetime annotations.
10158     * Official Rust binaries on Linux are more compatible with older
10159       kernels and distributions, built on CentOS 5.10.
10160
10161
10162 Version 0.11.0 (2014-07-02)
10163 ==========================
10164
10165   * ~1700 changes, numerous bugfixes
10166
10167   * Language
10168     * ~[T] has been removed from the language. This type is superseded by
10169       the Vec<T> type.
10170     * ~str has been removed from the language. This type is superseded by
10171       the String type.
10172     * ~T has been removed from the language. This type is superseded by the
10173       Box<T> type.
10174     * @T has been removed from the language. This type is superseded by the
10175       standard library's std::gc::Gc<T> type.
10176     * Struct fields are now all private by default.
10177     * Vector indices and shift amounts are both required to be a `uint`
10178       instead of any integral type.
10179     * Byte character, byte string, and raw byte string literals are now all
10180       supported by prefixing the normal literal with a `b`.
10181     * Multiple ABIs are no longer allowed in an ABI string
10182     * The syntax for lifetimes on closures/procedures has been tweaked
10183       slightly: `<'a>|A, B|: 'b + K -> T`
10184     * Floating point modulus has been removed from the language; however it
10185       is still provided by a library implementation.
10186     * Private enum variants are now disallowed.
10187     * The `priv` keyword has been removed from the language.
10188     * A closure can no longer be invoked through a &-pointer.
10189     * The `use foo, bar, baz;` syntax has been removed from the language.
10190     * The transmute intrinsic no longer works on type parameters.
10191     * Statics now allow blocks/items in their definition.
10192     * Trait bounds are separated from objects with + instead of : now.
10193     * Objects can no longer be read while they are mutably borrowed.
10194     * The address of a static is now marked as insignificant unless the
10195       #[inline(never)] attribute is placed it.
10196     * The #[unsafe_destructor] attribute is now behind a feature gate.
10197     * Struct literals are no longer allowed in ambiguous positions such as
10198       if, while, match, and for..in.
10199     * Declaration of lang items and intrinsics are now feature-gated by
10200       default.
10201     * Integral literals no longer default to `int`, and floating point
10202       literals no longer default to `f64`. Literals must be suffixed with an
10203       appropriate type if inference cannot determine the type of the
10204       literal.
10205     * The Box<T> type is no longer implicitly borrowed to &mut T.
10206     * Procedures are now required to not capture borrowed references.
10207
10208   * Libraries
10209     * The standard library is now a "facade" over a number of underlying
10210       libraries. This means that development on the standard library should
10211       be speedier due to smaller crates, as well as a clearer line between
10212       all dependencies.
10213     * A new library, libcore, lives under the standard library's facade
10214       which is Rust's "0-assumption" library, suitable for embedded and
10215       kernel development for example.
10216     * A regex crate has been added to the standard distribution. This crate
10217       includes statically compiled regular expressions.
10218     * The unwrap/unwrap_err methods on Result require a Show bound for
10219       better error messages.
10220     * The return types of the std::comm primitives have been centralized
10221       around the Result type.
10222     * A number of I/O primitives have gained the ability to time out their
10223       operations.
10224     * A number of I/O primitives have gained the ability to close their
10225       reading/writing halves to cancel pending operations.
10226     * Reverse iterator methods have been removed in favor of `rev()` on
10227       their forward-iteration counterparts.
10228     * A bitflags! macro has been added to enable easy interop with C and
10229       management of bit flags.
10230     * A debug_assert! macro is now provided which is disabled when
10231       `--cfg ndebug` is passed to the compiler.
10232     * A graphviz crate has been added for creating .dot files.
10233     * The std::cast module has been migrated into std::mem.
10234     * The std::local_data api has been migrated from freestanding functions
10235       to being based on methods.
10236     * The Pod trait has been renamed to Copy.
10237     * jemalloc has been added as the default allocator for types.
10238     * The API for allocating memory has been changed to use proper alignment
10239       and sized deallocation
10240     * Connecting a TcpStream or binding a TcpListener is now based on a
10241       string address and a u16 port. This allows connecting to a hostname as
10242       opposed to an IP.
10243     * The Reader trait now contains a core method, read_at_least(), which
10244       correctly handles many repeated 0-length reads.
10245     * The process-spawning API is now centered around a builder-style
10246       Command struct.
10247     * The :? printing qualifier has been moved from the standard library to
10248       an external libdebug crate.
10249     * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
10250       have been renamed to Eq/Ord.
10251     * The select/plural methods have been removed from format!. The escapes
10252       for { and } have also changed from \{ and \} to {{ and }},
10253       respectively.
10254     * The TaskBuilder API has been re-worked to be a true builder, and
10255       extension traits for spawning native/green tasks have been added.
10256
10257   * Tooling
10258     * All breaking changes to the language or libraries now have their
10259       commit message annotated with `[breaking-change]` to allow for easy
10260       discovery of breaking changes.
10261     * The compiler will now try to suggest how to annotate lifetimes if a
10262       lifetime-related error occurs.
10263     * Debug info continues to be improved greatly with general bug fixes and
10264       better support for situations like link time optimization (LTO).
10265     * Usage of syntax extensions when cross-compiling has been fixed.
10266     * Functionality equivalent to GCC & Clang's -ffunction-sections,
10267       -fdata-sections and --gc-sections has been enabled by default
10268     * The compiler is now stricter about where it will load module files
10269       from when a module is declared via `mod foo;`.
10270     * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
10271       Syntax extensions are now discovered via a "plugin registrar" type
10272       which will be extended in the future to other various plugins.
10273     * Lints have been restructured to allow for dynamically loadable lints.
10274     * A number of rustdoc improvements:
10275       * The HTML output has been visually redesigned.
10276       * Markdown is now powered by hoedown instead of sundown.
10277       * Searching heuristics have been greatly improved.
10278       * The search index has been reduced in size by a great amount.
10279       * Cross-crate documentation via `pub use` has been greatly improved.
10280       * Primitive types are now hyperlinked and documented.
10281     * Documentation has been moved from static.rust-lang.org/doc to
10282       doc.rust-lang.org
10283     * A new sandbox, play.rust-lang.org, is available for running and
10284       sharing rust code examples on-line.
10285     * Unused attributes are now more robustly warned about.
10286     * The dead_code lint now warns about unused struct fields.
10287     * Cross-compiling to iOS is now supported.
10288     * Cross-compiling to mipsel is now supported.
10289     * Stability attributes are now inherited by default and no longer apply
10290       to intra-crate usage, only inter-crate usage.
10291     * Error message related to non-exhaustive match expressions have been
10292       greatly improved.
10293
10294
10295 Version 0.10 (2014-04-03)
10296 =========================
10297
10298   * ~1500 changes, numerous bugfixes
10299
10300   * Language
10301     * A new RFC process is now in place for modifying the language.
10302     * Patterns with `@`-pointers have been removed from the language.
10303     * Patterns with unique vectors (`~[T]`) have been removed from the
10304       language.
10305     * Patterns with unique strings (`~str`) have been removed from the
10306       language.
10307     * `@str` has been removed from the language.
10308     * `@[T]` has been removed from the language.
10309     * `@self` has been removed from the language.
10310     * `@Trait` has been removed from the language.
10311     * Headers on `~` allocations which contain `@` boxes inside the type for
10312       reference counting have been removed.
10313     * The semantics around the lifetimes of temporary expressions have changed,
10314       see #3511 and #11585 for more information.
10315     * Cross-crate syntax extensions are now possible, but feature gated. See
10316       #11151 for more information. This includes both `macro_rules!` macros as
10317       well as syntax extensions such as `format!`.
10318     * New lint modes have been added, and older ones have been turned on to be
10319       warn-by-default.
10320       * Unnecessary parentheses
10321       * Uppercase statics
10322       * Camel Case types
10323       * Uppercase variables
10324       * Publicly visible private types
10325       * `#[deriving]` with raw pointers
10326     * Unsafe functions can no longer be coerced to closures.
10327     * Various obscure macros such as `log_syntax!` are now behind feature gates.
10328     * The `#[simd]` attribute is now behind a feature gate.
10329     * Visibility is no longer allowed on `extern crate` statements, and
10330       unnecessary visibility (`priv`) is no longer allowed on `use` statements.
10331     * Trailing commas are now allowed in argument lists and tuple patterns.
10332     * The `do` keyword has been removed, it is now a reserved keyword.
10333     * Default type parameters have been implemented, but are feature gated.
10334     * Borrowed variables through captures in closures are now considered soundly.
10335     * `extern mod` is now `extern crate`
10336     * The `Freeze` trait has been removed.
10337     * The `Share` trait has been added for types that can be shared among
10338       threads.
10339     * Labels in macros are now hygienic.
10340     * Expression/statement macro invocations can be delimited with `{}` now.
10341     * Treatment of types allowed in `static mut` locations has been tweaked.
10342     * The `*` and `.` operators are now overloadable through the `Deref` and
10343       `DerefMut` traits.
10344     * `~Trait` and `proc` no longer have `Send` bounds by default.
10345     * Partial type hints are now supported with the `_` type marker.
10346     * An `Unsafe` type was introduced for interior mutability. It is now
10347       considered undefined to transmute from `&T` to `&mut T` without using the
10348       `Unsafe` type.
10349     * The #[linkage] attribute was implemented for extern statics/functions.
10350     * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
10351     * `Pod` was renamed to `Copy`.
10352
10353   * Libraries
10354     * The `libextra` library has been removed. It has now been decomposed into
10355       component libraries with smaller and more focused nuggets of
10356       functionality. The full list of libraries can be found on the
10357       documentation index page.
10358     * std: `std::condition` has been removed. All I/O errors are now propagated
10359       through the `Result` type. In order to assist with error handling, a
10360       `try!` macro for unwrapping errors with an early return and a lint for
10361       unused results has been added. See #12039 for more information.
10362     * std: The `vec` module has been renamed to `slice`.
10363     * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
10364       This will become the only growable vector in the future.
10365     * std: `std::io` now has more public re-exports. Types such as `BufferedReader`
10366       are now found at `std::io::BufferedReader` instead of
10367       `std::io::buffered::BufferedReader`.
10368     * std: `print` and `println` are no longer in the prelude, the `print!` and
10369       `println!` macros are intended to be used instead.
10370     * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
10371       attempts to statically prevent cycles.
10372     * std: The standard distribution is adopting the policy of pushing failure
10373       to the user rather than failing in libraries. Many functions (such as
10374       `slice::last()`) now return `Option<T>` instead of `T` + failing.
10375     * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
10376       deriving mode: `#[deriving(Show)]`.
10377     * std: `ToStr` is now implemented for all types implementing `Show`.
10378     * std: The formatting trait methods now take `&self` instead of `&T`
10379     * std: The `invert()` method on iterators has been renamed to `rev()`
10380     * std: `std::num` has seen a reduction in the genericity of its traits,
10381       consolidating functionality into a few core traits.
10382     * std: Backtraces are now printed on task failure if the environment
10383       variable `RUST_BACKTRACE` is present.
10384     * std: Naming conventions for iterators have been standardized. More details
10385       can be found on the wiki's style guide.
10386     * std: `eof()` has been removed from the `Reader` trait. Specific types may
10387       still implement the function.
10388     * std: Networking types are now cloneable to allow simultaneous reads/writes.
10389     * std: `assert_approx_eq!` has been removed
10390     * std: The `e` and `E` formatting specifiers for floats have been added to
10391       print them in exponential notation.
10392     * std: The `Times` trait has been removed
10393     * std: Indications of variance and opting out of builtin bounds is done
10394       through marker types in `std::kinds::marker` now
10395     * std: `hash` has been rewritten, `IterBytes` has been removed, and
10396       `#[deriving(Hash)]` is now possible.
10397     * std: `SharedChan` has been removed, `Sender` is now cloneable.
10398     * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
10399     * std: `Chan::new` is now `channel()`.
10400     * std: A new synchronous channel type has been implemented.
10401     * std: A `select!` macro is now provided for selecting over `Receiver`s.
10402     * std: `hashmap` and `trie` have been moved to `libcollections`
10403     * std: `run` has been rolled into `io::process`
10404     * std: `assert_eq!` now uses `{}` instead of `{:?}`
10405     * std: The equality and comparison traits have seen some reorganization.
10406     * std: `rand` has moved to `librand`.
10407     * std: `to_{lower,upper}case` has been implemented for `char`.
10408     * std: Logging has been moved to `liblog`.
10409     * collections: `HashMap` has been rewritten for higher performance and less
10410       memory usage.
10411     * native: The default runtime is now `libnative`. If `libgreen` is desired,
10412       it can be booted manually. The runtime guide has more information and
10413       examples.
10414     * native: All I/O functionality except signals has been implemented.
10415     * green: Task spawning with `libgreen` has been optimized with stack caching
10416       and various trimming of code.
10417     * green: Tasks spawned by `libgreen` now have an unmapped guard page.
10418     * sync: The `extra::sync` module has been updated to modern rust (and moved
10419       to the `sync` library), tweaking and improving various interfaces while
10420       dropping redundant functionality.
10421     * sync: A new `Barrier` type has been added to the `sync` library.
10422     * sync: An efficient mutex for native and green tasks has been implemented.
10423     * serialize: The `base64` module has seen some improvement. It treats
10424       newlines better, has non-string error values, and has seen general
10425       cleanup.
10426     * fourcc: A `fourcc!` macro was introduced
10427     * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
10428       hexadecimal literal.
10429
10430   * Tooling
10431     * `rustpkg` has been deprecated and removed from the main repository. Its
10432       replacement, `cargo`, is under development.
10433     * Nightly builds of rust are now available
10434     * The memory usage of rustc has been improved many times throughout this
10435       release cycle.
10436     * The build process supports disabling rpath support for the rustc binary
10437       itself.
10438     * Code generation has improved in some cases, giving more information to the
10439       LLVM optimization passes to enable more extensive optimizations.
10440     * Debuginfo compatibility with lldb on OSX has been restored.
10441     * The master branch is now gated on an android bot, making building for
10442       android much more reliable.
10443     * Output flags have been centralized into one `--emit` flag.
10444     * Crate type flags have been centralized into one `--crate-type` flag.
10445     * Codegen flags have been consolidated behind a `-C` flag.
10446     * Linking against outdated crates now has improved error messages.
10447     * Error messages with lifetimes will often suggest how to annotate the
10448       function to fix the error.
10449     * Many more types are documented in the standard library, and new guides
10450       were written.
10451     * Many `rustdoc` improvements:
10452       * code blocks are syntax highlighted.
10453       * render standalone markdown files.
10454       * the --test flag tests all code blocks by default.
10455       * exported macros are displayed.
10456       * re-exported types have their documentation inlined at the location of the
10457         first re-export.
10458       * search works across crates that have been rendered to the same output
10459         directory.
10460
10461
10462 Version 0.9 (2014-01-09)
10463 ==========================
10464
10465    * ~1800 changes, numerous bugfixes
10466
10467    * Language
10468       * The `float` type has been removed. Use `f32` or `f64` instead.
10469       * A new facility for enabling experimental features (feature gating) has
10470         been added, using the crate-level `#[feature(foo)]` attribute.
10471       * Managed boxes (@) are now behind a feature gate
10472         (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
10473         standard library's `Gc` or `Rc` types instead.
10474       * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
10475       * Jumping back to the top of a loop is now done with `continue` instead of
10476         `loop`.
10477       * Strings can no longer be mutated through index assignment.
10478       * Raw strings can be created via the basic `r"foo"` syntax or with matched
10479         hash delimiters, as in `r###"foo"###`.
10480       * `~fn` is now written `proc (args) -> retval { ... }` and may only be
10481         called once.
10482       * The `&fn` type is now written `|args| -> ret` to match the literal form.
10483       * `@fn`s have been removed.
10484       * `do` only works with procs in order to make it obvious what the cost
10485         of `do` is.
10486       * Single-element tuple-like structs can no longer be dereferenced to
10487         obtain the inner value. A more comprehensive solution for overloading
10488         the dereference operator will be provided in the future.
10489       * The `#[link(...)]` attribute has been replaced with
10490         `#[crate_id = "name#vers"]`.
10491       * Empty `impl`s must be terminated with empty braces and may not be
10492         terminated with a semicolon.
10493       * Keywords are no longer allowed as lifetime names; the `self` lifetime
10494         no longer has any special meaning.
10495       * The old `fmt!` string formatting macro has been removed.
10496       * `printf!` and `printfln!` (old-style formatting) removed in favor of
10497         `print!` and `println!`.
10498       * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
10499       * The `extern mod foo (name = "bar")` syntax has been removed. Use
10500         `extern mod foo = "bar"` instead.
10501       * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
10502       * Macros can have attributes.
10503       * Macros can expand to items with attributes.
10504       * Macros can expand to multiple items.
10505       * The `asm!` macro is feature-gated (`#[feature(asm)]`).
10506       * Comments may be nested.
10507       * Values automatically coerce to trait objects they implement, without
10508         an explicit `as`.
10509       * Enum discriminants are no longer an entire word but as small as needed to
10510         contain all the variants. The `repr` attribute can be used to override
10511         the discriminant size, as in `#[repr(int)]` for integer-sized, and
10512         `#[repr(C)]` to match C enums.
10513       * Non-string literals are not allowed in attributes (they never worked).
10514       * The FFI now supports variadic functions.
10515       * Octal numeric literals, as in `0o7777`.
10516       * The `concat!` syntax extension performs compile-time string concatenation.
10517       * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
10518         removed as Rust no longer uses segmented stacks.
10519       * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
10520       * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
10521         not `*`; ignoring remaining fields of a struct is also done with `..`,
10522         not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
10523       * `rustc` supports the "win64" calling convention via `extern "win64"`.
10524       * `rustc` supports the "system" calling convention, which defaults to the
10525         preferred convention for the target platform, "stdcall" on 32-bit Windows,
10526         "C" elsewhere.
10527       * The `type_overflow` lint (default: warn) checks literals for overflow.
10528       * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
10529       * The `attribute_usage` lint (default: warn) warns about unknown
10530         attributes.
10531       * The `unknown_features` lint (default: warn) warns about unknown
10532         feature gates.
10533       * The `dead_code` lint (default: warn) checks for dead code.
10534       * Rust libraries can be linked statically to one another
10535       * `#[link_args]` is behind the `link_args` feature gate.
10536       * Native libraries are now linked with `#[link(name = "foo")]`
10537       * Native libraries can be statically linked to a rust crate
10538         (`#[link(name = "foo", kind = "static")]`).
10539       * Native OS X frameworks are now officially supported
10540         (`#[link(name = "foo", kind = "framework")]`).
10541       * The `#[thread_local]` attribute creates thread-local (not task-local)
10542         variables. Currently behind the `thread_local` feature gate.
10543       * The `return` keyword may be used in closures.
10544       * Types that can be copied via a memcpy implement the `Pod` kind.
10545       * The `cfg` attribute can now be used on struct fields and enum variants.
10546
10547    * Libraries
10548       * std: The `option` and `result` API's have been overhauled to make them
10549         simpler, more consistent, and more composable.
10550       * std: The entire `std::io` module has been replaced with one that is
10551         more comprehensive and that properly interfaces with the underlying
10552         scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
10553         implemented.
10554       * std: `io::util` contains a number of useful implementations of
10555         `Reader` and `Writer`, including `NullReader`, `NullWriter`,
10556         `ZeroReader`, `TeeReader`.
10557       * std: The reference counted pointer type `extra::rc` moved into std.
10558       * std: The `Gc` type in the `gc` module will replace `@` (it is currently
10559         just a wrapper around it).
10560       * std: The `Either` type has been removed.
10561       * std: `fmt::Default` can be implemented for any type to provide default
10562         formatting to the `format!` macro, as in `format!("{}", myfoo)`.
10563       * std: The `rand` API continues to be tweaked.
10564       * std: The `rust_begin_unwind` function, useful for inserting breakpoints
10565         on failure in gdb, is now named `rust_fail`.
10566       * std: The `each_key` and `each_value` methods on `HashMap` have been
10567         replaced by the `keys` and `values` iterators.
10568       * std: Functions dealing with type size and alignment have moved from the
10569         `sys` module to the `mem` module.
10570       * std: The `path` module was written and API changed.
10571       * std: `str::from_utf8` has been changed to cast instead of allocate.
10572       * std: `starts_with` and `ends_with` methods added to vectors via the
10573         `ImmutableEqVector` trait, which is in the prelude.
10574       * std: Vectors can be indexed with the `get_opt` method, which returns `None`
10575         if the index is out of bounds.
10576       * std: Task failure no longer propagates between tasks, as the model was
10577         complex, expensive, and incompatible with thread-based tasks.
10578       * std: The `Any` type can be used for dynamic typing.
10579       * std: `~Any` can be passed to the `fail!` macro and retrieved via
10580         `task::try`.
10581       * std: Methods that produce iterators generally do not have an `_iter`
10582         suffix now.
10583       * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
10584         roots (mutable fields, etc.). Use instead of e.g. `@mut`.
10585       * std: `util::ignore` renamed to `prelude::drop`.
10586       * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
10587         trait.
10588       * std: `vec::raw` has seen a lot of cleanup and API changes.
10589       * std: The standard library no longer includes any C++ code, and very
10590         minimal C, eliminating the dependency on libstdc++.
10591       * std: Runtime scheduling and I/O functionality has been factored out into
10592         extensible interfaces and is now implemented by two different crates:
10593         libnative, for native threading and I/O; and libgreen, for green threading
10594         and I/O. This paves the way for using the standard library in more limited
10595         embedded environments.
10596       * std: The `comm` module has been rewritten to be much faster, have a
10597         simpler, more consistent API, and to work for both native and green
10598         threading.
10599       * std: All libuv dependencies have been moved into the rustuv crate.
10600       * native: New implementations of runtime scheduling on top of OS threads.
10601       * native: New native implementations of TCP, UDP, file I/O, process spawning,
10602         and other I/O.
10603       * green: The green thread scheduler and message passing types are almost
10604         entirely lock-free.
10605       * extra: The `flatpipes` module had bitrotted and was removed.
10606       * extra: All crypto functions have been removed and Rust now has a policy of
10607         not reimplementing crypto in the standard library. In the future crypto
10608         will be provided by external crates with bindings to established libraries.
10609       * extra: `c_vec` has been modernized.
10610       * extra: The `sort` module has been removed. Use the `sort` method on
10611         mutable slices.
10612
10613    * Tooling
10614       * The `rust` and `rusti` commands have been removed, due to lack of
10615         maintenance.
10616       * `rustdoc` was completely rewritten.
10617       * `rustdoc` can test code examples in documentation.
10618       * `rustpkg` can test packages with the argument, 'test'.
10619       * `rustpkg` supports arbitrary dependencies, including C libraries.
10620       * `rustc`'s support for generating debug info is improved again.
10621       * `rustc` has better error reporting for unbalanced delimiters.
10622       * `rustc`'s JIT support was removed due to bitrot.
10623       * Executables and static libraries can be built with LTO (-Z lto)
10624       * `rustc` adds a `--dep-info` flag for communicating dependencies to
10625         build tools.
10626
10627
10628 Version 0.8 (2013-09-26)
10629 ============================
10630
10631    * ~2200 changes, numerous bugfixes
10632
10633    * Language
10634       * The `for` loop syntax has changed to work with the `Iterator` trait.
10635       * At long last, unwinding works on Windows.
10636       * Default methods are ready for use.
10637       * Many trait inheritance bugs fixed.
10638       * Owned and borrowed trait objects work more reliably.
10639       * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
10640       * rustc can omit emission of code for the `debug!` macro if it is passed
10641         `--cfg ndebug`
10642       * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
10643         for foo.rs, then foo/mod.rs, and will generate an error when both are
10644         present.
10645       * Strings no longer contain trailing nulls. The new `std::c_str` module
10646         provides new mechanisms for converting to C strings.
10647       * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
10648       * The FFI has been overhauled such that foreign functions are called directly,
10649         instead of through a stack-switching wrapper.
10650       * Calling a foreign function must be done through a Rust function with the
10651         `#[fixed_stack_segment]` attribute.
10652       * The `externfn!` macro can be used to declare both a foreign function and
10653         a `#[fixed_stack_segment]` wrapper at once.
10654       * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
10655       * `unsafe` is no longer allowed on extern fns - they are all unsafe.
10656       * `priv` is disallowed everywhere except for struct fields and enum variants.
10657       * `&T` (besides `&'static T`) is no longer allowed in `@T`.
10658       * `ref` bindings in irrefutable patterns work correctly now.
10659       * `char` is now prevented from containing invalid code points.
10660       * Casting to `bool` is no longer allowed.
10661       * `\0` is now accepted as an escape in chars and strings.
10662       * `yield` is a reserved keyword.
10663       * `typeof` is a reserved keyword.
10664       * Crates may be imported by URL with `extern mod foo = "url";`.
10665       * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
10666       * Static vectors can be initialized with repeating elements,
10667         e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
10668       * Static structs can be initialized with functional record update,
10669         e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
10670       * `cfg!` can be used to conditionally execute code based on the crate
10671         configuration, similarly to `#[cfg(...)]`.
10672       * The `unnecessary_qualification` lint detects unneeded module
10673         prefixes (default: allow).
10674       * Arithmetic operations have been implemented on the SIMD types in
10675         `std::unstable::simd`.
10676       * Exchange allocation headers were removed, reducing memory usage.
10677       * `format!` implements a completely new, extensible, and higher-performance
10678         string formatting system. It will replace `fmt!`.
10679       * `print!` and `println!` write formatted strings (using the `format!`
10680         extension) to stdout.
10681       * `write!` and `writeln!` write formatted strings (using the `format!`
10682         extension) to the new Writers in `std::rt::io`.
10683       * The library section in which a function or static is placed may
10684         be specified with `#[link_section = "..."]`.
10685       * The `proto!` syntax extension for defining bounded message protocols
10686         was removed.
10687       * `macro_rules!` is hygienic for `let` declarations.
10688       * The `#[export_name]` attribute specifies the name of a symbol.
10689       * `unreachable!` can be used to indicate unreachable code, and fails
10690         if executed.
10691
10692    * Libraries
10693       * std: Transitioned to the new runtime, written in Rust.
10694       * std: Added an experimental I/O library, `rt::io`, based on the new
10695         runtime.
10696       * std: A new generic `range` function was added to the prelude, replacing
10697         `uint::range` and friends.
10698       * std: `range_rev` no longer exists. Since range is an iterator it can be
10699         reversed with `range(lo, hi).invert()`.
10700       * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
10701         renamed to `unwrap_or`.
10702       * std: The `iterator` module was renamed to `iter`.
10703       * std: Integral types now support the `checked_add`, `checked_sub`, and
10704         `checked_mul` operations for detecting overflow.
10705       * std: Many methods in `str`, `vec`, `option, `result` were renamed for
10706         consistency.
10707       * std: Methods are standardizing on conventions for casting methods:
10708         `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
10709         and cheap casts.
10710       * std: The `CString` type in `c_str` provides new ways to convert to and
10711         from C strings.
10712       * std: `DoubleEndedIterator` can yield elements in two directions.
10713       * std: The `mut_split` method on vectors partitions an `&mut [T]` into
10714         two splices.
10715       * std: `str::from_bytes` renamed to `str::from_utf8`.
10716       * std: `pop_opt` and `shift_opt` methods added to vectors.
10717       * std: The task-local data interface no longer uses @, and keys are
10718         no longer function pointers.
10719       * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
10720       * std: Added `SharedPort` to `comm`.
10721       * std: `Eq` has a default method for `ne`; only `eq` is required
10722         in implementations.
10723       * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
10724         is required in implementations.
10725       * std: `is_utf8` performance is improved, impacting many string functions.
10726       * std: `os::MemoryMap` provides cross-platform mmap.
10727       * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
10728         are not 'in-bounds' are considered undefined.
10729       * std: Many freestanding functions in `vec` removed in favor of methods.
10730       * std: Many freestanding functions on scalar types removed in favor of
10731         methods.
10732       * std: Many options to task builders were removed since they don't make
10733         sense in the new scheduler design.
10734       * std: More containers implement `FromIterator` so can be created by the
10735         `collect` method.
10736       * std: More complete atomic types in `unstable::atomics`.
10737       * std: `comm::PortSet` removed.
10738       * std: Mutating methods in the `Set` and `Map` traits have been moved into
10739         the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
10740         `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
10741         default implementations.
10742       * std: Various `from_str` functions were removed in favor of a generic
10743         `from_str` which is available in the prelude.
10744       * std: `util::unreachable` removed in favor of the `unreachable!` macro.
10745       * extra: `dlist`, the doubly-linked list was modernized.
10746       * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
10747       * extra: Added `glob` module, replacing `std::os::glob`.
10748       * extra: `rope` was removed.
10749       * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
10750       * extra: `net`, and `timer` were removed. The experimental replacements
10751         are `std::rt::io::net` and `std::rt::io::timer`.
10752       * extra: Iterators implemented for `SmallIntMap`.
10753       * extra: Iterators implemented for `Bitv` and `BitvSet`.
10754       * extra: `SmallIntSet` removed. Use `BitvSet`.
10755       * extra: Performance of JSON parsing greatly improved.
10756       * extra: `semver` updated to SemVer 2.0.0.
10757       * extra: `term` handles more terminals correctly.
10758       * extra: `dbg` module removed.
10759       * extra: `par` module removed.
10760       * extra: `future` was cleaned up, with some method renames.
10761       * extra: Most free functions in `getopts` were converted to methods.
10762
10763    * Other
10764       * rustc's debug info generation (`-Z debug-info`) is greatly improved.
10765       * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
10766         similarly to gcc's `--march` flag.
10767       * rustc's performance compiling small crates is much better.
10768       * rustpkg has received many improvements.
10769       * rustpkg supports git tags as package IDs.
10770       * rustpkg builds into target-specific directories so it can be used for
10771         cross-compiling.
10772       * The number of concurrent test tasks is controlled by the environment
10773         variable RUST_TEST_TASKS.
10774       * The test harness can now report metrics for benchmarks.
10775       * All tools have man pages.
10776       * Programs compiled with `--test` now support the `-h` and `--help` flags.
10777       * The runtime uses jemalloc for allocations.
10778       * Segmented stacks are temporarily disabled as part of the transition to
10779         the new runtime. Stack overflows are possible!
10780       * A new documentation backend, rustdoc_ng, is available for use. It is
10781         still invoked through the normal `rustdoc` command.
10782
10783
10784 Version 0.7 (2013-07-03)
10785 =======================
10786
10787    * ~2000 changes, numerous bugfixes
10788
10789    * Language
10790       * `impl`s no longer accept a visibility qualifier. Put them on methods
10791         instead.
10792       * The borrow checker has been rewritten with flow-sensitivity, fixing
10793         many bugs and inconveniences.
10794       * The `self` parameter no longer implicitly means `&'self self`,
10795         and can be explicitly marked with a lifetime.
10796       * Overloadable compound operators (`+=`, etc.) have been temporarily
10797         removed due to bugs.
10798       * The `for` loop protocol now requires `for`-iterators to return `bool`
10799         so they compose better.
10800       * The `Durable` trait is replaced with the `'static` bounds.
10801       * Trait default methods work more often.
10802       * Structs with the `#[packed]` attribute have byte alignment and
10803         no padding between fields.
10804       * Type parameters bound by `Copy` must now be copied explicitly with
10805         the `copy` keyword.
10806       * It is now illegal to move out of a dereferenced unsafe pointer.
10807       * `Option<~T>` is now represented as a nullable pointer.
10808       * `@mut` does dynamic borrow checks correctly.
10809       * The `main` function is only detected at the topmost level of the crate.
10810         The `#[main]` attribute is still valid anywhere.
10811       * Struct fields may no longer be mutable. Use inherited mutability.
10812       * The `#[no_send]` attribute makes a type that would otherwise be
10813         `Send`, not.
10814       * The `#[no_freeze]` attribute makes a type that would otherwise be
10815         `Freeze`, not.
10816       * Unbounded recursion will abort the process after reaching the limit
10817         specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
10818       * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
10819         are never implicitly copyable.
10820       * `#[static_assert]` makes compile-time assertions about static bools.
10821       * At long last, 'argument modes' no longer exist.
10822       * The rarely used `use mod` statement no longer exists.
10823
10824    * Syntax extensions
10825       * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
10826         argument list.
10827       * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
10828         `Rand`, `Zero` and `ToStr` can all be automatically derived with
10829         `#[deriving(...)]`.
10830       * The `bytes!` macro returns a vector of bytes for string, u8, char,
10831         and unsuffixed integer literals.
10832
10833    * Libraries
10834       * The `core` crate was renamed to `std`.
10835       * The `std` crate was renamed to `extra`.
10836       * More and improved documentation.
10837       * std: `iterator` module for external iterator objects.
10838       * Many old-style (internal, higher-order function) iterators replaced by
10839         implementations of `Iterator`.
10840       * std: Many old internal vector and string iterators,
10841         incl. `any`, `all`. removed.
10842       * std: The `finalize` method of `Drop` renamed to `drop`.
10843       * std: The `drop` method now takes `&mut self` instead of `&self`.
10844       * std: The prelude no longer re-exports any modules, only types and traits.
10845       * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
10846         `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
10847       * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
10848         `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
10849       * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
10850         `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
10851       * std: Many types implement `Clone`.
10852       * std: `path` type renamed to `Path`.
10853       * std: `mut` module and `Mut` type removed.
10854       * std: Many standalone functions removed in favor of methods and iterators
10855         in `vec`, `str`. In the future methods will also work as functions.
10856       * std: `reinterpret_cast` removed. Use `transmute`.
10857       * std: ascii string handling in `std::ascii`.
10858       * std: `Rand` is implemented for ~/@.
10859       * std: `run` module for spawning processes overhauled.
10860       * std: Various atomic types added to `unstable::atomic`.
10861       * std: Various types implement `Zero`.
10862       * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
10863       * std: Borrowed pointer functions moved from `ptr` to `borrow`.
10864       * std: Added `os::mkdir_recursive`.
10865       * std: Added `os::glob` function performs filesystems globs.
10866       * std: `FuzzyEq` renamed to `ApproxEq`.
10867       * std: `Map` now defines `pop` and `swap` methods.
10868       * std: `Cell` constructors converted to static methods.
10869       * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
10870       * extra: `flate` module moved from `std` to `extra`.
10871       * extra: `fileinput` module for iterating over a series of files.
10872       * extra: `Complex` number type and `complex` module.
10873       * extra: `Rational` number type and `rational` module.
10874       * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
10875       * extra: `term` uses terminfo now, is more correct.
10876       * extra: `arc` functions converted to methods.
10877       * extra: Implementation of fixed output size variations of SHA-2.
10878
10879    * Tooling
10880       * `unused_variables` lint mode for unused variables (default: warn).
10881       * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
10882         (default: warn).
10883       * `unused_mut` lint mode for identifying unused `mut` qualifiers
10884         (default: warn).
10885       * `dead_assignment` lint mode for unread variables (default: warn).
10886       * `unnecessary_allocation` lint mode detects some heap allocations that are
10887         immediately borrowed so could be written without allocating (default: warn).
10888       * `missing_doc` lint mode (default: allow).
10889       * `unreachable_code` lint mode (default: warn).
10890       * The `rusti` command has been rewritten and a number of bugs addressed.
10891       * rustc outputs in color on more terminals.
10892       * rustc accepts a `--link-args` flag to pass arguments to the linker.
10893       * rustc accepts a `-Z print-link-args` flag for debugging linkage.
10894       * Compiling with `-g` will make the binary record information about
10895         dynamic borrowcheck failures for debugging.
10896       * rustdoc has a nicer stylesheet.
10897       * Various improvements to rustdoc.
10898       * Improvements to rustpkg (see the detailed release notes).
10899
10900
10901 Version 0.6 (2013-04-03)
10902 ========================
10903
10904    * ~2100 changes, numerous bugfixes
10905
10906    * Syntax changes
10907       * The self type parameter in traits is now spelled `Self`
10908       * The `self` parameter in trait and impl methods must now be explicitly
10909         named (for example: `fn f(&self) { }`). Implicit self is deprecated.
10910       * Static methods no longer require the `static` keyword and instead
10911         are distinguished by the lack of a `self` parameter
10912       * Replaced the `Durable` trait with the `'static` lifetime
10913       * The old closure type syntax with the trailing sigil has been
10914         removed in favor of the more consistent leading sigil
10915       * `super` is a keyword, and may be prefixed to paths
10916       * Trait bounds are separated with `+` instead of whitespace
10917       * Traits are implemented with `impl Trait for Type`
10918         instead of `impl Type: Trait`
10919       * Lifetime syntax is now `&'l foo` instead of `&l/foo`
10920       * The `export` keyword has finally been removed
10921       * The `move` keyword has been removed (see "Semantic changes")
10922       * The interior mutability qualifier on vectors, `[mut T]`, has been
10923         removed. Use `&mut [T]`, etc.
10924       * `mut` is no longer valid in `~mut T`. Use inherited mutability
10925       * `fail` is no longer a keyword. Use `fail!()`
10926       * `assert` is no longer a keyword. Use `assert!()`
10927       * `log` is no longer a keyword. use `debug!`, etc.
10928       * 1-tuples may be represented as `(T,)`
10929       * Struct fields may no longer be `mut`. Use inherited mutability,
10930         `@mut T`, `core::mut` or `core::cell`
10931       * `extern mod { ... }` is no longer valid syntax for foreign
10932         function modules. Use extern blocks: `extern { ... }`
10933       * Newtype enums removed. Use tuple-structs.
10934       * Trait implementations no longer support visibility modifiers
10935       * Pattern matching over vectors improved and expanded
10936       * `const` renamed to `static` to correspond to lifetime name,
10937         and make room for future `static mut` unsafe mutable globals.
10938       * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
10939       * `Clone` implementations can be automatically generated with
10940         `#[deriving(Clone)]`
10941       * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
10942         instead of `foo as Bar`.
10943       * Fixed length vector types are now written as `[int, .. 3]`
10944         instead of `[int * 3]`.
10945       * Fixed length vector types can express the length as a constant
10946         expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
10947
10948    * Semantic changes
10949       * Types with owned pointers or custom destructors move by default,
10950         eliminating the `move` keyword
10951       * All foreign functions are considered unsafe
10952       * &mut is now unaliasable
10953       * Writes to borrowed @mut pointers are prevented dynamically
10954       * () has size 0
10955       * The name of the main function can be customized using #[main]
10956       * The default type of an inferred closure is &fn instead of @fn
10957       * `use` statements may no longer be "chained" - they cannot import
10958         identifiers imported by previous `use` statements
10959       * `use` statements are crate relative, importing from the "top"
10960         of the crate by default. Paths may be prefixed with `super::`
10961         or `self::` to change the search behavior.
10962       * Method visibility is inherited from the implementation declaration
10963       * Structural records have been removed
10964       * Many more types can be used in static items, including enums
10965         'static-lifetime pointers and vectors
10966       * Pattern matching over vectors improved and expanded
10967       * Typechecking of closure types has been overhauled to
10968         improve inference and eliminate unsoundness
10969       * Macros leave scope at the end of modules, unless that module is
10970         tagged with #[macro_escape]
10971
10972    * Libraries
10973       * Added big integers to `std::bigint`
10974       * Removed `core::oldcomm` module
10975       * Added pipe-based `core::comm` module
10976       * Numeric traits have been reorganized under `core::num`
10977       * `vec::slice` finally returns a slice
10978       * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
10979       * Containers reorganized around traits in `core::container`
10980       * `core::dvec` removed, `~[T]` is a drop-in replacement
10981       * `core::send_map` renamed to `core::hashmap`
10982       * `std::map` removed; replaced with `core::hashmap`
10983       * `std::treemap` reimplemented as an owned balanced tree
10984       * `std::deque` and `std::smallintmap` reimplemented as owned containers
10985       * `core::trie` added as a fast ordered map for integer keys
10986       * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
10987       * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
10988         overload the comparison operators, whereas `TotalOrd` is used
10989         by certain container types
10990
10991    * Other
10992       * Replaced the 'cargo' package manager with 'rustpkg'
10993       * Added all-purpose 'rust' tool
10994       * `rustc --test` now supports benchmarks with the `#[bench]` attribute
10995       * rustc now *attempts* to offer spelling suggestions
10996       * Improved support for ARM and Android
10997       * Preliminary MIPS backend
10998       * Improved foreign function ABI implementation for x86, x86_64
10999       * Various memory usage improvements
11000       * Rust code may be embedded in foreign code under limited circumstances
11001       * Inline assembler supported by new asm!() syntax extension.
11002
11003
11004 Version 0.5 (2012-12-21)
11005 ===========================
11006
11007    * ~900 changes, numerous bugfixes
11008
11009    * Syntax changes
11010       * Removed `<-` move operator
11011       * Completed the transition from the `#fmt` extension syntax to `fmt!`
11012       * Removed old fixed length vector syntax - `[T]/N`
11013       * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
11014       * Macros may now expand to items and statements
11015       * `a.b()` is always parsed as a method call, never as a field projection
11016       * `Eq` and `IterBytes` implementations can be automatically generated
11017         with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
11018       * Removed the special crate language for `.rc` files
11019       * Function arguments may consist of any irrefutable pattern
11020
11021    * Semantic changes
11022       * `&` and `~` pointers may point to objects
11023       * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
11024       * Enum variants may be structs
11025       * Destructors can be added to all nominal types with the Drop trait
11026       * Structs and nullary enum variants may be constants
11027       * Values that cannot be implicitly copied are now automatically moved
11028         without writing `move` explicitly
11029       * `&T` may now be coerced to `*T`
11030       * Coercions happen in `let` statements as well as function calls
11031       * `use` statements now take crate-relative paths
11032       * The module and type namespaces have been merged so that static
11033         method names can be resolved under the trait in which they are
11034         declared
11035
11036    * Improved support for language features
11037       * Trait inheritance works in many scenarios
11038       * More support for explicit self arguments in methods - `self`, `&self`
11039         `@self`, and `~self` all generally work as expected
11040       * Static methods work in more situations
11041       * Experimental: Traits may declare default methods for the implementations
11042         to use
11043
11044    * Libraries
11045       * New condition handling system in `core::condition`
11046       * Timsort added to `std::sort`
11047       * New priority queue, `std::priority_queue`
11048       * Pipes for serializable types, `std::flatpipes'
11049       * Serialization overhauled to be trait-based
11050       * Expanded `getopts` definitions
11051       * Moved futures to `std`
11052       * More functions are pure now
11053       * `core::comm` renamed to `oldcomm`. Still deprecated
11054       * `rustdoc` and `cargo` are libraries now
11055
11056    * Misc
11057       * Added a preliminary REPL, `rusti`
11058       * License changed from MIT to dual MIT/APL2
11059
11060
11061 Version 0.4 (2012-10-15)
11062 ==========================
11063
11064    * ~2000 changes, numerous bugfixes
11065
11066    * Syntax
11067       * All keywords are now strict and may not be used as identifiers anywhere
11068       * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
11069         'of', 'with', 'to', 'class'.
11070       * Classes are replaced with simpler structs
11071       * Explicit method self types
11072       * `ret` became `return` and `alt` became `match`
11073       * `import` is now `use`; `use is now `extern mod`
11074       * `extern mod { ... }` is now `extern { ... }`
11075       * `use mod` is the recommended way to import modules
11076       * `pub` and `priv` replace deprecated export lists
11077       * The syntax of `match` pattern arms now uses fat arrow (=>)
11078       * `main` no longer accepts an args vector; use `os::args` instead
11079
11080    * Semantics
11081       * Trait implementations are now coherent, ala Haskell typeclasses
11082       * Trait methods may be static
11083       * Argument modes are deprecated
11084       * Borrowed pointers are much more mature and recommended for use
11085       * Strings and vectors in the static region are stored in constant memory
11086       * Typestate was removed
11087       * Resolution rewritten to be more reliable
11088       * Support for 'dual-mode' data structures (freezing and thawing)
11089
11090    * Libraries
11091       * Most binary operators can now be overloaded via the traits in
11092         `core::ops'
11093       * `std::net::url` for representing URLs
11094       * Sendable hash maps in `core::send_map`
11095       * `core::task' gained a (currently unsafe) task-local storage API
11096
11097    * Concurrency
11098       * An efficient new intertask communication primitive called the pipe,
11099         along with a number of higher-level channel types, in `core::pipes`
11100       * `std::arc`, an atomically reference counted, immutable, shared memory
11101         type
11102       * `std::sync`, various exotic synchronization tools based on arcs and pipes
11103       * Futures are now based on pipes and sendable
11104       * More robust linked task failure
11105       * Improved task builder API
11106
11107    * Other
11108       * Improved error reporting
11109       * Preliminary JIT support
11110       * Preliminary work on precise GC
11111       * Extensive architectural improvements to rustc
11112       * Begun a transition away from buggy C++-based reflection (shape) code to
11113         Rust-based (visitor) code
11114       * All hash functions and tables converted to secure, randomized SipHash
11115
11116
11117 Version 0.3  (2012-07-12)
11118 ========================
11119
11120    * ~1900 changes, numerous bugfixes
11121
11122    * New coding conveniences
11123       * Integer-literal suffix inference
11124       * Per-item control over warnings, errors
11125       * #[cfg(windows)] and #[cfg(unix)] attributes
11126       * Documentation comments
11127       * More compact closure syntax
11128       * 'do' expressions for treating higher-order functions as
11129         control structures
11130       * *-patterns (wildcard extended to all constructor fields)
11131
11132    * Semantic cleanup
11133       * Name resolution pass and exhaustiveness checker rewritten
11134       * Region pointers and borrow checking supersede alias
11135         analysis
11136       * Init-ness checking is now provided by a region-based liveness
11137         pass instead of the typestate pass; same for last-use analysis
11138       * Extensive work on region pointers
11139
11140    * Experimental new language features
11141       * Slices and fixed-size, interior-allocated vectors
11142       * #!-comments for lang versioning, shell execution
11143       * Destructors and iface implementation for classes;
11144         type-parameterized classes and class methods
11145       * 'const' type kind for types that can be used to implement
11146         shared-memory concurrency patterns
11147
11148    * Type reflection
11149
11150    * Removal of various obsolete features
11151       * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
11152                  'crust', 'native' (now 'extern'), 'cont' (now 'again')
11153
11154       * Constructs: do-while loops ('do' repurposed), fn binding,
11155                     resources (replaced by destructors)
11156
11157    * Compiler reorganization
11158       * Syntax-layer of compiler split into separate crate
11159       * Clang (from LLVM project) integrated into build
11160       * Typechecker split into sub-modules
11161
11162    * New library code
11163       * New time functions
11164       * Extension methods for many built-in types
11165       * Arc: atomic-refcount read-only / exclusive-use shared cells
11166       * Par: parallel map and search routines
11167       * Extensive work on libuv interface
11168       * Much vector code moved to libraries
11169       * Syntax extensions: #line, #col, #file, #mod, #stringify,
11170         #include, #include_str, #include_bin
11171
11172    * Tool improvements
11173       * Cargo automatically resolves dependencies
11174
11175
11176 Version 0.2  (2012-03-29)
11177 =========================
11178
11179    * >1500 changes, numerous bugfixes
11180
11181    * New docs and doc tooling
11182
11183    * New port: FreeBSD x86_64
11184
11185    * Compilation model enhancements
11186       * Generics now specialized, multiply instantiated
11187       * Functions now inlined across separate crates
11188
11189    * Scheduling, stack and threading fixes
11190       * Noticeably improved message-passing performance
11191       * Explicit schedulers
11192       * Callbacks from C
11193       * Helgrind clean
11194
11195    * Experimental new language features
11196       * Operator overloading
11197       * Region pointers
11198       * Classes
11199
11200    * Various language extensions
11201       * C-callback function types: 'crust fn ...'
11202       * Infinite-loop construct: 'loop { ... }'
11203       * Shorten 'mutable' to 'mut'
11204       * Required mutable-local qualifier: 'let mut ...'
11205       * Basic glob-exporting: 'export foo::*;'
11206       * Alt now exhaustive, 'alt check' for runtime-checked
11207       * Block-function form of 'for' loop, with 'break' and 'ret'.
11208
11209    * New library code
11210       * AST quasi-quote syntax extension
11211       * Revived libuv interface
11212       * New modules: core::{future, iter}, std::arena
11213       * Merged per-platform std::{os*, fs*} to core::{libc, os}
11214       * Extensive cleanup, regularization in libstd, libcore
11215
11216
11217 Version 0.1  (2012-01-20)
11218 ===============================
11219
11220    * Most language features work, including:
11221       * Unique pointers, unique closures, move semantics
11222       * Interface-constrained generics
11223       * Static interface dispatch
11224       * Stack growth
11225       * Multithread task scheduling
11226       * Typestate predicates
11227       * Failure unwinding, destructors
11228       * Pattern matching and destructuring assignment
11229       * Lightweight block-lambda syntax
11230       * Preliminary macro-by-example
11231
11232    * Compiler works with the following configurations:
11233       * Linux: x86 and x86_64 hosts and targets
11234       * macOS: x86 and x86_64 hosts and targets
11235       * Windows: x86 hosts and targets
11236
11237    * Cross compilation / multi-target configuration supported.
11238
11239    * Preliminary API-documentation and package-management tools included.
11240
11241 Known issues:
11242
11243    * Documentation is incomplete.
11244
11245    * Performance is below intended target.
11246
11247    * Standard library APIs are subject to extensive change, reorganization.
11248
11249    * Language-level versioning is not yet operational - future code will
11250      break unexpectedly.