]> git.lizzy.rs Git - rust.git/blob - RELEASES.md
Delete Decoder::read_tuple_arg
[rust.git] / RELEASES.md
1 Version 1.59.0 (2022-02-24)
2 ==========================
3
4 Language
5 --------
6
7 - [Stabilize default arguments for const generics][90207]
8 - [Stabilize destructuring assignment][90521]
9 - [Relax private in public lint on generic bounds and where clauses of trait impls][90586]
10 - [Stabilize asm! and global_asm! for x86, x86_64, ARM, Aarch64, and RISC-V][91728]
11
12 Compiler
13 --------
14
15 - [Stabilize new symbol mangling format, leaving it opt-in (-Csymbol-mangling-version=v0)][90128]
16 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
17 - [Fix sparc64 ABI for aggregates with floating point members][91003]
18 - [Warn when a `#[test]`-like built-in attribute macro is present multiple times.][91172]
19 - [Add support for riscv64gc-unknown-freebsd][91284]
20 - [Stabilize `-Z emit-future-incompat` as `--json future-incompat`][91535]
21
22 Libraries
23 ---------
24
25 - [Remove unnecessary bounds for some Hash{Map,Set} methods][91593]
26
27 Stabilized APIs
28 ---------------
29
30 - [`std::thread::available_parallelism`][available_parallelism]
31 - [`Result::copied`][result-copied]
32 - [`Result::cloned`][result-cloned]
33 - [`arch::asm!`][asm]
34 - [`arch::global_asm!`][global_asm]
35 - [`ops::ControlFlow::is_break`][is_break]
36 - [`ops::ControlFlow::is_continue`][is_continue]
37 - [`TryFrom<char> for u8`][try_from_char_u8]
38 - [`char::TryFromCharError`][try_from_char_err]
39   implementing `Clone`, `Debug`, `Display`, `PartialEq`, `Copy`, `Eq`, `Error`
40 - [`iter::zip`][zip]
41 - [`NonZeroU8::is_power_of_two`][is_power_of_two8]
42 - [`NonZeroU16::is_power_of_two`][is_power_of_two16]
43 - [`NonZeroU32::is_power_of_two`][is_power_of_two32]
44 - [`NonZeroU64::is_power_of_two`][is_power_of_two64]
45 - [`NonZeroU128::is_power_of_two`][is_power_of_two128]
46 - [`DoubleEndedIterator for ToLowercase`][lowercase]
47 - [`DoubleEndedIterator for ToUppercase`][uppercase]
48 - [`TryFrom<&mut [T]> for [T; N]`][tryfrom_ref_arr]
49 - [`UnwindSafe for Once`][unwindsafe_once]
50 - [`RefUnwindSafe for Once`][refunwindsafe_once]
51 - [armv8 neon intrinsics for aarch64][stdarch/1266]
52
53 Const-stable:
54
55 - [`mem::MaybeUninit::as_ptr`][muninit_ptr]
56 - [`mem::MaybeUninit::assume_init`][muninit_init]
57 - [`mem::MaybeUninit::assume_init_ref`][muninit_init_ref]
58 - [`ffi::CStr::from_bytes_with_nul_unchecked`][cstr_from_bytes]
59
60 Cargo
61 -----
62
63 - [Stabilize the `strip` profile option][cargo/10088]
64 - [Stabilize future-incompat-report][cargo/10165]
65 - [Support abbreviating `--release` as `-r`][cargo/10133]
66 - [Support `term.quiet` configuration][cargo/10152]
67 - [Remove `--host` from cargo {publish,search,login}][cargo/10145]
68
69 Compatibility Notes
70 -------------------
71
72 - [Refactor weak symbols in std::sys::unix][90846]
73   This may add new, versioned, symbols when building with a newer glibc, as the
74   standard library uses weak linkage rather than dynamically attempting to load
75   certain symbols at runtime.
76 - [Deprecate crate_type and crate_name nested inside `#![cfg_attr]`][83744]
77   This adds a future compatibility lint to supporting the use of cfg_attr
78   wrapping either crate_type or crate_name specification within Rust files;
79   it is recommended that users migrate to setting the equivalent command line
80   flags.
81 - [Remove effect of `#[no_link]` attribute on name resolution][92034]
82   This may expose new names, leading to conflicts with preexisting names in a
83   given namespace and a compilation failure.
84 - [Cargo will document libraries before binaries.][cargo/10172]
85 - [Respect doc=false in dependencies, not just the root crate][cargo/10201]
86 - [Weaken guarantee around advancing underlying iterators in zip][83791]
87 - [Make split_inclusive() on an empty slice yield an empty output][89825]
88 - [Update std::env::temp_dir to use GetTempPath2 on Windows when available.][89999]
89
90 Internal Changes
91 ----------------
92
93 These changes provide no direct user facing benefits, but represent significant
94 improvements to the internals and overall performance of rustc
95 and related tools.
96
97 - [Fix many cases of normalization-related ICEs][91255]
98 - [Replace dominators algorithm with simple Lengauer-Tarjan][85013]
99 - [Store liveness in interval sets for region inference][90637]
100
101 - [Remove `in_band_lifetimes` from the compiler and standard library, in preparation for removing this
102   unstable feature.][91867]
103
104 [91867]: https://github.com/rust-lang/rust/issues/91867
105 [83744]: https://github.com/rust-lang/rust/pull/83744/
106 [83791]: https://github.com/rust-lang/rust/pull/83791/
107 [85013]: https://github.com/rust-lang/rust/pull/85013/
108 [89825]: https://github.com/rust-lang/rust/pull/89825/
109 [89999]: https://github.com/rust-lang/rust/pull/89999/
110 [90128]: https://github.com/rust-lang/rust/pull/90128/
111 [90207]: https://github.com/rust-lang/rust/pull/90207/
112 [90521]: https://github.com/rust-lang/rust/pull/90521/
113 [90586]: https://github.com/rust-lang/rust/pull/90586/
114 [90637]: https://github.com/rust-lang/rust/pull/90637/
115 [90833]: https://github.com/rust-lang/rust/pull/90833/
116 [90846]: https://github.com/rust-lang/rust/pull/90846/
117 [91003]: https://github.com/rust-lang/rust/pull/91003/
118 [91172]: https://github.com/rust-lang/rust/pull/91172/
119 [91255]: https://github.com/rust-lang/rust/pull/91255/
120 [91284]: https://github.com/rust-lang/rust/pull/91284/
121 [91535]: https://github.com/rust-lang/rust/pull/91535/
122 [91593]: https://github.com/rust-lang/rust/pull/91593/
123 [91728]: https://github.com/rust-lang/rust/pull/91728/
124 [91878]: https://github.com/rust-lang/rust/pull/91878/
125 [91896]: https://github.com/rust-lang/rust/pull/91896/
126 [91926]: https://github.com/rust-lang/rust/pull/91926/
127 [91984]: https://github.com/rust-lang/rust/pull/91984/
128 [92020]: https://github.com/rust-lang/rust/pull/92020/
129 [92034]: https://github.com/rust-lang/rust/pull/92034/
130 [92483]: https://github.com/rust-lang/rust/pull/92483/
131 [cargo/10088]: https://github.com/rust-lang/cargo/pull/10088/
132 [cargo/10133]: https://github.com/rust-lang/cargo/pull/10133/
133 [cargo/10145]: https://github.com/rust-lang/cargo/pull/10145/
134 [cargo/10152]: https://github.com/rust-lang/cargo/pull/10152/
135 [cargo/10165]: https://github.com/rust-lang/cargo/pull/10165/
136 [cargo/10172]: https://github.com/rust-lang/cargo/pull/10172/
137 [cargo/10201]: https://github.com/rust-lang/cargo/pull/10201/
138 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269/
139
140 [cstr_from_bytes]: https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked
141 [muninit_ptr]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.as_ptr
142 [muninit_init]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init
143 [muninit_init_ref]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
144 [unwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-UnwindSafe
145 [refunwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-RefUnwindSafe
146 [tryfrom_ref_arr]: https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html#impl-TryFrom%3C%26%27_%20mut%20%5BT%5D%3E
147 [lowercase]: https://doc.rust-lang.org/stable/std/char/struct.ToLowercase.html#impl-DoubleEndedIterator
148 [uppercase]: https://doc.rust-lang.org/stable/std/char/struct.ToUppercase.html#impl-DoubleEndedIterator
149 [try_from_char_err]: https://doc.rust-lang.org/stable/std/char/struct.TryFromCharError.html
150 [available_parallelism]: https://doc.rust-lang.org/stable/std/thread/fn.available_parallelism.html
151 [result-copied]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.copied
152 [result-cloned]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.cloned
153 [asm]: https://doc.rust-lang.org/stable/core/arch/macro.asm.html
154 [global_asm]: https://doc.rust-lang.org/stable/core/arch/macro.global_asm.html
155 [is_break]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_break
156 [is_continue]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_continue
157 [try_from_char_u8]: https://doc.rust-lang.org/stable/std/primitive.char.html#impl-TryFrom%3Cchar%3E
158 [zip]: https://doc.rust-lang.org/stable/std/iter/fn.zip.html
159 [is_power_of_two8]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU8.html#method.is_power_of_two
160 [is_power_of_two16]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU16.html#method.is_power_of_two
161 [is_power_of_two32]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU32.html#method.is_power_of_two
162 [is_power_of_two64]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU64.html#method.is_power_of_two
163 [is_power_of_two128]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU128.html#method.is_power_of_two
164 [stdarch/1266]: https://github.com/rust-lang/stdarch/pull/1266
165
166 Version 1.58.1 (2022-01-19)
167 ===========================
168
169 * Fix race condition in `std::fs::remove_dir_all` ([CVE-2022-21658])
170 * [Handle captured arguments in the `useless_format` Clippy lint][clippy/8295]
171 * [Move `non_send_fields_in_send_ty` Clippy lint to nursery][clippy/8075]
172 * [Fix wrong error message displayed when some imports are missing][91254]
173 * [Fix rustfmt not formatting generated files from stdin][92912]
174
175 [CVE-2022-21658]: https://www.cve.org/CVERecord?id=CVE-2022-21658
176 [91254]: https://github.com/rust-lang/rust/pull/91254
177 [92912]: https://github.com/rust-lang/rust/pull/92912
178 [clippy/8075]: https://github.com/rust-lang/rust-clippy/pull/8075
179 [clippy/8295]: https://github.com/rust-lang/rust-clippy/pull/8295
180
181 Version 1.58.0 (2022-01-13)
182 ==========================
183
184 Language
185 --------
186
187 - [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.
188 - [`*const T` pointers can now be dereferenced in const contexts.][89551]
189 - [The rules for when a generic struct implements `Unsize` have been relaxed.][90417]
190
191 Compiler
192 --------
193
194 - [Add LLVM CFI support to the Rust compiler][89652]
195 - [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.
196 - [Add support for LLVM coverage mapping format versions 5 and 6][91207]
197 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
198 - [Update the minimum external LLVM to 12][90175]
199 - [Add `x86_64-unknown-none` at Tier 3*][89062]
200 - [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.
201 - [Don't abort compilation after giving a lint error][87337]
202 - [Error messages point at the source of trait bound obligations in more places][89580]
203
204 \* Refer to Rust's [platform support page][platform-support-doc] for more
205    information on Rust's tiered platform support.
206
207 Libraries
208 ---------
209
210 - [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.
211 - [Paths are automatically canonicalized on Windows for operations that support it][89174]
212 - [Re-enable debug checks for `copy` and `copy_nonoverlapping`][90041]
213 - [Implement `RefUnwindSafe` for `Rc<T>`][87467]
214 - [Make RSplit<T, P>: Clone not require T: Clone][90117]
215 - [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).
216
217 Stabilized APIs
218 ---------------
219
220 - [`Metadata::is_symlink`]
221 - [`Path::is_symlink`]
222 - [`{integer}::saturating_div`]
223 - [`Option::unwrap_unchecked`]
224 - [`Result::unwrap_unchecked`]
225 - [`Result::unwrap_err_unchecked`]
226 - [`File::options`]
227
228 These APIs are now usable in const contexts:
229
230 - [`Duration::new`]
231 - [`Duration::checked_add`]
232 - [`Duration::saturating_add`]
233 - [`Duration::checked_sub`]
234 - [`Duration::saturating_sub`]
235 - [`Duration::checked_mul`]
236 - [`Duration::saturating_mul`]
237 - [`Duration::checked_div`]
238
239 Cargo
240 -----
241
242 - [Add --message-format for install command][cargo/10107]
243 - [Warn when alias shadows external subcommand][cargo/10082]
244
245 Rustdoc
246 -------
247
248 - [Show all Deref implementations recursively in rustdoc][90183]
249 - [Use computed visibility in rustdoc][88447]
250
251 Compatibility Notes
252 -------------------
253
254 - [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.
255 - Windows: [`std::process::Command` will no longer search the current directory for executables.][87704]
256 - [All proc-macro backward-compatibility lints are now deny-by-default.][88041]
257 - [proc_macro: Append .0 to unsuffixed float if it would otherwise become int token][90297]
258 - [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.
259 - [rustdoc now rejects some unexpected semicolons in doctests][91026]
260
261 Internal Changes
262 ----------------
263
264 These changes provide no direct user facing benefits, but represent significant
265 improvements to the internals and overall performance of rustc
266 and related tools.
267
268 - [Implement coherence checks for negative trait impls][90104]
269 - [Add rustc lint, warning when iterating over hashmaps][89558]
270 - [Optimize live point computation][90491]
271 - [Enable verification for 1/32nd of queries loaded from disk][90361]
272 - [Implement version of normalize_erasing_regions that allows for normalization failure][91255]
273
274 [87337]: https://github.com/rust-lang/rust/pull/87337/
275 [87467]: https://github.com/rust-lang/rust/pull/87467/
276 [87704]: https://github.com/rust-lang/rust/pull/87704/
277 [88041]: https://github.com/rust-lang/rust/pull/88041/
278 [88447]: https://github.com/rust-lang/rust/pull/88447/
279 [88601]: https://github.com/rust-lang/rust/pull/88601/
280 [89062]: https://github.com/rust-lang/rust/pull/89062/
281 [89174]: https://github.com/rust-lang/rust/pull/89174/
282 [89551]: https://github.com/rust-lang/rust/pull/89551/
283 [89558]: https://github.com/rust-lang/rust/pull/89558/
284 [89580]: https://github.com/rust-lang/rust/pull/89580/
285 [89652]: https://github.com/rust-lang/rust/pull/89652/
286 [90041]: https://github.com/rust-lang/rust/pull/90041/
287 [90058]: https://github.com/rust-lang/rust/pull/90058/
288 [90104]: https://github.com/rust-lang/rust/pull/90104/
289 [90117]: https://github.com/rust-lang/rust/pull/90117/
290 [90175]: https://github.com/rust-lang/rust/pull/90175/
291 [90183]: https://github.com/rust-lang/rust/pull/90183/
292 [90297]: https://github.com/rust-lang/rust/pull/90297/
293 [90329]: https://github.com/rust-lang/rust/pull/90329/
294 [90361]: https://github.com/rust-lang/rust/pull/90361/
295 [90417]: https://github.com/rust-lang/rust/pull/90417/
296 [90473]: https://github.com/rust-lang/rust/pull/90473/
297 [90491]: https://github.com/rust-lang/rust/pull/90491/
298 [90733]: https://github.com/rust-lang/rust/pull/90733/
299 [90833]: https://github.com/rust-lang/rust/pull/90833/
300 [90846]: https://github.com/rust-lang/rust/pull/90846/
301 [91026]: https://github.com/rust-lang/rust/pull/91026/
302 [91207]: https://github.com/rust-lang/rust/pull/91207/
303 [91255]: https://github.com/rust-lang/rust/pull/91255/
304 [cargo/10082]: https://github.com/rust-lang/cargo/pull/10082/
305 [cargo/10107]: https://github.com/rust-lang/cargo/pull/10107/
306 [`Metadata::is_symlink`]: https://doc.rust-lang.org/stable/std/fs/struct.Metadata.html#method.is_symlink
307 [`Path::is_symlink`]: https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.is_symlink
308 [`{integer}::saturating_div`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.saturating_div
309 [`Option::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unwrap_unchecked
310 [`Result::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_unchecked
311 [`Result::unwrap_err_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_err_unchecked
312 [`File::options`]: https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.options
313 [`Duration::new`]: https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.new
314
315 Version 1.57.0 (2021-12-02)
316 ==========================
317
318 Language
319 --------
320
321 - [Macro attributes may follow `#[derive]` and will see the original (pre-`cfg`) input.][87220]
322 - [Accept curly-brace macros in expressions, like `m!{ .. }.method()` and `m!{ .. }?`.][88690]
323 - [Allow panicking in constant evaluation.][89508]
324 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
325
326 Compiler
327 --------
328
329 - [Create more accurate debuginfo for vtables.][89597]
330 - [Add `armv6k-nintendo-3ds` at Tier 3\*.][88529]
331 - [Add `armv7-unknown-linux-uclibceabihf` at Tier 3\*.][88952]
332 - [Add `m68k-unknown-linux-gnu` at Tier 3\*.][88321]
333 - [Add SOLID targets at Tier 3\*:][86191] `aarch64-kmc-solid_asp3`, `armv7a-kmc-solid_asp3-eabi`, `armv7a-kmc-solid_asp3-eabihf`
334
335 \* Refer to Rust's [platform support page][platform-support-doc] for more
336    information on Rust's tiered platform support.
337
338 Libraries
339 ---------
340
341 - [Avoid allocations and copying in `Vec::leak`][89337]
342 - [Add `#[repr(i8)]` to `Ordering`][89507]
343 - [Optimize `File::read_to_end` and `read_to_string`][89582]
344 - [Update to Unicode 14.0][89614]
345 - [Many more functions are marked `#[must_use]`][89692], producing a warning
346   when ignoring their return value. This helps catch mistakes such as expecting
347   a function to mutate a value in place rather than return a new value.
348
349 Stabilised APIs
350 ---------------
351
352 - [`[T; N]::as_mut_slice`][`array::as_mut_slice`]
353 - [`[T; N]::as_slice`][`array::as_slice`]
354 - [`collections::TryReserveError`]
355 - [`HashMap::try_reserve`]
356 - [`HashSet::try_reserve`]
357 - [`String::try_reserve`]
358 - [`String::try_reserve_exact`]
359 - [`Vec::try_reserve`]
360 - [`Vec::try_reserve_exact`]
361 - [`VecDeque::try_reserve`]
362 - [`VecDeque::try_reserve_exact`]
363 - [`Iterator::map_while`]
364 - [`iter::MapWhile`]
365 - [`proc_macro::is_available`]
366 - [`Command::get_program`]
367 - [`Command::get_args`]
368 - [`Command::get_envs`]
369 - [`Command::get_current_dir`]
370 - [`CommandArgs`]
371 - [`CommandEnvs`]
372
373 These APIs are now usable in const contexts:
374
375 - [`hint::unreachable_unchecked`]
376
377 Cargo
378 -----
379
380 - [Stabilize custom profiles][cargo/9943]
381
382 Compatibility notes
383 -------------------
384
385 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
386   This will break some builds that set `#![deny(dead_code)]`.
387
388 Internal changes
389 ----------------
390 These changes provide no direct user facing benefits, but represent significant
391 improvements to the internals and overall performance of rustc
392 and related tools.
393
394 - [Added an experimental backend for codegen with `libgccjit`.][87260]
395
396 [85200]: https://github.com/rust-lang/rust/pull/85200/
397 [86191]: https://github.com/rust-lang/rust/pull/86191/
398 [87220]: https://github.com/rust-lang/rust/pull/87220/
399 [87260]: https://github.com/rust-lang/rust/pull/87260/
400 [88321]: https://github.com/rust-lang/rust/pull/88321/
401 [88529]: https://github.com/rust-lang/rust/pull/88529/
402 [88690]: https://github.com/rust-lang/rust/pull/88690/
403 [88952]: https://github.com/rust-lang/rust/pull/88952/
404 [89337]: https://github.com/rust-lang/rust/pull/89337/
405 [89507]: https://github.com/rust-lang/rust/pull/89507/
406 [89508]: https://github.com/rust-lang/rust/pull/89508/
407 [89582]: https://github.com/rust-lang/rust/pull/89582/
408 [89597]: https://github.com/rust-lang/rust/pull/89597/
409 [89614]: https://github.com/rust-lang/rust/pull/89614/
410 [89692]: https://github.com/rust-lang/rust/issues/89692/
411 [cargo/9943]: https://github.com/rust-lang/cargo/pull/9943/
412 [`array::as_mut_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_mut_slice
413 [`array::as_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_slice
414 [`collections::TryReserveError`]: https://doc.rust-lang.org/std/collections/struct.TryReserveError.html
415 [`HashMap::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_map/struct.HashMap.html#method.try_reserve
416 [`HashSet::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_set/struct.HashSet.html#method.try_reserve
417 [`String::try_reserve`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve
418 [`String::try_reserve_exact`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve_exact
419 [`Vec::try_reserve`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve
420 [`Vec::try_reserve_exact`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve_exact
421 [`VecDeque::try_reserve`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve
422 [`VecDeque::try_reserve_exact`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve_exact
423 [`Iterator::map_while`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.map_while
424 [`iter::MapWhile`]: https://doc.rust-lang.org/std/iter/struct.MapWhile.html
425 [`proc_macro::is_available`]: https://doc.rust-lang.org/proc_macro/fn.is_available.html
426 [`Command::get_program`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program
427 [`Command::get_args`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_args
428 [`Command::get_envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_envs
429 [`Command::get_current_dir`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_current_dir
430 [`CommandArgs`]: https://doc.rust-lang.org/std/process/struct.CommandArgs.html
431 [`CommandEnvs`]: https://doc.rust-lang.org/std/process/struct.CommandEnvs.html
432
433 Version 1.56.1 (2021-11-01)
434 ===========================
435
436 - New lints to detect the presence of bidirectional-override Unicode
437   codepoints in the compiled source code ([CVE-2021-42574])
438
439 [CVE-2021-42574]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42574
440
441 Version 1.56.0 (2021-10-21)
442 ========================
443
444 Language
445 --------
446
447 - [The 2021 Edition is now stable.][rust#88100]
448   See [the edition guide][rust-2021-edition-guide] for more details.
449 - [The pattern in `binding @ pattern` can now also introduce new bindings.][rust#85305]
450 - [Union field access is permitted in `const fn`.][rust#85769]
451
452 [rust-2021-edition-guide]: https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html
453
454 Compiler
455 --------
456
457 - [Upgrade to LLVM 13.][rust#87570]
458 - [Support memory, address, and thread sanitizers on aarch64-unknown-freebsd.][rust#88023]
459 - [Allow specifying a deployment target version for all iOS targets][rust#87699]
460 - [Warnings can be forced on with `--force-warn`.][rust#87472]
461   This feature is primarily intended for usage by `cargo fix`, rather than end users.
462 - [Promote `aarch64-apple-ios-sim` to Tier 2\*.][rust#87760]
463 - [Add `powerpc-unknown-freebsd` at Tier 3\*.][rust#87370]
464 - [Add `riscv32imc-esp-espidf` at Tier 3\*.][rust#87666]
465
466 \* Refer to Rust's [platform support page][platform-support-doc] for more
467 information on Rust's tiered platform support.
468
469 Libraries
470 ---------
471
472 - [Allow writing of incomplete UTF-8 sequences via stdout/stderr on Windows.][rust#83342]
473   The Windows console still requires valid Unicode, but this change allows
474   splitting a UTF-8 character across multiple write calls. This allows, for
475   instance, programs that just read and write data buffers (e.g. copying a file
476   to stdout) without regard for Unicode or character boundaries.
477 - [Prefer `AtomicU{64,128}` over Mutex for Instant backsliding protection.][rust#83093]
478   For this use case, atomics scale much better under contention.
479 - [Implement `Extend<(A, B)>` for `(Extend<A>, Extend<B>)`][rust#85835]
480 - [impl Default, Copy, Clone for std::io::Sink and std::io::Empty][rust#86744]
481 - [`impl From<[(K, V); N]>` for all collections.][rust#84111]
482 - [Remove `P: Unpin` bound on impl Future for Pin.][rust#81363]
483 - [Treat invalid environment variable names as non-existent.][rust#86183]
484   Previously, the environment functions would panic if given a variable name
485   with an internal null character or equal sign (`=`). Now, these functions will
486   just treat such names as non-existent variables, since the OS cannot represent
487   the existence of a variable with such a name.
488
489 Stabilised APIs
490 ---------------
491
492 - [`std::os::unix::fs::chroot`]
493 - [`UnsafeCell::raw_get`]
494 - [`BufWriter::into_parts`]
495 - [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]
496   These APIs were previously stable in `std`, but are now also available in `core`.
497 - [`Vec::shrink_to`]
498 - [`String::shrink_to`]
499 - [`OsString::shrink_to`]
500 - [`PathBuf::shrink_to`]
501 - [`BinaryHeap::shrink_to`]
502 - [`VecDeque::shrink_to`]
503 - [`HashMap::shrink_to`]
504 - [`HashSet::shrink_to`]
505
506 These APIs are now usable in const contexts:
507
508 - [`std::mem::transmute`]
509 - [`[T]::first`][`slice::first`]
510 - [`[T]::split_first`][`slice::split_first`]
511 - [`[T]::last`][`slice::last`]
512 - [`[T]::split_last`][`slice::split_last`]
513
514 Cargo
515 -----
516
517 - [Cargo supports specifying a minimum supported Rust version in Cargo.toml.][`rust-version`]
518   This has no effect at present on dependency version selection.
519   We encourage crates to specify their minimum supported Rust version, and we encourage CI systems
520   that support Rust code to include a crate's specified minimum version in the test matrix for that
521   crate by default.
522
523 Compatibility notes
524 -------------------
525
526 - [Update to new argument parsing rules on Windows.][rust#87580]
527   This adjusts Rust's standard library to match the behavior of the standard
528   libraries for C/C++. The rules have changed slightly over time, and this PR
529   brings us to the latest set of rules (changed in 2008).
530 - [Disallow the aapcs calling convention on aarch64][rust#88399]
531   This was already not supported by LLVM; this change surfaces this lack of
532   support with a better error message.
533 - [Make `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` warn by default][rust#87385]
534 - [Warn when an escaped newline skips multiple lines.][rust#87671]
535 - [Calls to `libc::getpid` / `std::process::id` from `Command::pre_exec`
536    may return different values on glibc <= 2.24.][rust#81825]
537    Rust now invokes the `clone3` system call directly, when available, to use new functionality
538    available via that system call. Older versions of glibc cache the result of `getpid`, and only
539    update that cache when calling glibc's clone/fork functions, so a direct system call bypasses
540    that cache update. glibc 2.25 and newer no longer cache `getpid` for exactly this reason.
541
542 Internal changes
543 ----------------
544 These changes provide no direct user facing benefits, but represent significant
545 improvements to the internals and overall performance of rustc
546 and related tools.
547
548 - [LLVM is compiled with PGO in published x86_64-unknown-linux-gnu artifacts.][rust#88069]
549   This improves the performance of most Rust builds.
550 - [Unify representation of macros in internal data structures.][rust#88019]
551   This change fixes a host of bugs with the handling of macros by the compiler,
552   as well as rustdoc.
553
554 [`std::os::unix::fs::chroot`]: https://doc.rust-lang.org/stable/std/os/unix/fs/fn.chroot.html
555 [`UnsafeCell::raw_get`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.raw_get
556 [`BufWriter::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.BufWriter.html#method.into_parts
557 [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]: https://github.com/rust-lang/rust/pull/84662
558 [`Vec::shrink_to`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.shrink_to
559 [`String::shrink_to`]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.shrink_to
560 [`OsString::shrink_to`]: https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.shrink_to
561 [`PathBuf::shrink_to`]: https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.shrink_to
562 [`BinaryHeap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.BinaryHeap.html#method.shrink_to
563 [`VecDeque::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.shrink_to
564 [`HashMap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_map/struct.HashMap.html#method.shrink_to
565 [`HashSet::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_set/struct.HashSet.html#method.shrink_to
566 [`std::mem::transmute`]: https://doc.rust-lang.org/stable/std/mem/fn.transmute.html
567 [`slice::first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.first
568 [`slice::split_first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_first
569 [`slice::last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.last
570 [`slice::split_last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_last
571 [`rust-version`]: https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field
572 [rust#87671]: https://github.com/rust-lang/rust/pull/87671
573 [rust#86183]: https://github.com/rust-lang/rust/pull/86183
574 [rust#87385]: https://github.com/rust-lang/rust/pull/87385
575 [rust#88100]: https://github.com/rust-lang/rust/pull/88100
576 [rust#85305]: https://github.com/rust-lang/rust/pull/85305
577 [rust#88069]: https://github.com/rust-lang/rust/pull/88069
578 [rust#87472]: https://github.com/rust-lang/rust/pull/87472
579 [rust#87699]: https://github.com/rust-lang/rust/pull/87699
580 [rust#87570]: https://github.com/rust-lang/rust/pull/87570
581 [rust#88023]: https://github.com/rust-lang/rust/pull/88023
582 [rust#87760]: https://github.com/rust-lang/rust/pull/87760
583 [rust#87370]: https://github.com/rust-lang/rust/pull/87370
584 [rust#87580]: https://github.com/rust-lang/rust/pull/87580
585 [rust#83342]: https://github.com/rust-lang/rust/pull/83342
586 [rust#83093]: https://github.com/rust-lang/rust/pull/83093
587 [rust#85835]: https://github.com/rust-lang/rust/pull/85835
588 [rust#86744]: https://github.com/rust-lang/rust/pull/86744
589 [rust#81363]: https://github.com/rust-lang/rust/pull/81363
590 [rust#84111]: https://github.com/rust-lang/rust/pull/84111
591 [rust#85769]: https://github.com/rust-lang/rust/pull/85769#issuecomment-854363720
592 [rust#88399]: https://github.com/rust-lang/rust/pull/88399
593 [rust#81825]: https://github.com/rust-lang/rust/pull/81825#issuecomment-808406918
594 [rust#88019]: https://github.com/rust-lang/rust/pull/88019
595 [rust#87666]: https://github.com/rust-lang/rust/pull/87666
596
597 Version 1.55.0 (2021-09-09)
598 ============================
599
600 Language
601 --------
602 - [You can now write open "from" range patterns (`X..`), which will start at `X` and
603   will end at the maximum value of the integer.][83918]
604 - [You can now explicitly import the prelude of different editions
605   through `std::prelude` (e.g. `use std::prelude::rust_2021::*;`).][86294]
606
607 Compiler
608 --------
609 - [Added tier 3\* support for `powerpc64le-unknown-freebsd`.][83572]
610
611 \* Refer to Rust's [platform support page][platform-support-doc] for more
612    information on Rust's tiered platform support.
613
614 Libraries
615 ---------
616
617 - [Updated std's float parsing to use the Eisel-Lemire algorithm.][86761]
618   These improvements should in general provide faster string parsing of floats,
619   no longer reject certain valid floating point values, and reduce
620   the produced code size for non-stripped artifacts.
621 - [`string::Drain` now implements `AsRef<str>` and `AsRef<[u8]>`.][86858]
622
623 Stabilised APIs
624 ---------------
625
626 - [`Bound::cloned`]
627 - [`Drain::as_str`]
628 - [`IntoInnerError::into_error`]
629 - [`IntoInnerError::into_parts`]
630 - [`MaybeUninit::assume_init_mut`]
631 - [`MaybeUninit::assume_init_ref`]
632 - [`MaybeUninit::write`]
633 - [`array::map`]
634 - [`ops::ControlFlow`]
635 - [`x86::_bittest`]
636 - [`x86::_bittestandcomplement`]
637 - [`x86::_bittestandreset`]
638 - [`x86::_bittestandset`]
639 - [`x86_64::_bittest64`]
640 - [`x86_64::_bittestandcomplement64`]
641 - [`x86_64::_bittestandreset64`]
642 - [`x86_64::_bittestandset64`]
643
644 The following previously stable functions are now `const`.
645
646 - [`str::from_utf8_unchecked`]
647
648
649 Cargo
650 -----
651 - [Cargo will now deduplicate compiler diagnostics to the terminal when invoking
652   rustc in parallel such as when using `cargo test`.][cargo/9675]
653 - [The package definition in `cargo metadata` now includes the `"default_run"`
654   field from the manifest.][cargo/9550]
655 - [Added `cargo d` as an alias for `cargo doc`.][cargo/9680]
656 - [Added `{lib}` as formatting option for `cargo tree` to print the `"lib_name"`
657   of packages.][cargo/9663]
658
659 Rustdoc
660 -------
661 - [Added "Go to item on exact match" search option.][85876]
662 - [The "Implementors" section on traits no longer shows redundant
663   method definitions.][85970]
664 - [Trait implementations are toggled open by default.][86260] This should make the
665   implementations more searchable by tools like `CTRL+F` in your browser.
666 - [Intra-doc links should now correctly resolve associated items (e.g. methods)
667   through type aliases.][86334]
668 - [Traits which are marked with `#[doc(hidden)]` will no longer appear in the
669   "Trait Implementations" section.][86513]
670
671
672 Compatibility Notes
673 -------------------
674 - [std functions that return an `io::Error` will no longer use the
675   `ErrorKind::Other` variant.][85746] This is to better reflect that these
676   kinds of errors could be categorised [into newer more specific `ErrorKind`
677   variants][79965], and that they do not represent a user error.
678 - [Using environment variable names with `process::Command` on Windows now
679   behaves as expected.][85270] Previously using envionment variables with
680   `Command` would cause them to be ASCII-uppercased.
681 - [Rustdoc will now warn on using rustdoc lints that aren't prefixed
682   with `rustdoc::`][86849]
683 - `RUSTFLAGS` is no longer set for build scripts. Build scripts
684   should use `CARGO_ENCODED_RUSTFLAGS` instead. See the
685   [documentation](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts)
686   for more details.
687
688 [86849]: https://github.com/rust-lang/rust/pull/86849
689 [86513]: https://github.com/rust-lang/rust/pull/86513
690 [86334]: https://github.com/rust-lang/rust/pull/86334
691 [86260]: https://github.com/rust-lang/rust/pull/86260
692 [85970]: https://github.com/rust-lang/rust/pull/85970
693 [85876]: https://github.com/rust-lang/rust/pull/85876
694 [83572]: https://github.com/rust-lang/rust/pull/83572
695 [86294]: https://github.com/rust-lang/rust/pull/86294
696 [86858]: https://github.com/rust-lang/rust/pull/86858
697 [86761]: https://github.com/rust-lang/rust/pull/86761
698 [85746]: https://github.com/rust-lang/rust/pull/85746
699 [85270]: https://github.com/rust-lang/rust/pull/85270
700 [83918]: https://github.com/rust-lang/rust/pull/83918
701 [79965]: https://github.com/rust-lang/rust/pull/79965
702 [cargo/9663]: https://github.com/rust-lang/cargo/pull/9663
703 [cargo/9675]: https://github.com/rust-lang/cargo/pull/9675
704 [cargo/9550]: https://github.com/rust-lang/cargo/pull/9550
705 [cargo/9680]: https://github.com/rust-lang/cargo/pull/9680
706 [`array::map`]: https://doc.rust-lang.org/stable/std/primitive.array.html#method.map
707 [`Bound::cloned`]: https://doc.rust-lang.org/stable/std/ops/enum.Bound.html#method.cloned
708 [`Drain::as_str`]: https://doc.rust-lang.org/stable/std/string/struct.Drain.html#method.as_str
709 [`IntoInnerError::into_error`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_error
710 [`IntoInnerError::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_parts
711 [`MaybeUninit::assume_init_mut`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_mut
712 [`MaybeUninit::assume_init_ref`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
713 [`MaybeUninit::write`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.write
714 [`ops::ControlFlow`]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html
715 [`str::from_utf8_unchecked`]: https://doc.rust-lang.org/stable/std/str/fn.from_utf8_unchecked.html
716 [`x86::_bittest`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittest.html
717 [`x86::_bittestandcomplement`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandcomplement.html
718 [`x86::_bittestandreset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandreset.html
719 [`x86::_bittestandset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandset.html
720 [`x86_64::_bittest64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittest64.html
721 [`x86_64::_bittestandcomplement64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandcomplement64.html
722 [`x86_64::_bittestandreset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandreset64.html
723 [`x86_64::_bittestandset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandset64.html
724
725
726 Version 1.54.0 (2021-07-29)
727 ============================
728
729 Language
730 -----------------------
731
732 - [You can now use macros for values in some built-in attributes.][83366]
733   This primarily allows you to call macros within the `#[doc]` attribute. For
734   example, to include external documentation in your crate, you can now write
735   the following:
736   ```rust
737   #![doc = include_str!("README.md")]
738   ```
739
740 - [You can now cast between unsized slice types (and types which contain
741   unsized slices) in `const fn`.][85078]
742 - [You can now use multiple generic lifetimes with `impl Trait` where the
743    lifetimes don't explicitly outlive another.][84701] In code this means
744    that you can now have `impl Trait<'a, 'b>` where as before you could
745    only have `impl Trait<'a, 'b> where 'b: 'a`.
746
747 Compiler
748 -----------------------
749
750 - [Rustc will now search for custom JSON targets in
751   `/lib/rustlib/<target-triple>/target.json` where `/` is the "sysroot"
752   directory.][83800] You can find your sysroot directory by running
753   `rustc --print sysroot`.
754 - [Added `wasm` as a `target_family` for WebAssembly platforms.][84072]
755 - [You can now use `#[target_feature]` on safe functions when targeting
756   WebAssembly platforms.][84988]
757 - [Improved debugger output for enums on Windows MSVC platforms.][85292]
758 - [Added tier 3\* support for `bpfel-unknown-none`
759    and `bpfeb-unknown-none`.][79608]
760 - [`-Zmutable-noalias=yes`][82834] is enabled by default when using LLVM 12 or above.
761
762 \* Refer to Rust's [platform support page][platform-support-doc] for more
763    information on Rust's tiered platform support.
764
765 Libraries
766 -----------------------
767
768 - [`panic::panic_any` will now `#[track_caller]`.][85745]
769 - [Added `OutOfMemory` as a variant of `io::ErrorKind`.][84744]
770 - [ `proc_macro::Literal` now implements `FromStr`.][84717]
771 - [The implementations of vendor intrinsics in core::arch have been
772    significantly refactored.][83278] The main user-visible changes are
773    a 50% reduction in the size of libcore.rlib and stricter validation
774    of constant operands passed to intrinsics. The latter is technically
775    a breaking change, but allows Rust to more closely match the C vendor
776    intrinsics API.
777
778 Stabilized APIs
779 ---------------
780
781 - [`BTreeMap::into_keys`]
782 - [`BTreeMap::into_values`]
783 - [`HashMap::into_keys`]
784 - [`HashMap::into_values`]
785 - [`arch::wasm32`]
786 - [`VecDeque::binary_search`]
787 - [`VecDeque::binary_search_by`]
788 - [`VecDeque::binary_search_by_key`]
789 - [`VecDeque::partition_point`]
790
791 Cargo
792 -----
793
794 - [Added the `--prune <spec>` option to `cargo-tree` to remove a package from
795   the dependency graph.][cargo/9520]
796 - [Added the `--depth` option to `cargo-tree` to print only to a certain depth
797   in the tree ][cargo/9499]
798 - [Added the `no-proc-macro` value to `cargo-tree --edges` to hide procedural
799   macro dependencies.][cargo/9488]
800 - [A new environment variable named `CARGO_TARGET_TMPDIR` is available.][cargo/9375]
801   This variable points to a directory that integration tests and benches
802   can use as a "scratchpad" for testing filesystem operations.
803
804 Compatibility Notes
805 -------------------
806 - [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
807 - [Previously unsound code is no longer permitted where different constructors in branches
808   could require different lifetimes.][85574]
809 - As previously mentioned the [`std::arch` instrinsics now uses stricter const checking][83278]
810   than before and may reject some previously accepted code.
811 - [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
812    when compiled with `codegen-units = 1`.][86063]
813
814 [85574]: https://github.com/rust-lang/rust/issues/85574
815 [86831]: https://github.com/rust-lang/rust/issues/86831
816 [86063]: https://github.com/rust-lang/rust/issues/86063
817 [79608]: https://github.com/rust-lang/rust/pull/79608
818 [84988]: https://github.com/rust-lang/rust/pull/84988
819 [84701]: https://github.com/rust-lang/rust/pull/84701
820 [84072]: https://github.com/rust-lang/rust/pull/84072
821 [85745]: https://github.com/rust-lang/rust/pull/85745
822 [84744]: https://github.com/rust-lang/rust/pull/84744
823 [85078]: https://github.com/rust-lang/rust/pull/85078
824 [84717]: https://github.com/rust-lang/rust/pull/84717
825 [83800]: https://github.com/rust-lang/rust/pull/83800
826 [83366]: https://github.com/rust-lang/rust/pull/83366
827 [83278]: https://github.com/rust-lang/rust/pull/83278
828 [85292]: https://github.com/rust-lang/rust/pull/85292
829 [82834]: https://github.com/rust-lang/rust/pull/82834
830 [cargo/9520]: https://github.com/rust-lang/cargo/pull/9520
831 [cargo/9499]: https://github.com/rust-lang/cargo/pull/9499
832 [cargo/9488]: https://github.com/rust-lang/cargo/pull/9488
833 [cargo/9375]: https://github.com/rust-lang/cargo/pull/9375
834 [`BTreeMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_keys
835 [`BTreeMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_values
836 [`HashMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_keys
837 [`HashMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_values
838 [`arch::wasm32`]: https://doc.rust-lang.org/core/arch/wasm32/index.html
839 [`VecDeque::binary_search`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search
840 [`VecDeque::binary_search_by`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by
841
842 [`VecDeque::binary_search_by_key`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by_key
843
844 [`VecDeque::partition_point`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.partition_point
845
846 Version 1.53.0 (2021-06-17)
847 ============================
848
849 Language
850 -----------------------
851 - [You can now use unicode for identifiers.][83799] This allows multilingual
852   identifiers but still doesn't allow glyphs that are not considered characters
853   such as `◆` or `🦀`. More specifically you can now use any identifier that
854   matches the UAX #31 "Unicode Identifier and Pattern Syntax" standard. This
855   is the same standard as languages like Python, however Rust uses NFC
856   normalization which may be different from other languages.
857 - [You can now specify "or patterns" inside pattern matches.][79278]
858   Previously you could only use `|` (OR) on complete patterns. E.g.
859   ```rust
860   let x = Some(2u8);
861   // Before
862   matches!(x, Some(1) | Some(2));
863   // Now
864   matches!(x, Some(1 | 2));
865   ```
866 - [Added the `:pat_param` `macro_rules!` matcher.][83386] This matcher
867   has the same semantics as the `:pat` matcher. This is to allow `:pat`
868   to change semantics to being a pattern fragment in a future edition.
869
870 Compiler
871 -----------------------
872 - [Updated the minimum external LLVM version to LLVM 10.][83387]
873 - [Added Tier 3\* support for the `wasm64-unknown-unknown` target.][80525]
874 - [Improved debuginfo for closures and async functions on Windows MSVC.][83941]
875
876 \* Refer to Rust's [platform support page][platform-support-doc] for more
877 information on Rust's tiered platform support.
878
879 Libraries
880 -----------------------
881 - [Abort messages will now forward to `android_set_abort_message` on
882   Android platforms when available.][81469]
883 - [`slice::IterMut<'_, T>` now implements `AsRef<[T]>`][82771]
884 - [Arrays of any length now implement `IntoIterator`.][84147]
885   Currently calling `.into_iter()` as a method on an array will
886   return `impl Iterator<Item=&T>`, but this may change in a
887   future edition to change `Item` to `T`. Calling `IntoIterator::into_iter`
888   directly on arrays will provide `impl Iterator<Item=T>` as expected.
889 - [`leading_zeros`, and `trailing_zeros` are now available on all
890   `NonZero` integer types.][84082]
891 - [`{f32, f64}::from_str` now parse and print special values
892   (`NaN`, `-0`) according to IEEE 754.][78618]
893 - [You can now index into slices using `(Bound<usize>, Bound<usize>)`.][77704]
894 - [Add the `BITS` associated constant to all numeric types.][82565]
895
896 Stabilised APIs
897 ---------------
898 - [`AtomicBool::fetch_update`]
899 - [`AtomicPtr::fetch_update`]
900 - [`BTreeMap::retain`]
901 - [`BTreeSet::retain`]
902 - [`BufReader::seek_relative`]
903 - [`DebugStruct::non_exhaustive`]
904 - [`Duration::MAX`]
905 - [`Duration::ZERO`]
906 - [`Duration::is_zero`]
907 - [`Duration::saturating_add`]
908 - [`Duration::saturating_mul`]
909 - [`Duration::saturating_sub`]
910 - [`ErrorKind::Unsupported`]
911 - [`Option::insert`]
912 - [`Ordering::is_eq`]
913 - [`Ordering::is_ge`]
914 - [`Ordering::is_gt`]
915 - [`Ordering::is_le`]
916 - [`Ordering::is_lt`]
917 - [`Ordering::is_ne`]
918 - [`OsStr::is_ascii`]
919 - [`OsStr::make_ascii_lowercase`]
920 - [`OsStr::make_ascii_uppercase`]
921 - [`OsStr::to_ascii_lowercase`]
922 - [`OsStr::to_ascii_uppercase`]
923 - [`Peekable::peek_mut`]
924 - [`Rc::decrement_strong_count`]
925 - [`Rc::increment_strong_count`]
926 - [`Vec::extend_from_within`]
927 - [`array::from_mut`]
928 - [`array::from_ref`]
929 - [`cmp::max_by_key`]
930 - [`cmp::max_by`]
931 - [`cmp::min_by_key`]
932 - [`cmp::min_by`]
933 - [`f32::is_subnormal`]
934 - [`f64::is_subnormal`]
935
936 Cargo
937 -----------------------
938 - [Cargo now supports git repositories where the default `HEAD` branch is not
939   "master".][cargo/9392] This also includes a switch to the version 3 `Cargo.lock` format
940   which can handle default branches correctly.
941 - [macOS targets now default to `unpacked` split-debuginfo.][cargo/9298]
942 - [The `authors` field is no longer included in `Cargo.toml` for new
943   projects.][cargo/9282]
944
945 Rustdoc
946 -----------------------
947 - [Added the `rustdoc::bare_urls` lint that warns when you have URLs
948   without hyperlinks.][81764]
949
950 Compatibility Notes
951 -------------------
952 - [Implement token-based handling of attributes during expansion][82608]
953 - [`Ipv4::from_str` will now reject octal format IP addresses in addition
954   to rejecting hexadecimal IP addresses.][83652] The octal format can lead
955   to confusion and potential security vulnerabilities and [is no
956   longer recommended][ietf6943].
957 - [The added `BITS` constant may conflict with external definitions.][85667]
958   In particular, this was known to be a problem in the `lexical-core` crate,
959   but they have published fixes for semantic versions 0.4 through 0.7. To
960   update this dependency alone, use `cargo update -p lexical-core`.
961 - Incremental compilation remains off by default, unless one uses the `RUSTC_FORCE_INCREMENTAL=1` environment variable added in 1.52.1.
962
963 Internal Only
964 -------------
965 These changes provide no direct user facing benefits, but represent significant
966 improvements to the internals and overall performance of rustc and
967 related tools.
968
969 - [Rework the `std::sys::windows::alloc` implementation.][83065]
970 - [rustdoc: Don't enter an infer_ctxt in get_blanket_impls for impls that aren't blanket impls.][82864]
971 - [rustdoc: Only look at blanket impls in `get_blanket_impls`][83681]
972 - [Rework rustdoc const type][82873]
973
974 [85667]: https://github.com/rust-lang/rust/pull/85667
975 [83386]: https://github.com/rust-lang/rust/pull/83386
976 [82771]: https://github.com/rust-lang/rust/pull/82771
977 [84147]: https://github.com/rust-lang/rust/pull/84147
978 [84082]: https://github.com/rust-lang/rust/pull/84082
979 [83799]: https://github.com/rust-lang/rust/pull/83799
980 [83681]: https://github.com/rust-lang/rust/pull/83681
981 [83652]: https://github.com/rust-lang/rust/pull/83652
982 [83387]: https://github.com/rust-lang/rust/pull/83387
983 [82873]: https://github.com/rust-lang/rust/pull/82873
984 [82864]: https://github.com/rust-lang/rust/pull/82864
985 [82608]: https://github.com/rust-lang/rust/pull/82608
986 [82565]: https://github.com/rust-lang/rust/pull/82565
987 [80525]: https://github.com/rust-lang/rust/pull/80525
988 [79278]: https://github.com/rust-lang/rust/pull/79278
989 [78618]: https://github.com/rust-lang/rust/pull/78618
990 [77704]: https://github.com/rust-lang/rust/pull/77704
991 [83941]: https://github.com/rust-lang/rust/pull/83941
992 [83065]: https://github.com/rust-lang/rust/pull/83065
993 [81764]: https://github.com/rust-lang/rust/pull/81764
994 [81469]: https://github.com/rust-lang/rust/pull/81469
995 [cargo/9298]: https://github.com/rust-lang/cargo/pull/9298
996 [cargo/9282]: https://github.com/rust-lang/cargo/pull/9282
997 [cargo/9392]: https://github.com/rust-lang/cargo/pull/9392
998 [`AtomicBool::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicBool.html#method.fetch_update
999 [`AtomicPtr::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html#method.fetch_update
1000 [`BTreeMap::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.retain
1001 [`BTreeSet::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.retain
1002 [`BufReader::seek_relative`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.seek_relative
1003 [`DebugStruct::non_exhaustive`]: https://doc.rust-lang.org/std/fmt/struct.DebugStruct.html#method.finish_non_exhaustive
1004 [`Duration::MAX`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.MAX
1005 [`Duration::ZERO`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.ZERO
1006 [`Duration::is_zero`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.is_zero
1007 [`Duration::saturating_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_add
1008 [`Duration::saturating_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_mul
1009 [`Duration::saturating_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_sub
1010 [`ErrorKind::Unsupported`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.Unsupported
1011 [`Option::insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.insert
1012 [`Ordering::is_eq`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_eq
1013 [`Ordering::is_ge`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ge
1014 [`Ordering::is_gt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_gt
1015 [`Ordering::is_le`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_le
1016 [`Ordering::is_lt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_lt
1017 [`Ordering::is_ne`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ne
1018 [`OsStr::is_ascii`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.is_ascii
1019 [`OsStr::make_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_lowercase
1020 [`OsStr::make_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_uppercase
1021 [`OsStr::to_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_lowercase
1022 [`OsStr::to_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_uppercase
1023 [`Peekable::peek_mut`]: https://doc.rust-lang.org/std/iter/struct.Peekable.html#method.peek_mut
1024 [`Rc::decrement_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1025 [`Rc::increment_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1026 [`Vec::extend_from_within`]: https://doc.rust-lang.org/beta/std/vec/struct.Vec.html#method.extend_from_within
1027 [`array::from_mut`]: https://doc.rust-lang.org/beta/std/array/fn.from_mut.html
1028 [`array::from_ref`]: https://doc.rust-lang.org/beta/std/array/fn.from_ref.html
1029 [`cmp::max_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by_key.html
1030 [`cmp::max_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by.html
1031 [`cmp::min_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by_key.html
1032 [`cmp::min_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by.html
1033 [`f32::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1034 [`f64::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1035 [ietf6943]: https://datatracker.ietf.org/doc/html/rfc6943#section-3.1.1
1036
1037
1038 Version 1.52.1 (2021-05-10)
1039 ============================
1040
1041 This release disables incremental compilation, unless the user has explicitly
1042 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
1043
1044 This is due to the widespread, and frequently occuring, breakage encountered by
1045 Rust users due to newly enabled incremental verification in 1.52.0. Notably,
1046 Rust users **should** upgrade to 1.52.0 or 1.52.1: the bugs that are detected by
1047 newly added incremental verification are still present in past stable versions,
1048 and are not yet fixed on any channel. These bugs can lead to miscompilation of
1049 Rust binaries.
1050
1051 These problems only affect incremental builds, so release builds with Cargo
1052 should not be affected unless the user has explicitly opted into incremental.
1053 Debug and check builds are affected.
1054
1055 See [84970] for more details.
1056
1057 [84970]: https://github.com/rust-lang/rust/issues/84970
1058
1059 Version 1.52.0 (2021-05-06)
1060 ============================
1061
1062 Language
1063 --------
1064 - [Added the `unsafe_op_in_unsafe_fn` lint, which checks whether the unsafe code
1065   in an `unsafe fn` is wrapped in a `unsafe` block.][79208] This lint
1066   is allowed by default, and may become a warning or hard error in a
1067   future edition.
1068 - [You can now cast mutable references to arrays to a pointer of the same type as
1069   the element.][81479]
1070
1071 Compiler
1072 --------
1073 - [Upgraded the default LLVM to LLVM 12.][81451]
1074
1075 Added tier 3\* support for the following targets.
1076
1077 - [`s390x-unknown-linux-musl`][82166]
1078 - [`riscv32gc-unknown-linux-musl` & `riscv64gc-unknown-linux-musl`][82202]
1079 - [`powerpc-unknown-openbsd`][82733]
1080
1081 \* Refer to Rust's [platform support page][platform-support-doc] for more
1082 information on Rust's tiered platform support.
1083
1084 Libraries
1085 ---------
1086 - [`OsString` now implements `Extend` and `FromIterator`.][82121]
1087 - [`cmp::Reverse` now has `#[repr(transparent)]` representation.][81879]
1088 - [`Arc<impl Error>` now implements `error::Error`.][80553]
1089 - [All integer division and remainder operations are now `const`.][80962]
1090
1091 Stabilised APIs
1092 -------------
1093 - [`Arguments::as_str`]
1094 - [`char::MAX`]
1095 - [`char::REPLACEMENT_CHARACTER`]
1096 - [`char::UNICODE_VERSION`]
1097 - [`char::decode_utf16`]
1098 - [`char::from_digit`]
1099 - [`char::from_u32_unchecked`]
1100 - [`char::from_u32`]
1101 - [`slice::partition_point`]
1102 - [`str::rsplit_once`]
1103 - [`str::split_once`]
1104
1105 The following previously stable APIs are now `const`.
1106
1107 - [`char::len_utf8`]
1108 - [`char::len_utf16`]
1109 - [`char::to_ascii_uppercase`]
1110 - [`char::to_ascii_lowercase`]
1111 - [`char::eq_ignore_ascii_case`]
1112 - [`u8::to_ascii_uppercase`]
1113 - [`u8::to_ascii_lowercase`]
1114 - [`u8::eq_ignore_ascii_case`]
1115
1116 Rustdoc
1117 -------
1118 - [Rustdoc lints are now treated as a tool lint, meaning that
1119   lints are now prefixed with `rustdoc::` (e.g. `#[warn(rustdoc::broken_intra_doc_links)]`).][80527]
1120   Using the old style is still allowed, and will become a warning in
1121   a future release.
1122 - [Rustdoc now supports argument files.][82261]
1123 - [Rustdoc now generates smart punctuation for documentation.][79423]
1124 - [You can now use "task lists" in Rustdoc Markdown.][81766] E.g.
1125   ```markdown
1126   - [x] Complete
1127   - [ ] Todo
1128   ```
1129
1130 Misc
1131 ----
1132 - [You can now pass multiple filters to tests.][81356] E.g.
1133   `cargo test -- foo bar` will run all tests that match `foo` and `bar`.
1134 - [Rustup now distributes PDB symbols for the `std` library on Windows,
1135   allowing you to see `std` symbols when debugging.][82218]
1136
1137 Internal Only
1138 -------------
1139 These changes provide no direct user facing benefits, but represent significant
1140 improvements to the internals and overall performance of rustc and
1141 related tools.
1142
1143 - [Check the result cache before the DepGraph when ensuring queries][81855]
1144 - [Try fast_reject::simplify_type in coherence before doing full check][81744]
1145 - [Only store a LocalDefId in some HIR nodes][81611]
1146 - [Store HIR attributes in a side table][79519]
1147
1148 Compatibility Notes
1149 -------------------
1150 - [Cargo build scripts are now forbidden from setting `RUSTC_BOOTSTRAP`.][cargo/9181]
1151 - [Removed support for the `x86_64-rumprun-netbsd` target.][82594]
1152 - [Deprecated the `x86_64-sun-solaris` target in favor of `x86_64-pc-solaris`.][82216]
1153 - [Rustdoc now only accepts `,`, ` `, and `\t` as delimiters for specifying
1154   languages in code blocks.][78429]
1155 - [Rustc now catches more cases of `pub_use_of_private_extern_crate`][80763]
1156 - [Changes in how proc macros handle whitespace may lead to panics when used
1157   with older `proc-macro-hack` versions. A `cargo update` should be sufficient to fix this in all cases.][84136]
1158 - [Turn `#[derive]` into a regular macro attribute][79078]
1159
1160 [84136]: https://github.com/rust-lang/rust/issues/84136
1161 [80763]: https://github.com/rust-lang/rust/pull/80763
1162 [82166]: https://github.com/rust-lang/rust/pull/82166
1163 [82121]: https://github.com/rust-lang/rust/pull/82121
1164 [81879]: https://github.com/rust-lang/rust/pull/81879
1165 [82261]: https://github.com/rust-lang/rust/pull/82261
1166 [82218]: https://github.com/rust-lang/rust/pull/82218
1167 [82216]: https://github.com/rust-lang/rust/pull/82216
1168 [82202]: https://github.com/rust-lang/rust/pull/82202
1169 [81855]: https://github.com/rust-lang/rust/pull/81855
1170 [81766]: https://github.com/rust-lang/rust/pull/81766
1171 [81744]: https://github.com/rust-lang/rust/pull/81744
1172 [81611]: https://github.com/rust-lang/rust/pull/81611
1173 [81479]: https://github.com/rust-lang/rust/pull/81479
1174 [81451]: https://github.com/rust-lang/rust/pull/81451
1175 [81356]: https://github.com/rust-lang/rust/pull/81356
1176 [80962]: https://github.com/rust-lang/rust/pull/80962
1177 [80553]: https://github.com/rust-lang/rust/pull/80553
1178 [80527]: https://github.com/rust-lang/rust/pull/80527
1179 [79519]: https://github.com/rust-lang/rust/pull/79519
1180 [79423]: https://github.com/rust-lang/rust/pull/79423
1181 [79208]: https://github.com/rust-lang/rust/pull/79208
1182 [78429]: https://github.com/rust-lang/rust/pull/78429
1183 [82733]: https://github.com/rust-lang/rust/pull/82733
1184 [82594]: https://github.com/rust-lang/rust/pull/82594
1185 [79078]: https://github.com/rust-lang/rust/pull/79078
1186 [cargo/9181]: https://github.com/rust-lang/cargo/pull/9181
1187 [`char::MAX`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.MAX
1188 [`char::REPLACEMENT_CHARACTER`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.REPLACEMENT_CHARACTER
1189 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.UNICODE_VERSION
1190 [`char::decode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.decode_utf16
1191 [`char::from_u32`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32
1192 [`char::from_u32_unchecked`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32_unchecked
1193 [`char::from_digit`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_digit
1194 [`Peekable::next_if`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if
1195 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_eq
1196 [`Arguments::as_str`]: https://doc.rust-lang.org/stable/std/fmt/struct.Arguments.html#method.as_str
1197 [`str::split_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_once
1198 [`str::rsplit_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.rsplit_once
1199 [`slice::partition_point`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.partition_point
1200 [`char::len_utf8`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf8
1201 [`char::len_utf16`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf16
1202 [`char::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_uppercase
1203 [`char::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_lowercase
1204 [`char::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.eq_ignore_ascii_case
1205 [`u8::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_uppercase
1206 [`u8::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_lowercase
1207 [`u8::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.eq_ignore_ascii_case
1208
1209 Version 1.51.0 (2021-03-25)
1210 ============================
1211
1212 Language
1213 --------
1214 - [You can now parameterize items such as functions, traits, and `struct`s by constant
1215   values in addition to by types and lifetimes.][79135] Also known as "const generics"
1216   E.g. you can now write the following. Note: Only values of primitive integers,
1217   `bool`, or `char` types are currently permitted.
1218   ```rust
1219   struct GenericArray<T, const LENGTH: usize> {
1220       inner: [T; LENGTH]
1221   }
1222
1223   impl<T, const LENGTH: usize> GenericArray<T, LENGTH> {
1224       const fn last(&self) -> Option<&T> {
1225           if LENGTH == 0 {
1226               None
1227           } else {
1228               Some(&self.inner[LENGTH - 1])
1229           }
1230       }
1231   }
1232   ```
1233
1234
1235 Compiler
1236 --------
1237
1238 - [Added the `-Csplit-debuginfo` codegen option for macOS platforms.][79570]
1239   This option controls whether debug information is split across multiple files
1240   or packed into a single file. **Note** This option is unstable on other platforms.
1241 - [Added tier 3\* support for `aarch64_be-unknown-linux-gnu`,
1242   `aarch64-unknown-linux-gnu_ilp32`, and `aarch64_be-unknown-linux-gnu_ilp32` targets.][81455]
1243 - [Added tier 3 support for `i386-unknown-linux-gnu` and `i486-unknown-linux-gnu` targets.][80662]
1244 - [The `target-cpu=native` option will now detect individual features of CPUs.][80749]
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
1252 - [`Box::downcast` is now also implemented for any `dyn Any + Send + Sync` object.][80945]
1253 - [`str` now implements `AsMut<str>`.][80279]
1254 - [`u64` and `u128` now implement `From<char>`.][79502]
1255 - [`Error` is now implemented for `&T` where `T` implements `Error`.][75180]
1256 - [`Poll::{map_ok, map_err}` are now implemented for `Poll<Option<Result<T, E>>>`.][80968]
1257 - [`unsigned_abs` is now implemented for all signed integer types.][80959]
1258 - [`io::Empty` now implements `io::Seek`.][78044]
1259 - [`rc::Weak<T>` and `sync::Weak<T>`'s methods such as `as_ptr` are now implemented for
1260   `T: ?Sized` types.][80764]
1261 - [`Div` and `Rem` by their `NonZero` variant is now implemented for all unsigned integers.][79134]
1262
1263
1264 Stabilized APIs
1265 ---------------
1266
1267 - [`Arc::decrement_strong_count`]
1268 - [`Arc::increment_strong_count`]
1269 - [`Once::call_once_force`]
1270 - [`Peekable::next_if_eq`]
1271 - [`Peekable::next_if`]
1272 - [`Seek::stream_position`]
1273 - [`array::IntoIter`]
1274 - [`panic::panic_any`]
1275 - [`ptr::addr_of!`]
1276 - [`ptr::addr_of_mut!`]
1277 - [`slice::fill_with`]
1278 - [`slice::split_inclusive_mut`]
1279 - [`slice::split_inclusive`]
1280 - [`slice::strip_prefix`]
1281 - [`slice::strip_suffix`]
1282 - [`str::split_inclusive`]
1283 - [`sync::OnceState`]
1284 - [`task::Wake`]
1285 - [`VecDeque::range`]
1286 - [`VecDeque::range_mut`]
1287
1288 Cargo
1289 -----
1290 - [Added the `split-debuginfo` profile option to control the -Csplit-debuginfo
1291   codegen option.][cargo/9112]
1292 - [Added the `resolver` field to `Cargo.toml` to enable the new feature resolver
1293   and CLI option behavior.][cargo/8997] Version 2 of the feature resolver will try
1294   to avoid unifying features of dependencies where that unification could be unwanted.
1295   Such as using the same dependency with a `std` feature in a build scripts and
1296   proc-macros, while using the `no-std` feature in the final binary. See the
1297   [Cargo book documentation][feature-resolver@2.0] for more information on the feature.
1298
1299 Rustdoc
1300 -------
1301
1302 - [Rustdoc will now include documentation for methods available from _nested_ `Deref` traits.][80653]
1303 - [You can now provide a `--default-theme` flag which sets the default theme to use for
1304   documentation.][79642]
1305
1306 Various improvements to intra-doc links:
1307
1308 - [You can link to non-path primitives such as `slice`.][80181]
1309 - [You can link to associated items.][74489]
1310 - [You can now include generic parameters when linking to items, like `Vec<T>`.][76934]
1311
1312 Misc
1313 ----
1314 - [You can now pass `--include-ignored` to tests (e.g. with
1315   `cargo test -- --include-ignored`) to include testing tests marked `#[ignore]`.][80053]
1316
1317 Compatibility Notes
1318 -------------------
1319
1320 - [WASI platforms no longer use the `wasm-bindgen` ABI, and instead use the wasm32 ABI.][79998]
1321 - [`rustc` no longer promotes division, modulo and indexing operations to `const` that
1322   could fail.][80579]
1323 - [The minimum version of glibc for the following platforms has been bumped to version 2.31
1324   for the distributed artifacts.][81521]
1325     - `armv5te-unknown-linux-gnueabi`
1326     - `sparc64-unknown-linux-gnu`
1327     - `thumbv7neon-unknown-linux-gnueabihf`
1328     - `armv7-unknown-linux-gnueabi`
1329     - `x86_64-unknown-linux-gnux32`
1330 - [`atomic::spin_loop_hint` has been deprecated.][80966] It's recommended to use `hint::spin_loop` instead.
1331
1332 Internal Only
1333 -------------
1334
1335 - [Consistently avoid constructing optimized MIR when not doing codegen][80718]
1336
1337 [79135]: https://github.com/rust-lang/rust/pull/79135
1338 [74489]: https://github.com/rust-lang/rust/pull/74489
1339 [76934]: https://github.com/rust-lang/rust/pull/76934
1340 [79570]: https://github.com/rust-lang/rust/pull/79570
1341 [80181]: https://github.com/rust-lang/rust/pull/80181
1342 [79642]: https://github.com/rust-lang/rust/pull/79642
1343 [80945]: https://github.com/rust-lang/rust/pull/80945
1344 [80279]: https://github.com/rust-lang/rust/pull/80279
1345 [80053]: https://github.com/rust-lang/rust/pull/80053
1346 [79502]: https://github.com/rust-lang/rust/pull/79502
1347 [75180]: https://github.com/rust-lang/rust/pull/75180
1348 [81521]: https://github.com/rust-lang/rust/pull/81521
1349 [80968]: https://github.com/rust-lang/rust/pull/80968
1350 [80959]: https://github.com/rust-lang/rust/pull/80959
1351 [80718]: https://github.com/rust-lang/rust/pull/80718
1352 [80653]: https://github.com/rust-lang/rust/pull/80653
1353 [80579]: https://github.com/rust-lang/rust/pull/80579
1354 [79998]: https://github.com/rust-lang/rust/pull/79998
1355 [78044]: https://github.com/rust-lang/rust/pull/78044
1356 [81455]: https://github.com/rust-lang/rust/pull/81455
1357 [80764]: https://github.com/rust-lang/rust/pull/80764
1358 [80749]: https://github.com/rust-lang/rust/pull/80749
1359 [80662]: https://github.com/rust-lang/rust/pull/80662
1360 [79134]: https://github.com/rust-lang/rust/pull/79134
1361 [80966]: https://github.com/rust-lang/rust/pull/80966
1362 [cargo/8997]: https://github.com/rust-lang/cargo/pull/8997
1363 [cargo/9112]: https://github.com/rust-lang/cargo/pull/9112
1364 [feature-resolver@2.0]: https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
1365 [`Once::call_once_force`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.call_once_force
1366 [`sync::OnceState`]: https://doc.rust-lang.org/stable/std/sync/struct.OnceState.html
1367 [`panic::panic_any`]: https://doc.rust-lang.org/stable/std/panic/fn.panic_any.html
1368 [`slice::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1369 [`slice::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1370 [`Arc::increment_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.increment_strong_count
1371 [`Arc::decrement_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.decrement_strong_count
1372 [`slice::fill_with`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.fill_with
1373 [`ptr::addr_of!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of.html
1374 [`ptr::addr_of_mut!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of_mut.html
1375 [`array::IntoIter`]: https://doc.rust-lang.org/nightly/std/array/struct.IntoIter.html
1376 [`slice::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive
1377 [`slice::split_inclusive_mut`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive_mut
1378 [`str::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_inclusive
1379 [`task::Wake`]: https://doc.rust-lang.org/nightly/std/task/trait.Wake.html
1380 [`Seek::stream_position`]: https://doc.rust-lang.org/nightly/std/io/trait.Seek.html#method.stream_position
1381 [`Peekable::next_if`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if
1382 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if_eq
1383 [`VecDeque::range`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range
1384 [`VecDeque::range_mut`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range_mut
1385
1386 Version 1.50.0 (2021-02-11)
1387 ============================
1388
1389 Language
1390 -----------------------
1391 - [You can now use `const` values for `x` in `[x; N]` array expressions.][79270]
1392   This has been technically possible since 1.38.0, as it was unintentionally stabilized.
1393 - [Assignments to `ManuallyDrop<T>` union fields are now considered safe.][78068]
1394
1395 Compiler
1396 -----------------------
1397 - [Added tier 3\* support for the `armv5te-unknown-linux-uclibceabi` target.][78142]
1398 - [Added tier 3 support for the `aarch64-apple-ios-macabi` target.][77484]
1399 - [The `x86_64-unknown-freebsd` is now built with the full toolset.][79484]
1400 - [Dropped support for all cloudabi targets.][78439]
1401
1402 \* Refer to Rust's [platform support page][platform-support-doc] for more
1403 information on Rust's tiered platform support.
1404
1405 Libraries
1406 -----------------------
1407
1408 - [`proc_macro::Punct` now implements `PartialEq<char>`.][78636]
1409 - [`ops::{Index, IndexMut}` are now implemented for fixed sized arrays of any length.][74989]
1410 - [On Unix platforms, the `std::fs::File` type now has a "niche" of `-1`.][74699]
1411   This value cannot be a valid file descriptor, and now means `Option<File>` takes
1412   up the same amount of space as `File`.
1413
1414 Stabilized APIs
1415 ---------------
1416
1417 - [`bool::then`]
1418 - [`btree_map::Entry::or_insert_with_key`]
1419 - [`f32::clamp`]
1420 - [`f64::clamp`]
1421 - [`hash_map::Entry::or_insert_with_key`]
1422 - [`Ord::clamp`]
1423 - [`RefCell::take`]
1424 - [`slice::fill`]
1425 - [`UnsafeCell::get_mut`]
1426
1427 The following previously stable methods are now `const`.
1428
1429 - [`IpAddr::is_ipv4`]
1430 - [`IpAddr::is_ipv6`]
1431 - [`IpAddr::is_unspecified`]
1432 - [`IpAddr::is_loopback`]
1433 - [`IpAddr::is_multicast`]
1434 - [`Ipv4Addr::octets`]
1435 - [`Ipv4Addr::is_loopback`]
1436 - [`Ipv4Addr::is_private`]
1437 - [`Ipv4Addr::is_link_local`]
1438 - [`Ipv4Addr::is_multicast`]
1439 - [`Ipv4Addr::is_broadcast`]
1440 - [`Ipv4Addr::is_documentation`]
1441 - [`Ipv4Addr::to_ipv6_compatible`]
1442 - [`Ipv4Addr::to_ipv6_mapped`]
1443 - [`Ipv6Addr::segments`]
1444 - [`Ipv6Addr::is_unspecified`]
1445 - [`Ipv6Addr::is_loopback`]
1446 - [`Ipv6Addr::is_multicast`]
1447 - [`Ipv6Addr::to_ipv4`]
1448 - [`Layout::size`]
1449 - [`Layout::align`]
1450 - [`Layout::from_size_align`]
1451 - `pow` for all integer types.
1452 - `checked_pow` for all integer types.
1453 - `saturating_pow` for all integer types.
1454 - `wrapping_pow` for all integer types.
1455 - `next_power_of_two` for all unsigned integer types.
1456 - `checked_next_power_of_two` for all unsigned integer types.
1457
1458 Cargo
1459 -----------------------
1460
1461 - [Added the `[build.rustc-workspace-wrapper]` option.][cargo/8976]
1462   This option sets a wrapper to execute instead of `rustc`, for workspace members only.
1463 - [`cargo:rerun-if-changed` will now, if provided a directory, scan the entire
1464   contents of that directory for changes.][cargo/8973]
1465 - [Added the `--workspace` flag to the `cargo update` command.][cargo/8725]
1466
1467 Misc
1468 ----
1469
1470 - [The search results tab and the help button are focusable with keyboard in rustdoc.][79896]
1471 - [Running tests will now print the total time taken to execute.][75752]
1472
1473 Compatibility Notes
1474 -------------------
1475
1476 - [The `compare_and_swap` method on atomics has been deprecated.][79261] It's
1477   recommended to use the `compare_exchange` and `compare_exchange_weak` methods instead.
1478 - [Changes in how `TokenStream`s are checked have fixed some cases where you could write
1479   unhygenic `macro_rules!` macros.][79472]
1480 - [`#![test]` as an inner attribute is now considered unstable like other inner macro
1481   attributes, and reports an error by default through the `soft_unstable` lint.][79003]
1482 - [Overriding a `forbid` lint at the same level that it was set is now a hard error.][78864]
1483 - [You can no longer intercept `panic!` calls by supplying your own macro.][78343] It's
1484   recommended to use the `#[panic_handler]` attribute to provide your own implementation.
1485 - [Semi-colons after item statements (e.g. `struct Foo {};`) now produce a warning.][78296]
1486
1487 [74989]: https://github.com/rust-lang/rust/pull/74989
1488 [79261]: https://github.com/rust-lang/rust/pull/79261
1489 [79896]: https://github.com/rust-lang/rust/pull/79896
1490 [79484]: https://github.com/rust-lang/rust/pull/79484
1491 [79472]: https://github.com/rust-lang/rust/pull/79472
1492 [79270]: https://github.com/rust-lang/rust/pull/79270
1493 [79003]: https://github.com/rust-lang/rust/pull/79003
1494 [78864]: https://github.com/rust-lang/rust/pull/78864
1495 [78636]: https://github.com/rust-lang/rust/pull/78636
1496 [78439]: https://github.com/rust-lang/rust/pull/78439
1497 [78343]: https://github.com/rust-lang/rust/pull/78343
1498 [78296]: https://github.com/rust-lang/rust/pull/78296
1499 [78068]: https://github.com/rust-lang/rust/pull/78068
1500 [75752]: https://github.com/rust-lang/rust/pull/75752
1501 [74699]: https://github.com/rust-lang/rust/pull/74699
1502 [78142]: https://github.com/rust-lang/rust/pull/78142
1503 [77484]: https://github.com/rust-lang/rust/pull/77484
1504 [cargo/8976]: https://github.com/rust-lang/cargo/pull/8976
1505 [cargo/8973]: https://github.com/rust-lang/cargo/pull/8973
1506 [cargo/8725]: https://github.com/rust-lang/cargo/pull/8725
1507 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv4
1508 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv6
1509 [`IpAddr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_unspecified
1510 [`IpAddr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_loopback
1511 [`IpAddr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_multicast
1512 [`Ipv4Addr::octets`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.octets
1513 [`Ipv4Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_loopback
1514 [`Ipv4Addr::is_private`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_private
1515 [`Ipv4Addr::is_link_local`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_link_local
1516 [`Ipv4Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_multicast
1517 [`Ipv4Addr::is_broadcast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_broadcast
1518 [`Ipv4Addr::is_documentation`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_documentation
1519 [`Ipv4Addr::to_ipv6_compatible`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_compatible
1520 [`Ipv4Addr::to_ipv6_mapped`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_mapped
1521 [`Ipv6Addr::segments`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.segments
1522 [`Ipv6Addr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_unspecified
1523 [`Ipv6Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_loopback
1524 [`Ipv6Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_multicast
1525 [`Ipv6Addr::to_ipv4`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.to_ipv4
1526 [`Layout::align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.align
1527 [`Layout::from_size_align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.from_size_align
1528 [`Layout::size`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.size
1529 [`Ord::clamp`]: https://doc.rust-lang.org/stable/std/cmp/trait.Ord.html#method.clamp
1530 [`RefCell::take`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.take
1531 [`UnsafeCell::get_mut`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.get_mut
1532 [`bool::then`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then
1533 [`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
1534 [`f32::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.clamp
1535 [`f64::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.clamp
1536 [`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
1537 [`slice::fill`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.fill
1538
1539
1540 Version 1.49.0 (2020-12-31)
1541 ============================
1542
1543 Language
1544 -----------------------
1545
1546 - [Unions can now implement `Drop`, and you can now have a field in a union
1547   with `ManuallyDrop<T>`.][77547]
1548 - [You can now cast uninhabited enums to integers.][76199]
1549 - [You can now bind by reference and by move in patterns.][76119] This
1550   allows you to selectively borrow individual components of a type. E.g.
1551   ```rust
1552   #[derive(Debug)]
1553   struct Person {
1554       name: String,
1555       age: u8,
1556   }
1557
1558   let person = Person {
1559       name: String::from("Alice"),
1560       age: 20,
1561   };
1562
1563   // `name` is moved out of person, but `age` is referenced.
1564   let Person { name, ref age } = person;
1565   println!("{} {}", name, age);
1566   ```
1567
1568 Compiler
1569 -----------------------
1570
1571 - [Added tier 1\* support for `aarch64-unknown-linux-gnu`.][78228]
1572 - [Added tier 2 support for `aarch64-apple-darwin`.][75991]
1573 - [Added tier 2 support for `aarch64-pc-windows-msvc`.][75914]
1574 - [Added tier 3 support for `mipsel-unknown-none`.][78676]
1575 - [Raised the minimum supported LLVM version to LLVM 9.][78848]
1576 - [Output from threads spawned in tests is now captured.][78227]
1577 - [Change os and vendor values to "none" and "unknown" for some targets][78951]
1578
1579 \* Refer to Rust's [platform support page][platform-support-doc] for more
1580 information on Rust's tiered platform support.
1581
1582 Libraries
1583 -----------------------
1584
1585 - [`RangeInclusive` now checks for exhaustion when calling `contains` and indexing.][78109]
1586 - [`ToString::to_string` now no longer shrinks the internal buffer in the default implementation.][77997]
1587
1588 Stabilized APIs
1589 ---------------
1590
1591 - [`slice::select_nth_unstable`]
1592 - [`slice::select_nth_unstable_by`]
1593 - [`slice::select_nth_unstable_by_key`]
1594
1595 The following previously stable methods are now `const`.
1596
1597 - [`Poll::is_ready`]
1598 - [`Poll::is_pending`]
1599
1600 Cargo
1601 -----------------------
1602 - [Building a crate with `cargo-package` should now be independently reproducible.][cargo/8864]
1603 - [`cargo-tree` now marks proc-macro crates.][cargo/8765]
1604 - [Added `CARGO_PRIMARY_PACKAGE` build-time environment variable.][cargo/8758] This
1605   variable will be set if the crate being built is one the user selected to build, either
1606   with `-p` or through defaults.
1607 - [You can now use glob patterns when specifying packages & targets.][cargo/8752]
1608
1609
1610 Compatibility Notes
1611 -------------------
1612
1613 - [Demoted `i686-unknown-freebsd` from host tier 2 to target tier 2 support.][78746]
1614 - [Macros that end with a semi-colon are now treated as statements even if they expand to nothing.][78376]
1615 - [Rustc will now check for the validity of some built-in attributes on enum variants.][77015]
1616   Previously such invalid or unused attributes could be ignored.
1617 - Leading whitespace is stripped more uniformly in documentation comments, which may change behavior. You
1618   read [this post about the changes][rustdoc-ws-post] for more details.
1619 - [Trait bounds are no longer inferred for associated types.][79904]
1620
1621 Internal Only
1622 -------------
1623 These changes provide no direct user facing benefits, but represent significant
1624 improvements to the internals and overall performance of rustc and
1625 related tools.
1626
1627 - [rustc's internal crates are now compiled using the `initial-exec` Thread
1628   Local Storage model.][78201]
1629 - [Calculate visibilities once in resolve.][78077]
1630 - [Added `system` to the `llvm-libunwind` bootstrap config option.][77703]
1631 - [Added `--color` for configuring terminal color support to bootstrap.][79004]
1632
1633
1634 [75991]: https://github.com/rust-lang/rust/pull/75991
1635 [78951]: https://github.com/rust-lang/rust/pull/78951
1636 [78848]: https://github.com/rust-lang/rust/pull/78848
1637 [78746]: https://github.com/rust-lang/rust/pull/78746
1638 [78376]: https://github.com/rust-lang/rust/pull/78376
1639 [78228]: https://github.com/rust-lang/rust/pull/78228
1640 [78227]: https://github.com/rust-lang/rust/pull/78227
1641 [78201]: https://github.com/rust-lang/rust/pull/78201
1642 [78109]: https://github.com/rust-lang/rust/pull/78109
1643 [78077]: https://github.com/rust-lang/rust/pull/78077
1644 [77997]: https://github.com/rust-lang/rust/pull/77997
1645 [77703]: https://github.com/rust-lang/rust/pull/77703
1646 [77547]: https://github.com/rust-lang/rust/pull/77547
1647 [77015]: https://github.com/rust-lang/rust/pull/77015
1648 [76199]: https://github.com/rust-lang/rust/pull/76199
1649 [76119]: https://github.com/rust-lang/rust/pull/76119
1650 [75914]: https://github.com/rust-lang/rust/pull/75914
1651 [79004]: https://github.com/rust-lang/rust/pull/79004
1652 [78676]: https://github.com/rust-lang/rust/pull/78676
1653 [79904]: https://github.com/rust-lang/rust/issues/79904
1654 [cargo/8864]: https://github.com/rust-lang/cargo/pull/8864
1655 [cargo/8765]: https://github.com/rust-lang/cargo/pull/8765
1656 [cargo/8758]: https://github.com/rust-lang/cargo/pull/8758
1657 [cargo/8752]: https://github.com/rust-lang/cargo/pull/8752
1658 [`slice::select_nth_unstable`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable
1659 [`slice::select_nth_unstable_by`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by
1660 [`slice::select_nth_unstable_by_key`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by_key
1661 [`Poll::is_ready`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_ready
1662 [`Poll::is_pending`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_pending
1663 [rustdoc-ws-post]: https://blog.guillaume-gomez.fr/articles/2020-11-11+New+doc+comment+handling+in+rustdoc
1664
1665 Version 1.48.0 (2020-11-19)
1666 ==========================
1667
1668 Language
1669 --------
1670
1671 - [The `unsafe` keyword is now syntactically permitted on modules.][75857] This
1672   is still rejected *semantically*, but can now be parsed by procedural macros.
1673
1674 Compiler
1675 --------
1676 - [Stabilised the `-C link-self-contained=<yes|no>` compiler flag.][76158] This tells
1677   `rustc` whether to link its own C runtime and libraries or to rely on a external
1678   linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.)
1679 - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386]
1680   Note: If you're using cargo you must explicitly pass the `--target` flag.
1681 - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420]
1682
1683 \* Refer to Rust's [platform support page][platform-support-doc] for more
1684 information on Rust's tiered platform support.
1685
1686 Libraries
1687 ---------
1688 - [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`,
1689   and `&Stderr`.][76275]
1690 - [All arrays of any length now implement `TryFrom<Vec<T>>`.][76310]
1691 - [The `matches!` macro now supports having a trailing comma.][74880]
1692 - [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194]
1693 - [The `RefCell::{replace, replace_with, clone}` methods now all use `#[track_caller]`.][77055]
1694
1695 Stabilized APIs
1696 ---------------
1697 - [`slice::as_ptr_range`]
1698 - [`slice::as_mut_ptr_range`]
1699 - [`VecDeque::make_contiguous`]
1700 - [`future::pending`]
1701 - [`future::ready`]
1702
1703 The following previously stable methods are now `const fn`'s:
1704
1705 - [`Option::is_some`]
1706 - [`Option::is_none`]
1707 - [`Option::as_ref`]
1708 - [`Result::is_ok`]
1709 - [`Result::is_err`]
1710 - [`Result::as_ref`]
1711 - [`Ordering::reverse`]
1712 - [`Ordering::then`]
1713
1714 Cargo
1715 -----
1716
1717 Rustdoc
1718 -------
1719 - [You can now link to items in `rustdoc` using the intra-doc link
1720   syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate
1721   a link to `std::future`'s documentation. See ["Linking to items by
1722   name"][intradoc-links] for more information.
1723 - [You can now specify `#[doc(alias = "<alias>")]` on items to add search aliases
1724   when searching through `rustdoc`'s UI.][75740]
1725
1726 Compatibility Notes
1727 -------------------
1728 - [Promotion of references to `'static` lifetime inside `const fn` now follows the
1729   same rules as inside a `fn` body.][75502] In particular, `&foo()` will not be
1730   promoted to `'static` lifetime any more inside `const fn`s.
1731 - [Associated type bindings on trait objects are now verified to meet the bounds
1732   declared on the trait when checking that they implement the trait.][27675]
1733 - [When trait bounds on associated types or opaque types are ambiguous, the
1734   compiler no longer makes an arbitrary choice on which bound to use.][54121]
1735 - [Fixed recursive nonterminals not being expanded in macros during
1736   pretty-print/reparse check.][77153] This may cause errors if your macro wasn't
1737   correctly handling recursive nonterminal tokens.
1738 - [`&mut` references to non zero-sized types are no longer promoted.][75585]
1739 - [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]`
1740   in places where they have no effect.][73461]
1741 - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in
1742   `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166]
1743 - [`mem::uninitialized` will now panic if any inner types inside a struct or enum
1744   disallow zero-initialization.][71274]
1745 - [`#[target_feature]` will now error if used in a place where it has no effect.][78143]
1746 - [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212]
1747   Note: This behaviour is not guaranteed and is still considered undefined behaviour,
1748   see the [`catch_unwind`] documentation for further information.
1749
1750
1751
1752 Internal Only
1753 -------------
1754 These changes provide no direct user facing benefits, but represent significant
1755 improvements to the internals and overall performance of rustc and
1756 related tools.
1757
1758 - [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
1759   You can continue building with `make` by setting `ninja=false` in
1760   your `config.toml`.
1761 - [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
1762 - [Made `ensure_sufficient_stack()` non-generic][76680]
1763
1764 [78143]: https://github.com/rust-lang/rust/issues/78143
1765 [76680]: https://github.com/rust-lang/rust/pull/76680/
1766 [76030]: https://github.com/rust-lang/rust/pull/76030/
1767 [70212]: https://github.com/rust-lang/rust/pull/70212/
1768 [27675]: https://github.com/rust-lang/rust/issues/27675/
1769 [54121]: https://github.com/rust-lang/rust/issues/54121/
1770 [71274]: https://github.com/rust-lang/rust/pull/71274/
1771 [77386]: https://github.com/rust-lang/rust/pull/77386/
1772 [77153]: https://github.com/rust-lang/rust/pull/77153/
1773 [77055]: https://github.com/rust-lang/rust/pull/77055/
1774 [76275]: https://github.com/rust-lang/rust/pull/76275/
1775 [76310]: https://github.com/rust-lang/rust/pull/76310/
1776 [76420]: https://github.com/rust-lang/rust/pull/76420/
1777 [76158]: https://github.com/rust-lang/rust/pull/76158/
1778 [75857]: https://github.com/rust-lang/rust/pull/75857/
1779 [75585]: https://github.com/rust-lang/rust/pull/75585/
1780 [75740]: https://github.com/rust-lang/rust/pull/75740/
1781 [75502]: https://github.com/rust-lang/rust/pull/75502/
1782 [74880]: https://github.com/rust-lang/rust/pull/74880/
1783 [74922]: https://github.com/rust-lang/rust/pull/74922/
1784 [74430]: https://github.com/rust-lang/rust/pull/74430/
1785 [74194]: https://github.com/rust-lang/rust/pull/74194/
1786 [73461]: https://github.com/rust-lang/rust/pull/73461/
1787 [73166]: https://github.com/rust-lang/rust/pull/73166/
1788 [intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
1789 [`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
1790 [`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some
1791 [`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none
1792 [`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref
1793 [`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok
1794 [`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err
1795 [`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref
1796 [`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse
1797 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
1798 [`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range
1799 [`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range
1800 [`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous
1801 [`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html
1802 [`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html
1803
1804
1805 Version 1.47.0 (2020-10-08)
1806 ==========================
1807
1808 Language
1809 --------
1810 - [Closures will now warn when not used.][74869]
1811
1812 Compiler
1813 --------
1814 - [Stabilized the `-C control-flow-guard` codegen option][73893], which enables
1815   [Control Flow Guard][1.47.0-cfg] for Windows platforms, and is ignored on other
1816   platforms.
1817 - [Upgraded to LLVM 11.][73526]
1818 - [Added tier 3\* support for the `thumbv4t-none-eabi` target.][74419]
1819 - [Upgrade the FreeBSD toolchain to version 11.4][75204]
1820 - [`RUST_BACKTRACE`'s output is now more compact.][75048]
1821
1822 \* Refer to Rust's [platform support page][platform-support-doc] for more
1823 information on Rust's tiered platform support.
1824
1825 Libraries
1826 ---------
1827 - [`CStr` now implements `Index<RangeFrom<usize>>`.][74021]
1828 - [Traits in `std`/`core` are now implemented for arrays of any length, not just
1829   those of length less than 33.][74060]
1830 - [`ops::RangeFull` and `ops::Range` now implement Default.][73197]
1831 - [`panic::Location` now implements `Copy`, `Clone`, `Eq`, `Hash`, `Ord`,
1832   `PartialEq`, and `PartialOrd`.][73583]
1833
1834 Stabilized APIs
1835 ---------------
1836 - [`Ident::new_raw`]
1837 - [`Range::is_empty`]
1838 - [`RangeInclusive::is_empty`]
1839 - [`Result::as_deref`]
1840 - [`Result::as_deref_mut`]
1841 - [`Vec::leak`]
1842 - [`pointer::offset_from`]
1843 - [`f32::TAU`]
1844 - [`f64::TAU`]
1845
1846 The following previously stable APIs have now been made const.
1847
1848 - [The `new` method for all `NonZero` integers.][73858]
1849 - [The `checked_add`,`checked_sub`,`checked_mul`,`checked_neg`, `checked_shl`,
1850   `checked_shr`, `saturating_add`, `saturating_sub`, and `saturating_mul`
1851   methods for all integers.][73858]
1852 - [The `checked_abs`, `saturating_abs`, `saturating_neg`, and `signum`  for all
1853   signed integers.][73858]
1854 - [The `is_ascii_alphabetic`, `is_ascii_uppercase`, `is_ascii_lowercase`,
1855   `is_ascii_alphanumeric`, `is_ascii_digit`, `is_ascii_hexdigit`,
1856   `is_ascii_punctuation`, `is_ascii_graphic`, `is_ascii_whitespace`, and
1857   `is_ascii_control` methods for `char` and `u8`.][73858]
1858
1859 Cargo
1860 -----
1861 - [`build-dependencies` are now built with opt-level 0 by default.][cargo/8500]
1862   You can override this by setting the following in your `Cargo.toml`.
1863   ```toml
1864   [profile.release.build-override]
1865   opt-level = 3
1866   ```
1867 - [`cargo-help` will now display man pages for commands rather just the
1868   `--help` text.][cargo/8456]
1869 - [`cargo-metadata` now emits a `test` field indicating if a target has
1870   tests enabled.][cargo/8478]
1871 - [`workspace.default-members` now respects `workspace.exclude`.][cargo/8485]
1872 - [`cargo-publish` will now use an alternative registry by default if it's the
1873   only registry specified in `package.publish`.][cargo/8571]
1874
1875 Misc
1876 ----
1877 - [Added a help button beside Rustdoc's searchbar that explains rustdoc's
1878   type based search.][75366]
1879 - [Added the Ayu theme to rustdoc.][71237]
1880
1881 Compatibility Notes
1882 -------------------
1883 - [Bumped the minimum supported Emscripten version to 1.39.20.][75716]
1884 - [Fixed a regression parsing `{} && false` in tail expressions.][74650]
1885 - [Added changes to how proc-macros are expanded in `macro_rules!` that should
1886   help to preserve more span information.][73084] These changes may cause
1887   compiliation errors if your macro was unhygenic or didn't correctly handle
1888   `Delimiter::None`.
1889 - [Moved support for the CloudABI target to tier 3.][75568]
1890 - [`linux-gnu` targets now require minimum kernel 2.6.32 and glibc 2.11.][74163]
1891 - [Added the `rustc-docs` component.][75560] This allows you to install
1892   and read the documentation for the compiler internal APIs. (Currently only
1893   available for `x86_64-unknown-linux-gnu`.)
1894
1895 Internal Only
1896 --------
1897
1898 - [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.
1899
1900 [1.47.0-cfg]: https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard
1901 [75048]: https://github.com/rust-lang/rust/pull/75048/
1902 [74163]: https://github.com/rust-lang/rust/pull/74163/
1903 [71237]: https://github.com/rust-lang/rust/pull/71237/
1904 [74869]: https://github.com/rust-lang/rust/pull/74869/
1905 [73858]: https://github.com/rust-lang/rust/pull/73858/
1906 [75716]: https://github.com/rust-lang/rust/pull/75716/
1907 [75560]: https://github.com/rust-lang/rust/pull/75560/
1908 [75568]: https://github.com/rust-lang/rust/pull/75568/
1909 [75366]: https://github.com/rust-lang/rust/pull/75366/
1910 [75204]: https://github.com/rust-lang/rust/pull/75204/
1911 [74650]: https://github.com/rust-lang/rust/pull/74650/
1912 [74419]: https://github.com/rust-lang/rust/pull/74419/
1913 [73964]: https://github.com/rust-lang/rust/pull/73964/
1914 [74021]: https://github.com/rust-lang/rust/pull/74021/
1915 [74060]: https://github.com/rust-lang/rust/pull/74060/
1916 [73893]: https://github.com/rust-lang/rust/pull/73893/
1917 [73526]: https://github.com/rust-lang/rust/pull/73526/
1918 [73583]: https://github.com/rust-lang/rust/pull/73583/
1919 [73084]: https://github.com/rust-lang/rust/pull/73084/
1920 [73197]: https://github.com/rust-lang/rust/pull/73197/
1921 [cargo/8456]: https://github.com/rust-lang/cargo/pull/8456/
1922 [cargo/8478]: https://github.com/rust-lang/cargo/pull/8478/
1923 [cargo/8485]: https://github.com/rust-lang/cargo/pull/8485/
1924 [cargo/8500]: https://github.com/rust-lang/cargo/pull/8500/
1925 [cargo/8571]: https://github.com/rust-lang/cargo/pull/8571/
1926 [`Ident::new_raw`]:  https://doc.rust-lang.org/nightly/proc_macro/struct.Ident.html#method.new_raw
1927 [`Range::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.Range.html#method.is_empty
1928 [`RangeInclusive::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html#method.is_empty
1929 [`Result::as_deref_mut`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref_mut
1930 [`Result::as_deref`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref
1931 [`Vec::leak`]: https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.leak
1932 [`f32::TAU`]: https://doc.rust-lang.org/nightly/std/f32/consts/constant.TAU.html
1933 [`f64::TAU`]: https://doc.rust-lang.org/nightly/std/f64/consts/constant.TAU.html
1934 [`pointer::offset_from`]: https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset_from
1935
1936
1937 Version 1.46.0 (2020-08-27)
1938 ==========================
1939
1940 Language
1941 --------
1942 - [`if`, `match`, and `loop` expressions can now be used in const functions.][72437]
1943 - [Additionally you are now also able to coerce and cast to slices (`&[T]`) in
1944   const functions.][73862]
1945 - [The `#[track_caller]` attribute can now be added to functions to use the
1946   function's caller's location information for panic messages.][72445]
1947 - [Recursively indexing into tuples no longer needs parentheses.][71322] E.g.
1948   `x.0.0` over `(x.0).0`.
1949 - [`mem::transmute` can now be used in statics and constants.][72920] **Note**
1950   You currently can't use `mem::transmute` in constant functions.
1951
1952 Compiler
1953 --------
1954 - [You can now use the `cdylib` target on Apple iOS and tvOS platforms.][73516]
1955 - [Enabled static "Position Independent Executables" by default
1956   for `x86_64-unknown-linux-musl`.][70740]
1957
1958 Libraries
1959 ---------
1960 - [`mem::forget` is now a `const fn`.][73887]
1961 - [`String` now implements `From<char>`.][73466]
1962 - [The `leading_ones`, and `trailing_ones` methods have been stabilised for all
1963   integer types.][73032]
1964 - [`vec::IntoIter<T>` now implements `AsRef<[T]>`.][72583]
1965 - [All non-zero integer types (`NonZeroU8`) now implement `TryFrom` for their
1966   zero-able equivalent (e.g. `TryFrom<u8>`).][72717]
1967 - [`&[T]` and `&mut [T]` now implement `PartialEq<Vec<T>>`.][71660]
1968 - [`(String, u16)` now implements `ToSocketAddrs`.][73007]
1969 - [`vec::Drain<'_, T>` now implements `AsRef<[T]>`.][72584]
1970
1971 Stabilized APIs
1972 ---------------
1973 - [`Option::zip`]
1974 - [`vec::Drain::as_slice`]
1975
1976 Cargo
1977 -----
1978 Added a number of new environment variables that are now available when
1979 compiling your crate.
1980
1981 - [`CARGO_BIN_NAME` and `CARGO_CRATE_NAME`][cargo/8270] Providing the name of
1982   the specific binary being compiled and the name of the crate.
1983 - [`CARGO_PKG_LICENSE`][cargo/8325] The license from the manifest of the package.
1984 - [`CARGO_PKG_LICENSE_FILE`][cargo/8387] The path to the license file.
1985
1986 Compatibility Notes
1987 -------------------
1988 - [The target configuration option `abi_blacklist` has been renamed
1989   to `unsupported_abis`.][74150] The old name will still continue to work.
1990 - [Rustc will now warn if you cast a C-like enum that implements `Drop`.][72331]
1991   This was previously accepted but will become a hard error in a future release.
1992 - [Rustc will fail to compile if you have a struct with
1993   `#[repr(i128)]` or `#[repr(u128)]`.][74109] This representation is currently only
1994   allowed on `enum`s.
1995 - [Tokens passed to `macro_rules!` are now always captured.][73293] This helps
1996   ensure that spans have the correct information, and may cause breakage if you
1997   were relying on receiving spans with dummy information.
1998 - [The InnoSetup installer for Windows is no longer available.][72569] This was
1999   a legacy installer that was replaced by a MSI installer a few years ago but
2000   was still being built.
2001 - [`{f32, f64}::asinh` now returns the correct values for negative numbers.][72486]
2002 - [Rustc will no longer accept overlapping trait implementations that only
2003   differ in how the lifetime was bound.][72493]
2004 - [Rustc now correctly relates the lifetime of an existential associated
2005   type.][71896] This fixes some edge cases where `rustc` would erroneously allow
2006   you to pass a shorter lifetime than expected.
2007 - [Rustc now dynamically links to `libz` (also called `zlib`) on Linux.][74420]
2008   The library will need to be installed for `rustc` to work, even though we
2009   expect it to be already available on most systems.
2010 - [Tests annotated with `#[should_panic]` are broken on ARMv7 while running
2011   under QEMU.][74820]
2012 - [Pretty printing of some tokens in procedural macros changed.][75453] The
2013   exact output returned by rustc's pretty printing is an unstable
2014   implementation detail: we recommend any macro relying on it to switch to a
2015   more robust parsing system.
2016
2017 [75453]: https://github.com/rust-lang/rust/issues/75453/
2018 [74820]: https://github.com/rust-lang/rust/issues/74820/
2019 [74420]: https://github.com/rust-lang/rust/issues/74420/
2020 [74109]: https://github.com/rust-lang/rust/pull/74109/
2021 [74150]: https://github.com/rust-lang/rust/pull/74150/
2022 [73862]: https://github.com/rust-lang/rust/pull/73862/
2023 [73887]: https://github.com/rust-lang/rust/pull/73887/
2024 [73466]: https://github.com/rust-lang/rust/pull/73466/
2025 [73516]: https://github.com/rust-lang/rust/pull/73516/
2026 [73293]: https://github.com/rust-lang/rust/pull/73293/
2027 [73007]: https://github.com/rust-lang/rust/pull/73007/
2028 [73032]: https://github.com/rust-lang/rust/pull/73032/
2029 [72920]: https://github.com/rust-lang/rust/pull/72920/
2030 [72569]: https://github.com/rust-lang/rust/pull/72569/
2031 [72583]: https://github.com/rust-lang/rust/pull/72583/
2032 [72584]: https://github.com/rust-lang/rust/pull/72584/
2033 [72717]: https://github.com/rust-lang/rust/pull/72717/
2034 [72437]: https://github.com/rust-lang/rust/pull/72437/
2035 [72445]: https://github.com/rust-lang/rust/pull/72445/
2036 [72486]: https://github.com/rust-lang/rust/pull/72486/
2037 [72493]: https://github.com/rust-lang/rust/pull/72493/
2038 [72331]: https://github.com/rust-lang/rust/pull/72331/
2039 [71896]: https://github.com/rust-lang/rust/pull/71896/
2040 [71660]: https://github.com/rust-lang/rust/pull/71660/
2041 [71322]: https://github.com/rust-lang/rust/pull/71322/
2042 [70740]: https://github.com/rust-lang/rust/pull/70740/
2043 [cargo/8270]: https://github.com/rust-lang/cargo/pull/8270/
2044 [cargo/8325]: https://github.com/rust-lang/cargo/pull/8325/
2045 [cargo/8387]: https://github.com/rust-lang/cargo/pull/8387/
2046 [`Option::zip`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.zip
2047 [`vec::Drain::as_slice`]: https://doc.rust-lang.org/stable/std/vec/struct.Drain.html#method.as_slice
2048
2049
2050 Version 1.45.2 (2020-08-03)
2051 ==========================
2052
2053 * [Fix bindings in tuple struct patterns][74954]
2054 * [Fix track_caller integration with trait objects][74784]
2055
2056 [74954]: https://github.com/rust-lang/rust/issues/74954
2057 [74784]: https://github.com/rust-lang/rust/issues/74784
2058
2059
2060 Version 1.45.1 (2020-07-30)
2061 ==========================
2062
2063 * [Fix const propagation with references.][73613]
2064 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2065 * [Avoid spurious implicit region bound.][74509]
2066 * [Install clippy on x.py install][74457]
2067
2068 [73613]: https://github.com/rust-lang/rust/pull/73613
2069 [73078]: https://github.com/rust-lang/rust/issues/73078
2070 [74509]: https://github.com/rust-lang/rust/pull/74509
2071 [74457]: https://github.com/rust-lang/rust/pull/74457
2072
2073
2074 Version 1.45.0 (2020-07-16)
2075 ==========================
2076
2077 Language
2078 --------
2079 - [Out of range float to int conversions using `as` has been defined as a saturating
2080   conversion.][71269] This was previously undefined behaviour, but you can use the
2081    `{f64, f32}::to_int_unchecked` methods to continue using the current behaviour, which
2082    may be desirable in rare performance sensitive situations.
2083 - [`mem::Discriminant<T>` now uses `T`'s discriminant type instead of always
2084   using `u64`.][70705]
2085 - [Function like procedural macros can now be used in expression, pattern, and  statement
2086   positions.][68717] This means you can now use a function-like procedural macro
2087   anywhere you can use a declarative (`macro_rules!`) macro.
2088
2089 Compiler
2090 --------
2091 - [You can now override individual target features through the `target-feature`
2092   flag.][72094] E.g. `-C target-feature=+avx2 -C target-feature=+fma` is now
2093   equivalent to `-C target-feature=+avx2,+fma`.
2094 - [Added the `force-unwind-tables` flag.][69984] This option allows
2095   rustc to always generate unwind tables regardless of panic strategy.
2096 - [Added the `embed-bitcode` flag.][71716] This codegen flag allows rustc
2097   to include LLVM bitcode into generated `rlib`s (this is on by default).
2098 - [Added the `tiny` value to the `code-model` codegen flag.][72397]
2099 - [Added tier 3 support\* for the `mipsel-sony-psp` target.][72062]
2100 - [Added tier 3 support for the `thumbv7a-uwp-windows-msvc` target.][72133]
2101 - [Upgraded to LLVM 10.][67759]
2102
2103 \* Refer to Rust's [platform support page][platform-support-doc] for more
2104 information on Rust's tiered platform support.
2105
2106
2107 Libraries
2108 ---------
2109 - [`net::{SocketAddr, SocketAddrV4, SocketAddrV6}` now implements `PartialOrd`
2110   and `Ord`.][72239]
2111 - [`proc_macro::TokenStream` now implements `Default`.][72234]
2112 - [You can now use `char` with
2113   `ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeTo}` to iterate over
2114   a range of codepoints.][72413] E.g.
2115   you can now write the following;
2116   ```rust
2117   for ch in 'a'..='z' {
2118       print!("{}", ch);
2119   }
2120   println!();
2121   // Prints "abcdefghijklmnopqrstuvwxyz"
2122   ```
2123 - [`OsString` now implements `FromStr`.][71662]
2124 - [The `saturating_neg` method has been added to all signed integer primitive
2125   types, and the `saturating_abs` method has been added for all integer
2126   primitive types.][71886]
2127 - [`Arc<T>`, `Rc<T>` now implement  `From<Cow<'_, T>>`, and `Box` now
2128   implements `From<Cow>` when `T` is `[T: Copy]`, `str`, `CStr`, `OsStr`,
2129   or `Path`.][71447]
2130 - [`Box<[T]>` now implements `From<[T; N]>`.][71095]
2131 - [`BitOr` and `BitOrAssign` are implemented for all `NonZero`
2132   integer types.][69813]
2133 - [The `fetch_min`, and `fetch_max` methods have been added to all atomic
2134   integer types.][72324]
2135 - [The `fetch_update` method has been added to all atomic integer types.][71843]
2136
2137 Stabilized APIs
2138 ---------------
2139 - [`Arc::as_ptr`]
2140 - [`BTreeMap::remove_entry`]
2141 - [`Rc::as_ptr`]
2142 - [`rc::Weak::as_ptr`]
2143 - [`rc::Weak::from_raw`]
2144 - [`rc::Weak::into_raw`]
2145 - [`str::strip_prefix`]
2146 - [`str::strip_suffix`]
2147 - [`sync::Weak::as_ptr`]
2148 - [`sync::Weak::from_raw`]
2149 - [`sync::Weak::into_raw`]
2150 - [`char::UNICODE_VERSION`]
2151 - [`Span::resolved_at`]
2152 - [`Span::located_at`]
2153 - [`Span::mixed_site`]
2154 - [`unix::process::CommandExt::arg0`]
2155
2156 Cargo
2157 -----
2158
2159 - [Cargo uses the `embed-bitcode` flag to optimize disk usage and build
2160   time.][cargo/8066]
2161
2162 Misc
2163 ----
2164 - [Rustdoc now supports strikethrough text in Markdown.][71928] E.g.
2165   `~~outdated information~~` becomes "~~outdated information~~".
2166 - [Added an emoji to Rustdoc's deprecated API message.][72014]
2167
2168 Compatibility Notes
2169 -------------------
2170 - [Trying to self initialize a static value (that is creating a value using
2171   itself) is unsound and now causes a compile error.][71140]
2172 - [`{f32, f64}::powi` now returns a slightly different value on Windows.][73420]
2173   This is due to changes in LLVM's intrinsics which `{f32, f64}::powi` uses.
2174 - [Rustdoc's CLI's extra error exit codes have been removed.][71900] These were
2175   previously undocumented and not intended for public use. Rustdoc still provides
2176   a non-zero exit code on errors.
2177 - [Rustc's `lto` flag is incompatible with the new `embed-bitcode=no`.][71848]
2178   This may cause issues if LTO is enabled through `RUSTFLAGS` or `cargo rustc`
2179   flags while cargo is adding `embed-bitcode` itself. The recommended way to
2180   control LTO is with Cargo profiles, either in `Cargo.toml` or `.cargo/config`,
2181   or by setting `CARGO_PROFILE_<name>_LTO` in the environment.
2182
2183 Internals Only
2184 --------------
2185 - [Make clippy a git subtree instead of a git submodule][70655]
2186 - [Unify the undo log of all snapshot types][69464]
2187
2188 [71848]: https://github.com/rust-lang/rust/issues/71848/
2189 [73420]: https://github.com/rust-lang/rust/issues/73420/
2190 [72324]: https://github.com/rust-lang/rust/pull/72324/
2191 [71843]: https://github.com/rust-lang/rust/pull/71843/
2192 [71886]: https://github.com/rust-lang/rust/pull/71886/
2193 [72234]: https://github.com/rust-lang/rust/pull/72234/
2194 [72239]: https://github.com/rust-lang/rust/pull/72239/
2195 [72397]: https://github.com/rust-lang/rust/pull/72397/
2196 [72413]: https://github.com/rust-lang/rust/pull/72413/
2197 [72014]: https://github.com/rust-lang/rust/pull/72014/
2198 [72062]: https://github.com/rust-lang/rust/pull/72062/
2199 [72094]: https://github.com/rust-lang/rust/pull/72094/
2200 [72133]: https://github.com/rust-lang/rust/pull/72133/
2201 [67759]: https://github.com/rust-lang/rust/pull/67759/
2202 [71900]: https://github.com/rust-lang/rust/pull/71900/
2203 [71928]: https://github.com/rust-lang/rust/pull/71928/
2204 [71662]: https://github.com/rust-lang/rust/pull/71662/
2205 [71716]: https://github.com/rust-lang/rust/pull/71716/
2206 [71447]: https://github.com/rust-lang/rust/pull/71447/
2207 [71269]: https://github.com/rust-lang/rust/pull/71269/
2208 [71095]: https://github.com/rust-lang/rust/pull/71095/
2209 [71140]: https://github.com/rust-lang/rust/pull/71140/
2210 [70655]: https://github.com/rust-lang/rust/pull/70655/
2211 [70705]: https://github.com/rust-lang/rust/pull/70705/
2212 [69984]: https://github.com/rust-lang/rust/pull/69984/
2213 [69813]: https://github.com/rust-lang/rust/pull/69813/
2214 [69464]: https://github.com/rust-lang/rust/pull/69464/
2215 [68717]: https://github.com/rust-lang/rust/pull/68717/
2216 [cargo/8066]: https://github.com/rust-lang/cargo/pull/8066
2217 [`Arc::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.as_ptr
2218 [`BTreeMap::remove_entry`]: https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.remove_entry
2219 [`Rc::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.as_ptr
2220 [`rc::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.as_ptr
2221 [`rc::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.from_raw
2222 [`rc::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.into_raw
2223 [`sync::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.as_ptr
2224 [`sync::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.from_raw
2225 [`sync::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.into_raw
2226 [`str::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_prefix
2227 [`str::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_suffix
2228 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/stable/std/char/constant.UNICODE_VERSION.html
2229 [`Span::resolved_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.resolved_at
2230 [`Span::located_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.located_at
2231 [`Span::mixed_site`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.mixed_site
2232 [`unix::process::CommandExt::arg0`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.arg0
2233
2234
2235 Version 1.44.1 (2020-06-18)
2236 ===========================
2237
2238 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2239 * [Don't hash executable filenames on apple platforms, fixing backtraces.][cargo/8329]
2240 * [Fix crashes when finding backtrace on macOS.][71397]
2241 * [Clippy applies lint levels into different files.][clippy/5356]
2242
2243 [71397]: https://github.com/rust-lang/rust/issues/71397
2244 [73078]: https://github.com/rust-lang/rust/issues/73078
2245 [cargo/8329]: https://github.com/rust-lang/cargo/pull/8329
2246 [clippy/5356]: https://github.com/rust-lang/rust-clippy/issues/5356
2247
2248
2249 Version 1.44.0 (2020-06-04)
2250 ==========================
2251
2252 Language
2253 --------
2254 - [You can now use `async/.await` with `#[no_std]` enabled.][69033]
2255 - [Added the `unused_braces` lint.][70081]
2256
2257 **Syntax-only changes**
2258
2259 - [Expansion-driven outline module parsing][69838]
2260 ```rust
2261 #[cfg(FALSE)]
2262 mod foo {
2263     mod bar {
2264         mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
2265     }
2266 }
2267 ```
2268
2269 These are still rejected semantically, so you will likely receive an error but
2270 these changes can be seen and parsed by macros and conditional compilation.
2271
2272 Compiler
2273 --------
2274 - [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
2275   Additionally when in incremental mode rustc defaults to 256 codegen units.
2276 - [Refactored `catch_unwind` to have zero-cost, unless unwinding is enabled and
2277   a panic is thrown.][67502]
2278 - [Added tier 3\* support for the `aarch64-unknown-none` and
2279   `aarch64-unknown-none-softfloat` targets.][68334]
2280 - [Added tier 3 support for `arm64-apple-tvos` and
2281   `x86_64-apple-tvos` targets.][68191]
2282
2283
2284 Libraries
2285 ---------
2286 - [Special cased `vec![]` to map directly to `Vec::new()`.][70632] This allows
2287   `vec![]` to be able to be used in `const` contexts.
2288 - [`convert::Infallible` now implements `Hash`.][70281]
2289 - [`OsString` now implements `DerefMut` and `IndexMut` returning
2290   a `&mut OsStr`.][70048]
2291 - [Unicode 13 is now supported.][69929]
2292 - [`String` now implements `From<&mut str>`.][69661]
2293 - [`IoSlice` now implements `Copy`.][69403]
2294 - [`Vec<T>` now implements `From<[T; N]>`.][68692] Where `N` is at most 32.
2295 - [`proc_macro::LexError` now implements `fmt::Display` and `Error`.][68899]
2296 - [`from_le_bytes`, `to_le_bytes`, `from_be_bytes`, `to_be_bytes`,
2297   `from_ne_bytes`, and `to_ne_bytes` methods are now `const` for all
2298   integer types.][69373]
2299
2300 Stabilized APIs
2301 ---------------
2302 - [`PathBuf::with_capacity`]
2303 - [`PathBuf::capacity`]
2304 - [`PathBuf::clear`]
2305 - [`PathBuf::reserve`]
2306 - [`PathBuf::reserve_exact`]
2307 - [`PathBuf::shrink_to_fit`]
2308 - [`f32::to_int_unchecked`]
2309 - [`f64::to_int_unchecked`]
2310 - [`Layout::align_to`]
2311 - [`Layout::pad_to_align`]
2312 - [`Layout::array`]
2313 - [`Layout::extend`]
2314
2315 Cargo
2316 -----
2317 - [Added the `cargo tree` command which will print a tree graph of
2318   your dependencies.][cargo/8062] E.g.
2319   ```
2320     mdbook v0.3.2 (/Users/src/rust/mdbook)
2321   ├── ammonia v3.0.0
2322   │   ├── html5ever v0.24.0
2323   │   │   ├── log v0.4.8
2324   │   │   │   └── cfg-if v0.1.9
2325   │   │   ├── mac v0.1.1
2326   │   │   └── markup5ever v0.9.0
2327   │   │       ├── log v0.4.8 (*)
2328   │   │       ├── phf v0.7.24
2329   │   │       │   └── phf_shared v0.7.24
2330   │   │       │       ├── siphasher v0.2.3
2331   │   │       │       └── unicase v1.4.2
2332   │   │       │           [build-dependencies]
2333   │   │       │           └── version_check v0.1.5
2334   ...
2335   ```
2336   You can also display dependencies on multiple versions of the same crate with
2337   `cargo tree -d` (short for `cargo tree --duplicates`).
2338
2339 Misc
2340 ----
2341 - [Rustdoc now allows you to specify `--crate-version` to have rustdoc include
2342   the version in the sidebar.][69494]
2343
2344 Compatibility Notes
2345 -------------------
2346 - [Rustc now correctly generates static libraries on Windows GNU targets with
2347   the `.a` extension, rather than the previous `.lib`.][70937]
2348 - [Removed the `-C no_integrated_as` flag from rustc.][70345]
2349 - [The `file_name` property in JSON output of macro errors now points the actual
2350   source file rather than the previous format of `<NAME macros>`.][70969]
2351   **Note:** this may not point to a file that actually exists on the user's system.
2352 - [The minimum required external LLVM version has been bumped to LLVM 8.][71147]
2353 - [`mem::{zeroed, uninitialised}` will now panic when used with types that do
2354   not allow zero initialization such as `NonZeroU8`.][66059] This was
2355   previously a warning.
2356 - [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
2357   operator has been defined as a saturating operation.][71269] This was previously
2358   undefined behaviour, but you can use the `{f64, f32}::to_int_unchecked` methods to
2359   continue using the current behaviour, which may be desirable in rare performance
2360   sensitive situations.
2361
2362 Internal Only
2363 -------------
2364 These changes provide no direct user facing benefits, but represent significant
2365 improvements to the internals and overall performance of rustc and
2366 related tools.
2367
2368 - [dep_graph Avoid allocating a set on when the number reads are small.][69778]
2369 - [Replace big JS dict with JSON parsing.][71250]
2370
2371 [69373]: https://github.com/rust-lang/rust/pull/69373/
2372 [66059]: https://github.com/rust-lang/rust/pull/66059/
2373 [68191]: https://github.com/rust-lang/rust/pull/68191/
2374 [68899]: https://github.com/rust-lang/rust/pull/68899/
2375 [71147]: https://github.com/rust-lang/rust/pull/71147/
2376 [71250]: https://github.com/rust-lang/rust/pull/71250/
2377 [70937]: https://github.com/rust-lang/rust/pull/70937/
2378 [70969]: https://github.com/rust-lang/rust/pull/70969/
2379 [70632]: https://github.com/rust-lang/rust/pull/70632/
2380 [70281]: https://github.com/rust-lang/rust/pull/70281/
2381 [70345]: https://github.com/rust-lang/rust/pull/70345/
2382 [70048]: https://github.com/rust-lang/rust/pull/70048/
2383 [70081]: https://github.com/rust-lang/rust/pull/70081/
2384 [70156]: https://github.com/rust-lang/rust/pull/70156/
2385 [71269]: https://github.com/rust-lang/rust/pull/71269/
2386 [69838]: https://github.com/rust-lang/rust/pull/69838/
2387 [69929]: https://github.com/rust-lang/rust/pull/69929/
2388 [69661]: https://github.com/rust-lang/rust/pull/69661/
2389 [69778]: https://github.com/rust-lang/rust/pull/69778/
2390 [69494]: https://github.com/rust-lang/rust/pull/69494/
2391 [69403]: https://github.com/rust-lang/rust/pull/69403/
2392 [69033]: https://github.com/rust-lang/rust/pull/69033/
2393 [68692]: https://github.com/rust-lang/rust/pull/68692/
2394 [68334]: https://github.com/rust-lang/rust/pull/68334/
2395 [67502]: https://github.com/rust-lang/rust/pull/67502/
2396 [cargo/8062]: https://github.com/rust-lang/cargo/pull/8062/
2397 [`PathBuf::with_capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.with_capacity
2398 [`PathBuf::capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.capacity
2399 [`PathBuf::clear`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.clear
2400 [`PathBuf::reserve`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve
2401 [`PathBuf::reserve_exact`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve_exact
2402 [`PathBuf::shrink_to_fit`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.shrink_to_fit
2403 [`f32::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_int_unchecked
2404 [`f64::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_int_unchecked
2405 [`Layout::align_to`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.align_to
2406 [`Layout::pad_to_align`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.pad_to_align
2407 [`Layout::array`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.array
2408 [`Layout::extend`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.extend
2409
2410
2411 Version 1.43.1 (2020-05-07)
2412 ===========================
2413
2414 * [Updated openssl-src to 1.1.1g for CVE-2020-1967.][71430]
2415 * [Fixed the stabilization of AVX-512 features.][71473]
2416 * [Fixed `cargo package --list` not working with unpublished dependencies.][cargo/8151]
2417
2418 [71430]: https://github.com/rust-lang/rust/pull/71430
2419 [71473]: https://github.com/rust-lang/rust/issues/71473
2420 [cargo/8151]: https://github.com/rust-lang/cargo/issues/8151
2421
2422
2423 Version 1.43.0 (2020-04-23)
2424 ==========================
2425
2426 Language
2427 --------
2428 - [Fixed using binary operations with `&{number}` (e.g. `&1.0`) not having
2429   the type inferred correctly.][68129]
2430 - [Attributes such as `#[cfg()]` can now be used on `if` expressions.][69201]
2431
2432 **Syntax only changes**
2433 - [Allow `type Foo: Ord` syntactically.][69361]
2434 - [Fuse associated and extern items up to defaultness.][69194]
2435 - [Syntactically allow `self` in all `fn` contexts.][68764]
2436 - [Merge `fn` syntax + cleanup item parsing.][68728]
2437 - [`item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks.][69366]
2438   For example, you may now write:
2439   ```rust
2440   macro_rules! mac_trait {
2441       ($i:item) => {
2442           trait T { $i }
2443       }
2444   }
2445   mac_trait! {
2446       fn foo() {}
2447   }
2448   ```
2449
2450 These are still rejected *semantically*, so you will likely receive an error but
2451 these changes can be seen and parsed by macros and
2452 conditional compilation.
2453
2454
2455 Compiler
2456 --------
2457 - [You can now pass multiple lint flags to rustc to override the previous
2458   flags.][67885] For example; `rustc -D unused -A unused-variables` denies
2459   everything in the `unused` lint group except `unused-variables` which
2460   is explicitly allowed. However, passing `rustc -A unused-variables -D unused` denies
2461   everything in the `unused` lint group **including** `unused-variables` since
2462   the allow flag is specified before the deny flag (and therefore overridden).
2463 - [rustc will now prefer your system MinGW libraries over its bundled libraries
2464   if they are available on `windows-gnu`.][67429]
2465 - [rustc now buffers errors/warnings printed in JSON.][69227]
2466
2467 Libraries
2468 ---------
2469 - [`Arc<[T; N]>`, `Box<[T; N]>`, and `Rc<[T; N]>`, now implement
2470   `TryFrom<Arc<[T]>>`,`TryFrom<Box<[T]>>`, and `TryFrom<Rc<[T]>>`
2471   respectively.][69538] **Note** These conversions are only available when `N`
2472   is `0..=32`.
2473 - [You can now use associated constants on floats and integers directly, rather
2474   than having to import the module.][68952] e.g. You can now write `u32::MAX` or
2475   `f32::NAN` with no imports.
2476 - [`u8::is_ascii` is now `const`.][68984]
2477 - [`String` now implements `AsMut<str>`.][68742]
2478 - [Added the `primitive` module to `std` and `core`.][67637] This module
2479   reexports Rust's primitive types. This is mainly useful in macros
2480   where you want avoid these types being shadowed.
2481 - [Relaxed some of the trait bounds on `HashMap` and `HashSet`.][67642]
2482 - [`string::FromUtf8Error` now implements `Clone + Eq`.][68738]
2483
2484 Stabilized APIs
2485 ---------------
2486 - [`Once::is_completed`]
2487 - [`f32::LOG10_2`]
2488 - [`f32::LOG2_10`]
2489 - [`f64::LOG10_2`]
2490 - [`f64::LOG2_10`]
2491 - [`iter::once_with`]
2492
2493 Cargo
2494 -----
2495 - [You can now set config `[profile]`s in your `.cargo/config`, or through
2496   your environment.][cargo/7823]
2497 - [Cargo will now set `CARGO_BIN_EXE_<name>` pointing to a binary's
2498   executable path when running integration tests or benchmarks.][cargo/7697]
2499   `<name>` is the name of your binary as-is e.g. If you wanted the executable
2500   path for a binary named `my-program`you would use `env!("CARGO_BIN_EXE_my-program")`.
2501
2502 Misc
2503 ----
2504 - [Certain checks in the `const_err` lint were deemed unrelated to const
2505   evaluation][69185], and have been moved to the `unconditional_panic` and
2506   `arithmetic_overflow` lints.
2507
2508 Compatibility Notes
2509 -------------------
2510
2511 - [Having trailing syntax in the `assert!` macro is now a hard error.][69548] This
2512   has been a warning since 1.36.0.
2513 - [Fixed `Self` not having the correctly inferred type.][69340] This incorrectly
2514   led to some instances being accepted, and now correctly emits a hard error.
2515
2516 [69340]: https://github.com/rust-lang/rust/pull/69340
2517
2518 Internal Only
2519 -------------
2520 These changes provide no direct user facing benefits, but represent significant
2521 improvements to the internals and overall performance of `rustc` and
2522 related tools.
2523
2524 - [All components are now built with `opt-level=3` instead of `2`.][67878]
2525 - [Improved how rustc generates drop code.][67332]
2526 - [Improved performance from `#[inline]`-ing certain hot functions.][69256]
2527 - [traits: preallocate 2 Vecs of known initial size][69022]
2528 - [Avoid exponential behaviour when relating types][68772]
2529 - [Skip `Drop` terminators for enum variants without drop glue][68943]
2530 - [Improve performance of coherence checks][68966]
2531 - [Deduplicate types in the generator witness][68672]
2532 - [Invert control in struct_lint_level.][68725]
2533
2534 [67332]: https://github.com/rust-lang/rust/pull/67332/
2535 [67429]: https://github.com/rust-lang/rust/pull/67429/
2536 [67637]: https://github.com/rust-lang/rust/pull/67637/
2537 [67642]: https://github.com/rust-lang/rust/pull/67642/
2538 [67878]: https://github.com/rust-lang/rust/pull/67878/
2539 [67885]: https://github.com/rust-lang/rust/pull/67885/
2540 [68129]: https://github.com/rust-lang/rust/pull/68129/
2541 [68672]: https://github.com/rust-lang/rust/pull/68672/
2542 [68725]: https://github.com/rust-lang/rust/pull/68725/
2543 [68728]: https://github.com/rust-lang/rust/pull/68728/
2544 [68738]: https://github.com/rust-lang/rust/pull/68738/
2545 [68742]: https://github.com/rust-lang/rust/pull/68742/
2546 [68764]: https://github.com/rust-lang/rust/pull/68764/
2547 [68772]: https://github.com/rust-lang/rust/pull/68772/
2548 [68943]: https://github.com/rust-lang/rust/pull/68943/
2549 [68952]: https://github.com/rust-lang/rust/pull/68952/
2550 [68966]: https://github.com/rust-lang/rust/pull/68966/
2551 [68984]: https://github.com/rust-lang/rust/pull/68984/
2552 [69022]: https://github.com/rust-lang/rust/pull/69022/
2553 [69185]: https://github.com/rust-lang/rust/pull/69185/
2554 [69194]: https://github.com/rust-lang/rust/pull/69194/
2555 [69201]: https://github.com/rust-lang/rust/pull/69201/
2556 [69227]: https://github.com/rust-lang/rust/pull/69227/
2557 [69548]: https://github.com/rust-lang/rust/pull/69548/
2558 [69256]: https://github.com/rust-lang/rust/pull/69256/
2559 [69361]: https://github.com/rust-lang/rust/pull/69361/
2560 [69366]: https://github.com/rust-lang/rust/pull/69366/
2561 [69538]: https://github.com/rust-lang/rust/pull/69538/
2562 [cargo/7823]: https://github.com/rust-lang/cargo/pull/7823
2563 [cargo/7697]: https://github.com/rust-lang/cargo/pull/7697
2564 [`Once::is_completed`]: https://doc.rust-lang.org/std/sync/struct.Once.html#method.is_completed
2565 [`f32::LOG10_2`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG10_2.html
2566 [`f32::LOG2_10`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG2_10.html
2567 [`f64::LOG10_2`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG10_2.html
2568 [`f64::LOG2_10`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG2_10.html
2569 [`iter::once_with`]: https://doc.rust-lang.org/std/iter/fn.once_with.html
2570
2571
2572 Version 1.42.0 (2020-03-12)
2573 ==========================
2574
2575 Language
2576 --------
2577 - [You can now use the slice pattern syntax with subslices.][67712] e.g.
2578   ```rust
2579   fn foo(words: &[&str]) {
2580       match words {
2581           ["Hello", "World", "!", ..] => println!("Hello World!"),
2582           ["Foo", "Bar", ..] => println!("Baz"),
2583           rest => println!("{:?}", rest),
2584       }
2585   }
2586   ```
2587 - [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning
2588   that you can create an enum that has the exact layout and ABI of the type
2589   it contains.
2590 - [You can now use outer attribute procedural macros on inline modules.][64273]
2591 - [There are some *syntax-only* changes:][67131]
2592    - `default` is syntactically allowed before items in `trait` definitions.
2593    - Items in `impl`s (i.e. `const`s, `type`s, and `fn`s) may syntactically
2594      leave out their bodies in favor of `;`.
2595    - Bounds on associated types in `impl`s are now syntactically allowed
2596      (e.g. `type Foo: Ord;`).
2597    - `...` (the C-variadic type) may occur syntactically directly as the type of
2598       any function parameter.
2599
2600   These are still rejected *semantically*, so you will likely receive an error
2601   but these changes can be seen and parsed by procedural macros and
2602   conditional compilation.
2603
2604 Compiler
2605 --------
2606 - [Added tier 2\* support for `armv7a-none-eabi`.][68253]
2607 - [Added tier 2 support for `riscv64gc-unknown-linux-gnu`.][68339]
2608 - [`Option::{expect,unwrap}` and
2609    `Result::{expect, expect_err, unwrap, unwrap_err}` now produce panic messages
2610    pointing to the location where they were called, rather than
2611    `core`'s internals. ][67887]
2612
2613 \* Refer to Rust's [platform support page][platform-support-doc] for more
2614 information on Rust's tiered platform support.
2615
2616 Libraries
2617 ---------
2618 - [`iter::Empty<T>` now implements `Send` and `Sync` for any `T`.][68348]
2619 - [`Pin::{map_unchecked, map_unchecked_mut}` no longer require the return type
2620    to implement `Sized`.][67935]
2621 - [`io::Cursor` now derives `PartialEq` and `Eq`.][67233]
2622 - [`Layout::new` is now `const`.][66254]
2623 - [Added Standard Library support for `riscv64gc-unknown-linux-gnu`.][66899]
2624
2625
2626 Stabilized APIs
2627 ---------------
2628 - [`CondVar::wait_while`]
2629 - [`CondVar::wait_timeout_while`]
2630 - [`DebugMap::key`]
2631 - [`DebugMap::value`]
2632 - [`ManuallyDrop::take`]
2633 - [`matches!`]
2634 - [`ptr::slice_from_raw_parts_mut`]
2635 - [`ptr::slice_from_raw_parts`]
2636
2637 Cargo
2638 -----
2639 - [You no longer need to include `extern crate proc_macro;` to be able to
2640   `use proc_macro;` in the `2018` edition.][cargo/7700]
2641
2642 Compatibility Notes
2643 -------------------
2644 - [`Error::description` has been deprecated, and its use will now produce a
2645   warning.][66919] It's recommended to use `Display`/`to_string` instead.
2646
2647 [68253]: https://github.com/rust-lang/rust/pull/68253/
2648 [68348]: https://github.com/rust-lang/rust/pull/68348/
2649 [67935]: https://github.com/rust-lang/rust/pull/67935/
2650 [68339]: https://github.com/rust-lang/rust/pull/68339/
2651 [68122]: https://github.com/rust-lang/rust/pull/68122/
2652 [64273]: https://github.com/rust-lang/rust/pull/64273/
2653 [67712]: https://github.com/rust-lang/rust/pull/67712/
2654 [67887]: https://github.com/rust-lang/rust/pull/67887/
2655 [67131]: https://github.com/rust-lang/rust/pull/67131/
2656 [67233]: https://github.com/rust-lang/rust/pull/67233/
2657 [66899]: https://github.com/rust-lang/rust/pull/66899/
2658 [66919]: https://github.com/rust-lang/rust/pull/66919/
2659 [66254]: https://github.com/rust-lang/rust/pull/66254/
2660 [cargo/7700]: https://github.com/rust-lang/cargo/pull/7700
2661 [`DebugMap::key`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.key
2662 [`DebugMap::value`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.value
2663 [`ManuallyDrop::take`]: https://doc.rust-lang.org/stable/std/mem/struct.ManuallyDrop.html#method.take
2664 [`matches!`]: https://doc.rust-lang.org/stable/std/macro.matches.html
2665 [`ptr::slice_from_raw_parts_mut`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts_mut.html
2666 [`ptr::slice_from_raw_parts`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts.html
2667 [`CondVar::wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while
2668 [`CondVar::wait_timeout_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_timeout_while
2669
2670
2671 Version 1.41.1 (2020-02-27)
2672 ===========================
2673
2674 * [Always check types of static items][69145]
2675 * [Always check lifetime bounds of `Copy` impls][69145]
2676 * [Fix miscompilation in callers of `Layout::repeat`][69225]
2677
2678 [69225]: https://github.com/rust-lang/rust/issues/69225
2679 [69145]: https://github.com/rust-lang/rust/pull/69145
2680
2681
2682 Version 1.41.0 (2020-01-30)
2683 ===========================
2684
2685 Language
2686 --------
2687
2688 - [You can now pass type parameters to foreign items when implementing
2689   traits.][65879] E.g. You can now write `impl<T> From<Foo> for Vec<T> {}`.
2690 - [You can now arbitrarily nest receiver types in the `self` position.][64325] E.g. you can
2691   now write `fn foo(self: Box<Box<Self>>) {}`. Previously only `Self`, `&Self`,
2692   `&mut Self`, `Arc<Self>`, `Rc<Self>`, and `Box<Self>` were allowed.
2693 - [You can now use any valid identifier in a `format_args` macro.][66847]
2694   Previously identifiers starting with an underscore were not allowed.
2695 - [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
2696   enum variants.][66183] These are still rejected semantically, but
2697   can be seen and parsed by procedural macros and conditional compilation.
2698 - [You can now define a Rust `extern "C"` function with `Box<T>` and use `T*` as the corresponding
2699   type on the C side.][62514] Please see [the documentation][box-memory-layout] for more information,
2700   including the important caveat about preferring to avoid `Box<T>` in Rust signatures for functions defined in C.
2701
2702 [box-memory-layout]: https://doc.rust-lang.org/std/boxed/index.html#memory-layout
2703
2704 Compiler
2705 --------
2706
2707 - [Rustc will now warn if you have unused loop `'label`s.][66325]
2708 - [Removed support for the `i686-unknown-dragonfly` target.][67255]
2709 - [Added tier 3 support\* for the `riscv64gc-unknown-linux-gnu` target.][66661]
2710 - [You can now pass an arguments file passing the `@path` syntax
2711   to rustc.][66172] Note that the format differs somewhat from what is
2712   found in other tooling; please see [the documentation][argfile-docs] for
2713   more information.
2714 - [You can now provide `--extern` flag without a path, indicating that it is
2715   available from the search path or specified with an `-L` flag.][64882]
2716
2717 \* Refer to Rust's [platform support page][platform-support-doc] for more
2718 information on Rust's tiered platform support.
2719
2720 [argfile-docs]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#path-load-command-line-flags-from-a-path
2721
2722 Libraries
2723 ---------
2724
2725 - [The `core::panic` module is now stable.][66771] It was already stable
2726   through `std`.
2727 - [`NonZero*` numerics now implement `From<NonZero*>` if it's a smaller integer
2728   width.][66277] E.g. `NonZeroU16` now implements `From<NonZeroU8>`.
2729 - [`MaybeUninit<T>` now implements `fmt::Debug`.][65013]
2730
2731 Stabilized APIs
2732 ---------------
2733
2734 - [`Result::map_or`]
2735 - [`Result::map_or_else`]
2736 - [`std::rc::Weak::weak_count`]
2737 - [`std::rc::Weak::strong_count`]
2738 - [`std::sync::Weak::weak_count`]
2739 - [`std::sync::Weak::strong_count`]
2740
2741 Cargo
2742 -----
2743
2744 - [Cargo will now document all the private items for binary crates
2745   by default.][cargo/7593]
2746 - [`cargo-install` will now reinstall the package if it detects that it is out
2747   of date.][cargo/7560]
2748 - [Cargo.lock now uses a more git friendly format that should help to reduce
2749   merge conflicts.][cargo/7579]
2750 - [You can now override specific dependencies's build settings][cargo/7591] E.g.
2751   `[profile.dev.package.image] opt-level = 2` sets the `image` crate's
2752   optimisation level to `2` for debug builds. You can also use
2753   `[profile.<profile>.build-override]` to override build scripts and
2754   their dependencies.
2755
2756 Misc
2757 ----
2758
2759 - [You can now specify `edition` in documentation code blocks to compile the block
2760   for that edition.][66238] E.g. `edition2018` tells rustdoc that the code sample
2761   should be compiled the 2018 edition of Rust.
2762 - [You can now provide custom themes to rustdoc with `--theme`, and check the
2763   current theme with `--check-theme`.][54733]
2764 - [You can use `#[cfg(doc)]` to compile an item when building documentation.][61351]
2765
2766 Compatibility Notes
2767 -------------------
2768
2769 - [As previously announced 1.41.0 will be the last tier 1 release for 32-bit
2770   Apple targets.][apple-32bit-drop] This means that the source code is still
2771   available to build, but the targets are no longer being tested and release
2772   binaries for those platforms will no longer be distributed by the Rust project.
2773   Please refer to the linked blog post for more information.
2774
2775 [54733]: https://github.com/rust-lang/rust/pull/54733/
2776 [61351]: https://github.com/rust-lang/rust/pull/61351/
2777 [62514]: https://github.com/rust-lang/rust/pull/62514/
2778 [67255]: https://github.com/rust-lang/rust/pull/67255/
2779 [66661]: https://github.com/rust-lang/rust/pull/66661/
2780 [66771]: https://github.com/rust-lang/rust/pull/66771/
2781 [66847]: https://github.com/rust-lang/rust/pull/66847/
2782 [66238]: https://github.com/rust-lang/rust/pull/66238/
2783 [66277]: https://github.com/rust-lang/rust/pull/66277/
2784 [66325]: https://github.com/rust-lang/rust/pull/66325/
2785 [66172]: https://github.com/rust-lang/rust/pull/66172/
2786 [66183]: https://github.com/rust-lang/rust/pull/66183/
2787 [65879]: https://github.com/rust-lang/rust/pull/65879/
2788 [65013]: https://github.com/rust-lang/rust/pull/65013/
2789 [64882]: https://github.com/rust-lang/rust/pull/64882/
2790 [64325]: https://github.com/rust-lang/rust/pull/64325/
2791 [cargo/7560]: https://github.com/rust-lang/cargo/pull/7560/
2792 [cargo/7579]: https://github.com/rust-lang/cargo/pull/7579/
2793 [cargo/7591]: https://github.com/rust-lang/cargo/pull/7591/
2794 [cargo/7593]: https://github.com/rust-lang/cargo/pull/7593/
2795 [`Result::map_or_else`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or_else
2796 [`Result::map_or`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or
2797 [`std::rc::Weak::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.weak_count
2798 [`std::rc::Weak::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.strong_count
2799 [`std::sync::Weak::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.weak_count
2800 [`std::sync::Weak::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.strong_count
2801 [apple-32bit-drop]: https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html
2802
2803 Version 1.40.0 (2019-12-19)
2804 ===========================
2805
2806 Language
2807 --------
2808 - [You can now use tuple `struct`s and tuple `enum` variant's constructors in
2809   `const` contexts.][65188] e.g.
2810
2811   ```rust
2812   pub struct Point(i32, i32);
2813
2814   const ORIGIN: Point = {
2815       let constructor = Point;
2816
2817       constructor(0, 0)
2818   };
2819   ```
2820
2821 - [You can now mark `struct`s, `enum`s, and `enum` variants with the `#[non_exhaustive]` attribute to
2822   indicate that there may be variants or fields added in the future.][64639]
2823   For example this requires adding a wild-card branch (`_ => {}`) to any match
2824   statements on a non-exhaustive `enum`. [(RFC 2008)]
2825 - [You can now use function-like procedural macros in `extern` blocks and in
2826   type positions.][63931] e.g. `type Generated = macro!();`
2827 - [Function-like and attribute procedural macros can now emit
2828   `macro_rules!` items, so you can now have your macros generate macros.][64035]
2829 - [The `meta` pattern matcher in `macro_rules!` now correctly matches the modern
2830   attribute syntax.][63674] For example `(#[$m:meta])` now matches `#[attr]`,
2831   `#[attr{tokens}]`, `#[attr[tokens]]`, and `#[attr(tokens)]`.
2832
2833 Compiler
2834 --------
2835 - [Added tier 3 support\* for the
2836   `thumbv7neon-unknown-linux-musleabihf` target.][66103]
2837 - [Added tier 3 support for the
2838   `aarch64-unknown-none-softfloat` target.][64589]
2839 - [Added tier 3 support for the `mips64-unknown-linux-muslabi64`, and
2840   `mips64el-unknown-linux-muslabi64` targets.][65843]
2841
2842 \* Refer to Rust's [platform support page][platform-support-doc] for more
2843   information on Rust's tiered platform support.
2844
2845 Libraries
2846 ---------
2847 - [The `is_power_of_two` method on unsigned numeric types is now a `const` function.][65092]
2848
2849 Stabilized APIs
2850 ---------------
2851 - [`BTreeMap::get_key_value`]
2852 - [`HashMap::get_key_value`]
2853 - [`Option::as_deref_mut`]
2854 - [`Option::as_deref`]
2855 - [`Option::flatten`]
2856 - [`UdpSocket::peer_addr`]
2857 - [`f32::to_be_bytes`]
2858 - [`f32::to_le_bytes`]
2859 - [`f32::to_ne_bytes`]
2860 - [`f64::to_be_bytes`]
2861 - [`f64::to_le_bytes`]
2862 - [`f64::to_ne_bytes`]
2863 - [`f32::from_be_bytes`]
2864 - [`f32::from_le_bytes`]
2865 - [`f32::from_ne_bytes`]
2866 - [`f64::from_be_bytes`]
2867 - [`f64::from_le_bytes`]
2868 - [`f64::from_ne_bytes`]
2869 - [`mem::take`]
2870 - [`slice::repeat`]
2871 - [`todo!`]
2872
2873 Cargo
2874 -----
2875 - [Cargo will now always display warnings, rather than only on
2876   fresh builds.][cargo/7450]
2877 - [Feature flags (except `--all-features`) passed to a virtual workspace will
2878   now produce an error.][cargo/7507] Previously these flags were ignored.
2879 - [You can now publish `dev-dependencies` without including
2880   a `version`.][cargo/7333]
2881
2882 Misc
2883 ----
2884 - [You can now specify the `#[cfg(doctest)]` attribute to include an item only
2885   when running documentation tests with `rustdoc`.][63803]
2886
2887 Compatibility Notes
2888 -------------------
2889 - [As previously announced, any previous NLL warnings in the 2015 edition are
2890   now hard errors.][64221]
2891 - [The `include!` macro will now warn if it failed to include the
2892   entire file.][64284] The `include!` macro unintentionally only includes the
2893   first _expression_ in a file, and this can be unintuitive. This will become
2894   either a hard error in a future release, or the behavior may be fixed to include all expressions as expected.
2895 - [Using `#[inline]` on function prototypes and consts now emits a warning under
2896   `unused_attribute` lint.][65294] Using `#[inline]` anywhere else inside traits
2897   or `extern` blocks now correctly emits a hard error.
2898
2899 [65294]: https://github.com/rust-lang/rust/pull/65294/
2900 [66103]: https://github.com/rust-lang/rust/pull/66103/
2901 [65843]: https://github.com/rust-lang/rust/pull/65843/
2902 [65188]: https://github.com/rust-lang/rust/pull/65188/
2903 [65092]: https://github.com/rust-lang/rust/pull/65092/
2904 [64589]: https://github.com/rust-lang/rust/pull/64589/
2905 [64639]: https://github.com/rust-lang/rust/pull/64639/
2906 [64221]: https://github.com/rust-lang/rust/pull/64221/
2907 [64284]: https://github.com/rust-lang/rust/pull/64284/
2908 [63931]: https://github.com/rust-lang/rust/pull/63931/
2909 [64035]: https://github.com/rust-lang/rust/pull/64035/
2910 [63674]: https://github.com/rust-lang/rust/pull/63674/
2911 [63803]: https://github.com/rust-lang/rust/pull/63803/
2912 [cargo/7450]: https://github.com/rust-lang/cargo/pull/7450/
2913 [cargo/7507]: https://github.com/rust-lang/cargo/pull/7507/
2914 [cargo/7333]: https://github.com/rust-lang/cargo/pull/7333/
2915 [(rfc 2008)]: https://rust-lang.github.io/rfcs/2008-non-exhaustive.html
2916 [`f32::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_be_bytes
2917 [`f32::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_le_bytes
2918 [`f32::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_ne_bytes
2919 [`f64::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_be_bytes
2920 [`f64::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_le_bytes
2921 [`f64::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_ne_bytes
2922 [`f32::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_be_bytes
2923 [`f32::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_le_bytes
2924 [`f32::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_ne_bytes
2925 [`f64::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_be_bytes
2926 [`f64::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_le_bytes
2927 [`f64::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_ne_bytes
2928 [`option::flatten`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.flatten
2929 [`option::as_deref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref
2930 [`option::as_deref_mut`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref_mut
2931 [`hashmap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.get_key_value
2932 [`btreemap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.get_key_value
2933 [`slice::repeat`]: https://doc.rust-lang.org/std/primitive.slice.html#method.repeat
2934 [`mem::take`]: https://doc.rust-lang.org/std/mem/fn.take.html
2935 [`udpsocket::peer_addr`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peer_addr
2936 [`todo!`]: https://doc.rust-lang.org/std/macro.todo.html
2937
2938
2939 Version 1.39.0 (2019-11-07)
2940 ===========================
2941
2942 Language
2943 --------
2944 - [You can now create `async` functions and blocks with `async fn`, `async move {}`, and
2945   `async {}` respectively, and you can now call `.await` on async expressions.][63209]
2946 - [You can now use certain attributes on function, closure, and function pointer
2947   parameters.][64010] These attributes include `cfg`, `cfg_attr`, `allow`, `warn`,
2948   `deny`, `forbid` as well as inert helper attributes used by procedural macro
2949   attributes applied to items. e.g.
2950   ```rust
2951   fn len(
2952       #[cfg(windows)] slice: &[u16],
2953       #[cfg(not(windows))] slice: &[u8],
2954   ) -> usize {
2955       slice.len()
2956   }
2957   ```
2958 - [You can now take shared references to bind-by-move patterns in the `if` guards
2959   of `match` arms.][63118] e.g.
2960   ```rust
2961   fn main() {
2962       let array: Box<[u8; 4]> = Box::new([1, 2, 3, 4]);
2963
2964       match array {
2965           nums
2966   //      ---- `nums` is bound by move.
2967               if nums.iter().sum::<u8>() == 10
2968   //                 ^------ `.iter()` implicitly takes a reference to `nums`.
2969           => {
2970               drop(nums);
2971   //          ----------- Legal as `nums` was bound by move and so we have ownership.
2972           }
2973           _ => unreachable!(),
2974       }
2975   }
2976   ```
2977
2978
2979
2980 Compiler
2981 --------
2982 - [Added tier 3\* support for the `i686-unknown-uefi` target.][64334]
2983 - [Added tier 3 support for the `sparc64-unknown-openbsd` target.][63595]
2984 - [rustc will now trim code snippets in diagnostics to fit in your terminal.][63402]
2985   **Note** Cargo currently doesn't use this feature. Refer to
2986   [cargo#7315][cargo/7315] to track this feature's progress.
2987 - [You can now pass `--show-output` argument to test binaries to print the
2988   output of successful tests.][62600]
2989
2990
2991 \* Refer to Rust's [platform support page][platform-support-doc] for more
2992 information on Rust's tiered platform support.
2993
2994 Libraries
2995 ---------
2996 - [`Vec::new` and `String::new` are now `const` functions.][64028]
2997 - [`LinkedList::new` is now a `const` function.][63684]
2998 - [`str::len`, `[T]::len` and `str::as_bytes` are now `const` functions.][63770]
2999 - [The `abs`, `wrapping_abs`, and `overflowing_abs` numeric functions are
3000   now `const`.][63786]
3001
3002 Stabilized APIs
3003 ---------------
3004 - [`Pin::into_inner`]
3005 - [`Instant::checked_duration_since`]
3006 - [`Instant::saturating_duration_since`]
3007
3008 Cargo
3009 -----
3010 - [You can now publish git dependencies if supplied with a `version`.][cargo/7237]
3011 - [The `--all` flag has been renamed to `--workspace`.][cargo/7241] Using
3012   `--all` is now deprecated.
3013
3014 Misc
3015 ----
3016 - [You can now pass `-Clinker` to rustdoc to control the linker used
3017   for compiling doctests.][63834]
3018
3019 Compatibility Notes
3020 -------------------
3021 - [Code that was previously accepted by the old borrow checker, but rejected by
3022   the NLL borrow checker is now a hard error in Rust 2018.][63565] This was
3023   previously a warning, and will also become a hard error in the Rust 2015
3024   edition in the 1.40.0 release.
3025 - [`rustdoc` now requires `rustc` to be installed and in the same directory to
3026   run tests.][63827] This should improve performance when running a large
3027   amount of doctests.
3028 - [The `try!` macro will now issue a deprecation warning.][62672] It is
3029   recommended to use the `?` operator instead.
3030 - [`asinh(-0.0)` now correctly returns `-0.0`.][63698] Previously this
3031   returned `0.0`.
3032
3033 [62600]: https://github.com/rust-lang/rust/pull/62600/
3034 [62672]: https://github.com/rust-lang/rust/pull/62672/
3035 [63118]: https://github.com/rust-lang/rust/pull/63118/
3036 [63209]: https://github.com/rust-lang/rust/pull/63209/
3037 [63402]: https://github.com/rust-lang/rust/pull/63402/
3038 [63565]: https://github.com/rust-lang/rust/pull/63565/
3039 [63595]: https://github.com/rust-lang/rust/pull/63595/
3040 [63684]: https://github.com/rust-lang/rust/pull/63684/
3041 [63698]: https://github.com/rust-lang/rust/pull/63698/
3042 [63770]: https://github.com/rust-lang/rust/pull/63770/
3043 [63786]: https://github.com/rust-lang/rust/pull/63786/
3044 [63827]: https://github.com/rust-lang/rust/pull/63827/
3045 [63834]: https://github.com/rust-lang/rust/pull/63834/
3046 [64010]: https://github.com/rust-lang/rust/pull/64010/
3047 [64028]: https://github.com/rust-lang/rust/pull/64028/
3048 [64334]: https://github.com/rust-lang/rust/pull/64334/
3049 [cargo/7237]: https://github.com/rust-lang/cargo/pull/7237/
3050 [cargo/7241]: https://github.com/rust-lang/cargo/pull/7241/
3051 [cargo/7315]: https://github.com/rust-lang/cargo/pull/7315/
3052 [`Pin::into_inner`]: https://doc.rust-lang.org/std/pin/struct.Pin.html#method.into_inner
3053 [`Instant::checked_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_duration_since
3054 [`Instant::saturating_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.saturating_duration_since
3055
3056 Version 1.38.0 (2019-09-26)
3057 ==========================
3058
3059 Language
3060 --------
3061 - [The `#[global_allocator]` attribute can now be used in submodules.][62735]
3062 - [The `#[deprecated]` attribute can now be used on macros.][62042]
3063
3064 Compiler
3065 --------
3066 - [Added pipelined compilation support to `rustc`.][62766] This will
3067   improve compilation times in some cases. For further information please refer
3068   to the [_"Evaluating pipelined rustc compilation"_][pipeline-internals] thread.
3069 - [Added tier 3\* support for the `aarch64-uwp-windows-msvc`, `i686-uwp-windows-gnu`,
3070   `i686-uwp-windows-msvc`, `x86_64-uwp-windows-gnu`, and
3071   `x86_64-uwp-windows-msvc` targets.][60260]
3072 - [Added tier 3 support for the `armv7-unknown-linux-gnueabi` and
3073   `armv7-unknown-linux-musleabi` targets.][63107]
3074 - [Added tier 3 support for the `hexagon-unknown-linux-musl` target.][62814]
3075 - [Added tier 3 support for the `riscv32i-unknown-none-elf` target.][62784]
3076 - [Upgraded to LLVM 9.][62592]
3077
3078 \* Refer to Rust's [platform support page][platform-support-doc] for more
3079 information on Rust's tiered platform support.
3080
3081 Libraries
3082 ---------
3083 - [`ascii::EscapeDefault` now implements `Clone` and `Display`.][63421]
3084 - [Derive macros for prelude traits (e.g. `Clone`, `Debug`, `Hash`) are now
3085   available at the same path as the trait.][63056] (e.g. The `Clone` derive macro
3086   is available at `std::clone::Clone`). This also makes all built-in macros
3087   available in `std`/`core` root. e.g. `std::include_bytes!`.
3088 - [`str::Chars` now implements `Debug`.][63000]
3089 - [`slice::{concat, connect, join}` now accepts `&[T]` in addition to `&T`.][62528]
3090 - [`*const T` and `*mut T` now implement `marker::Unpin`.][62583]
3091 - [`Arc<[T]>` and `Rc<[T]>` now implement `FromIterator<T>`.][61953]
3092 - [Added euclidean remainder and division operations (`div_euclid`,
3093   `rem_euclid`) to all numeric primitives.][61884] Additionally `checked`,
3094   `overflowing`, and `wrapping` versions are available for all
3095   integer primitives.
3096 - [`thread::AccessError` now implements `Clone`, `Copy`, `Eq`, `Error`, and
3097   `PartialEq`.][61491]
3098 - [`iter::{StepBy, Peekable, Take}` now implement `DoubleEndedIterator`.][61457]
3099
3100 Stabilized APIs
3101 ---------------
3102 - [`<*const T>::cast`]
3103 - [`<*mut T>::cast`]
3104 - [`Duration::as_secs_f32`]
3105 - [`Duration::as_secs_f64`]
3106 - [`Duration::div_f32`]
3107 - [`Duration::div_f64`]
3108 - [`Duration::from_secs_f32`]
3109 - [`Duration::from_secs_f64`]
3110 - [`Duration::mul_f32`]
3111 - [`Duration::mul_f64`]
3112 - [`any::type_name`]
3113
3114 Cargo
3115 -----
3116 - [Added pipelined compilation support to `cargo`.][cargo/7143]
3117 - [You can now pass the `--features` option multiple times to enable
3118   multiple features.][cargo/7084]
3119
3120 Rustdoc
3121 -------
3122
3123 - [Documentation on `pub use` statements is prepended to the documentation of the re-exported item][63048]
3124
3125 Misc
3126 ----
3127 - [`rustc` will now warn about some incorrect uses of
3128   `mem::{uninitialized, zeroed}` that are known to cause undefined behaviour.][63346]
3129
3130 Compatibility Notes
3131 -------------------
3132 - The [`x86_64-unknown-uefi` platform can not be built][62785] with rustc
3133   1.38.0.
3134 - The [`armv7-unknown-linux-gnueabihf` platform is known to have
3135   issues][62896] with certain crates such as libc.
3136
3137 [60260]: https://github.com/rust-lang/rust/pull/60260/
3138 [61457]: https://github.com/rust-lang/rust/pull/61457/
3139 [61491]: https://github.com/rust-lang/rust/pull/61491/
3140 [61884]: https://github.com/rust-lang/rust/pull/61884/
3141 [61953]: https://github.com/rust-lang/rust/pull/61953/
3142 [62042]: https://github.com/rust-lang/rust/pull/62042/
3143 [62528]: https://github.com/rust-lang/rust/pull/62528/
3144 [62583]: https://github.com/rust-lang/rust/pull/62583/
3145 [62735]: https://github.com/rust-lang/rust/pull/62735/
3146 [62766]: https://github.com/rust-lang/rust/pull/62766/
3147 [62784]: https://github.com/rust-lang/rust/pull/62784/
3148 [62592]: https://github.com/rust-lang/rust/pull/62592/
3149 [62785]: https://github.com/rust-lang/rust/issues/62785/
3150 [62814]: https://github.com/rust-lang/rust/pull/62814/
3151 [62896]: https://github.com/rust-lang/rust/issues/62896/
3152 [63000]: https://github.com/rust-lang/rust/pull/63000/
3153 [63056]: https://github.com/rust-lang/rust/pull/63056/
3154 [63107]: https://github.com/rust-lang/rust/pull/63107/
3155 [63346]: https://github.com/rust-lang/rust/pull/63346/
3156 [63421]: https://github.com/rust-lang/rust/pull/63421/
3157 [cargo/7084]: https://github.com/rust-lang/cargo/pull/7084/
3158 [cargo/7143]: https://github.com/rust-lang/cargo/pull/7143/
3159 [63048]: https://github.com/rust-lang/rust/pull/63048
3160 [`<*const T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3161 [`<*mut T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3162 [`Duration::as_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f32
3163 [`Duration::as_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f64
3164 [`Duration::div_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f32
3165 [`Duration::div_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f64
3166 [`Duration::from_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f32
3167 [`Duration::from_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f64
3168 [`Duration::mul_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f32
3169 [`Duration::mul_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f64
3170 [`any::type_name`]: https://doc.rust-lang.org/std/any/fn.type_name.html
3171 [platform-support-doc]: https://doc.rust-lang.org/nightly/rustc/platform-support.html
3172 [pipeline-internals]: https://internals.rust-lang.org/t/evaluating-pipelined-rustc-compilation/10199
3173
3174 Version 1.37.0 (2019-08-15)
3175 ==========================
3176
3177 Language
3178 --------
3179 - `#[must_use]` will now warn if the type is contained in a [tuple][61100],
3180   [`Box`][62228], or an [array][62235] and unused.
3181 - [You can now use the `cfg` and `cfg_attr` attributes on
3182   generic parameters.][61547]
3183 - [You can now use enum variants through type alias.][61682] e.g. You can
3184   write the following:
3185   ```rust
3186   type MyOption = Option<u8>;
3187
3188   fn increment_or_zero(x: MyOption) -> u8 {
3189       match x {
3190           MyOption::Some(y) => y + 1,
3191           MyOption::None => 0,
3192       }
3193   }
3194   ```
3195 - [You can now use `_` as an identifier for consts.][61347] e.g. You can write
3196   `const _: u32 = 5;`.
3197 - [You can now use `#[repr(align(X)]` on enums.][61229]
3198 - [The  `?` Kleene macro operator is now available in the
3199   2015 edition.][60932]
3200
3201 Compiler
3202 --------
3203 - [You can now enable Profile-Guided Optimization with the `-C profile-generate`
3204   and `-C profile-use` flags.][61268] For more information on how to use profile
3205   guided optimization, please refer to the [rustc book][rustc-book-pgo].
3206 - [The `rust-lldb` wrapper script should now work again.][61827]
3207
3208 Libraries
3209 ---------
3210 - [`mem::MaybeUninit<T>` is now ABI-compatible with `T`.][61802]
3211
3212 Stabilized APIs
3213 ---------------
3214 - [`BufReader::buffer`]
3215 - [`BufWriter::buffer`]
3216 - [`Cell::from_mut`]
3217 - [`Cell<[T]>::as_slice_of_cells`][`Cell<slice>::as_slice_of_cells`]
3218 - [`DoubleEndedIterator::nth_back`]
3219 - [`Option::xor`]
3220 - [`Wrapping::reverse_bits`]
3221 - [`i128::reverse_bits`]
3222 - [`i16::reverse_bits`]
3223 - [`i32::reverse_bits`]
3224 - [`i64::reverse_bits`]
3225 - [`i8::reverse_bits`]
3226 - [`isize::reverse_bits`]
3227 - [`slice::copy_within`]
3228 - [`u128::reverse_bits`]
3229 - [`u16::reverse_bits`]
3230 - [`u32::reverse_bits`]
3231 - [`u64::reverse_bits`]
3232 - [`u8::reverse_bits`]
3233 - [`usize::reverse_bits`]
3234
3235 Cargo
3236 -----
3237 - [`Cargo.lock` files are now included by default when publishing executable crates
3238   with executables.][cargo/7026]
3239 - [You can now specify `default-run="foo"` in `[package]` to specify the
3240   default executable to use for `cargo run`.][cargo/7056]
3241
3242 Misc
3243 ----
3244
3245 Compatibility Notes
3246 -------------------
3247 - [Using `...` for inclusive range patterns will now warn by default.][61342]
3248   Please transition your code to using the `..=` syntax for inclusive
3249   ranges instead.
3250 - [Using a trait object without the `dyn` will now warn by default.][61203]
3251   Please transition your code to use `dyn Trait` for trait objects instead.
3252
3253 [62228]: https://github.com/rust-lang/rust/pull/62228/
3254 [62235]: https://github.com/rust-lang/rust/pull/62235/
3255 [61802]: https://github.com/rust-lang/rust/pull/61802/
3256 [61827]: https://github.com/rust-lang/rust/pull/61827/
3257 [61547]: https://github.com/rust-lang/rust/pull/61547/
3258 [61682]: https://github.com/rust-lang/rust/pull/61682/
3259 [61268]: https://github.com/rust-lang/rust/pull/61268/
3260 [61342]: https://github.com/rust-lang/rust/pull/61342/
3261 [61347]: https://github.com/rust-lang/rust/pull/61347/
3262 [61100]: https://github.com/rust-lang/rust/pull/61100/
3263 [61203]: https://github.com/rust-lang/rust/pull/61203/
3264 [61229]: https://github.com/rust-lang/rust/pull/61229/
3265 [60932]: https://github.com/rust-lang/rust/pull/60932/
3266 [cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/
3267 [cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/
3268 [`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer
3269 [`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer
3270 [`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut
3271 [`Cell<slice>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells
3272 [`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back
3273 [`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor
3274 [`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits
3275 [`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits
3276 [`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits
3277 [`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits
3278 [`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits
3279 [`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits
3280 [`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits
3281 [`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within
3282 [`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits
3283 [`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits
3284 [`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits
3285 [`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits
3286 [`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits
3287 [`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits
3288 [rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html
3289
3290
3291 Version 1.36.0 (2019-07-04)
3292 ==========================
3293
3294 Language
3295 --------
3296 - [Non-Lexical Lifetimes are now enabled on the 2015 edition.][59114]
3297 - [The order of traits in trait objects no longer affects the semantics of that
3298   object.][59445] e.g. `dyn Send + fmt::Debug` is now equivalent to
3299   `dyn fmt::Debug + Send`, where this was previously not the case.
3300
3301 Libraries
3302 ---------
3303 - [`HashMap`'s implementation has been replaced with `hashbrown::HashMap` implementation.][58623]
3304 - [`TryFromSliceError` now implements `From<Infallible>`.][60318]
3305 - [`mem::needs_drop` is now available as a const fn.][60364]
3306 - [`alloc::Layout::from_size_align_unchecked` is now available as a const fn.][60370]
3307 - [`String` now implements `BorrowMut<str>`.][60404]
3308 - [`io::Cursor` now implements `Default`.][60234]
3309 - [Both `NonNull::{dangling, cast}` are now const fns.][60244]
3310 - [The `alloc` crate is now stable.][59675] `alloc` allows you to use a subset
3311   of `std` (e.g. `Vec`, `Box`, `Arc`) in `#![no_std]` environments if the
3312   environment has access to heap memory allocation.
3313 - [`String` now implements `From<&String>`.][59825]
3314 - [You can now pass multiple arguments to the `dbg!` macro.][59826] `dbg!` will
3315   return a tuple of each argument when there is multiple arguments.
3316 - [`Result::{is_err, is_ok}` are now `#[must_use]` and will produce a warning if
3317   not used.][59648]
3318
3319 Stabilized APIs
3320 ---------------
3321 - [`VecDeque::rotate_left`]
3322 - [`VecDeque::rotate_right`]
3323 - [`Iterator::copied`]
3324 - [`io::IoSlice`]
3325 - [`io::IoSliceMut`]
3326 - [`Read::read_vectored`]
3327 - [`Write::write_vectored`]
3328 - [`str::as_mut_ptr`]
3329 - [`mem::MaybeUninit`]
3330 - [`pointer::align_offset`]
3331 - [`future::Future`]
3332 - [`task::Context`]
3333 - [`task::RawWaker`]
3334 - [`task::RawWakerVTable`]
3335 - [`task::Waker`]
3336 - [`task::Poll`]
3337
3338 Cargo
3339 -----
3340 - [Cargo will now produce an error if you attempt to use the name of a required dependency as a feature.][cargo/6860]
3341 - [You can now pass the `--offline` flag to run cargo without accessing the network.][cargo/6934]
3342
3343 You can find further change's in [Cargo's 1.36.0 release notes][cargo-1-36-0].
3344
3345 Clippy
3346 ------
3347 There have been numerous additions and fixes to clippy, see [Clippy's 1.36.0 release notes][clippy-1-36-0] for more details.
3348
3349 Misc
3350 ----
3351
3352 Compatibility Notes
3353 -------------------
3354 - With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no
3355   longer recommended, and will be deprecated in 1.39.0.
3356
3357 [60318]: https://github.com/rust-lang/rust/pull/60318/
3358 [60364]: https://github.com/rust-lang/rust/pull/60364/
3359 [60370]: https://github.com/rust-lang/rust/pull/60370/
3360 [60404]: https://github.com/rust-lang/rust/pull/60404/
3361 [60234]: https://github.com/rust-lang/rust/pull/60234/
3362 [60244]: https://github.com/rust-lang/rust/pull/60244/
3363 [58623]: https://github.com/rust-lang/rust/pull/58623/
3364 [59648]: https://github.com/rust-lang/rust/pull/59648/
3365 [59675]: https://github.com/rust-lang/rust/pull/59675/
3366 [59825]: https://github.com/rust-lang/rust/pull/59825/
3367 [59826]: https://github.com/rust-lang/rust/pull/59826/
3368 [59445]: https://github.com/rust-lang/rust/pull/59445/
3369 [59114]: https://github.com/rust-lang/rust/pull/59114/
3370 [cargo/6860]: https://github.com/rust-lang/cargo/pull/6860/
3371 [cargo/6934]: https://github.com/rust-lang/cargo/pull/6934/
3372 [`VecDeque::rotate_left`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_left
3373 [`VecDeque::rotate_right`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_right
3374 [`Iterator::copied`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#tymethod.copied
3375 [`io::IoSlice`]: https://doc.rust-lang.org/std/io/struct.IoSlice.html
3376 [`io::IoSliceMut`]: https://doc.rust-lang.org/std/io/struct.IoSliceMut.html
3377 [`Read::read_vectored`]: https://doc.rust-lang.org/std/io/trait.Read.html#method.read_vectored
3378 [`Write::write_vectored`]: https://doc.rust-lang.org/std/io/trait.Write.html#method.write_vectored
3379 [`str::as_mut_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_mut_ptr
3380 [`mem::MaybeUninit`]: https://doc.rust-lang.org/std/mem/union.MaybeUninit.html
3381 [`pointer::align_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.align_offset
3382 [`future::Future`]: https://doc.rust-lang.org/std/future/trait.Future.html
3383 [`task::Context`]: https://doc.rust-lang.org/beta/std/task/struct.Context.html
3384 [`task::RawWaker`]: https://doc.rust-lang.org/beta/std/task/struct.RawWaker.html
3385 [`task::RawWakerVTable`]: https://doc.rust-lang.org/beta/std/task/struct.RawWakerVTable.html
3386 [`task::Waker`]: https://doc.rust-lang.org/beta/std/task/struct.Waker.html
3387 [`task::Poll`]: https://doc.rust-lang.org/beta/std/task/enum.Poll.html
3388 [clippy-1-36-0]: https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-136
3389 [cargo-1-36-0]: https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-136-2019-07-04
3390
3391
3392 Version 1.35.0 (2019-05-23)
3393 ==========================
3394
3395 Language
3396 --------
3397 - [`FnOnce`, `FnMut`, and the `Fn` traits are now implemented for `Box<FnOnce>`,
3398   `Box<FnMut>`, and `Box<Fn>` respectively.][59500]
3399 - [You can now coerce closures into unsafe function pointers.][59580] e.g.
3400   ```rust
3401   unsafe fn call_unsafe(func: unsafe fn()) {
3402       func()
3403   }
3404
3405   pub fn main() {
3406       unsafe { call_unsafe(|| {}); }
3407   }
3408   ```
3409
3410
3411 Compiler
3412 --------
3413 - [Added the `armv6-unknown-freebsd-gnueabihf` and
3414   `armv7-unknown-freebsd-gnueabihf` targets.][58080]
3415 - [Added the `wasm32-unknown-wasi` target.][59464]
3416
3417
3418 Libraries
3419 ---------
3420 - [`Thread` will now show its ID in `Debug` output.][59460]
3421 - [`StdinLock`, `StdoutLock`, and `StderrLock` now implement `AsRawFd`.][59512]
3422 - [`alloc::System` now implements `Default`.][59451]
3423 - [Expanded `Debug` output (`{:#?}`) for structs now has a trailing comma on the
3424   last field.][59076]
3425 - [`char::{ToLowercase, ToUppercase}` now
3426   implement `ExactSizeIterator`.][58778]
3427 - [All `NonZero` numeric types now implement `FromStr`.][58717]
3428 - [Removed the `Read` trait bounds
3429   on the `BufReader::{get_ref, get_mut, into_inner}` methods.][58423]
3430 - [You can now call the `dbg!` macro without any parameters to print the file
3431   and line where it is called.][57847]
3432 - [In place ASCII case conversions are now up to 4× faster.][59283]
3433   e.g. `str::make_ascii_lowercase`
3434 - [`hash_map::{OccupiedEntry, VacantEntry}` now implement `Sync`
3435   and `Send`.][58369]
3436
3437 Stabilized APIs
3438 ---------------
3439 - [`f32::copysign`]
3440 - [`f64::copysign`]
3441 - [`RefCell::replace_with`]
3442 - [`RefCell::map_split`]
3443 - [`ptr::hash`]
3444 - [`Range::contains`]
3445 - [`RangeFrom::contains`]
3446 - [`RangeTo::contains`]
3447 - [`RangeInclusive::contains`]
3448 - [`RangeToInclusive::contains`]
3449 - [`Option::copied`]
3450
3451 Cargo
3452 -----
3453 - [You can now set `cargo:rustc-cdylib-link-arg` at build time to pass custom
3454   linker arguments when building a `cdylib`.][cargo/6298] Its usage is highly
3455   platform specific.
3456
3457 Misc
3458 ----
3459 - [The Rust toolchain is now available natively for musl based distros.][58575]
3460
3461 [59460]: https://github.com/rust-lang/rust/pull/59460/
3462 [59464]: https://github.com/rust-lang/rust/pull/59464/
3463 [59500]: https://github.com/rust-lang/rust/pull/59500/
3464 [59512]: https://github.com/rust-lang/rust/pull/59512/
3465 [59580]: https://github.com/rust-lang/rust/pull/59580/
3466 [59283]: https://github.com/rust-lang/rust/pull/59283/
3467 [59451]: https://github.com/rust-lang/rust/pull/59451/
3468 [59076]: https://github.com/rust-lang/rust/pull/59076/
3469 [58778]: https://github.com/rust-lang/rust/pull/58778/
3470 [58717]: https://github.com/rust-lang/rust/pull/58717/
3471 [58369]: https://github.com/rust-lang/rust/pull/58369/
3472 [58423]: https://github.com/rust-lang/rust/pull/58423/
3473 [58080]: https://github.com/rust-lang/rust/pull/58080/
3474 [57847]: https://github.com/rust-lang/rust/pull/57847/
3475 [58575]: https://github.com/rust-lang/rust/pull/58575
3476 [cargo/6298]: https://github.com/rust-lang/cargo/pull/6298/
3477 [`f32::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.copysign
3478 [`f64::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.copysign
3479 [`RefCell::replace_with`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.replace_with
3480 [`RefCell::map_split`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.map_split
3481 [`ptr::hash`]: https://doc.rust-lang.org/stable/std/ptr/fn.hash.html
3482 [`Range::contains`]: https://doc.rust-lang.org/std/ops/struct.Range.html#method.contains
3483 [`RangeFrom::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeFrom.html#method.contains
3484 [`RangeTo::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeTo.html#method.contains
3485 [`RangeInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.contains
3486 [`RangeToInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html#method.contains
3487 [`Option::copied`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.copied
3488
3489 Version 1.34.2 (2019-05-14)
3490 ===========================
3491
3492 * [Destabilize the `Error::type_id` function due to a security
3493    vulnerability][60785] ([CVE-2019-12083])
3494
3495 [60785]: https://github.com/rust-lang/rust/pull/60785
3496 [CVE-2019-12083]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12083
3497
3498 Version 1.34.1 (2019-04-25)
3499 ===========================
3500
3501 * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821]
3502 * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844]
3503 * [Fix Clippy panic when checking some macros][clippy/3805]
3504
3505 [clippy/3821]: https://github.com/rust-lang/rust-clippy/pull/3821
3506 [clippy/3844]: https://github.com/rust-lang/rust-clippy/pull/3844
3507 [clippy/3805]: https://github.com/rust-lang/rust-clippy/pull/3805
3508
3509 Version 1.34.0 (2019-04-11)
3510 ==========================
3511
3512 Language
3513 --------
3514 - [You can now use `#[deprecated = "reason"]`][58166] as a shorthand for
3515   `#[deprecated(note = "reason")]`. This was previously allowed by mistake
3516   but had no effect.
3517 - [You can now accept token streams in `#[attr()]`,`#[attr[]]`, and
3518   `#[attr{}]` procedural macros.][57367]
3519 - [You can now write `extern crate self as foo;`][57407] to import your
3520   crate's root into the extern prelude.
3521
3522
3523 Compiler
3524 --------
3525 - [You can now target `riscv64imac-unknown-none-elf` and
3526   `riscv64gc-unknown-none-elf`.][58406]
3527 - [You can now enable linker plugin LTO optimisations with
3528   `-C linker-plugin-lto`.][58057] This allows rustc to compile your Rust code
3529   into LLVM bitcode allowing LLVM to perform LTO optimisations across C/C++ FFI
3530   boundaries.
3531 - [You can now target `powerpc64-unknown-freebsd`.][57809]
3532
3533
3534 Libraries
3535 ---------
3536 - [The trait bounds have been removed on some of `HashMap<K, V, S>`'s and
3537   `HashSet<T, S>`'s basic methods.][58370] Most notably you no longer require
3538   the `Hash` trait to create an iterator.
3539 - [The `Ord` trait bounds have been removed on some of `BinaryHeap<T>`'s basic
3540   methods.][58421] Most notably you no longer require the `Ord` trait to create
3541   an iterator.
3542 - [The methods `overflowing_neg` and `wrapping_neg` are now `const` functions
3543   for all numeric types.][58044]
3544 - [Indexing a `str` is now generic over all types that
3545   implement `SliceIndex<str>`.][57604]
3546 - [`str::trim`, `str::trim_matches`, `str::trim_{start, end}`, and
3547   `str::trim_{start, end}_matches` are now `#[must_use]`][57106] and will
3548   produce a warning if their returning type is unused.
3549 - [The methods `checked_pow`, `saturating_pow`, `wrapping_pow`, and
3550   `overflowing_pow` are now available for all numeric types.][57873] These are
3551   equivalent to methods such as `wrapping_add` for the `pow` operation.
3552
3553
3554 Stabilized APIs
3555 ---------------
3556
3557 #### std & core
3558 * [`Any::type_id`]
3559 * [`Error::type_id`]
3560 * [`atomic::AtomicI16`]
3561 * [`atomic::AtomicI32`]
3562 * [`atomic::AtomicI64`]
3563 * [`atomic::AtomicI8`]
3564 * [`atomic::AtomicU16`]
3565 * [`atomic::AtomicU32`]
3566 * [`atomic::AtomicU64`]
3567 * [`atomic::AtomicU8`]
3568 * [`convert::Infallible`]
3569 * [`convert::TryFrom`]
3570 * [`convert::TryInto`]
3571 * [`iter::from_fn`]
3572 * [`iter::successors`]
3573 * [`num::NonZeroI128`]
3574 * [`num::NonZeroI16`]
3575 * [`num::NonZeroI32`]
3576 * [`num::NonZeroI64`]
3577 * [`num::NonZeroI8`]
3578 * [`num::NonZeroIsize`]
3579 * [`slice::sort_by_cached_key`]
3580 * [`str::escape_debug`]
3581 * [`str::escape_default`]
3582 * [`str::escape_unicode`]
3583 * [`str::split_ascii_whitespace`]
3584
3585 #### std
3586 * [`Instant::checked_add`]
3587 * [`Instant::checked_sub`]
3588 * [`SystemTime::checked_add`]
3589 * [`SystemTime::checked_sub`]
3590
3591 Cargo
3592 -----
3593 - [You can now use alternative registries to crates.io.][cargo/6654]
3594
3595 Misc
3596 ----
3597 - [You can now use the `?` operator in your documentation tests without manually
3598   adding `fn main() -> Result<(), _> {}`.][56470]
3599
3600 Compatibility Notes
3601 -------------------
3602 - [`Command::before_exec` is being replaced by the unsafe method
3603   `Command::pre_exec`][58059] and will be deprecated with Rust 1.37.0.
3604 - [Use of `ATOMIC_{BOOL, ISIZE, USIZE}_INIT` is now deprecated][57425] as you
3605   can now use `const` functions in `static` variables.
3606
3607 [58370]: https://github.com/rust-lang/rust/pull/58370/
3608 [58406]: https://github.com/rust-lang/rust/pull/58406/
3609 [58421]: https://github.com/rust-lang/rust/pull/58421/
3610 [58166]: https://github.com/rust-lang/rust/pull/58166/
3611 [58044]: https://github.com/rust-lang/rust/pull/58044/
3612 [58057]: https://github.com/rust-lang/rust/pull/58057/
3613 [58059]: https://github.com/rust-lang/rust/pull/58059/
3614 [57809]: https://github.com/rust-lang/rust/pull/57809/
3615 [57873]: https://github.com/rust-lang/rust/pull/57873/
3616 [57604]: https://github.com/rust-lang/rust/pull/57604/
3617 [57367]: https://github.com/rust-lang/rust/pull/57367/
3618 [57407]: https://github.com/rust-lang/rust/pull/57407/
3619 [57425]: https://github.com/rust-lang/rust/pull/57425/
3620 [57106]: https://github.com/rust-lang/rust/pull/57106/
3621 [56470]: https://github.com/rust-lang/rust/pull/56470/
3622 [cargo/6654]: https://github.com/rust-lang/cargo/pull/6654/
3623 [`Any::type_id`]: https://doc.rust-lang.org/std/any/trait.Any.html#tymethod.type_id
3624 [`Error::type_id`]: https://doc.rust-lang.org/std/error/trait.Error.html#method.type_id
3625 [`atomic::AtomicI16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI16.html
3626 [`atomic::AtomicI32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI32.html
3627 [`atomic::AtomicI64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI64.html
3628 [`atomic::AtomicI8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI8.html
3629 [`atomic::AtomicU16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU16.html
3630 [`atomic::AtomicU32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU32.html
3631 [`atomic::AtomicU64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html
3632 [`atomic::AtomicU8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html
3633 [`convert::Infallible`]: https://doc.rust-lang.org/std/convert/enum.Infallible.html
3634 [`convert::TryFrom`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html
3635 [`convert::TryInto`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html
3636 [`iter::from_fn`]: https://doc.rust-lang.org/std/iter/fn.from_fn.html
3637 [`iter::successors`]: https://doc.rust-lang.org/std/iter/fn.successors.html
3638 [`num::NonZeroI128`]: https://doc.rust-lang.org/std/num/struct.NonZeroI128.html
3639 [`num::NonZeroI16`]: https://doc.rust-lang.org/std/num/struct.NonZeroI16.html
3640 [`num::NonZeroI32`]: https://doc.rust-lang.org/std/num/struct.NonZeroI32.html
3641 [`num::NonZeroI64`]: https://doc.rust-lang.org/std/num/struct.NonZeroI64.html
3642 [`num::NonZeroI8`]: https://doc.rust-lang.org/std/num/struct.NonZeroI8.html
3643 [`num::NonZeroIsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroIsize.html
3644 [`slice::sort_by_cached_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key
3645 [`str::escape_debug`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_debug
3646 [`str::escape_default`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_default
3647 [`str::escape_unicode`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_unicode
3648 [`str::split_ascii_whitespace`]: https://doc.rust-lang.org/std/primitive.str.html#method.split_ascii_whitespace
3649 [`Instant::checked_add`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_add
3650 [`Instant::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_sub
3651 [`SystemTime::checked_add`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_add
3652 [`SystemTime::checked_sub`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_sub
3653
3654
3655 Version 1.33.0 (2019-02-28)
3656 ==========================
3657
3658 Language
3659 --------
3660 - [You can now use the `cfg(target_vendor)` attribute.][57465] E.g.
3661   `#[cfg(target_vendor="apple")] fn main() { println!("Hello Apple!"); }`
3662 - [Integer patterns such as in a match expression can now be exhaustive.][56362]
3663   E.g. You can have match statement on a `u8` that covers `0..=255` and
3664   you would no longer be required to have a `_ => unreachable!()` case.
3665 - [You can now have multiple patterns in `if let` and `while let`
3666   expressions.][57532] You can do this with the same syntax as a `match`
3667   expression. E.g.
3668   ```rust
3669   enum Creature {
3670       Crab(String),
3671       Lobster(String),
3672       Person(String),
3673   }
3674
3675   fn main() {
3676       let state = Creature::Crab("Ferris");
3677
3678       if let Creature::Crab(name) | Creature::Person(name) = state {
3679           println!("This creature's name is: {}", name);
3680       }
3681   }
3682   ```
3683 - [You can now have irrefutable `if let` and `while let` patterns.][57535] Using
3684   this feature will by default produce a warning as this behaviour can be
3685   unintuitive. E.g. `if let _ = 5 {}`
3686 - [You can now use `let` bindings, assignments, expression statements,
3687   and irrefutable pattern destructuring in const functions.][57175]
3688 - [You can now call unsafe const functions.][57067] E.g.
3689   ```rust
3690   const unsafe fn foo() -> i32 { 5 }
3691   const fn bar() -> i32 {
3692       unsafe { foo() }
3693   }
3694   ```
3695 - [You can now specify multiple attributes in a `cfg_attr` attribute.][57332]
3696   E.g. `#[cfg_attr(all(), must_use, optimize)]`
3697 - [You can now specify a specific alignment with the `#[repr(packed)]`
3698   attribute.][57049] E.g. `#[repr(packed(2))] struct Foo(i16, i32);` is a struct
3699   with an alignment of 2 bytes and a size of 6 bytes.
3700 - [You can now import an item from a module as an `_`.][56303] This allows you to
3701   import a trait's impls, and not have the name in the namespace. E.g.
3702   ```rust
3703   use std::io::Read as _;
3704
3705   // Allowed as there is only one `Read` in the module.
3706   pub trait Read {}
3707   ```
3708 - [You may now use `Rc`, `Arc`, and `Pin` as method receivers][56805].
3709
3710 Compiler
3711 --------
3712 - [You can now set a linker flavor for `rustc` with the `-Clinker-flavor`
3713   command line argument.][56351]
3714 - [The minimum required LLVM version has been bumped to 6.0.][56642]
3715 - [Added support for the PowerPC64 architecture on FreeBSD.][57615]
3716 - [The `x86_64-fortanix-unknown-sgx` target support has been upgraded to
3717   tier 2 support.][57130] Visit the [platform support][platform-support] page for
3718   information on Rust's platform support.
3719 - [Added support for the `thumbv7neon-linux-androideabi` and
3720   `thumbv7neon-unknown-linux-gnueabihf` targets.][56947]
3721 - [Added support for the `x86_64-unknown-uefi` target.][56769]
3722
3723 Libraries
3724 ---------
3725 - [The methods `overflowing_{add, sub, mul, shl, shr}` are now `const`
3726   functions for all numeric types.][57566]
3727 - [The methods `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
3728   are now `const` functions for all numeric types.][57105]
3729 - [The methods `is_positive` and `is_negative` are now `const` functions for
3730   all signed numeric types.][57105]
3731 - [The `get` method for all `NonZero` types is now `const`.][57167]
3732 - [The methods `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
3733   `swap_bytes`, `from_be`, `from_le`, `to_be`, `to_le` are now `const` for all
3734   numeric types.][57234]
3735 - [`Ipv4Addr::new` is now a `const` function][57234]
3736
3737 Stabilized APIs
3738 ---------------
3739 - [`unix::FileExt::read_exact_at`]
3740 - [`unix::FileExt::write_all_at`]
3741 - [`Option::transpose`]
3742 - [`Result::transpose`]
3743 - [`convert::identity`]
3744 - [`pin::Pin`]
3745 - [`marker::Unpin`]
3746 - [`marker::PhantomPinned`]
3747 - [`Vec::resize_with`]
3748 - [`VecDeque::resize_with`]
3749 - [`Duration::as_millis`]
3750 - [`Duration::as_micros`]
3751 - [`Duration::as_nanos`]
3752
3753
3754 Cargo
3755 -----
3756 - [You can now publish crates that require a feature flag to compile with
3757   `cargo publish --features` or `cargo publish --all-features`.][cargo/6453]
3758 - [Cargo should now rebuild a crate if a file was modified during the initial
3759   build.][cargo/6484]
3760
3761 Compatibility Notes
3762 -------------------
3763 - The methods `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
3764   are now deprecated in the standard library, and their usage will now produce a warning.
3765   Please use the `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}`
3766   methods instead.
3767 - The `Error::cause` method has been deprecated in favor of `Error::source` which supports
3768   downcasting.
3769 - [Libtest no longer creates a new thread for each test when
3770   `--test-threads=1`.  It also runs the tests in deterministic order][56243]
3771
3772 [56243]: https://github.com/rust-lang/rust/pull/56243
3773 [56303]: https://github.com/rust-lang/rust/pull/56303/
3774 [56351]: https://github.com/rust-lang/rust/pull/56351/
3775 [56362]: https://github.com/rust-lang/rust/pull/56362
3776 [56642]: https://github.com/rust-lang/rust/pull/56642/
3777 [56769]: https://github.com/rust-lang/rust/pull/56769/
3778 [56805]: https://github.com/rust-lang/rust/pull/56805
3779 [56947]: https://github.com/rust-lang/rust/pull/56947/
3780 [57049]: https://github.com/rust-lang/rust/pull/57049/
3781 [57067]: https://github.com/rust-lang/rust/pull/57067/
3782 [57105]: https://github.com/rust-lang/rust/pull/57105
3783 [57130]: https://github.com/rust-lang/rust/pull/57130/
3784 [57167]: https://github.com/rust-lang/rust/pull/57167/
3785 [57175]: https://github.com/rust-lang/rust/pull/57175/
3786 [57234]: https://github.com/rust-lang/rust/pull/57234/
3787 [57332]: https://github.com/rust-lang/rust/pull/57332/
3788 [57465]: https://github.com/rust-lang/rust/pull/57465/
3789 [57532]: https://github.com/rust-lang/rust/pull/57532/
3790 [57535]: https://github.com/rust-lang/rust/pull/57535/
3791 [57566]: https://github.com/rust-lang/rust/pull/57566/
3792 [57615]: https://github.com/rust-lang/rust/pull/57615/
3793 [cargo/6453]: https://github.com/rust-lang/cargo/pull/6453/
3794 [cargo/6484]: https://github.com/rust-lang/cargo/pull/6484/
3795 [`unix::FileExt::read_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
3796 [`unix::FileExt::write_all_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
3797 [`Option::transpose`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.transpose
3798 [`Result::transpose`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
3799 [`convert::identity`]: https://doc.rust-lang.org/std/convert/fn.identity.html
3800 [`pin::Pin`]: https://doc.rust-lang.org/std/pin/struct.Pin.html
3801 [`marker::Unpin`]: https://doc.rust-lang.org/stable/std/marker/trait.Unpin.html
3802 [`marker::PhantomPinned`]: https://doc.rust-lang.org/nightly/std/marker/struct.PhantomPinned.html
3803 [`Vec::resize_with`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize_with
3804 [`VecDeque::resize_with`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.resize_with
3805 [`Duration::as_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis
3806 [`Duration::as_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_micros
3807 [`Duration::as_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_nanos
3808 [platform-support]: https://forge.rust-lang.org/platform-support.html
3809
3810 Version 1.32.0 (2019-01-17)
3811 ==========================
3812
3813 Language
3814 --------
3815 #### 2018 edition
3816 - [You can now use the `?` operator in macro definitions.][56245] The `?`
3817   operator allows you to specify zero or one repetitions similar to the `*` and
3818   `+` operators.
3819 - [Module paths with no leading keyword like `super`, `self`, or `crate`, will
3820   now always resolve to the item (`enum`, `struct`, etc.) available in the
3821   module if present, before resolving to a external crate or an item the prelude.][56759]
3822   E.g.
3823   ```rust
3824   enum Color { Red, Green, Blue }
3825
3826   use Color::*;
3827   ```
3828
3829 #### All editions
3830 - [You can now match against `PhantomData<T>` types.][55837]
3831 - [You can now match against literals in macros with the `literal`
3832   specifier.][56072] This will match against a literal of any type.
3833   E.g. `1`, `'A'`, `"Hello World"`
3834 - [Self can now be used as a constructor and pattern for unit and tuple structs.][56365] E.g.
3835   ```rust
3836   struct Point(i32, i32);
3837
3838   impl Point {
3839       pub fn new(x: i32, y: i32) -> Self {
3840           Self(x, y)
3841       }
3842
3843       pub fn is_origin(&self) -> bool {
3844           match self {
3845               Self(0, 0) => true,
3846               _ => false,
3847           }
3848       }
3849   }
3850   ```
3851 - [Self can also now be used in type definitions.][56366] E.g.
3852   ```rust
3853   enum List<T>
3854   where
3855       Self: PartialOrd<Self> // can write `Self` instead of `List<T>`
3856   {
3857       Nil,
3858       Cons(T, Box<Self>) // likewise here
3859   }
3860   ```
3861 - [You can now mark traits with `#[must_use]`.][55663] This provides a warning if
3862   a `impl Trait` or `dyn Trait` is returned and unused in the program.
3863
3864 Compiler
3865 --------
3866 - [The default allocator has changed from jemalloc to the default allocator on
3867   your system.][55238] The compiler itself on Linux & macOS will still use
3868   jemalloc, but programs compiled with it will use the system allocator.
3869 - [Added the `aarch64-pc-windows-msvc` target.][55702]
3870
3871 Libraries
3872 ---------
3873 - [`PathBuf` now implements `FromStr`.][55148]
3874 - [`Box<[T]>` now implements `FromIterator<T>`.][55843]
3875 - [The `dbg!` macro has been stabilized.][56395] This macro enables you to
3876   easily debug expressions in your rust program. E.g.
3877   ```rust
3878   let a = 2;
3879   let b = dbg!(a * 2) + 1;
3880   //      ^-- prints: [src/main.rs:4] a * 2 = 4
3881   assert_eq!(b, 5);
3882   ```
3883
3884 The following APIs are now `const` functions and can be used in a
3885 `const` context.
3886
3887 - [`Cell::as_ptr`]
3888 - [`UnsafeCell::get`]
3889 - [`char::is_ascii`]
3890 - [`iter::empty`]
3891 - [`ManuallyDrop::new`]
3892 - [`ManuallyDrop::into_inner`]
3893 - [`RangeInclusive::start`]
3894 - [`RangeInclusive::end`]
3895 - [`NonNull::as_ptr`]
3896 - [`slice::as_ptr`]
3897 - [`str::as_ptr`]
3898 - [`Duration::as_secs`]
3899 - [`Duration::subsec_millis`]
3900 - [`Duration::subsec_micros`]
3901 - [`Duration::subsec_nanos`]
3902 - [`CStr::as_ptr`]
3903 - [`Ipv4Addr::is_unspecified`]
3904 - [`Ipv6Addr::new`]
3905 - [`Ipv6Addr::octets`]
3906
3907 Stabilized APIs
3908 ---------------
3909 - [`i8::to_be_bytes`]
3910 - [`i8::to_le_bytes`]
3911 - [`i8::to_ne_bytes`]
3912 - [`i8::from_be_bytes`]
3913 - [`i8::from_le_bytes`]
3914 - [`i8::from_ne_bytes`]
3915 - [`i16::to_be_bytes`]
3916 - [`i16::to_le_bytes`]
3917 - [`i16::to_ne_bytes`]
3918 - [`i16::from_be_bytes`]
3919 - [`i16::from_le_bytes`]
3920 - [`i16::from_ne_bytes`]
3921 - [`i32::to_be_bytes`]
3922 - [`i32::to_le_bytes`]
3923 - [`i32::to_ne_bytes`]
3924 - [`i32::from_be_bytes`]
3925 - [`i32::from_le_bytes`]
3926 - [`i32::from_ne_bytes`]
3927 - [`i64::to_be_bytes`]
3928 - [`i64::to_le_bytes`]
3929 - [`i64::to_ne_bytes`]
3930 - [`i64::from_be_bytes`]
3931 - [`i64::from_le_bytes`]
3932 - [`i64::from_ne_bytes`]
3933 - [`i128::to_be_bytes`]
3934 - [`i128::to_le_bytes`]
3935 - [`i128::to_ne_bytes`]
3936 - [`i128::from_be_bytes`]
3937 - [`i128::from_le_bytes`]
3938 - [`i128::from_ne_bytes`]
3939 - [`isize::to_be_bytes`]
3940 - [`isize::to_le_bytes`]
3941 - [`isize::to_ne_bytes`]
3942 - [`isize::from_be_bytes`]
3943 - [`isize::from_le_bytes`]
3944 - [`isize::from_ne_bytes`]
3945 - [`u8::to_be_bytes`]
3946 - [`u8::to_le_bytes`]
3947 - [`u8::to_ne_bytes`]
3948 - [`u8::from_be_bytes`]
3949 - [`u8::from_le_bytes`]
3950 - [`u8::from_ne_bytes`]
3951 - [`u16::to_be_bytes`]
3952 - [`u16::to_le_bytes`]
3953 - [`u16::to_ne_bytes`]
3954 - [`u16::from_be_bytes`]
3955 - [`u16::from_le_bytes`]
3956 - [`u16::from_ne_bytes`]
3957 - [`u32::to_be_bytes`]
3958 - [`u32::to_le_bytes`]
3959 - [`u32::to_ne_bytes`]
3960 - [`u32::from_be_bytes`]
3961 - [`u32::from_le_bytes`]
3962 - [`u32::from_ne_bytes`]
3963 - [`u64::to_be_bytes`]
3964 - [`u64::to_le_bytes`]
3965 - [`u64::to_ne_bytes`]
3966 - [`u64::from_be_bytes`]
3967 - [`u64::from_le_bytes`]
3968 - [`u64::from_ne_bytes`]
3969 - [`u128::to_be_bytes`]
3970 - [`u128::to_le_bytes`]
3971 - [`u128::to_ne_bytes`]
3972 - [`u128::from_be_bytes`]
3973 - [`u128::from_le_bytes`]
3974 - [`u128::from_ne_bytes`]
3975 - [`usize::to_be_bytes`]
3976 - [`usize::to_le_bytes`]
3977 - [`usize::to_ne_bytes`]
3978 - [`usize::from_be_bytes`]
3979 - [`usize::from_le_bytes`]
3980 - [`usize::from_ne_bytes`]
3981
3982 Cargo
3983 -----
3984 - [You can now run `cargo c` as an alias for `cargo check`.][cargo/6218]
3985 - [Usernames are now allowed in alt registry URLs.][cargo/6242]
3986
3987 Misc
3988 ----
3989 - [`libproc_macro` has been added to the `rust-src` distribution.][55280]
3990
3991 Compatibility Notes
3992 -------------------
3993 - [The argument types for AVX's
3994   `_mm256_stream_si256`, `_mm256_stream_pd`, `_mm256_stream_ps`][55610] have
3995   been changed from `*const` to `*mut` as the previous implementation
3996   was unsound.
3997
3998
3999 [55148]: https://github.com/rust-lang/rust/pull/55148/
4000 [55238]: https://github.com/rust-lang/rust/pull/55238/
4001 [55280]: https://github.com/rust-lang/rust/pull/55280/
4002 [55610]: https://github.com/rust-lang/rust/pull/55610/
4003 [55663]: https://github.com/rust-lang/rust/pull/55663/
4004 [55702]: https://github.com/rust-lang/rust/pull/55702/
4005 [55837]: https://github.com/rust-lang/rust/pull/55837/
4006 [55843]: https://github.com/rust-lang/rust/pull/55843/
4007 [56072]: https://github.com/rust-lang/rust/pull/56072/
4008 [56245]: https://github.com/rust-lang/rust/pull/56245/
4009 [56365]: https://github.com/rust-lang/rust/pull/56365/
4010 [56366]: https://github.com/rust-lang/rust/pull/56366/
4011 [56395]: https://github.com/rust-lang/rust/pull/56395/
4012 [56759]: https://github.com/rust-lang/rust/pull/56759/
4013 [cargo/6218]: https://github.com/rust-lang/cargo/pull/6218/
4014 [cargo/6242]: https://github.com/rust-lang/cargo/pull/6242/
4015 [`CStr::as_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.as_ptr
4016 [`Cell::as_ptr`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr
4017 [`Duration::as_secs`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs
4018 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4019 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4020 [`Duration::subsec_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_nanos
4021 [`Ipv4Addr::is_unspecified`]: https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified
4022 [`Ipv6Addr::new`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.new
4023 [`Ipv6Addr::octets`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets
4024 [`ManuallyDrop::into_inner`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.into_inner
4025 [`ManuallyDrop::new`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.new
4026 [`NonNull::as_ptr`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.as_ptr
4027 [`RangeInclusive::end`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
4028 [`RangeInclusive::start`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
4029 [`UnsafeCell::get`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html#method.get
4030 [`slice::as_ptr`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
4031 [`char::is_ascii`]: https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
4032 [`i128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_be_bytes
4033 [`i128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_le_bytes
4034 [`i128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_ne_bytes
4035 [`i128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_be_bytes
4036 [`i128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_le_bytes
4037 [`i128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_ne_bytes
4038 [`i16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
4039 [`i16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
4040 [`i16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_ne_bytes
4041 [`i16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_be_bytes
4042 [`i16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_le_bytes
4043 [`i16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_ne_bytes
4044 [`i32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_be_bytes
4045 [`i32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_le_bytes
4046 [`i32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_ne_bytes
4047 [`i32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_be_bytes
4048 [`i32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_le_bytes
4049 [`i32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_ne_bytes
4050 [`i64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_be_bytes
4051 [`i64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_le_bytes
4052 [`i64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_ne_bytes
4053 [`i64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_be_bytes
4054 [`i64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_le_bytes
4055 [`i64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_ne_bytes
4056 [`i8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_be_bytes
4057 [`i8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_le_bytes
4058 [`i8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_ne_bytes
4059 [`i8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_be_bytes
4060 [`i8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_le_bytes
4061 [`i8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_ne_bytes
4062 [`isize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_be_bytes
4063 [`isize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_le_bytes
4064 [`isize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_ne_bytes
4065 [`isize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_be_bytes
4066 [`isize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_le_bytes
4067 [`isize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_ne_bytes
4068 [`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
4069 [`str::as_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_ptr
4070 [`u128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_be_bytes
4071 [`u128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_le_bytes
4072 [`u128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_ne_bytes
4073 [`u128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_be_bytes
4074 [`u128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_le_bytes
4075 [`u128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_ne_bytes
4076 [`u16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_be_bytes
4077 [`u16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_le_bytes
4078 [`u16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_ne_bytes
4079 [`u16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_be_bytes
4080 [`u16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_le_bytes
4081 [`u16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_ne_bytes
4082 [`u32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_be_bytes
4083 [`u32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_le_bytes
4084 [`u32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_ne_bytes
4085 [`u32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_be_bytes
4086 [`u32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_le_bytes
4087 [`u32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_ne_bytes
4088 [`u64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_be_bytes
4089 [`u64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_le_bytes
4090 [`u64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_ne_bytes
4091 [`u64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_be_bytes
4092 [`u64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_le_bytes
4093 [`u64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_ne_bytes
4094 [`u8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_be_bytes
4095 [`u8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_le_bytes
4096 [`u8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_ne_bytes
4097 [`u8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_be_bytes
4098 [`u8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_le_bytes
4099 [`u8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ne_bytes
4100 [`usize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_be_bytes
4101 [`usize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_le_bytes
4102 [`usize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_ne_bytes
4103 [`usize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_be_bytes
4104 [`usize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_le_bytes
4105 [`usize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_ne_bytes
4106
4107
4108 Version 1.31.1 (2018-12-20)
4109 ===========================
4110
4111 - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562]
4112 - [Fix broken go-to-definition in RLS][rls/1171]
4113 - [Fix infinite loop on hover in RLS][rls/1170]
4114
4115 [56562]: https://github.com/rust-lang/rust/pull/56562
4116 [rls/1171]: https://github.com/rust-lang/rls/issues/1171
4117 [rls/1170]: https://github.com/rust-lang/rls/pull/1170
4118
4119 Version 1.31.0 (2018-12-06)
4120 ==========================
4121
4122 Language
4123 --------
4124 - 🎉 [This version marks the release of the 2018 edition of Rust.][54057] 🎉
4125 - [New lifetime elision rules now allow for eliding lifetimes in functions and
4126   impl headers.][54778] E.g. `impl<'a> Reader for BufReader<'a> {}` can now be
4127   `impl Reader for BufReader<'_> {}`. Lifetimes are still required to be defined
4128   in structs.
4129 - [You can now define and use `const` functions.][54835] These are currently
4130   a strict minimal subset of the [const fn RFC][RFC-911]. Refer to the
4131   [language reference][const-reference] for what exactly is available.
4132 - [You can now use tool lints, which allow you to scope lints from external
4133   tools using attributes.][54870] E.g. `#[allow(clippy::filter_map)]`.
4134 - [`#[no_mangle]` and `#[export_name]` attributes can now be located anywhere in
4135   a crate, not just in exported functions.][54451]
4136 - [You can now use parentheses in pattern matches.][54497]
4137
4138 Compiler
4139 --------
4140 - [Updated musl to 1.1.20][54430]
4141
4142 Libraries
4143 ---------
4144 - [You can now convert `num::NonZero*` types to their raw equivalents using the
4145   `From` trait.][54240] E.g. `u8` now implements `From<NonZeroU8>`.
4146 - [You can now convert a `&Option<T>` into `Option<&T>` and `&mut Option<T>`
4147   into `Option<&mut T>` using the `From` trait.][53218]
4148 - [You can now multiply (`*`) a `time::Duration` by a `u32`.][52813]
4149
4150
4151 Stabilized APIs
4152 ---------------
4153 - [`slice::align_to`]
4154 - [`slice::align_to_mut`]
4155 - [`slice::chunks_exact`]
4156 - [`slice::chunks_exact_mut`]
4157 - [`slice::rchunks`]
4158 - [`slice::rchunks_mut`]
4159 - [`slice::rchunks_exact`]
4160 - [`slice::rchunks_exact_mut`]
4161 - [`Option::replace`]
4162
4163 Cargo
4164 -----
4165 - [Cargo will now download crates in parallel using HTTP/2.][cargo/6005]
4166 - [You can now rename packages in your Cargo.toml][cargo/6319] We have a guide
4167   on [how to use the `package` key in your dependencies.][cargo-rename-reference]
4168
4169 [52813]: https://github.com/rust-lang/rust/pull/52813/
4170 [53218]: https://github.com/rust-lang/rust/pull/53218/
4171 [54057]: https://github.com/rust-lang/rust/pull/54057/
4172 [54240]: https://github.com/rust-lang/rust/pull/54240/
4173 [54430]: https://github.com/rust-lang/rust/pull/54430/
4174 [54451]: https://github.com/rust-lang/rust/pull/54451/
4175 [54497]: https://github.com/rust-lang/rust/pull/54497/
4176 [54778]: https://github.com/rust-lang/rust/pull/54778/
4177 [54835]: https://github.com/rust-lang/rust/pull/54835/
4178 [54870]: https://github.com/rust-lang/rust/pull/54870/
4179 [RFC-911]: https://github.com/rust-lang/rfcs/pull/911
4180 [`Option::replace`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.replace
4181 [`slice::align_to_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to_mut
4182 [`slice::align_to`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to
4183 [`slice::chunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact_mut
4184 [`slice::chunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact
4185 [`slice::rchunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4186 [`slice::rchunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_exact
4187 [`slice::rchunks_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4188 [`slice::rchunks`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks
4189 [cargo/6005]: https://github.com/rust-lang/cargo/pull/6005/
4190 [cargo/6319]: https://github.com/rust-lang/cargo/pull/6319/
4191 [cargo-rename-reference]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
4192 [const-reference]: https://doc.rust-lang.org/reference/items/functions.html#const-functions
4193
4194 Version 1.30.1 (2018-11-08)
4195 ===========================
4196
4197 - [Fixed overflow ICE in rustdoc][54199]
4198 - [Cap Cargo progress bar width at 60 in MSYS terminals][cargo/6122]
4199
4200 [54199]: https://github.com/rust-lang/rust/pull/54199
4201 [cargo/6122]: https://github.com/rust-lang/cargo/pull/6122
4202
4203 Version 1.30.0 (2018-10-25)
4204 ==========================
4205
4206 Language
4207 --------
4208 - [Procedural macros are now available.][52081] These kinds of macros allow for
4209   more powerful code generation. There is a [new chapter available][proc-macros]
4210   in the Rust Programming Language book that goes further in depth.
4211 - [You can now use keywords as identifiers using the raw identifiers
4212   syntax (`r#`),][53236] e.g. `let r#for = true;`
4213 - [Using anonymous parameters in traits is now deprecated with a warning and
4214   will be a hard error in the 2018 edition.][53272]
4215 - [You can now use `crate` in paths.][54404] This allows you to refer to the
4216   crate root in the path, e.g. `use crate::foo;` refers to `foo` in `src/lib.rs`.
4217 - [Using a external crate no longer requires being prefixed with `::`.][54404]
4218   Previously, using a external crate in a module without a use statement
4219   required `let json = ::serde_json::from_str(foo);` but can now be written
4220   as `let json = serde_json::from_str(foo);`.
4221 - [You can now apply the `#[used]` attribute to static items to prevent the
4222   compiler from optimising them away, even if they appear to be unused,][51363]
4223   e.g. `#[used] static FOO: u32 = 1;`
4224 - [You can now import and reexport macros from other crates with the `use`
4225   syntax.][50911] Macros exported with `#[macro_export]` are now placed into
4226   the root module of the crate. If your macro relies on calling other local
4227   macros, it is recommended to export with the
4228   `#[macro_export(local_inner_macros)]` attribute so users won't have to import
4229   those macros.
4230 - [You can now catch visibility keywords (e.g. `pub`, `pub(crate)`) in macros
4231   using the `vis` specifier.][53370]
4232 - [Non-macro attributes now allow all forms of literals, not just
4233   strings.][53044] Previously, you would write `#[attr("true")]`, and you can now
4234   write `#[attr(true)]`.
4235 - [You can now specify a function to handle a panic in the Rust runtime with the
4236   `#[panic_handler]` attribute.][51366]
4237
4238 Compiler
4239 --------
4240 - [Added the `riscv32imc-unknown-none-elf` target.][53822]
4241 - [Added the `aarch64-unknown-netbsd` target][53165]
4242 - [Upgraded to LLVM 8.][53611]
4243
4244 Libraries
4245 ---------
4246 - [`ManuallyDrop` now allows the inner type to be unsized.][53033]
4247
4248 Stabilized APIs
4249 ---------------
4250 - [`Ipv4Addr::BROADCAST`]
4251 - [`Ipv4Addr::LOCALHOST`]
4252 - [`Ipv4Addr::UNSPECIFIED`]
4253 - [`Ipv6Addr::LOCALHOST`]
4254 - [`Ipv6Addr::UNSPECIFIED`]
4255 - [`Iterator::find_map`]
4256
4257   The following methods are replacement methods for `trim_left`, `trim_right`,
4258   `trim_left_matches`, and `trim_right_matches`, which will be deprecated
4259   in 1.33.0:
4260 - [`str::trim_end_matches`]
4261 - [`str::trim_end`]
4262 - [`str::trim_start_matches`]
4263 - [`str::trim_start`]
4264
4265 Cargo
4266 ----
4267 - [`cargo run` doesn't require specifying a package in workspaces.][cargo/5877]
4268 - [`cargo doc` now supports `--message-format=json`.][cargo/5878] This is
4269   equivalent to calling `rustdoc --error-format=json`.
4270 - [Cargo will now provide a progress bar for builds.][cargo/5995]
4271
4272 Misc
4273 ----
4274 - [`rustdoc` allows you to specify what edition to treat your code as with the
4275   `--edition` option.][54057]
4276 - [`rustdoc` now has the `--color` (specify whether to output color) and
4277   `--error-format` (specify error format, e.g. `json`) options.][53003]
4278 - [We now distribute a `rust-gdbgui` script that invokes `gdbgui` with Rust
4279   debug symbols.][53774]
4280 - [Attributes from Rust tools such as `rustfmt` or `clippy` are now
4281   available,][53459] e.g. `#[rustfmt::skip]` will skip formatting the next item.
4282
4283 [50911]: https://github.com/rust-lang/rust/pull/50911/
4284 [51363]: https://github.com/rust-lang/rust/pull/51363/
4285 [51366]: https://github.com/rust-lang/rust/pull/51366/
4286 [52081]: https://github.com/rust-lang/rust/pull/52081/
4287 [53003]: https://github.com/rust-lang/rust/pull/53003/
4288 [53033]: https://github.com/rust-lang/rust/pull/53033/
4289 [53044]: https://github.com/rust-lang/rust/pull/53044/
4290 [53165]: https://github.com/rust-lang/rust/pull/53165/
4291 [53611]: https://github.com/rust-lang/rust/pull/53611/
4292 [53236]: https://github.com/rust-lang/rust/pull/53236/
4293 [53272]: https://github.com/rust-lang/rust/pull/53272/
4294 [53370]: https://github.com/rust-lang/rust/pull/53370/
4295 [53459]: https://github.com/rust-lang/rust/pull/53459/
4296 [53774]: https://github.com/rust-lang/rust/pull/53774/
4297 [53822]: https://github.com/rust-lang/rust/pull/53822/
4298 [54057]: https://github.com/rust-lang/rust/pull/54057/
4299 [54404]: https://github.com/rust-lang/rust/pull/54404/
4300 [cargo/5877]: https://github.com/rust-lang/cargo/pull/5877/
4301 [cargo/5878]: https://github.com/rust-lang/cargo/pull/5878/
4302 [cargo/5995]: https://github.com/rust-lang/cargo/pull/5995/
4303 [proc-macros]: https://doc.rust-lang.org/nightly/book/2018-edition/ch19-06-macros.html
4304
4305 [`Ipv4Addr::BROADCAST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.BROADCAST
4306 [`Ipv4Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.LOCALHOST
4307 [`Ipv4Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.UNSPECIFIED
4308 [`Ipv6Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.LOCALHOST
4309 [`Ipv6Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.UNSPECIFIED
4310 [`Iterator::find_map`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find_map
4311 [`str::trim_end_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end_matches
4312 [`str::trim_end`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end
4313 [`str::trim_start_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start_matches
4314 [`str::trim_start`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start
4315
4316
4317 Version 1.29.2 (2018-10-11)
4318 ===========================
4319
4320 - [Workaround for an aliasing-related LLVM bug, which caused miscompilation.][54639]
4321 - The `rls-preview` component on the windows-gnu targets has been restored.
4322
4323 [54639]: https://github.com/rust-lang/rust/pull/54639
4324
4325
4326 Version 1.29.1 (2018-09-25)
4327 ===========================
4328
4329 Security Notes
4330 --------------
4331
4332 - The standard library's `str::repeat` function contained an out of bounds write
4333   caused by an integer overflow. This has been fixed by deterministically
4334   panicking when an overflow happens.
4335
4336   Thank you to Scott McMurray for responsibly disclosing this vulnerability to
4337   us.
4338
4339
4340 Version 1.29.0 (2018-09-13)
4341 ==========================
4342
4343 Compiler
4344 --------
4345 - [Bumped minimum LLVM version to 5.0.][51899]
4346 - [Added `powerpc64le-unknown-linux-musl` target.][51619]
4347 - [Added `aarch64-unknown-hermit` and `x86_64-unknown-hermit` targets.][52861]
4348 - [Upgraded to LLVM 7.][51966]
4349
4350 Libraries
4351 ---------
4352 - [`Once::call_once` no longer requires `Once` to be `'static`.][52239]
4353 - [`BuildHasherDefault` now implements `PartialEq` and `Eq`.][52402]
4354 - [`Box<CStr>`, `Box<OsStr>`, and `Box<Path>` now implement `Clone`.][51912]
4355 - [Implemented `PartialEq<&str>` for `OsString` and `PartialEq<OsString>`
4356   for `&str`.][51178]
4357 - [`Cell<T>` now allows `T` to be unsized.][50494]
4358 - [`SocketAddr` is now stable on Redox.][52656]
4359
4360 Stabilized APIs
4361 ---------------
4362 - [`Arc::downcast`]
4363 - [`Iterator::flatten`]
4364 - [`Rc::downcast`]
4365
4366 Cargo
4367 -----
4368 - [Cargo can silently fix some bad lockfiles.][cargo/5831] You can use
4369   `--locked` to disable this behavior.
4370 - [`cargo-install` will now allow you to cross compile an install
4371   using `--target`.][cargo/5614]
4372 - [Added the `cargo-fix` subcommand to automatically move project code from
4373   2015 edition to 2018.][cargo/5723]
4374 - [`cargo doc` can now optionally document private types using the
4375   `--document-private-items` flag.][cargo/5543]
4376
4377 Misc
4378 ----
4379 - [`rustdoc` now has the `--cap-lints` option which demotes all lints above
4380   the specified level to that level.][52354] For example `--cap-lints warn`
4381   will demote `deny` and `forbid` lints to `warn`.
4382 - [`rustc` and `rustdoc` will now have the exit code of `1` if compilation
4383   fails and `101` if there is a panic.][52197]
4384 - [A preview of clippy has been made available through rustup.][51122]
4385   You can install the preview with `rustup component add clippy-preview`.
4386
4387 Compatibility Notes
4388 -------------------
4389 - [`str::{slice_unchecked, slice_unchecked_mut}` are now deprecated.][51807]
4390   Use `str::get_unchecked(begin..end)` instead.
4391 - [`std::env::home_dir` is now deprecated for its unintuitive behavior.][51656]
4392   Consider using the `home_dir` function from
4393   https://crates.io/crates/dirs instead.
4394 - [`rustc` will no longer silently ignore invalid data in target spec.][52330]
4395 - [`cfg` attributes and `--cfg` command line flags are now more
4396   strictly validated.][53893]
4397
4398 [53893]: https://github.com/rust-lang/rust/pull/53893/
4399 [52861]: https://github.com/rust-lang/rust/pull/52861/
4400 [51966]: https://github.com/rust-lang/rust/pull/51966/
4401 [52656]: https://github.com/rust-lang/rust/pull/52656/
4402 [52239]: https://github.com/rust-lang/rust/pull/52239/
4403 [52330]: https://github.com/rust-lang/rust/pull/52330/
4404 [52354]: https://github.com/rust-lang/rust/pull/52354/
4405 [52402]: https://github.com/rust-lang/rust/pull/52402/
4406 [52197]: https://github.com/rust-lang/rust/pull/52197/
4407 [51807]: https://github.com/rust-lang/rust/pull/51807/
4408 [51899]: https://github.com/rust-lang/rust/pull/51899/
4409 [51912]: https://github.com/rust-lang/rust/pull/51912/
4410 [51619]: https://github.com/rust-lang/rust/pull/51619/
4411 [51656]: https://github.com/rust-lang/rust/pull/51656/
4412 [51178]: https://github.com/rust-lang/rust/pull/51178/
4413 [51122]: https://github.com/rust-lang/rust/pull/51122
4414 [50494]: https://github.com/rust-lang/rust/pull/50494/
4415 [cargo/5543]: https://github.com/rust-lang/cargo/pull/5543
4416 [cargo/5614]: https://github.com/rust-lang/cargo/pull/5614/
4417 [cargo/5723]: https://github.com/rust-lang/cargo/pull/5723/
4418 [cargo/5831]: https://github.com/rust-lang/cargo/pull/5831/
4419 [`Arc::downcast`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.downcast
4420 [`Iterator::flatten`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flatten
4421 [`Rc::downcast`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.downcast
4422
4423
4424 Version 1.28.0 (2018-08-02)
4425 ===========================
4426
4427 Language
4428 --------
4429 - [The `#[repr(transparent)]` attribute is now stable.][51562] This attribute
4430   allows a Rust newtype wrapper (`struct NewType<T>(T);`) to be represented as
4431   the inner type across Foreign Function Interface (FFI) boundaries.
4432 - [The keywords `pure`, `sizeof`, `alignof`, and `offsetof` have been unreserved
4433   and can now be used as identifiers.][51196]
4434 - [The `GlobalAlloc` trait and `#[global_allocator]` attribute are now
4435   stable.][51241] This will allow users to specify a global allocator for
4436   their program.
4437 - [Unit test functions marked with the `#[test]` attribute can now return
4438   `Result<(), E: Debug>` in addition to `()`.][51298]
4439 - [The `lifetime` specifier for `macro_rules!` is now stable.][50385] This
4440   allows macros to easily target lifetimes.
4441
4442 Compiler
4443 --------
4444 - [The `s` and `z` optimisation levels are now stable.][50265] These optimisations
4445   prioritise making smaller binary sizes. `z` is the same as `s` with the
4446   exception that it does not vectorise loops, which typically results in an even
4447   smaller binary.
4448 - [The short error format is now stable.][49546] Specified with
4449   `--error-format=short` this option will provide a more compressed output of
4450   rust error messages.
4451 - [Added a lint warning when you have duplicated `macro_export`s.][50143]
4452 - [Reduced the number of allocations in the macro parser.][50855] This can
4453   improve compile times of macro heavy crates on average by 5%.
4454
4455 Libraries
4456 ---------
4457 - [Implemented `Default` for `&mut str`.][51306]
4458 - [Implemented `From<bool>` for all integer and unsigned number types.][50554]
4459 - [Implemented `Extend` for `()`.][50234]
4460 - [The `Debug` implementation of `time::Duration` should now be more easily
4461   human readable.][50364] Previously a `Duration` of one second would printed as
4462   `Duration { secs: 1, nanos: 0 }` and will now be printed as `1s`.
4463 - [Implemented `From<&String>` for `Cow<str>`, `From<&Vec<T>>` for `Cow<[T]>`,
4464   `From<Cow<CStr>>` for `CString`, `From<CString>, From<CStr>, From<&CString>`
4465   for `Cow<CStr>`, `From<OsString>, From<OsStr>, From<&OsString>` for
4466   `Cow<OsStr>`, `From<&PathBuf>` for `Cow<Path>`, and `From<Cow<Path>>`
4467   for `PathBuf`.][50170]
4468 - [Implemented `Shl` and `Shr` for `Wrapping<u128>`
4469   and `Wrapping<i128>`.][50465]
4470 - [`DirEntry::metadata` now uses `fstatat` instead of `lstat` when
4471   possible.][51050] This can provide up to a 40% speed increase.
4472 - [Improved error messages when using `format!`.][50610]
4473
4474 Stabilized APIs
4475 ---------------
4476 - [`Iterator::step_by`]
4477 - [`Path::ancestors`]
4478 - [`SystemTime::UNIX_EPOCH`]
4479 - [`alloc::GlobalAlloc`]
4480 - [`alloc::Layout`]
4481 - [`alloc::LayoutErr`]
4482 - [`alloc::System`]
4483 - [`alloc::alloc`]
4484 - [`alloc::alloc_zeroed`]
4485 - [`alloc::dealloc`]
4486 - [`alloc::realloc`]
4487 - [`alloc::handle_alloc_error`]
4488 - [`btree_map::Entry::or_default`]
4489 - [`fmt::Alignment`]
4490 - [`hash_map::Entry::or_default`]
4491 - [`iter::repeat_with`]
4492 - [`num::NonZeroUsize`]
4493 - [`num::NonZeroU128`]
4494 - [`num::NonZeroU16`]
4495 - [`num::NonZeroU32`]
4496 - [`num::NonZeroU64`]
4497 - [`num::NonZeroU8`]
4498 - [`ops::RangeBounds`]
4499 - [`slice::SliceIndex`]
4500 - [`slice::from_mut`]
4501 - [`slice::from_ref`]
4502 - [`{Any + Send + Sync}::downcast_mut`]
4503 - [`{Any + Send + Sync}::downcast_ref`]
4504 - [`{Any + Send + Sync}::is`]
4505
4506 Cargo
4507 -----
4508 - [Cargo will now no longer allow you to publish crates with build scripts that
4509   modify the `src` directory.][cargo/5584] The `src` directory in a crate should be
4510   considered to be immutable.
4511
4512 Misc
4513 ----
4514 - [The `suggestion_applicability` field in `rustc`'s json output is now
4515   stable.][50486] This will allow dev tools to check whether a code suggestion
4516   would apply to them.
4517
4518 Compatibility Notes
4519 -------------------
4520 - [Rust will consider trait objects with duplicated constraints to be the same
4521   type as without the duplicated constraint.][51276] For example the below code will
4522   now fail to compile.
4523   ```rust
4524   trait Trait {}
4525
4526   impl Trait + Send {
4527       fn test(&self) { println!("one"); } //~ ERROR duplicate definitions with name `test`
4528   }
4529
4530   impl Trait + Send + Send {
4531       fn test(&self) { println!("two"); }
4532   }
4533   ```
4534
4535 [49546]: https://github.com/rust-lang/rust/pull/49546/
4536 [50143]: https://github.com/rust-lang/rust/pull/50143/
4537 [50170]: https://github.com/rust-lang/rust/pull/50170/
4538 [50234]: https://github.com/rust-lang/rust/pull/50234/
4539 [50265]: https://github.com/rust-lang/rust/pull/50265/
4540 [50364]: https://github.com/rust-lang/rust/pull/50364/
4541 [50385]: https://github.com/rust-lang/rust/pull/50385/
4542 [50465]: https://github.com/rust-lang/rust/pull/50465/
4543 [50486]: https://github.com/rust-lang/rust/pull/50486/
4544 [50554]: https://github.com/rust-lang/rust/pull/50554/
4545 [50610]: https://github.com/rust-lang/rust/pull/50610/
4546 [50855]: https://github.com/rust-lang/rust/pull/50855/
4547 [51050]: https://github.com/rust-lang/rust/pull/51050/
4548 [51196]: https://github.com/rust-lang/rust/pull/51196/
4549 [51241]: https://github.com/rust-lang/rust/pull/51241/
4550 [51276]: https://github.com/rust-lang/rust/pull/51276/
4551 [51298]: https://github.com/rust-lang/rust/pull/51298/
4552 [51306]: https://github.com/rust-lang/rust/pull/51306/
4553 [51562]: https://github.com/rust-lang/rust/pull/51562/
4554 [cargo/5584]: https://github.com/rust-lang/cargo/pull/5584/
4555 [`Iterator::step_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by
4556 [`Path::ancestors`]: https://doc.rust-lang.org/std/path/struct.Path.html#method.ancestors
4557 [`SystemTime::UNIX_EPOCH`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#associatedconstant.UNIX_EPOCH
4558 [`alloc::GlobalAlloc`]: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html
4559 [`alloc::Layout`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html
4560 [`alloc::LayoutErr`]: https://doc.rust-lang.org/std/alloc/struct.LayoutErr.html
4561 [`alloc::System`]: https://doc.rust-lang.org/std/alloc/struct.System.html
4562 [`alloc::alloc`]: https://doc.rust-lang.org/std/alloc/fn.alloc.html
4563 [`alloc::alloc_zeroed`]: https://doc.rust-lang.org/std/alloc/fn.alloc_zeroed.html
4564 [`alloc::dealloc`]: https://doc.rust-lang.org/std/alloc/fn.dealloc.html
4565 [`alloc::realloc`]: https://doc.rust-lang.org/std/alloc/fn.realloc.html
4566 [`alloc::handle_alloc_error`]: https://doc.rust-lang.org/std/alloc/fn.handle_alloc_error.html
4567 [`btree_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.or_default
4568 [`fmt::Alignment`]: https://doc.rust-lang.org/std/fmt/enum.Alignment.html
4569 [`hash_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.or_default
4570 [`iter::repeat_with`]: https://doc.rust-lang.org/std/iter/fn.repeat_with.html
4571 [`num::NonZeroUsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroUsize.html
4572 [`num::NonZeroU128`]: https://doc.rust-lang.org/std/num/struct.NonZeroU128.html
4573 [`num::NonZeroU16`]: https://doc.rust-lang.org/std/num/struct.NonZeroU16.html
4574 [`num::NonZeroU32`]: https://doc.rust-lang.org/std/num/struct.NonZeroU32.html
4575 [`num::NonZeroU64`]: https://doc.rust-lang.org/std/num/struct.NonZeroU64.html
4576 [`num::NonZeroU8`]: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
4577 [`ops::RangeBounds`]: https://doc.rust-lang.org/std/ops/trait.RangeBounds.html
4578 [`slice::SliceIndex`]: https://doc.rust-lang.org/std/slice/trait.SliceIndex.html
4579 [`slice::from_mut`]: https://doc.rust-lang.org/std/slice/fn.from_mut.html
4580 [`slice::from_ref`]: https://doc.rust-lang.org/std/slice/fn.from_ref.html
4581 [`{Any + Send + Sync}::downcast_mut`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_mut-2
4582 [`{Any + Send + Sync}::downcast_ref`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_ref-2
4583 [`{Any + Send + Sync}::is`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.is-2
4584
4585 Version 1.27.2 (2018-07-20)
4586 ===========================
4587
4588 Compatibility Notes
4589 -------------------
4590
4591 - The borrow checker was fixed to avoid potential unsoundness when using
4592   match ergonomics: [#52213][52213].
4593
4594 [52213]: https://github.com/rust-lang/rust/issues/52213
4595
4596 Version 1.27.1 (2018-07-10)
4597 ===========================
4598
4599 Security Notes
4600 --------------
4601
4602 - rustdoc would execute plugins in the /tmp/rustdoc/plugins directory
4603   when running, which enabled executing code as some other user on a
4604   given machine. This release fixes that vulnerability; you can read
4605   more about this on the [blog][rustdoc-sec]. The associated CVE is [CVE-2018-1000622].
4606
4607   Thank you to Red Hat for responsibly disclosing this vulnerability to us.
4608
4609 Compatibility Notes
4610 -------------------
4611
4612 - The borrow checker was fixed to avoid an additional potential unsoundness when using
4613   match ergonomics: [#51415][51415], [#49534][49534].
4614
4615 [51415]: https://github.com/rust-lang/rust/issues/51415
4616 [49534]: https://github.com/rust-lang/rust/issues/49534
4617 [rustdoc-sec]: https://blog.rust-lang.org/2018/07/06/security-advisory-for-rustdoc.html
4618 [CVE-2018-1000622]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=%20CVE-2018-1000622
4619
4620 Version 1.27.0 (2018-06-21)
4621 ==========================
4622
4623 Language
4624 --------
4625 - [Removed 'proc' from the reserved keywords list.][49699] This allows `proc` to
4626   be used as an identifier.
4627 - [The dyn syntax is now available.][49968] This syntax is equivalent to the
4628   bare `Trait` syntax, and should make it clearer when being used in tandem with
4629   `impl Trait` because it is equivalent to the following syntax:
4630   `&Trait == &dyn Trait`, `&mut Trait == &mut dyn Trait`, and
4631   `Box<Trait> == Box<dyn Trait>`.
4632 - [Attributes on generic parameters such as types and lifetimes are
4633   now stable.][48851] e.g.
4634   `fn foo<#[lifetime_attr] 'a, #[type_attr] T: 'a>() {}`
4635 - [The `#[must_use]` attribute can now also be used on functions as well as
4636   types.][48925] It provides a lint that by default warns users when the
4637   value returned by a function has not been used.
4638
4639 Compiler
4640 --------
4641 - [Added the `armv5te-unknown-linux-musleabi` target.][50423]
4642
4643 Libraries
4644 ---------
4645 - [SIMD (Single Instruction Multiple Data) on x86/x86_64 is now stable.][49664]
4646   This includes [`arch::x86`] & [`arch::x86_64`] modules which contain
4647   SIMD intrinsics, a new macro called `is_x86_feature_detected!`, the
4648   `#[target_feature(enable="")]` attribute, and adding `target_feature = ""` to
4649   the `cfg` attribute.
4650 - [A lot of methods for `[u8]`, `f32`, and `f64` previously only available in
4651   std are now available in core.][49896]
4652 - [The generic `Rhs` type parameter on `ops::{Shl, ShlAssign, Shr}` now defaults
4653   to `Self`.][49630]
4654 - [`std::str::replace` now has the `#[must_use]` attribute][50177] to clarify
4655   that the operation isn't done in place.
4656 - [`Clone::clone`, `Iterator::collect`, and `ToOwned::to_owned` now have
4657   the `#[must_use]` attribute][49533] to warn about unused potentially
4658   expensive allocations.
4659
4660 Stabilized APIs
4661 ---------------
4662 - [`DoubleEndedIterator::rfind`]
4663 - [`DoubleEndedIterator::rfold`]
4664 - [`DoubleEndedIterator::try_rfold`]
4665 - [`Duration::from_micros`]
4666 - [`Duration::from_nanos`]
4667 - [`Duration::subsec_micros`]
4668 - [`Duration::subsec_millis`]
4669 - [`HashMap::remove_entry`]
4670 - [`Iterator::try_fold`]
4671 - [`Iterator::try_for_each`]
4672 - [`NonNull::cast`]
4673 - [`Option::filter`]
4674 - [`String::replace_range`]
4675 - [`Take::set_limit`]
4676 - [`hint::unreachable_unchecked`]
4677 - [`os::unix::process::parent_id`]
4678 - [`ptr::swap_nonoverlapping`]
4679 - [`slice::rsplit_mut`]
4680 - [`slice::rsplit`]
4681 - [`slice::swap_with_slice`]
4682
4683 Cargo
4684 -----
4685 - [`cargo-metadata` now includes `authors`, `categories`, `keywords`,
4686   `readme`, and `repository` fields.][cargo/5386]
4687 - [`cargo-metadata` now includes a package's `metadata` table.][cargo/5360]
4688 - [Added the `--target-dir` optional argument.][cargo/5393] This allows you to specify
4689   a different directory than `target` for placing compilation artifacts.
4690 - [Cargo will be adding automatic target inference for binaries, benchmarks,
4691   examples, and tests in the Rust 2018 edition.][cargo/5335] If your project specifies
4692   specific targets, e.g. using `[[bin]]`, and have other binaries in locations
4693   where cargo would infer a binary, Cargo will produce a warning. You can
4694   disable this feature ahead of time by setting any of the following to false:
4695   `autobins`, `autobenches`, `autoexamples`, `autotests`.
4696 - [Cargo will now cache compiler information.][cargo/5359] This can be disabled by
4697   setting `CARGO_CACHE_RUSTC_INFO=0` in your environment.
4698
4699 Misc
4700 ----
4701 - [Added “The Rustc book” into the official documentation.][49707]
4702   [“The Rustc book”] documents and teaches how to use the rustc compiler.
4703 - [All books available on `doc.rust-lang.org` are now searchable.][49623]
4704
4705 Compatibility Notes
4706 -------------------
4707 - [Calling a `CharExt` or `StrExt` method directly on core will no longer
4708   work.][49896] e.g. `::core::prelude::v1::StrExt::is_empty("")` will not
4709   compile, `"".is_empty()` will still compile.
4710 - [`Debug` output on `atomic::{AtomicBool, AtomicIsize, AtomicPtr, AtomicUsize}`
4711   will only print the inner type.][48553] E.g.
4712   `print!("{:?}", AtomicBool::new(true))` will print `true`,
4713   not `AtomicBool(true)`.
4714 - [The maximum number for `repr(align(N))` is now 2²⁹.][50378] Previously you
4715   could enter higher numbers but they were not supported by LLVM. Up to 512MB
4716   alignment should cover all use cases.
4717 - The `.description()` method on the `std::error::Error` trait
4718   [has been soft-deprecated][50163]. It is no longer required to implement it.
4719
4720 [48553]: https://github.com/rust-lang/rust/pull/48553/
4721 [48851]: https://github.com/rust-lang/rust/pull/48851/
4722 [48925]: https://github.com/rust-lang/rust/pull/48925/
4723 [49533]: https://github.com/rust-lang/rust/pull/49533/
4724 [49623]: https://github.com/rust-lang/rust/pull/49623/
4725 [49630]: https://github.com/rust-lang/rust/pull/49630/
4726 [49664]: https://github.com/rust-lang/rust/pull/49664/
4727 [49699]: https://github.com/rust-lang/rust/pull/49699/
4728 [49707]: https://github.com/rust-lang/rust/pull/49707/
4729 [49896]: https://github.com/rust-lang/rust/pull/49896/
4730 [49968]: https://github.com/rust-lang/rust/pull/49968/
4731 [50163]: https://github.com/rust-lang/rust/pull/50163
4732 [50177]: https://github.com/rust-lang/rust/pull/50177/
4733 [50378]: https://github.com/rust-lang/rust/pull/50378/
4734 [50423]: https://github.com/rust-lang/rust/pull/50423/
4735 [cargo/5335]: https://github.com/rust-lang/cargo/pull/5335/
4736 [cargo/5359]: https://github.com/rust-lang/cargo/pull/5359/
4737 [cargo/5360]: https://github.com/rust-lang/cargo/pull/5360/
4738 [cargo/5386]: https://github.com/rust-lang/cargo/pull/5386/
4739 [cargo/5393]: https://github.com/rust-lang/cargo/pull/5393/
4740 [`DoubleEndedIterator::rfind`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfind
4741 [`DoubleEndedIterator::rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfold
4742 [`DoubleEndedIterator::try_rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
4743 [`Duration::from_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_micros
4744 [`Duration::from_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_nanos
4745 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4746 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4747 [`HashMap::remove_entry`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.remove_entry
4748 [`Iterator::try_fold`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_fold
4749 [`Iterator::try_for_each`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
4750 [`NonNull::cast`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.cast
4751 [`Option::filter`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.filter
4752 [`String::replace_range`]: https://doc.rust-lang.org/std/string/struct.String.html#method.replace_range
4753 [`Take::set_limit`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.set_limit
4754 [`hint::unreachable_unchecked`]: https://doc.rust-lang.org/std/hint/fn.unreachable_unchecked.html
4755 [`os::unix::process::parent_id`]: https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html
4756 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
4757 [`ptr::swap_nonoverlapping`]: https://doc.rust-lang.org/std/ptr/fn.swap_nonoverlapping.html
4758 [`slice::rsplit_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit_mut
4759 [`slice::rsplit`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit
4760 [`slice::swap_with_slice`]: https://doc.rust-lang.org/std/primitive.slice.html#method.swap_with_slice
4761 [`arch::x86_64`]: https://doc.rust-lang.org/std/arch/x86_64/index.html
4762 [`arch::x86`]: https://doc.rust-lang.org/std/arch/x86/index.html
4763 [“The Rustc book”]: https://doc.rust-lang.org/rustc
4764
4765
4766 Version 1.26.2 (2018-06-05)
4767 ==========================
4768
4769 Compatibility Notes
4770 -------------------
4771
4772 - [The borrow checker was fixed to avoid unsoundness when using match ergonomics.][51117]
4773
4774 [51117]: https://github.com/rust-lang/rust/issues/51117
4775
4776
4777 Version 1.26.1 (2018-05-29)
4778 ==========================
4779
4780 Tools
4781 -----
4782
4783 - [RLS now works on Windows.][50646]
4784 - [Rustfmt stopped badly formatting text in some cases.][rustfmt/2695]
4785
4786
4787 Compatibility Notes
4788 --------
4789
4790 - [`fn main() -> impl Trait` no longer works for non-Termination
4791   trait.][50656]
4792   This reverts an accidental stabilization.
4793 - [`NaN > NaN` no longer returns true in const-fn contexts.][50812]
4794 - [Prohibit using turbofish for `impl Trait` in method arguments.][50950]
4795
4796 [50646]: https://github.com/rust-lang/rust/issues/50646
4797 [50656]: https://github.com/rust-lang/rust/pull/50656
4798 [50812]: https://github.com/rust-lang/rust/pull/50812
4799 [50950]: https://github.com/rust-lang/rust/issues/50950
4800 [rustfmt/2695]: https://github.com/rust-lang-nursery/rustfmt/issues/2695
4801
4802 Version 1.26.0 (2018-05-10)
4803 ==========================
4804
4805 Language
4806 --------
4807 - [Closures now implement `Copy` and/or `Clone` if all captured variables
4808   implement either or both traits.][49299]
4809 - [The inclusive range syntax e.g. `for x in 0..=10` is now stable.][47813]
4810 - [The `'_` lifetime is now stable. The underscore lifetime can be used anywhere a
4811   lifetime can be elided.][49458]
4812 - [`impl Trait` is now stable allowing you to have abstract types in returns
4813    or in function parameters.][49255] E.g. `fn foo() -> impl Iterator<Item=u8>` or
4814   `fn open(path: impl AsRef<Path>)`.
4815 - [Pattern matching will now automatically apply dereferences.][49394]
4816 - [128-bit integers in the form of `u128` and `i128` are now stable.][49101]
4817 - [`main` can now return `Result<(), E: Debug>`][49162] in addition to `()`.
4818 - [A lot of operations are now available in a const context.][46882] E.g. You
4819   can now index into constant arrays, reference and dereference into constants,
4820   and use tuple struct constructors.
4821 - [Fixed entry slice patterns are now stable.][48516] E.g.
4822   ```rust
4823   let points = [1, 2, 3, 4];
4824   match points {
4825       [1, 2, 3, 4] => println!("All points were sequential."),
4826       _ => println!("Not all points were sequential."),
4827   }
4828   ```
4829
4830
4831 Compiler
4832 --------
4833 - [LLD is now used as the default linker for `wasm32-unknown-unknown`.][48125]
4834 - [Fixed exponential projection complexity on nested types.][48296]
4835   This can provide up to a ~12% reduction in compile times for certain crates.
4836 - [Added the `--remap-path-prefix` option to rustc.][48359] Allowing you
4837   to remap path prefixes outputted by the compiler.
4838 - [Added `powerpc-unknown-netbsd` target.][48281]
4839
4840 Libraries
4841 ---------
4842 - [Implemented `From<u16> for usize` & `From<{u8, i16}> for isize`.][49305]
4843 - [Added hexadecimal formatting for integers with fmt::Debug][48978]
4844   e.g. `assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]")`
4845 - [Implemented `Default, Hash` for `cmp::Reverse`.][48628]
4846 - [Optimized `str::repeat` being 8x faster in large cases.][48657]
4847 - [`ascii::escape_default` is now available in libcore.][48735]
4848 - [Trailing commas are now supported in std and core macros.][48056]
4849 - [Implemented `Copy, Clone` for `cmp::Reverse`][47379]
4850 - [Implemented `Clone` for `char::{ToLowercase, ToUppercase}`.][48629]
4851
4852 Stabilized APIs
4853 ---------------
4854 - [`*const T::add`]
4855 - [`*const T::copy_to_nonoverlapping`]
4856 - [`*const T::copy_to`]
4857 - [`*const T::read_unaligned`]
4858 - [`*const T::read_volatile`]
4859 - [`*const T::read`]
4860 - [`*const T::sub`]
4861 - [`*const T::wrapping_add`]
4862 - [`*const T::wrapping_sub`]
4863 - [`*mut T::add`]
4864 - [`*mut T::copy_to_nonoverlapping`]
4865 - [`*mut T::copy_to`]
4866 - [`*mut T::read_unaligned`]
4867 - [`*mut T::read_volatile`]
4868 - [`*mut T::read`]
4869 - [`*mut T::replace`]
4870 - [`*mut T::sub`]
4871 - [`*mut T::swap`]
4872 - [`*mut T::wrapping_add`]
4873 - [`*mut T::wrapping_sub`]
4874 - [`*mut T::write_bytes`]
4875 - [`*mut T::write_unaligned`]
4876 - [`*mut T::write_volatile`]
4877 - [`*mut T::write`]
4878 - [`Box::leak`]
4879 - [`FromUtf8Error::as_bytes`]
4880 - [`LocalKey::try_with`]
4881 - [`Option::cloned`]
4882 - [`btree_map::Entry::and_modify`]
4883 - [`fs::read_to_string`]
4884 - [`fs::read`]
4885 - [`fs::write`]
4886 - [`hash_map::Entry::and_modify`]
4887 - [`iter::FusedIterator`]
4888 - [`ops::RangeInclusive`]
4889 - [`ops::RangeToInclusive`]
4890 - [`process::id`]
4891 - [`slice::rotate_left`]
4892 - [`slice::rotate_right`]
4893 - [`String::retain`]
4894
4895
4896 Cargo
4897 -----
4898 - [Cargo will now output path to custom commands when `-v` is
4899   passed with `--list`][cargo/5041]
4900 - [The Cargo binary version is now the same as the Rust version][cargo/5083]
4901
4902 Misc
4903 ----
4904 - [The second edition of "The Rust Programming Language" book is now recommended
4905   over the first.][48404]
4906
4907 Compatibility Notes
4908 -------------------
4909
4910 - [aliasing a `Fn` trait as `dyn` no longer works.][48481] E.g. the following
4911   syntax is now invalid.
4912   ```
4913   use std::ops::Fn as dyn;
4914   fn g(_: Box<dyn(std::fmt::Debug)>) {}
4915   ```
4916 - [The result of dereferences are no longer promoted to `'static`.][47408]
4917   e.g.
4918   ```rust
4919   fn main() {
4920       const PAIR: &(i32, i32) = &(0, 1);
4921       let _reversed_pair: &'static _ = &(PAIR.1, PAIR.0); // Doesn't work
4922   }
4923   ```
4924 - [Deprecate `AsciiExt` trait in favor of inherent methods.][49109]
4925 - [`".e0"` will now no longer parse as `0.0` and will instead cause
4926   an error.][48235]
4927 - [Removed hoedown from rustdoc.][48274]
4928 - [Bounds on higher-kinded lifetimes a hard error.][48326]
4929
4930 [46882]: https://github.com/rust-lang/rust/pull/46882
4931 [47379]: https://github.com/rust-lang/rust/pull/47379
4932 [47408]: https://github.com/rust-lang/rust/pull/47408
4933 [47813]: https://github.com/rust-lang/rust/pull/47813
4934 [48056]: https://github.com/rust-lang/rust/pull/48056
4935 [48125]: https://github.com/rust-lang/rust/pull/48125
4936 [48235]: https://github.com/rust-lang/rust/pull/48235
4937 [48274]: https://github.com/rust-lang/rust/pull/48274
4938 [48281]: https://github.com/rust-lang/rust/pull/48281
4939 [48296]: https://github.com/rust-lang/rust/pull/48296
4940 [48326]: https://github.com/rust-lang/rust/pull/48326
4941 [48359]: https://github.com/rust-lang/rust/pull/48359
4942 [48404]: https://github.com/rust-lang/rust/pull/48404
4943 [48481]: https://github.com/rust-lang/rust/pull/48481
4944 [48516]: https://github.com/rust-lang/rust/pull/48516
4945 [48628]: https://github.com/rust-lang/rust/pull/48628
4946 [48629]: https://github.com/rust-lang/rust/pull/48629
4947 [48657]: https://github.com/rust-lang/rust/pull/48657
4948 [48735]: https://github.com/rust-lang/rust/pull/48735
4949 [48978]: https://github.com/rust-lang/rust/pull/48978
4950 [49101]: https://github.com/rust-lang/rust/pull/49101
4951 [49109]: https://github.com/rust-lang/rust/pull/49109
4952 [49162]: https://github.com/rust-lang/rust/pull/49162
4953 [49255]: https://github.com/rust-lang/rust/pull/49255
4954 [49299]: https://github.com/rust-lang/rust/pull/49299
4955 [49305]: https://github.com/rust-lang/rust/pull/49305
4956 [49394]: https://github.com/rust-lang/rust/pull/49394
4957 [49458]: https://github.com/rust-lang/rust/pull/49458
4958 [`*const T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add
4959 [`*const T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping
4960 [`*const T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to
4961 [`*const T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned
4962 [`*const T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile
4963 [`*const T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read
4964 [`*const T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub
4965 [`*const T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add
4966 [`*const T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub
4967 [`*mut T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add-1
4968 [`*mut T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping-1
4969 [`*mut T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to-1
4970 [`*mut T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned-1
4971 [`*mut T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile-1
4972 [`*mut T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read-1
4973 [`*mut T::replace`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.replace
4974 [`*mut T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub-1
4975 [`*mut T::swap`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.swap
4976 [`*mut T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add-1
4977 [`*mut T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub-1
4978 [`*mut T::write_bytes`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_bytes
4979 [`*mut T::write_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_unaligned
4980 [`*mut T::write_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_volatile
4981 [`*mut T::write`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write
4982 [`Box::leak`]: https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak
4983 [`FromUtf8Error::as_bytes`]: https://doc.rust-lang.org/std/string/struct.FromUtf8Error.html#method.as_bytes
4984 [`LocalKey::try_with`]: https://doc.rust-lang.org/std/thread/struct.LocalKey.html#method.try_with
4985 [`Option::cloned`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.cloned
4986 [`btree_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.and_modify
4987 [`fs::read_to_string`]: https://doc.rust-lang.org/std/fs/fn.read_to_string.html
4988 [`fs::read`]: https://doc.rust-lang.org/std/fs/fn.read.html
4989 [`fs::write`]: https://doc.rust-lang.org/std/fs/fn.write.html
4990 [`hash_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.and_modify
4991 [`iter::FusedIterator`]: https://doc.rust-lang.org/std/iter/trait.FusedIterator.html
4992 [`ops::RangeInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html
4993 [`ops::RangeToInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html
4994 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
4995 [`slice::rotate_left`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_left
4996 [`slice::rotate_right`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_right
4997 [`String::retain`]: https://doc.rust-lang.org/std/string/struct.String.html#method.retain
4998 [cargo/5041]: https://github.com/rust-lang/cargo/pull/5041
4999 [cargo/5083]: https://github.com/rust-lang/cargo/pull/5083
5000
5001
5002 Version 1.25.0 (2018-03-29)
5003 ==========================
5004
5005 Language
5006 --------
5007 - [The `#[repr(align(x))]` attribute is now stable.][47006] [RFC 1358]
5008 - [You can now use nested groups of imports.][47948]
5009   e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};`
5010 - [You can now have `|` at the start of a match arm.][47947] e.g.
5011 ```rust
5012 enum Foo { A, B, C }
5013
5014 fn main() {
5015     let x = Foo::A;
5016     match x {
5017         | Foo::A
5018         | Foo::B => println!("AB"),
5019         | Foo::C => println!("C"),
5020     }
5021 }
5022 ```
5023
5024 Compiler
5025 --------
5026 - [Upgraded to LLVM 6.][47828]
5027 - [Added `-C lto=val` option.][47521]
5028 - [Added `i586-unknown-linux-musl` target][47282]
5029
5030 Libraries
5031 ---------
5032 - [Impl Send for `process::Command` on Unix.][47760]
5033 - [Impl PartialEq and Eq for `ParseCharError`.][47790]
5034 - [`UnsafeCell::into_inner` is now safe.][47204]
5035 - [Implement libstd for CloudABI.][47268]
5036 - [`Float::{from_bits, to_bits}` is now available in libcore.][46931]
5037 - [Implement `AsRef<Path>` for Component][46985]
5038 - [Implemented `Write` for `Cursor<&mut Vec<u8>>`][46830]
5039 - [Moved `Duration` to libcore.][46666]
5040
5041 Stabilized APIs
5042 ---------------
5043 - [`Location::column`]
5044 - [`ptr::NonNull`]
5045
5046 The following functions can now be used in a constant expression.
5047 eg. `static MINUTE: Duration = Duration::from_secs(60);`
5048 - [`Duration::new`][47300]
5049 - [`Duration::from_secs`][47300]
5050 - [`Duration::from_millis`][47300]
5051
5052 Cargo
5053 -----
5054 - [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
5055 - [`cargo new` now defaults to creating a binary crate, instead of a
5056   library crate.][cargo/5029]
5057
5058 Misc
5059 ----
5060 - [Rust by example is now shipped with new releases][46196]
5061
5062 Compatibility Notes
5063 -------------------
5064 - [Deprecated `net::lookup_host`.][47510]
5065 - [`rustdoc` has switched to pulldown as the default markdown renderer.][47398]
5066 - The borrow checker was sometimes incorrectly permitting overlapping borrows
5067   around indexing operations (see [#47349][47349]). This has been fixed (which also
5068   enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]).
5069 - [Removed deprecated unstable attribute `#[simd]`.][47251]
5070
5071 [33903]: https://github.com/rust-lang/rust/pull/33903
5072 [47947]: https://github.com/rust-lang/rust/pull/47947
5073 [47948]: https://github.com/rust-lang/rust/pull/47948
5074 [47760]: https://github.com/rust-lang/rust/pull/47760
5075 [47790]: https://github.com/rust-lang/rust/pull/47790
5076 [47828]: https://github.com/rust-lang/rust/pull/47828
5077 [47398]: https://github.com/rust-lang/rust/pull/47398
5078 [47510]: https://github.com/rust-lang/rust/pull/47510
5079 [47521]: https://github.com/rust-lang/rust/pull/47521
5080 [47204]: https://github.com/rust-lang/rust/pull/47204
5081 [47251]: https://github.com/rust-lang/rust/pull/47251
5082 [47268]: https://github.com/rust-lang/rust/pull/47268
5083 [47282]: https://github.com/rust-lang/rust/pull/47282
5084 [47300]: https://github.com/rust-lang/rust/pull/47300
5085 [47349]: https://github.com/rust-lang/rust/pull/47349
5086 [46931]: https://github.com/rust-lang/rust/pull/46931
5087 [46985]: https://github.com/rust-lang/rust/pull/46985
5088 [47006]: https://github.com/rust-lang/rust/pull/47006
5089 [46830]: https://github.com/rust-lang/rust/pull/46830
5090 [46095]: https://github.com/rust-lang/rust/pull/46095
5091 [46666]: https://github.com/rust-lang/rust/pull/46666
5092 [46196]: https://github.com/rust-lang/rust/pull/46196
5093 [cargo/5013]: https://github.com/rust-lang/cargo/pull/5013
5094 [cargo/5029]: https://github.com/rust-lang/cargo/pull/5029
5095 [RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358
5096 [`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column
5097 [`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
5098
5099
5100 Version 1.24.1 (2018-03-01)
5101 ==========================
5102
5103  - [Do not abort when unwinding through FFI][48251]
5104  - [Emit UTF-16 files for linker arguments on Windows][48318]
5105  - [Make the error index generator work again][48308]
5106  - [Cargo will warn on Windows 7 if an update is needed][cargo/5069].
5107
5108 [48251]: https://github.com/rust-lang/rust/issues/48251
5109 [48308]: https://github.com/rust-lang/rust/issues/48308
5110 [48318]: https://github.com/rust-lang/rust/issues/48318
5111 [cargo/5069]: https://github.com/rust-lang/cargo/pull/5069
5112
5113
5114 Version 1.24.0 (2018-02-15)
5115 ==========================
5116
5117 Language
5118 --------
5119 - [External `sysv64` ffi is now available.][46528]
5120   eg. `extern "sysv64" fn foo () {}`
5121
5122 Compiler
5123 --------
5124 - [rustc now uses 16 codegen units by default for release builds.][46910]
5125   For the fastest builds, utilize `codegen-units=1`.
5126 - [Added `armv4t-unknown-linux-gnueabi` target.][47018]
5127 - [Add `aarch64-unknown-openbsd` support][46760]
5128
5129 Libraries
5130 ---------
5131 - [`str::find::<char>` now uses memchr.][46735] This should lead to a 10x
5132   improvement in performance in the majority of cases.
5133 - [`OsStr`'s `Debug` implementation is now lossless and consistent
5134   with Windows.][46798]
5135 - [`time::{SystemTime, Instant}` now implement `Hash`.][46828]
5136 - [impl `From<bool>` for `AtomicBool`][46293]
5137 - [impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`][45990]
5138 - [impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`][45990]
5139 - [impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`][45990]
5140 - [float::from_bits now just uses transmute.][46012] This provides
5141   some optimisations from LLVM.
5142 - [Copied `AsciiExt` methods onto `char`][46077]
5143 - [Remove `T: Sized` requirement on `ptr::is_null()`][46094]
5144 - [impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`][45506]
5145 - [Optimised `f32::{min, max}` to generate more efficient x86 assembly][47080]
5146 - [`[u8]::contains` now uses memchr which provides a 3x speed improvement][46713]
5147
5148 Stabilized APIs
5149 ---------------
5150 - [`RefCell::replace`]
5151 - [`RefCell::swap`]
5152 - [`atomic::spin_loop_hint`]
5153
5154 The following functions can now be used in a constant expression.
5155 eg. `let buffer: [u8; size_of::<usize>()];`, `static COUNTER: AtomicUsize = AtomicUsize::new(1);`
5156
5157 - [`AtomicBool::new`][46287]
5158 - [`AtomicUsize::new`][46287]
5159 - [`AtomicIsize::new`][46287]
5160 - [`AtomicPtr::new`][46287]
5161 - [`Cell::new`][46287]
5162 - [`{integer}::min_value`][46287]
5163 - [`{integer}::max_value`][46287]
5164 - [`mem::size_of`][46287]
5165 - [`mem::align_of`][46287]
5166 - [`ptr::null`][46287]
5167 - [`ptr::null_mut`][46287]
5168 - [`RefCell::new`][46287]
5169 - [`UnsafeCell::new`][46287]
5170
5171 Cargo
5172 -----
5173 - [Added a `workspace.default-members` config that
5174   overrides implied `--all` in virtual workspaces.][cargo/4743]
5175 - [Enable incremental by default on development builds.][cargo/4817] Also added
5176   configuration keys to `Cargo.toml` and `.cargo/config` to disable on a
5177   per-project or global basis respectively.
5178
5179 Misc
5180 ----
5181
5182 Compatibility Notes
5183 -------------------
5184 - [Floating point types `Debug` impl now always prints a decimal point.][46831]
5185 - [`Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses][46671] This is
5186   in accordance with IETF RFC 4291 §2.2.
5187 - [Unwinding will no longer go past FFI boundaries, and will instead abort.][46833]
5188 - [`Formatter::flags` method is now deprecated.][46284] The `sign_plus`,
5189   `sign_minus`, `alternate`, and `sign_aware_zero_pad` should be used instead.
5190 - [Leading zeros in tuple struct members is now an error][47084]
5191 - [`column!()` macro is one-based instead of zero-based][46977]
5192 - [`fmt::Arguments` can no longer be shared across threads][45198]
5193 - [Access to `#[repr(packed)]` struct fields is now unsafe][44884]
5194 - [Cargo sets a different working directory for the compiler][cargo/4788]
5195
5196 [44884]: https://github.com/rust-lang/rust/pull/44884
5197 [45198]: https://github.com/rust-lang/rust/pull/45198
5198 [45506]: https://github.com/rust-lang/rust/pull/45506
5199 [45990]: https://github.com/rust-lang/rust/pull/45990
5200 [46012]: https://github.com/rust-lang/rust/pull/46012
5201 [46077]: https://github.com/rust-lang/rust/pull/46077
5202 [46094]: https://github.com/rust-lang/rust/pull/46094
5203 [46284]: https://github.com/rust-lang/rust/pull/46284
5204 [46287]: https://github.com/rust-lang/rust/pull/46287
5205 [46293]: https://github.com/rust-lang/rust/pull/46293
5206 [46528]: https://github.com/rust-lang/rust/pull/46528
5207 [46671]: https://github.com/rust-lang/rust/pull/46671
5208 [46713]: https://github.com/rust-lang/rust/pull/46713
5209 [46735]: https://github.com/rust-lang/rust/pull/46735
5210 [46760]: https://github.com/rust-lang/rust/pull/46760
5211 [46798]: https://github.com/rust-lang/rust/pull/46798
5212 [46828]: https://github.com/rust-lang/rust/pull/46828
5213 [46831]: https://github.com/rust-lang/rust/pull/46831
5214 [46833]: https://github.com/rust-lang/rust/pull/46833
5215 [46910]: https://github.com/rust-lang/rust/pull/46910
5216 [46977]: https://github.com/rust-lang/rust/pull/46977
5217 [47018]: https://github.com/rust-lang/rust/pull/47018
5218 [47080]: https://github.com/rust-lang/rust/pull/47080
5219 [47084]: https://github.com/rust-lang/rust/pull/47084
5220 [cargo/4743]: https://github.com/rust-lang/cargo/pull/4743
5221 [cargo/4788]: https://github.com/rust-lang/cargo/pull/4788
5222 [cargo/4817]: https://github.com/rust-lang/cargo/pull/4817
5223 [`RefCell::replace`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.replace
5224 [`RefCell::swap`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.swap
5225 [`atomic::spin_loop_hint`]: https://doc.rust-lang.org/std/sync/atomic/fn.spin_loop_hint.html
5226
5227
5228 Version 1.23.0 (2018-01-04)
5229 ==========================
5230
5231 Language
5232 --------
5233 - [Arbitrary `auto` traits are now permitted in trait objects.][45772]
5234 - [rustc now uses subtyping on the left hand side of binary operations.][45435]
5235   Which should fix some confusing errors in some operations.
5236
5237 Compiler
5238 --------
5239 - [Enabled `TrapUnreachable` in LLVM which should mitigate the impact of
5240   undefined behavior.][45920]
5241 - [rustc now suggests renaming import if names clash.][45660]
5242 - [Display errors/warnings correctly when there are zero-width or
5243   wide characters.][45711]
5244 - [rustc now avoids unnecessary copies of arguments that are
5245   simple bindings][45380] This should improve memory usage on average by 5-10%.
5246 - [Updated musl used to build musl rustc to 1.1.17][45393]
5247
5248 Libraries
5249 ---------
5250 - [Allow a trailing comma in `assert_eq/ne` macro][45887]
5251 - [Implement Hash for raw pointers to unsized types][45483]
5252 - [impl `From<*mut T>` for `AtomicPtr<T>`][45610]
5253 - [impl `From<usize/isize>` for `AtomicUsize/AtomicIsize`.][45610]
5254 - [Removed the `T: Sync` requirement for `RwLock<T>: Send`][45267]
5255 - [Removed `T: Sized` requirement for `{<*const T>, <*mut T>}::as_ref`
5256   and `<*mut T>::as_mut`][44932]
5257 - [Optimized `Thread::{park, unpark}` implementation][45524]
5258 - [Improved `SliceExt::binary_search` performance.][45333]
5259 - [impl `FromIterator<()>` for `()`][45379]
5260 - [Copied `AsciiExt` trait methods to primitive types.][44042] Use of `AsciiExt`
5261   is now deprecated.
5262
5263 Stabilized APIs
5264 ---------------
5265
5266 Cargo
5267 -----
5268 - [Cargo now supports uninstallation of multiple packages][cargo/4561]
5269   eg. `cargo uninstall foo bar` uninstalls `foo` and `bar`.
5270 - [Added unit test checking to `cargo check`][cargo/4592]
5271 - [Cargo now lets you install a specific version
5272   using `cargo install --version`][cargo/4637]
5273
5274 Misc
5275 ----
5276 - [Releases now ship with the Cargo book documentation.][45692]
5277 - [rustdoc now prints rendering warnings on every run.][45324]
5278
5279 Compatibility Notes
5280 -------------------
5281 - [Changes have been made to type equality to make it more correct,
5282   in rare cases this could break some code.][45853] [Tracking issue for
5283   further information][45852]
5284 - [`char::escape_debug` now uses Unicode 10 over 9.][45571]
5285 - [Upgraded Android SDK to 27, and NDK to r15c.][45580] This drops support for
5286   Android 9, the minimum supported version is Android 14.
5287 - [Bumped the minimum LLVM to 3.9][45326]
5288
5289 [44042]: https://github.com/rust-lang/rust/pull/44042
5290 [44932]: https://github.com/rust-lang/rust/pull/44932
5291 [45267]: https://github.com/rust-lang/rust/pull/45267
5292 [45324]: https://github.com/rust-lang/rust/pull/45324
5293 [45326]: https://github.com/rust-lang/rust/pull/45326
5294 [45333]: https://github.com/rust-lang/rust/pull/45333
5295 [45379]: https://github.com/rust-lang/rust/pull/45379
5296 [45380]: https://github.com/rust-lang/rust/pull/45380
5297 [45393]: https://github.com/rust-lang/rust/pull/45393
5298 [45435]: https://github.com/rust-lang/rust/pull/45435
5299 [45483]: https://github.com/rust-lang/rust/pull/45483
5300 [45524]: https://github.com/rust-lang/rust/pull/45524
5301 [45571]: https://github.com/rust-lang/rust/pull/45571
5302 [45580]: https://github.com/rust-lang/rust/pull/45580
5303 [45610]: https://github.com/rust-lang/rust/pull/45610
5304 [45660]: https://github.com/rust-lang/rust/pull/45660
5305 [45692]: https://github.com/rust-lang/rust/pull/45692
5306 [45711]: https://github.com/rust-lang/rust/pull/45711
5307 [45772]: https://github.com/rust-lang/rust/pull/45772
5308 [45852]: https://github.com/rust-lang/rust/issues/45852
5309 [45853]: https://github.com/rust-lang/rust/pull/45853
5310 [45887]: https://github.com/rust-lang/rust/pull/45887
5311 [45920]: https://github.com/rust-lang/rust/pull/45920
5312 [cargo/4561]: https://github.com/rust-lang/cargo/pull/4561
5313 [cargo/4592]: https://github.com/rust-lang/cargo/pull/4592
5314 [cargo/4637]: https://github.com/rust-lang/cargo/pull/4637
5315
5316
5317 Version 1.22.1 (2017-11-22)
5318 ==========================
5319
5320 - [Update Cargo to fix an issue with macOS 10.13 "High Sierra"][46183]
5321
5322 [46183]: https://github.com/rust-lang/rust/pull/46183
5323
5324 Version 1.22.0 (2017-11-22)
5325 ==========================
5326
5327 Language
5328 --------
5329 - [`non_snake_case` lint now allows extern no-mangle functions][44966]
5330 - [Now accepts underscores in unicode escapes][43716]
5331 - [`T op= &T` now works for numeric types.][44287] eg. `let mut x = 2; x += &8;`
5332 - [types that impl `Drop` are now allowed in `const` and `static` types][44456]
5333
5334 Compiler
5335 --------
5336 - [rustc now defaults to having 16 codegen units at debug on supported platforms.][45064]
5337 - [rustc will no longer inline in codegen units when compiling for debug][45075]
5338   This should decrease compile times for debug builds.
5339 - [strict memory alignment now enabled on ARMv6][45094]
5340 - [Remove support for the PNaCl target `le32-unknown-nacl`][45041]
5341
5342 Libraries
5343 ---------
5344 - [Allow atomic operations up to 32 bits
5345   on `armv5te_unknown_linux_gnueabi`][44978]
5346 - [`Box<Error>` now impls `From<Cow<str>>`][44466]
5347 - [`std::mem::Discriminant` is now guaranteed to be `Send + Sync`][45095]
5348 - [`fs::copy` now returns the length of the main stream on NTFS.][44895]
5349 - [Properly detect overflow in `Instant += Duration`.][44220]
5350 - [impl `Hasher` for `{&mut Hasher, Box<Hasher>}`][44015]
5351 - [impl `fmt::Debug` for `SplitWhitespace`.][44303]
5352 - [`Option<T>` now impls `Try`][42526] This allows for using `?` with `Option` types.
5353
5354 Stabilized APIs
5355 ---------------
5356
5357 Cargo
5358 -----
5359 - [Cargo will now build multi file examples in subdirectories of the `examples`
5360   folder that have a `main.rs` file.][cargo/4496]
5361 - [Changed `[root]` to `[package]` in `Cargo.lock`][cargo/4571] Packages with
5362   the old format will continue to work and can be updated with `cargo update`.
5363 - [Now supports vendoring git repositories][cargo/3992]
5364
5365 Misc
5366 ----
5367 - [`libbacktrace` is now available on Apple platforms.][44251]
5368 - [Stabilised the `compile_fail` attribute for code fences in doc-comments.][43949]
5369   This now lets you specify that a given code example will fail to compile.
5370
5371 Compatibility Notes
5372 -------------------
5373 - [The minimum Android version that rustc can build for has been bumped
5374   to `4.0` from `2.3`][45656]
5375 - [Allowing `T op= &T` for numeric types has broken some type
5376   inference cases][45480]
5377
5378
5379 [42526]: https://github.com/rust-lang/rust/pull/42526
5380 [43716]: https://github.com/rust-lang/rust/pull/43716
5381 [43949]: https://github.com/rust-lang/rust/pull/43949
5382 [44015]: https://github.com/rust-lang/rust/pull/44015
5383 [44220]: https://github.com/rust-lang/rust/pull/44220
5384 [44251]: https://github.com/rust-lang/rust/pull/44251
5385 [44287]: https://github.com/rust-lang/rust/pull/44287
5386 [44303]: https://github.com/rust-lang/rust/pull/44303
5387 [44456]: https://github.com/rust-lang/rust/pull/44456
5388 [44466]: https://github.com/rust-lang/rust/pull/44466
5389 [44895]: https://github.com/rust-lang/rust/pull/44895
5390 [44966]: https://github.com/rust-lang/rust/pull/44966
5391 [44978]: https://github.com/rust-lang/rust/pull/44978
5392 [45041]: https://github.com/rust-lang/rust/pull/45041
5393 [45064]: https://github.com/rust-lang/rust/pull/45064
5394 [45075]: https://github.com/rust-lang/rust/pull/45075
5395 [45094]: https://github.com/rust-lang/rust/pull/45094
5396 [45095]: https://github.com/rust-lang/rust/pull/45095
5397 [45480]: https://github.com/rust-lang/rust/issues/45480
5398 [45656]: https://github.com/rust-lang/rust/pull/45656
5399 [cargo/3992]: https://github.com/rust-lang/cargo/pull/3992
5400 [cargo/4496]: https://github.com/rust-lang/cargo/pull/4496
5401 [cargo/4571]: https://github.com/rust-lang/cargo/pull/4571
5402
5403
5404
5405
5406
5407
5408 Version 1.21.0 (2017-10-12)
5409 ==========================
5410
5411 Language
5412 --------
5413 - [You can now use static references for literals.][43838]
5414   Example:
5415   ```rust
5416   fn main() {
5417       let x: &'static u32 = &0;
5418   }
5419   ```
5420 - [Relaxed path syntax. Optional `::` before `<` is now allowed in all contexts.][43540]
5421   Example:
5422   ```rust
5423   my_macro!(Vec<i32>::new); // Always worked
5424   my_macro!(Vec::<i32>::new); // Now works
5425   ```
5426
5427 Compiler
5428 --------
5429 - [Upgraded jemalloc to 4.5.0][43911]
5430 - [Enabled unwinding panics on Redox][43917]
5431 - [Now runs LLVM in parallel during translation phase.][43506]
5432   This should reduce peak memory usage.
5433
5434 Libraries
5435 ---------
5436 - [Generate builtin impls for `Clone` for all arrays and tuples that
5437   are `T: Clone`][43690]
5438 - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459]
5439 - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From<str>`,
5440   `From<String>`, `From<Box<T>> where T: ?Sized`, and `From<Vec<T>>`.][42565]
5441
5442 Stabilized APIs
5443 ---------------
5444
5445 [`std::mem::discriminant`]
5446
5447 Cargo
5448 -----
5449 - [You can now call `cargo install` with multiple package names][cargo/4216]
5450 - [Cargo commands inside a virtual workspace will now implicitly
5451   pass `--all`][cargo/4335]
5452 - [Added a `[patch]` section to `Cargo.toml` to handle
5453   prepublication dependencies][cargo/4123] [RFC 1969]
5454 - [`include` & `exclude` fields in `Cargo.toml` now accept gitignore
5455   like patterns][cargo/4270]
5456 - [Added the `--all-targets` option][cargo/4400]
5457 - [Using required dependencies as a feature is now deprecated and emits
5458   a warning][cargo/4364]
5459
5460
5461 Misc
5462 ----
5463 - [Cargo docs are moving][43916]
5464   to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo)
5465 - [The rustdoc book is now available][43863]
5466   at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc)
5467 - [Added a preview of RLS has been made available through rustup][44204]
5468   Install with `rustup component add rls-preview`
5469 - [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348]
5470   Previously only showed `std::os::unix`.
5471
5472 Compatibility Notes
5473 -------------------
5474 - [Changes in method matching against higher-ranked types][43880] This may cause
5475   breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880]
5476 - [rustc's JSON error output's byte position start at top of file.][42973]
5477   Was previously relative to the rustc's internal `CodeMap` struct which
5478   required the unstable library `libsyntax` to correctly use.
5479 - [`unused_results` lint no longer ignores booleans][43728]
5480
5481 [42565]: https://github.com/rust-lang/rust/pull/42565
5482 [42973]: https://github.com/rust-lang/rust/pull/42973
5483 [43348]: https://github.com/rust-lang/rust/pull/43348
5484 [43459]: https://github.com/rust-lang/rust/pull/43459
5485 [43506]: https://github.com/rust-lang/rust/pull/43506
5486 [43540]: https://github.com/rust-lang/rust/pull/43540
5487 [43690]: https://github.com/rust-lang/rust/pull/43690
5488 [43728]: https://github.com/rust-lang/rust/pull/43728
5489 [43838]: https://github.com/rust-lang/rust/pull/43838
5490 [43863]: https://github.com/rust-lang/rust/pull/43863
5491 [43880]: https://github.com/rust-lang/rust/pull/43880
5492 [43911]: https://github.com/rust-lang/rust/pull/43911
5493 [43916]: https://github.com/rust-lang/rust/pull/43916
5494 [43917]: https://github.com/rust-lang/rust/pull/43917
5495 [44204]: https://github.com/rust-lang/rust/pull/44204
5496 [cargo/4123]: https://github.com/rust-lang/cargo/pull/4123
5497 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216
5498 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
5499 [cargo/4335]: https://github.com/rust-lang/cargo/pull/4335
5500 [cargo/4364]: https://github.com/rust-lang/cargo/pull/4364
5501 [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400
5502 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969
5503 [info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902
5504 [`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html
5505
5506 Version 1.20.0 (2017-08-31)
5507 ===========================
5508
5509 Language
5510 --------
5511 - [Associated constants are now stabilised.][42809]
5512 - [A lot of macro bugs are now fixed.][42913]
5513
5514 Compiler
5515 --------
5516
5517 - [Struct fields are now properly coerced to the expected field type.][42807]
5518 - [Enabled wasm LLVM backend][42571] WASM can now be built with the
5519   `wasm32-experimental-emscripten` target.
5520 - [Changed some of the error messages to be more helpful.][42033]
5521 - [Add support for RELRO(RELocation Read-Only) for platforms that support
5522   it.][43170]
5523 - [rustc now reports the total number of errors on compilation failure][43015]
5524   previously this was only the number of errors in the pass that failed.
5525 - [Expansion in rustc has been sped up 29x.][42533]
5526 - [added `msp430-none-elf` target.][43099]
5527 - [rustc will now suggest one-argument enum variant to fix type mismatch when
5528   applicable][43178]
5529 - [Fixes backtraces on Redox][43228]
5530 - [rustc now identifies different versions of same crate when absolute paths of
5531   different types match in an error message.][42826]
5532
5533 Libraries
5534 ---------
5535
5536
5537 - [Relaxed Debug constraints on `{HashMap,BTreeMap}::{Keys,Values}`.][42854]
5538 - [Impl `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Debug`, `Hash` for unsized
5539   tuples.][43011]
5540 - [Impl `fmt::{Display, Debug}` for `Ref`, `RefMut`, `MutexGuard`,
5541   `RwLockReadGuard`, `RwLockWriteGuard`][42822]
5542 - [Impl `Clone` for `DefaultHasher`.][42799]
5543 - [Impl `Sync` for `SyncSender`.][42397]
5544 - [Impl `FromStr` for `char`][42271]
5545 - [Fixed how `{f32, f64}::{is_sign_negative, is_sign_positive}` handles
5546   NaN.][42431]
5547 - [allow messages in the `unimplemented!()` macro.][42155]
5548   ie. `unimplemented!("Waiting for 1.21 to be stable")`
5549 - [`pub(restricted)` is now supported in the `thread_local!` macro.][43185]
5550 - [Upgrade to Unicode 10.0.0][42999]
5551 - [Reimplemented `{f32, f64}::{min, max}` in Rust instead of using CMath.][42430]
5552 - [Skip the main thread's manual stack guard on Linux][43072]
5553 - [Iterator::nth for `ops::{Range, RangeFrom}` is now done in *O*(1) time][43077]
5554 - [`#[repr(align(N))]` attribute max number is now 2^31 - 1.][43097] This was
5555   previously 2^15.
5556 - [`{OsStr, Path}::Display` now avoids allocations where possible][42613]
5557
5558 Stabilized APIs
5559 ---------------
5560
5561 - [`CStr::into_c_string`]
5562 - [`CString::as_c_str`]
5563 - [`CString::into_boxed_c_str`]
5564 - [`Chain::get_mut`]
5565 - [`Chain::get_ref`]
5566 - [`Chain::into_inner`]
5567 - [`Option::get_or_insert_with`]
5568 - [`Option::get_or_insert`]
5569 - [`OsStr::into_os_string`]
5570 - [`OsString::into_boxed_os_str`]
5571 - [`Take::get_mut`]
5572 - [`Take::get_ref`]
5573 - [`Utf8Error::error_len`]
5574 - [`char::EscapeDebug`]
5575 - [`char::escape_debug`]
5576 - [`compile_error!`]
5577 - [`f32::from_bits`]
5578 - [`f32::to_bits`]
5579 - [`f64::from_bits`]
5580 - [`f64::to_bits`]
5581 - [`mem::ManuallyDrop`]
5582 - [`slice::sort_unstable_by_key`]
5583 - [`slice::sort_unstable_by`]
5584 - [`slice::sort_unstable`]
5585 - [`str::from_boxed_utf8_unchecked`]
5586 - [`str::as_bytes_mut`]
5587 - [`str::as_bytes_mut`]
5588 - [`str::from_utf8_mut`]
5589 - [`str::from_utf8_unchecked_mut`]
5590 - [`str::get_mut`]
5591 - [`str::get_unchecked_mut`]
5592 - [`str::get_unchecked`]
5593 - [`str::get`]
5594 - [`str::into_boxed_bytes`]
5595
5596
5597 Cargo
5598 -----
5599 - [Cargo API token location moved from `~/.cargo/config` to
5600   `~/.cargo/credentials`.][cargo/3978]
5601 - [Cargo will now build `main.rs` binaries that are in sub-directories of
5602   `src/bin`.][cargo/4214] ie. Having `src/bin/server/main.rs` and
5603   `src/bin/client/main.rs` generates `target/debug/server` and `target/debug/client`
5604 - [You can now specify version of a binary when installed through
5605   `cargo install` using `--vers`.][cargo/4229]
5606 - [Added `--no-fail-fast` flag to cargo to run all benchmarks regardless of
5607   failure.][cargo/4248]
5608 - [Changed the convention around which file is the crate root.][cargo/4259]
5609
5610 Compatibility Notes
5611 -------------------
5612
5613 - [Functions with `'static` in their return types will now not be as usable as
5614   if they were using lifetime parameters instead.][42417]
5615 - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now
5616   takes the sign of NaN into account where previously didn't.][42430]
5617
5618 [42033]: https://github.com/rust-lang/rust/pull/42033
5619 [42155]: https://github.com/rust-lang/rust/pull/42155
5620 [42271]: https://github.com/rust-lang/rust/pull/42271
5621 [42397]: https://github.com/rust-lang/rust/pull/42397
5622 [42417]: https://github.com/rust-lang/rust/pull/42417
5623 [42430]: https://github.com/rust-lang/rust/pull/42430
5624 [42431]: https://github.com/rust-lang/rust/pull/42431
5625 [42533]: https://github.com/rust-lang/rust/pull/42533
5626 [42571]: https://github.com/rust-lang/rust/pull/42571
5627 [42613]: https://github.com/rust-lang/rust/pull/42613
5628 [42799]: https://github.com/rust-lang/rust/pull/42799
5629 [42807]: https://github.com/rust-lang/rust/pull/42807
5630 [42809]: https://github.com/rust-lang/rust/pull/42809
5631 [42822]: https://github.com/rust-lang/rust/pull/42822
5632 [42826]: https://github.com/rust-lang/rust/pull/42826
5633 [42854]: https://github.com/rust-lang/rust/pull/42854
5634 [42913]: https://github.com/rust-lang/rust/pull/42913
5635 [42999]: https://github.com/rust-lang/rust/pull/42999
5636 [43011]: https://github.com/rust-lang/rust/pull/43011
5637 [43015]: https://github.com/rust-lang/rust/pull/43015
5638 [43072]: https://github.com/rust-lang/rust/pull/43072
5639 [43077]: https://github.com/rust-lang/rust/pull/43077
5640 [43097]: https://github.com/rust-lang/rust/pull/43097
5641 [43099]: https://github.com/rust-lang/rust/pull/43099
5642 [43170]: https://github.com/rust-lang/rust/pull/43170
5643 [43178]: https://github.com/rust-lang/rust/pull/43178
5644 [43185]: https://github.com/rust-lang/rust/pull/43185
5645 [43228]: https://github.com/rust-lang/rust/pull/43228
5646 [cargo/3978]: https://github.com/rust-lang/cargo/pull/3978
5647 [cargo/4214]: https://github.com/rust-lang/cargo/pull/4214
5648 [cargo/4229]: https://github.com/rust-lang/cargo/pull/4229
5649 [cargo/4248]: https://github.com/rust-lang/cargo/pull/4248
5650 [cargo/4259]: https://github.com/rust-lang/cargo/pull/4259
5651 [`CStr::into_c_string`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.into_c_string
5652 [`CString::as_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.as_c_str
5653 [`CString::into_boxed_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str
5654 [`Chain::get_mut`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_mut
5655 [`Chain::get_ref`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_ref
5656 [`Chain::into_inner`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.into_inner
5657 [`Option::get_or_insert_with`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert_with
5658 [`Option::get_or_insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert
5659 [`OsStr::into_os_string`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.into_os_string
5660 [`OsString::into_boxed_os_str`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.into_boxed_os_str
5661 [`Take::get_mut`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_mut
5662 [`Take::get_ref`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_ref
5663 [`Utf8Error::error_len`]: https://doc.rust-lang.org/std/str/struct.Utf8Error.html#method.error_len
5664 [`char::EscapeDebug`]: https://doc.rust-lang.org/std/char/struct.EscapeDebug.html
5665 [`char::escape_debug`]: https://doc.rust-lang.org/std/primitive.char.html#method.escape_debug
5666 [`compile_error!`]: https://doc.rust-lang.org/std/macro.compile_error.html
5667 [`f32::from_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits
5668 [`f32::to_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_bits
5669 [`f64::from_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_bits
5670 [`f64::to_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_bits
5671 [`mem::ManuallyDrop`]: https://doc.rust-lang.org/std/mem/union.ManuallyDrop.html
5672 [`slice::sort_unstable_by_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by_key
5673 [`slice::sort_unstable_by`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by
5674 [`slice::sort_unstable`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable
5675 [`str::from_boxed_utf8_unchecked`]: https://doc.rust-lang.org/std/str/fn.from_boxed_utf8_unchecked.html
5676 [`str::as_bytes_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_bytes_mut
5677 [`str::from_utf8_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_mut.html
5678 [`str::from_utf8_unchecked_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_unchecked_mut.html
5679 [`str::get_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_mut
5680 [`str::get_unchecked_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked_mut
5681 [`str::get_unchecked`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked
5682 [`str::get`]: https://doc.rust-lang.org/std/primitive.str.html#method.get
5683 [`str::into_boxed_bytes`]: https://doc.rust-lang.org/std/primitive.str.html#method.into_boxed_bytes
5684
5685
5686 Version 1.19.0 (2017-07-20)
5687 ===========================
5688
5689 Language
5690 --------
5691
5692 - [Numeric fields can now be used for creating tuple structs.][41145] [RFC 1506]
5693   For example `struct Point(u32, u32); let x = Point { 0: 7, 1: 0 };`.
5694 - [Macro recursion limit increased to 1024 from 64.][41676]
5695 - [Added lint for detecting unused macros.][41907]
5696 - [`loop` can now return a value with `break`.][42016] [RFC 1624]
5697   For example: `let x = loop { break 7; };`
5698 - [C compatible `union`s are now available.][42068] [RFC 1444] They can only
5699   contain `Copy` types and cannot have a `Drop` implementation.
5700   Example: `union Foo { bar: u8, baz: usize }`
5701 - [Non capturing closures can now be coerced into `fn`s,][42162] [RFC 1558]
5702   Example: `let foo: fn(u8) -> u8 = |v: u8| { v };`
5703
5704 Compiler
5705 --------
5706
5707 - [Add support for bootstrapping the Rust compiler toolchain on Android.][41370]
5708 - [Change `arm-linux-androideabi` to correspond to the `armeabi`
5709   official ABI.][41656] If you wish to continue targeting the `armeabi-v7a` ABI
5710   you should use `--target armv7-linux-androideabi`.
5711 - [Fixed ICE when removing a source file between compilation sessions.][41873]
5712 - [Minor optimisation of string operations.][42037]
5713 - [Compiler error message is now `aborting due to previous error(s)` instead of
5714   `aborting due to N previous errors`][42150] This was previously inaccurate and
5715   would only count certain kinds of errors.
5716 - [The compiler now supports Visual Studio 2017][42225]
5717 - [The compiler is now built against LLVM 4.0.1 by default][42948]
5718 - [Added a lot][42264] of [new error codes][42302]
5719 - [Added `target-feature=+crt-static` option][37406] [RFC 1721] Which allows
5720   libraries with C Run-time Libraries(CRT) to be statically linked.
5721 - [Fixed various ARM codegen bugs][42740]
5722
5723 Libraries
5724 ---------
5725
5726 - [`String` now implements `FromIterator<Cow<'a, str>>` and
5727   `Extend<Cow<'a, str>>`][41449]
5728 - [`Vec` now implements `From<&mut [T]>`][41530]
5729 - [`Box<[u8]>` now implements `From<Box<str>>`][41258]
5730 - [`SplitWhitespace` now implements `Clone`][41659]
5731 - [`[u8]::reverse` is now 5x faster and `[u16]::reverse` is now
5732   1.5x faster][41764]
5733 - [`eprint!` and `eprintln!` macros added to prelude.][41192] Same as the `print!`
5734   macros, but for printing to stderr.
5735
5736 Stabilized APIs
5737 ---------------
5738
5739 - [`OsString::shrink_to_fit`]
5740 - [`cmp::Reverse`]
5741 - [`Command::envs`]
5742 - [`thread::ThreadId`]
5743
5744 Cargo
5745 -----
5746
5747 - [Build scripts can now add environment variables to the environment
5748   the crate is being compiled in.
5749   Example: `println!("cargo:rustc-env=FOO=bar");`][cargo/3929]
5750 - [Subcommands now replace the current process rather than spawning a new
5751   child process][cargo/3970]
5752 - [Workspace members can now accept glob file patterns][cargo/3979]
5753 - [Added `--all` flag to the `cargo bench` subcommand to run benchmarks of all
5754   the members in a given workspace.][cargo/3988]
5755 - [Updated `libssh2-sys` to 0.2.6][cargo/4008]
5756 - [Target directory path is now in the cargo metadata][cargo/4022]
5757 - [Cargo no longer checks out a local working directory for the
5758   crates.io index][cargo/4026] This should provide smaller file size for the
5759   registry, and improve cloning times, especially on Windows machines.
5760 - [Added an `--exclude` option for excluding certain packages when using the
5761   `--all` option][cargo/4031]
5762 - [Cargo will now automatically retry when receiving a 5xx error
5763   from crates.io][cargo/4032]
5764 - [The `--features` option now accepts multiple comma or space
5765   delimited values.][cargo/4084]
5766 - [Added support for custom target specific runners][cargo/3954]
5767
5768 Misc
5769 ----
5770
5771 - [Added `rust-windbg.cmd`][39983] for loading rust `.natvis` files in the
5772   Windows Debugger.
5773 - [Rust will now release XZ compressed packages][rust-installer/57]
5774 - [rustup will now prefer to download rust packages with
5775   XZ compression][rustup/1100] over GZip packages.
5776 - [Added the ability to escape `#` in rust documentation][41785] By adding
5777   additional `#`'s ie. `##` is now `#`
5778
5779 Compatibility Notes
5780 -------------------
5781
5782 - [`MutexGuard<T>` may only be `Sync` if `T` is `Sync`.][41624]
5783 - [`-Z` flags are now no longer allowed to be used on the stable
5784   compiler.][41751] This has been a warning for a year previous to this.
5785 - [As a result of the `-Z` flag change, the `cargo-check` plugin no
5786   longer works][42844]. Users should migrate to the built-in `check`
5787   command, which has been available since 1.16.
5788 - [Ending a float literal with `._` is now a hard error.
5789   Example: `42._` .][41946]
5790 - [Any use of a private `extern crate` outside of its module is now a
5791   hard error.][36886] This was previously a warning.
5792 - [`use ::self::foo;` is now a hard error.][36888] `self` paths are always
5793   relative while the `::` prefix makes a path absolute, but was ignored and the
5794   path was relative regardless.
5795 - [Floating point constants in match patterns is now a hard error][36890]
5796   This was previously a warning.
5797 - [Struct or enum constants that don't derive `PartialEq` & `Eq` used
5798   match patterns is now a hard error][36891] This was previously a warning.
5799 - [Lifetimes named `'_` are no longer allowed.][36892] This was previously
5800   a warning.
5801 - [From the pound escape, lines consisting of multiple `#`s are
5802   now visible][41785]
5803 - [It is an error to re-export private enum variants][42460]. This is
5804   known to break a number of crates that depend on an older version of
5805   mustache.
5806 - [On Windows, if `VCINSTALLDIR` is set incorrectly, `rustc` will try
5807   to use it to find the linker, and the build will fail where it did
5808   not previously][42607]
5809
5810 [36886]: https://github.com/rust-lang/rust/issues/36886
5811 [36888]: https://github.com/rust-lang/rust/issues/36888
5812 [36890]: https://github.com/rust-lang/rust/issues/36890
5813 [36891]: https://github.com/rust-lang/rust/issues/36891
5814 [36892]: https://github.com/rust-lang/rust/issues/36892
5815 [37406]: https://github.com/rust-lang/rust/issues/37406
5816 [39983]: https://github.com/rust-lang/rust/pull/39983
5817 [41145]: https://github.com/rust-lang/rust/pull/41145
5818 [41192]: https://github.com/rust-lang/rust/pull/41192
5819 [41258]: https://github.com/rust-lang/rust/pull/41258
5820 [41370]: https://github.com/rust-lang/rust/pull/41370
5821 [41449]: https://github.com/rust-lang/rust/pull/41449
5822 [41530]: https://github.com/rust-lang/rust/pull/41530
5823 [41624]: https://github.com/rust-lang/rust/pull/41624
5824 [41656]: https://github.com/rust-lang/rust/pull/41656
5825 [41659]: https://github.com/rust-lang/rust/pull/41659
5826 [41676]: https://github.com/rust-lang/rust/pull/41676
5827 [41751]: https://github.com/rust-lang/rust/pull/41751
5828 [41764]: https://github.com/rust-lang/rust/pull/41764
5829 [41785]: https://github.com/rust-lang/rust/pull/41785
5830 [41873]: https://github.com/rust-lang/rust/pull/41873
5831 [41907]: https://github.com/rust-lang/rust/pull/41907
5832 [41946]: https://github.com/rust-lang/rust/pull/41946
5833 [42016]: https://github.com/rust-lang/rust/pull/42016
5834 [42037]: https://github.com/rust-lang/rust/pull/42037
5835 [42068]: https://github.com/rust-lang/rust/pull/42068
5836 [42150]: https://github.com/rust-lang/rust/pull/42150
5837 [42162]: https://github.com/rust-lang/rust/pull/42162
5838 [42225]: https://github.com/rust-lang/rust/pull/42225
5839 [42264]: https://github.com/rust-lang/rust/pull/42264
5840 [42302]: https://github.com/rust-lang/rust/pull/42302
5841 [42460]: https://github.com/rust-lang/rust/issues/42460
5842 [42607]: https://github.com/rust-lang/rust/issues/42607
5843 [42740]: https://github.com/rust-lang/rust/pull/42740
5844 [42844]: https://github.com/rust-lang/rust/issues/42844
5845 [42948]: https://github.com/rust-lang/rust/pull/42948
5846 [RFC 1444]: https://github.com/rust-lang/rfcs/pull/1444
5847 [RFC 1506]: https://github.com/rust-lang/rfcs/pull/1506
5848 [RFC 1558]: https://github.com/rust-lang/rfcs/pull/1558
5849 [RFC 1624]: https://github.com/rust-lang/rfcs/pull/1624
5850 [RFC 1721]: https://github.com/rust-lang/rfcs/pull/1721
5851 [`Command::envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.envs
5852 [`OsString::shrink_to_fit`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.shrink_to_fit
5853 [`cmp::Reverse`]: https://doc.rust-lang.org/std/cmp/struct.Reverse.html
5854 [`thread::ThreadId`]: https://doc.rust-lang.org/std/thread/struct.ThreadId.html
5855 [cargo/3929]: https://github.com/rust-lang/cargo/pull/3929
5856 [cargo/3954]: https://github.com/rust-lang/cargo/pull/3954
5857 [cargo/3970]: https://github.com/rust-lang/cargo/pull/3970
5858 [cargo/3979]: https://github.com/rust-lang/cargo/pull/3979
5859 [cargo/3988]: https://github.com/rust-lang/cargo/pull/3988
5860 [cargo/4008]: https://github.com/rust-lang/cargo/pull/4008
5861 [cargo/4022]: https://github.com/rust-lang/cargo/pull/4022
5862 [cargo/4026]: https://github.com/rust-lang/cargo/pull/4026
5863 [cargo/4031]: https://github.com/rust-lang/cargo/pull/4031
5864 [cargo/4032]: https://github.com/rust-lang/cargo/pull/4032
5865 [cargo/4084]: https://github.com/rust-lang/cargo/pull/4084
5866 [rust-installer/57]: https://github.com/rust-lang/rust-installer/pull/57
5867 [rustup/1100]: https://github.com/rust-lang-nursery/rustup.rs/pull/1100
5868
5869
5870 Version 1.18.0 (2017-06-08)
5871 ===========================
5872
5873 Language
5874 --------
5875
5876 - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to
5877   make the item visible to just that module tree. Also accepts the keyword
5878   `crate` to make something public to the whole crate but not users of the
5879   library. Example: `pub(crate) mod utils;`. [RFC 1422].
5880 - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the
5881   `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665].
5882 - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept
5883   types like `Write + Send`, trailing `+` are now supported in trait objects,
5884   and better error reporting for trait objects starting with `?Sized`.
5885 - [0e+10 is now a valid floating point literal][40589]
5886 - [Now warns if you bind a lifetime parameter to 'static][40734]
5887 - [Tuples, Enum variant fields, and structs with no `repr` attribute or with
5888   `#[repr(Rust)]` are reordered to minimize padding and produce a smaller
5889   representation in some cases.][40377]
5890
5891 Compiler
5892 --------
5893
5894 - [rustc can now emit mir with `--emit mir`][39891]
5895 - [Improved LLVM IR for trivial functions][40367]
5896 - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723]
5897 - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation
5898   opportunities found through profiling
5899 - [Improved backtrace formatting when panicking][38165]
5900
5901 Libraries
5902 ---------
5903
5904 - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the
5905   iterator hasn't been advanced the original `Vec` is reassembled with no actual
5906   iteration or reallocation.
5907 - [Simplified HashMap Bucket interface][40561] provides performance
5908   improvements for iterating and cloning.
5909 - [Specialize Vec::from_elem to use calloc][40409]
5910 - [Fixed Race condition in fs::create_dir_all][39799]
5911 - [No longer caching stdio on Windows][40516]
5912 - [Optimized insertion sort in slice][40807] insertion sort in some cases
5913   2.50%~ faster and in one case now 12.50% faster.
5914 - [Optimized `AtomicBool::fetch_nand`][41143]
5915
5916 Stabilized APIs
5917 ---------------
5918
5919 - [`Child::try_wait`]
5920 - [`HashMap::retain`]
5921 - [`HashSet::retain`]
5922 - [`PeekMut::pop`]
5923 - [`TcpStream::peek`]
5924 - [`UdpSocket::peek`]
5925 - [`UdpSocket::peek_from`]
5926
5927 Cargo
5928 -----
5929
5930 - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust.
5931   You can now create new cargo projects with Pijul using `cargo new --vcs pijul`
5932 - [Now always emits build script warnings for crates that fail to build][cargo/3847]
5933 - [Added Android build support][cargo/3885]
5934 - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs
5935   of a certain type, for example `cargo build --bins` will build all
5936   binaries.
5937 - [Added support for haiku][cargo/3952]
5938
5939 Misc
5940 ----
5941
5942 - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338]
5943 - [Rust now uses the official cross compiler for NetBSD][40612]
5944 - [rustdoc now accepts `#` at the start of files][40828]
5945 - [Fixed jemalloc support for musl][41168]
5946
5947 Compatibility Notes
5948 -------------------
5949
5950 - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now
5951   always placed after the sign if it exists and before the digits. With the `#`
5952   flag the zeroes are placed after the prefix and before the digits.
5953 - [Due to the struct field optimisation][40377], using `transmute` on structs
5954   that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has
5955   always been undefined behavior, but is now more likely to break in practice.
5956 - [The refactor of trait object type parsing][40043] fixed a bug where `+` was
5957   receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as
5958   `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send`
5959 - [Overlapping inherent `impl`s are now a hard error][40728]
5960 - [`PartialOrd` and `Ord` must agree on the ordering.][41270]
5961 - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output
5962   `out.asm` and `out.ll` instead of only one of the filetypes.
5963 - [ calling a function that returns `Self` will no longer work][41805] when
5964   the size of `Self` cannot be statically determined.
5965 - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805]
5966   this has caused a few regressions namely:
5967
5968   - Changed the link order of local static/dynamic libraries (respecting the
5969     order on given rather than having the compiler reorder).
5970   - Changed how MinGW is linked, native code linked to dynamic libraries
5971     may require manually linking to the gcc support library (for the native
5972     code itself)
5973
5974 [38165]: https://github.com/rust-lang/rust/pull/38165
5975 [39799]: https://github.com/rust-lang/rust/pull/39799
5976 [39891]: https://github.com/rust-lang/rust/pull/39891
5977 [40043]: https://github.com/rust-lang/rust/pull/40043
5978 [40241]: https://github.com/rust-lang/rust/pull/40241
5979 [40338]: https://github.com/rust-lang/rust/pull/40338
5980 [40367]: https://github.com/rust-lang/rust/pull/40367
5981 [40377]: https://github.com/rust-lang/rust/pull/40377
5982 [40409]: https://github.com/rust-lang/rust/pull/40409
5983 [40516]: https://github.com/rust-lang/rust/pull/40516
5984 [40556]: https://github.com/rust-lang/rust/pull/40556
5985 [40561]: https://github.com/rust-lang/rust/pull/40561
5986 [40589]: https://github.com/rust-lang/rust/pull/40589
5987 [40612]: https://github.com/rust-lang/rust/pull/40612
5988 [40723]: https://github.com/rust-lang/rust/pull/40723
5989 [40728]: https://github.com/rust-lang/rust/pull/40728
5990 [40731]: https://github.com/rust-lang/rust/pull/40731
5991 [40734]: https://github.com/rust-lang/rust/pull/40734
5992 [40805]: https://github.com/rust-lang/rust/pull/40805
5993 [40807]: https://github.com/rust-lang/rust/pull/40807
5994 [40828]: https://github.com/rust-lang/rust/pull/40828
5995 [40870]: https://github.com/rust-lang/rust/pull/40870
5996 [41085]: https://github.com/rust-lang/rust/pull/41085
5997 [41143]: https://github.com/rust-lang/rust/pull/41143
5998 [41168]: https://github.com/rust-lang/rust/pull/41168
5999 [41270]: https://github.com/rust-lang/rust/issues/41270
6000 [41469]: https://github.com/rust-lang/rust/pull/41469
6001 [41805]: https://github.com/rust-lang/rust/issues/41805
6002 [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md
6003 [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md
6004 [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
6005 [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain
6006 [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain
6007 [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop
6008 [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek
6009 [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from
6010 [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek
6011 [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842
6012 [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847
6013 [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885
6014 [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901
6015 [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952
6016
6017
6018 Version 1.17.0 (2017-04-27)
6019 ===========================
6020
6021 Language
6022 --------
6023
6024 * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
6025 * [Fields of structs may be initialized without duplicating the field/variable
6026   names][39761]. [RFC 1682]
6027 * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
6028 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6029   there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
6030   coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
6031   `'b`. Soundness fix.
6032 * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
6033 * [Static variables may contain references to other statics][40027]
6034
6035 Compiler
6036 --------
6037
6038 * [Exit quickly on only `--emit dep-info`][40336]
6039 * [Make `-C relocation-model` more correctly determine whether the linker
6040   creates a position-independent executable][40245]
6041 * [Add `-C overflow-checks` to directly control whether integer overflow
6042   panics][40037]
6043 * [The rustc type checker now checks items on demand instead of in a single
6044   in-order pass][40008]. This is mostly an internal refactoring in support of
6045   future work, including incremental type checking, but also resolves [RFC
6046   1647], allowing `Self` to appear in `impl` `where` clauses.
6047 * [Optimize vtable loads][39995]
6048 * [Turn off vectorization for Emscripten targets][39990]
6049 * [Provide suggestions for unknown macros imported with `use`][39953]
6050 * [Fix ICEs in path resolution][39939]
6051 * [Strip exception handling code on Emscripten when `panic=abort`][39193]
6052 * [Add clearer error message using `&str + &str`][39116]
6053
6054 Stabilized APIs
6055 ---------------
6056
6057 * [`Arc::into_raw`]
6058 * [`Arc::from_raw`]
6059 * [`Arc::ptr_eq`]
6060 * [`Rc::into_raw`]
6061 * [`Rc::from_raw`]
6062 * [`Rc::ptr_eq`]
6063 * [`Ordering::then`]
6064 * [`Ordering::then_with`]
6065 * [`BTreeMap::range`]
6066 * [`BTreeMap::range_mut`]
6067 * [`collections::Bound`]
6068 * [`process::abort`]
6069 * [`ptr::read_unaligned`]
6070 * [`ptr::write_unaligned`]
6071 * [`Result::expect_err`]
6072 * [`Cell::swap`]
6073 * [`Cell::replace`]
6074 * [`Cell::into_inner`]
6075 * [`Cell::take`]
6076
6077 Libraries
6078 ---------
6079
6080 * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
6081 * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
6082 * [`String` implements `FromIterator<&char>`][40028]
6083 * `Box` [implements][40009] a number of new conversions:
6084   `From<Box<str>> for String`,
6085   `From<Box<[T]>> for Vec<T>`,
6086   `From<Box<CStr>> for CString`,
6087   `From<Box<OsStr>> for OsString`,
6088   `From<Box<Path>> for PathBuf`,
6089   `Into<Box<str>> for String`,
6090   `Into<Box<[T]>> for Vec<T>`,
6091   `Into<Box<CStr>> for CString`,
6092   `Into<Box<OsStr>> for OsString`,
6093   `Into<Box<Path>> for PathBuf`,
6094   `Default for Box<str>`,
6095   `Default for Box<CStr>`,
6096   `Default for Box<OsStr>`,
6097   `From<&CStr> for Box<CStr>`,
6098   `From<&OsStr> for Box<OsStr>`,
6099   `From<&Path> for Box<Path>`
6100 * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
6101 * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
6102 * [Slightly optimize `slice::sort`][39538]
6103 * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
6104 * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
6105   `Box<str>` implements `From<&str>`][39438]
6106 * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
6107   `From<(I, u16)> where I: Into<IpAddr>`][39372]
6108 * [`format!` estimates the needed capacity before writing a string][39356]
6109 * [Support unprivileged symlink creation in Windows][38921]
6110 * [`PathBuf` implements `Default`][38764]
6111 * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
6112 * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
6113   and poor hash functions.
6114
6115 Cargo
6116 -----
6117
6118 * [Add `cargo check --all`][cargo/3731]
6119 * [Add an option to ignore SSL revocation checking][cargo/3699]
6120 * [Add `cargo run --package`][cargo/3691]
6121 * [Add `required_features`][cargo/3667]
6122 * [Assume `build.rs` is a build script][cargo/3664]
6123 * [Find workspace via `workspace_root` link in containing member][cargo/3562]
6124
6125 Misc
6126 ----
6127
6128 * [Documentation is rendered with mdbook instead of the obsolete, in-tree
6129   `rustbook`][39633]
6130 * [The "Unstable Book" documents nightly-only features][ubook]
6131 * [Improve the style of the sidebar in rustdoc output][40265]
6132 * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
6133 * [Fix MSP430 breakage due to `i128`][40257]
6134 * [Preliminary Solaris/SPARCv9 support][39903]
6135 * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
6136   run without installing the MSVC runtime.
6137 * [`rustdoc --test` includes file names in test names][39788]
6138 * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
6139   `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
6140 * [Initial support for `aarch64-unknown-freebsd`][39491]
6141 * [Initial support for `i686-unknown-netbsd`][39426]
6142 * [This release no longer includes the old makefile build system][39431]. Rust
6143   is built with a custom build system, written in Rust, and with Cargo.
6144 * [Add Debug implementations for libcollection structs][39002]
6145 * [`TypeId` implements `PartialOrd` and `Ord`][38981]
6146 * [`--test-threads=0` produces an error][38945]
6147 * [`rustup` installs documentation by default][40526]
6148 * [The Rust source includes NatVis visualizations][39843]. These can be used by
6149   WinDbg and Visual Studio to improve the debugging experience.
6150
6151 Compatibility Notes
6152 -------------------
6153
6154 * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
6155   workaround, either use MSVC 2015 or run vcvars.bat.
6156 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6157   disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
6158   `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
6159   fix.
6160 * [`format!` and `Display::to_string` panic if an underlying formatting
6161   implementation returns an error][40117]. Previously the error was silently
6162   ignored. It is incorrect for `write_fmt` to return an error when writing
6163   to a string.
6164 * [In-tree crates are verified to be unstable][39851]. Previously, some minor
6165   crates were marked stable and could be accessed from the stable toolchain.
6166 * [Rust git source no longer includes vendored crates][39728]. Those that need
6167   to build with vendored crates should build from release tarballs.
6168 * [Fix inert attributes from `proc_macro_derives`][39572]
6169 * [During crate resolution, rustc prefers a crate in the sysroot if two crates
6170   are otherwise identical][39518]. Unlikely to be encountered outside the Rust
6171   build system.
6172 * [Fixed bugs around how type inference interacts with dead-code][39485]. The
6173   existing code generally ignores the type of dead-code unless a type-hint is
6174   provided; this can cause surprising inference interactions particularly around
6175   defaulting. The new code uniformly ignores the result type of dead-code.
6176 * [Tuple-struct constructors with private fields are no longer visible][38932]
6177 * [Lifetime parameters that do not appear in the arguments are now considered
6178   early-bound][38897], resolving a soundness bug (#[32330]). The
6179   `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
6180   April of 2016.
6181 * [rustdoc: fix doctests with non-feature crate attributes][38161]
6182 * [Make transmuting from fn item types to pointer-sized types a hard
6183   error][34198]
6184
6185 [27787]: https://github.com/rust-lang/rust/issues/27787
6186 [32330]: https://github.com/rust-lang/rust/issues/32330
6187 [34198]: https://github.com/rust-lang/rust/pull/34198
6188 [38161]: https://github.com/rust-lang/rust/pull/38161
6189 [38368]: https://github.com/rust-lang/rust/pull/38368
6190 [38584]: https://github.com/rust-lang/rust/issues/38584
6191 [38661]: https://github.com/rust-lang/rust/pull/38661
6192 [38764]: https://github.com/rust-lang/rust/pull/38764
6193 [38864]: https://github.com/rust-lang/rust/issues/38864
6194 [38897]: https://github.com/rust-lang/rust/pull/38897
6195 [38921]: https://github.com/rust-lang/rust/pull/38921
6196 [38932]: https://github.com/rust-lang/rust/pull/38932
6197 [38945]: https://github.com/rust-lang/rust/pull/38945
6198 [38981]: https://github.com/rust-lang/rust/pull/38981
6199 [39002]: https://github.com/rust-lang/rust/pull/39002
6200 [39116]: https://github.com/rust-lang/rust/pull/39116
6201 [39193]: https://github.com/rust-lang/rust/pull/39193
6202 [39265]: https://github.com/rust-lang/rust/pull/39265
6203 [39356]: https://github.com/rust-lang/rust/pull/39356
6204 [39372]: https://github.com/rust-lang/rust/pull/39372
6205 [39426]: https://github.com/rust-lang/rust/pull/39426
6206 [39431]: https://github.com/rust-lang/rust/pull/39431
6207 [39438]: https://github.com/rust-lang/rust/pull/39438
6208 [39440]: https://github.com/rust-lang/rust/pull/39440
6209 [39485]: https://github.com/rust-lang/rust/pull/39485
6210 [39491]: https://github.com/rust-lang/rust/pull/39491
6211 [39518]: https://github.com/rust-lang/rust/pull/39518
6212 [39538]: https://github.com/rust-lang/rust/pull/39538
6213 [39572]: https://github.com/rust-lang/rust/pull/39572
6214 [39633]: https://github.com/rust-lang/rust/pull/39633
6215 [39642]: https://github.com/rust-lang/rust/pull/39642
6216 [39728]: https://github.com/rust-lang/rust/pull/39728
6217 [39761]: https://github.com/rust-lang/rust/pull/39761
6218 [39788]: https://github.com/rust-lang/rust/pull/39788
6219 [39793]: https://github.com/rust-lang/rust/pull/39793
6220 [39837]: https://github.com/rust-lang/rust/pull/39837
6221 [39843]: https://github.com/rust-lang/rust/pull/39843
6222 [39851]: https://github.com/rust-lang/rust/pull/39851
6223 [39903]: https://github.com/rust-lang/rust/pull/39903
6224 [39939]: https://github.com/rust-lang/rust/pull/39939
6225 [39953]: https://github.com/rust-lang/rust/pull/39953
6226 [39960]: https://github.com/rust-lang/rust/pull/39960
6227 [39990]: https://github.com/rust-lang/rust/pull/39990
6228 [39995]: https://github.com/rust-lang/rust/pull/39995
6229 [40008]: https://github.com/rust-lang/rust/pull/40008
6230 [40009]: https://github.com/rust-lang/rust/pull/40009
6231 [40027]: https://github.com/rust-lang/rust/pull/40027
6232 [40028]: https://github.com/rust-lang/rust/pull/40028
6233 [40037]: https://github.com/rust-lang/rust/pull/40037
6234 [40117]: https://github.com/rust-lang/rust/pull/40117
6235 [40166]: https://github.com/rust-lang/rust/pull/40166
6236 [40245]: https://github.com/rust-lang/rust/pull/40245
6237 [40257]: https://github.com/rust-lang/rust/pull/40257
6238 [40261]: https://github.com/rust-lang/rust/pull/40261
6239 [40265]: https://github.com/rust-lang/rust/pull/40265
6240 [40319]: https://github.com/rust-lang/rust/pull/40319
6241 [40336]: https://github.com/rust-lang/rust/pull/40336
6242 [40526]: https://github.com/rust-lang/rust/pull/40526
6243 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
6244 [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
6245 [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
6246 [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
6247 [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
6248 [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
6249 [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
6250 [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
6251 [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
6252 [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
6253 [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
6254 [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
6255 [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
6256 [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
6257 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
6258 [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
6259 [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
6260 [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
6261 [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
6262 [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
6263 [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
6264 [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
6265 [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
6266 [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
6267 [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
6268 [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
6269 [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
6270 [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
6271 [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
6272 [ubook]: https://doc.rust-lang.org/unstable-book/
6273
6274
6275 Version 1.16.0 (2017-03-16)
6276 ===========================
6277
6278 Language
6279 --------
6280
6281 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6282 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6283   match patterns][38069]
6284 * [Clean up semantics of `self` in an import list][38313]
6285 * [`Self` may appear in `impl` headers][38920]
6286 * [`Self` may appear in struct expressions][39282]
6287
6288 Compiler
6289 --------
6290
6291 * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
6292   a `.rmeta` file containing only crate metadata][38571]. This can be
6293   used by tools like the Rust Language Service to perform
6294   metadata-only builds.
6295 * [Levenshtein based typo suggestions now work in most places, while
6296   previously they worked only for fields and sometimes for local
6297   variables][38927]. Together with the overhaul of "no
6298   resolution"/"unexpected resolution" errors (#[38154]) they result in
6299   large and systematic improvement in resolution diagnostics.
6300 * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
6301   `U`][38670]
6302 * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
6303 * [`rustc` no longer attempts to provide "consider using an explicit
6304   lifetime" suggestions][37057]. They were inaccurate.
6305
6306 Stabilized APIs
6307 ---------------
6308
6309 * [`VecDeque::truncate`]
6310 * [`VecDeque::resize`]
6311 * [`String::insert_str`]
6312 * [`Duration::checked_add`]
6313 * [`Duration::checked_sub`]
6314 * [`Duration::checked_div`]
6315 * [`Duration::checked_mul`]
6316 * [`str::replacen`]
6317 * [`str::repeat`]
6318 * [`SocketAddr::is_ipv4`]
6319 * [`SocketAddr::is_ipv6`]
6320 * [`IpAddr::is_ipv4`]
6321 * [`IpAddr::is_ipv6`]
6322 * [`Vec::dedup_by`]
6323 * [`Vec::dedup_by_key`]
6324 * [`Result::unwrap_or_default`]
6325 * [`<*const T>::wrapping_offset`]
6326 * [`<*mut T>::wrapping_offset`]
6327 * `CommandExt::creation_flags`
6328 * [`File::set_permissions`]
6329 * [`String::split_off`]
6330
6331 Libraries
6332 ---------
6333
6334 * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
6335   their argument by `Borrow` parameter][37761]
6336 * [All public types in std implement `Debug`][38006]
6337 * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
6338 * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
6339 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6340   Windows][38274]
6341 * [std: Fix partial writes in `LineWriter`][38062]
6342 * [std: Clamp max read/write sizes on Unix][38622]
6343 * [Use more specific panic message for `&str` slicing errors][38066]
6344 * [`TcpListener::set_only_v6` is deprecated][38304]. This
6345   functionality cannot be achieved in std currently.
6346 * [`writeln!`, like `println!`, now accepts a form with no string
6347   or formatting arguments, to just print a newline][38469]
6348 * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
6349 * [Reduce the size of static data in `std_unicode::tables`][38781]
6350 * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
6351   `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
6352   `Display`][38909]
6353 * [`Duration` implements `Sum`][38712]
6354 * [`String` implements `ToSocketAddrs`][39048]
6355
6356 Cargo
6357 -----
6358
6359 * [The `cargo check` command does a type check of a project without
6360   building it][cargo/3296]
6361 * [crates.io will display CI badges from Travis and AppVeyor, if
6362   specified in Cargo.toml][cargo/3546]
6363 * [crates.io will display categories listed in Cargo.toml][cargo/3301]
6364 * [Compilation profiles accept integer values for `debug`, in addition
6365   to `true` and `false`. These are passed to `rustc` as the value to
6366   `-C debuginfo`][cargo/3534]
6367 * [Implement `cargo --version --verbose`][cargo/3604]
6368 * [All builds now output 'dep-info' build dependencies compatible with
6369   make and ninja][cargo/3557]
6370 * [Build all workspace members with `build --all`][cargo/3511]
6371 * [Document all workspace members with `doc --all`][cargo/3515]
6372 * [Path deps outside workspace are not members][cargo/3443]
6373
6374 Misc
6375 ----
6376
6377 * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
6378   the path to the Rust implementation][38589]
6379 * [The `armv7-linux-androideabi` target no longer enables NEON
6380   extensions, per Google's ABI guide][38413]
6381 * [The stock standard library can be compiled for Redox OS][38401]
6382 * [Rust has initial SPARC support][38726]. Tier 3. No builds
6383   available.
6384 * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
6385   builds available.
6386 * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
6387
6388 Compatibility Notes
6389 -------------------
6390
6391 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6392   match patterns][38069]
6393 * In this release, references to uninhabited types can not be
6394   pattern-matched. This was accidentally allowed in 1.15.
6395 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6396 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6397   Windows][38274]
6398 * [Clean up semantics of `self` in an import list][38313]
6399 * Reimplemented lifetime elision. This change was almost entirely compatible
6400   with existing code, but it did close a number of small bugs and loopholes,
6401   as well as being more accepting in some other [cases][41105].
6402
6403 [37057]: https://github.com/rust-lang/rust/pull/37057
6404 [37761]: https://github.com/rust-lang/rust/pull/37761
6405 [38006]: https://github.com/rust-lang/rust/pull/38006
6406 [38051]: https://github.com/rust-lang/rust/pull/38051
6407 [38062]: https://github.com/rust-lang/rust/pull/38062
6408 [38622]: https://github.com/rust-lang/rust/pull/38622
6409 [38066]: https://github.com/rust-lang/rust/pull/38066
6410 [38069]: https://github.com/rust-lang/rust/pull/38069
6411 [38131]: https://github.com/rust-lang/rust/pull/38131
6412 [38154]: https://github.com/rust-lang/rust/pull/38154
6413 [38274]: https://github.com/rust-lang/rust/pull/38274
6414 [38304]: https://github.com/rust-lang/rust/pull/38304
6415 [38313]: https://github.com/rust-lang/rust/pull/38313
6416 [38327]: https://github.com/rust-lang/rust/pull/38327
6417 [38401]: https://github.com/rust-lang/rust/pull/38401
6418 [38413]: https://github.com/rust-lang/rust/pull/38413
6419 [38469]: https://github.com/rust-lang/rust/pull/38469
6420 [38559]: https://github.com/rust-lang/rust/pull/38559
6421 [38571]: https://github.com/rust-lang/rust/pull/38571
6422 [38580]: https://github.com/rust-lang/rust/pull/38580
6423 [38589]: https://github.com/rust-lang/rust/pull/38589
6424 [38670]: https://github.com/rust-lang/rust/pull/38670
6425 [38712]: https://github.com/rust-lang/rust/pull/38712
6426 [38726]: https://github.com/rust-lang/rust/pull/38726
6427 [38781]: https://github.com/rust-lang/rust/pull/38781
6428 [38798]: https://github.com/rust-lang/rust/pull/38798
6429 [38909]: https://github.com/rust-lang/rust/pull/38909
6430 [38920]: https://github.com/rust-lang/rust/pull/38920
6431 [38927]: https://github.com/rust-lang/rust/pull/38927
6432 [39048]: https://github.com/rust-lang/rust/pull/39048
6433 [39282]: https://github.com/rust-lang/rust/pull/39282
6434 [39379]: https://github.com/rust-lang/rust/pull/39379
6435 [41105]: https://github.com/rust-lang/rust/issues/41105
6436 [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6437 [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6438 [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
6439 [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
6440 [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
6441 [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
6442 [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
6443 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
6444 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
6445 [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
6446 [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
6447 [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
6448 [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
6449 [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
6450 [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
6451 [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
6452 [`VecDeque::resize`]:  https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
6453 [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
6454 [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
6455 [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
6456 [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
6457 [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
6458 [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
6459 [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
6460 [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
6461 [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
6462 [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
6463 [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
6464 [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
6465
6466
6467 Version 1.15.1 (2017-02-09)
6468 ===========================
6469
6470 * [Fix IntoIter::as_mut_slice's signature][39466]
6471 * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
6472
6473 [39466]: https://github.com/rust-lang/rust/pull/39466
6474 [39523]: https://github.com/rust-lang/rust/pull/39523
6475
6476
6477 Version 1.15.0 (2017-02-02)
6478 ===========================
6479
6480 Language
6481 --------
6482
6483 * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
6484   stable. This allows popular code-generating crates like Serde and Diesel to
6485   work ergonomically. [RFC 1681].
6486 * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
6487   with curly braces][36868]. Part of [RFC 1506].
6488 * [A number of minor changes to name resolution have been activated][37127].
6489   They add up to more consistent semantics, allowing for future evolution of
6490   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6491   details of what is different. The breaking changes here have been transitioned
6492   through the [`legacy_imports`] lint since 1.14, with no known regressions.
6493 * [In `macro_rules`, `path` fragments can now be parsed as type parameter
6494   bounds][38279]
6495 * [`?Sized` can be used in `where` clauses][37791]
6496 * [There is now a limit on the size of monomorphized types and it can be
6497   modified with the `#![type_size_limit]` crate attribute, similarly to
6498   the `#![recursion_limit]` attribute][37789]
6499
6500 Compiler
6501 --------
6502
6503 * [On Windows, the compiler will apply dllimport attributes when linking to
6504   extern functions][37973]. Additional attributes and flags can control which
6505   library kind is linked and its name. [RFC 1717].
6506 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6507 * [The `--test` flag works with procedural macro crates][38107]
6508 * [Fix `extern "aapcs" fn` ABI][37814]
6509 * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
6510 * [The `format!` expander recognizes incorrect `printf` and shell-style
6511   formatting directives and suggests the correct format][37613].
6512 * [Only report one error for all unused imports in an import list][37456]
6513
6514 Compiler Performance
6515 --------------------
6516
6517 * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
6518 * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
6519 * [Don't clone in `UnificationTable::probe`][37848]
6520 * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
6521 * [Use small vectors in type walker][37760]
6522 * [Macro expansion performance was improved][37701]
6523 * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
6524 * [Replace FNV with a faster hash function][37229]
6525
6526 Stabilized APIs
6527 ---------------
6528
6529 * [`std::iter::Iterator::min_by`]
6530 * [`std::iter::Iterator::max_by`]
6531 * [`std::os::*::fs::FileExt`]
6532 * [`std::sync::atomic::Atomic*::get_mut`]
6533 * [`std::sync::atomic::Atomic*::into_inner`]
6534 * [`std::vec::IntoIter::as_slice`]
6535 * [`std::vec::IntoIter::as_mut_slice`]
6536 * [`std::sync::mpsc::Receiver::try_iter`]
6537 * [`std::os::unix::process::CommandExt::before_exec`]
6538 * [`std::rc::Rc::strong_count`]
6539 * [`std::rc::Rc::weak_count`]
6540 * [`std::sync::Arc::strong_count`]
6541 * [`std::sync::Arc::weak_count`]
6542 * [`std::char::encode_utf8`]
6543 * [`std::char::encode_utf16`]
6544 * [`std::cell::Ref::clone`]
6545 * [`std::io::Take::into_inner`]
6546
6547 Libraries
6548 ---------
6549
6550 * [The standard sorting algorithm has been rewritten for dramatic performance
6551   improvements][38192]. It is a hybrid merge sort, drawing influences from
6552   Timsort. Previously it was a naive merge sort.
6553 * [`Iterator::nth` no longer has a `Sized` bound][38134]
6554 * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
6555   performance.
6556 * [`chars().count()` is much faster][37888] and so are [`chars().last()`
6557   and `char_indices().last()`][37882]
6558 * [Fix ARM Objective-C ABI in `std::env::args`][38146]
6559 * [Chinese characters display correctly in `fmt::Debug`][37855]
6560 * [Derive `Default` for `Duration`][37699]
6561 * [Support creation of anonymous pipes on WinXP/2k][37677]
6562 * [`mpsc::RecvTimeoutError` implements `Error`][37527]
6563 * [Don't pass overlapped handles to processes][38835]
6564
6565 Cargo
6566 -----
6567
6568 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6569   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6570   should instead check the variable at runtime with `std::env`. That the value
6571   was set at build time was a bug, and incorrect when cross-compiling. This
6572   change is known to cause breakage.
6573 * [Add `--all` flag to `cargo test`][cargo/3221]
6574 * [Compile statically against the MSVC CRT][cargo/3363]
6575 * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
6576 * [Link OpenSSL statically on OSX][cargo/3311]
6577 * [Apply new fingerprinting to build dir outputs][cargo/3310]
6578 * [Test for bad path overrides with summaries][cargo/3336]
6579 * [Require `cargo install --vers` to take a semver version][cargo/3338]
6580 * [Fix retrying crate downloads for network errors][cargo/3348]
6581 * [Implement string lookup for `build.rustflags` config key][cargo/3356]
6582 * [Emit more info on --message-format=json][cargo/3319]
6583 * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
6584 * [Don't ignore errors in workspace manifest][cargo/3409]
6585 * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
6586
6587 Tooling
6588 -------
6589
6590 * [Test runners (binaries built with `--test`) now support a `--list` argument
6591   that lists the tests it contains][38185]
6592 * [Test runners now support a `--exact` argument that makes the test filter
6593   match exactly, instead of matching only a substring of the test name][38181]
6594 * [rustdoc supports a `--playground-url` flag][37763]
6595 * [rustdoc provides more details about `#[should_panic]` errors][37749]
6596
6597 Misc
6598 ----
6599
6600 * [The Rust build system is now written in Rust][37817]. The Makefiles may
6601   continue to be used in this release by passing `--disable-rustbuild` to the
6602   configure script, but they will be deleted soon. Note that the new build
6603   system uses a different on-disk layout that will likely affect any scripts
6604   building Rust.
6605 * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
6606   releases.
6607 * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
6608 * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
6609   releases.
6610
6611 Compatibility Notes
6612 -------------------
6613
6614 * [A number of minor changes to name resolution have been activated][37127].
6615   They add up to more consistent semantics, allowing for future evolution of
6616   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6617   details of what is different. The breaking changes here have been transitioned
6618   through the [`legacy_imports`] lint since 1.14, with no known regressions.
6619 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6620   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6621   should instead check the variable at runtime with `std::env`. That the value
6622   was set at build time was a bug, and incorrect when cross-compiling. This
6623   change is known to cause breakage.
6624 * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
6625   types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
6626   1.10 and is now an error by default. It will become a hard error in the near
6627   future.
6628 * [The semantics relating modules to file system directories are changing in
6629   minor ways][37602]. This is captured in the new `legacy_directory_ownership`
6630   lint, which is a warning in this release, and will become a hard error in the
6631   future.
6632 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6633 * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
6634   the underlying iterator][37834]
6635
6636 ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
6637 [33685]: https://github.com/rust-lang/rust/issues/33685
6638 [36868]: https://github.com/rust-lang/rust/pull/36868
6639 [37127]: https://github.com/rust-lang/rust/pull/37127
6640 [37229]: https://github.com/rust-lang/rust/pull/37229
6641 [37456]: https://github.com/rust-lang/rust/pull/37456
6642 [37527]: https://github.com/rust-lang/rust/pull/37527
6643 [37602]: https://github.com/rust-lang/rust/pull/37602
6644 [37613]: https://github.com/rust-lang/rust/pull/37613
6645 [37615]: https://github.com/rust-lang/rust/pull/37615
6646 [37636]: https://github.com/rust-lang/rust/pull/37636
6647 [37627]: https://github.com/rust-lang/rust/pull/37627
6648 [37642]: https://github.com/rust-lang/rust/pull/37642
6649 [37677]: https://github.com/rust-lang/rust/pull/37677
6650 [37699]: https://github.com/rust-lang/rust/pull/37699
6651 [37701]: https://github.com/rust-lang/rust/pull/37701
6652 [37705]: https://github.com/rust-lang/rust/pull/37705
6653 [37749]: https://github.com/rust-lang/rust/pull/37749
6654 [37760]: https://github.com/rust-lang/rust/pull/37760
6655 [37763]: https://github.com/rust-lang/rust/pull/37763
6656 [37764]: https://github.com/rust-lang/rust/pull/37764
6657 [37789]: https://github.com/rust-lang/rust/pull/37789
6658 [37791]: https://github.com/rust-lang/rust/pull/37791
6659 [37814]: https://github.com/rust-lang/rust/pull/37814
6660 [37817]: https://github.com/rust-lang/rust/pull/37817
6661 [37834]: https://github.com/rust-lang/rust/pull/37834
6662 [37848]: https://github.com/rust-lang/rust/pull/37848
6663 [37855]: https://github.com/rust-lang/rust/pull/37855
6664 [37882]: https://github.com/rust-lang/rust/pull/37882
6665 [37888]: https://github.com/rust-lang/rust/pull/37888
6666 [37973]: https://github.com/rust-lang/rust/pull/37973
6667 [37979]: https://github.com/rust-lang/rust/pull/37979
6668 [38086]: https://github.com/rust-lang/rust/pull/38086
6669 [38107]: https://github.com/rust-lang/rust/pull/38107
6670 [38117]: https://github.com/rust-lang/rust/pull/38117
6671 [38134]: https://github.com/rust-lang/rust/pull/38134
6672 [38146]: https://github.com/rust-lang/rust/pull/38146
6673 [38181]: https://github.com/rust-lang/rust/pull/38181
6674 [38182]: https://github.com/rust-lang/rust/pull/38182
6675 [38185]: https://github.com/rust-lang/rust/pull/38185
6676 [38192]: https://github.com/rust-lang/rust/pull/38192
6677 [38279]: https://github.com/rust-lang/rust/pull/38279
6678 [38835]: https://github.com/rust-lang/rust/pull/38835
6679 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
6680 [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
6681 [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
6682 [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
6683 [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
6684 [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
6685 [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
6686 [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
6687 [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
6688 [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
6689 [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
6690 [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
6691 [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
6692 [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
6693 [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
6694 [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
6695 [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
6696 [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
6697 [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
6698 [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
6699 [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
6700 [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
6701 [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
6702 [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
6703 [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
6704 [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
6705 [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
6706 [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
6707 [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
6708 [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
6709 [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
6710 [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
6711 [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
6712 [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
6713 [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
6714 [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
6715 [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
6716
6717
6718 Version 1.14.0 (2016-12-22)
6719 ===========================
6720
6721 Language
6722 --------
6723
6724 * [`..` matches multiple tuple fields in enum variants, structs
6725   and tuples][36843]. [RFC 1492].
6726 * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
6727 * [`use *` and `use ::*` both glob-import from the crate root][37367]
6728 * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
6729   dereferencing][36822]
6730
6731 Compiler
6732 --------
6733
6734 * [Mark enums with non-zero discriminant as non-zero][37224]
6735 * [Lower-case `static mut` names are linted like other
6736   statics and consts][37162]
6737 * [Fix ICE on some macros in const integer positions
6738    (e.g. `[u8; m!()]`)][36819]
6739 * [Improve error message and snippet for "did you mean `x`"][36798]
6740 * [Add a panic-strategy field to the target specification][36794]
6741 * [Include LLVM version in `--version --verbose`][37200]
6742
6743 Compile-time Optimizations
6744 --------------------------
6745
6746 * [Improve macro expansion performance][37569]
6747 * [Shrink `Expr_::ExprInlineAsm`][37445]
6748 * [Replace all uses of SHA-256 with BLAKE2b][37439]
6749 * [Reduce the number of bytes hashed by `IchHasher`][37427]
6750 * [Avoid more allocations when compiling html5ever][37373]
6751 * [Use `SmallVector` in `CombineFields::instantiate`][37322]
6752 * [Avoid some allocations in the macro parser][37318]
6753 * [Use a faster deflate setting][37298]
6754 * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
6755   during interning of slices][37270]
6756 * [Optimize `write_metadata`][37267]
6757 * [Don't process obligation forest cycles when stalled][37231]
6758 * [Avoid many `CrateConfig` clones][37161]
6759 * [Optimize `Substs::super_fold_with`][37108]
6760 * [Optimize `ObligationForest`'s `NodeState` handling][36993]
6761 * [Speed up `plug_leaks`][36917]
6762
6763 Libraries
6764 ---------
6765
6766 * [`println!()`, with no arguments, prints newline][36825].
6767   Previously, an empty string was required to achieve the same.
6768 * [`Wrapping` impls standard binary and unary operators, as well as
6769    the `Sum` and `Product` iterators][37356]
6770 * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
6771   Vec<T>`][37326]
6772 * [Improve `fold` performance for `chain`, `cloned`, `map`, and
6773   `VecDeque` iterators][37315]
6774 * [Improve `SipHasher` performance on small values][37312]
6775 * [Add Iterator trait TrustedLen to enable better FromIterator /
6776   Extend][37306]
6777 * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
6778 * [`ReadDir` implements `Debug`][37221]
6779 * [Implement `RefUnwindSafe` for atomic types][37178]
6780 * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
6781 * [Avoid allocations in `Decoder::read_str`][37064]
6782 * [`io::Error` implements `From<io::ErrorKind>`][37037]
6783 * [Impl `Debug` for raw pointers to unsized data][36880]
6784 * [Don't reuse `HashMap` random seeds][37470]
6785 * [The internal memory layout of `HashMap` is more cache-friendly, for
6786   significant improvements in some operations][36692]
6787 * [`HashMap` uses less memory on 32-bit architectures][36595]
6788 * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
6789
6790 Cargo
6791 -----
6792
6793 * [Expose rustc cfg values to build scripts][cargo/3243]
6794 * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
6795 * [Fix passing --features when testing multiple packages][cargo/3280]
6796 * [Use a single profile set per workspace][cargo/3249]
6797 * [Load `replace` sections from lock files][cargo/3220]
6798 * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
6799
6800 Tooling
6801 -------
6802
6803 * [rustup is the recommended Rust installation method][1.14rustup]
6804 * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
6805   S390x. These are [tier 2] platforms and may have major defects. Follow the
6806   instructions on the website to install, or add the targets to an existing
6807   installation with `rustup target add`. The new target triples are:
6808   - `mips-unknown-linux-gnu`
6809   - `mipsel-unknown-linux-gnu`
6810   - `mips64-unknown-linux-gnuabi64`
6811   - `mips64el-unknown-linux-gnuabi64 `
6812   - `powerpc-unknown-linux-gnu`
6813   - `powerpc64-unknown-linux-gnu`
6814   - `powerpc64le-unknown-linux-gnu`
6815   - `s390x-unknown-linux-gnu `
6816 * This release includes target (std) builds for ARM Linux running MUSL
6817   libc. These are [tier 2] platforms and may have major defects. Add the
6818   following triples to an existing rustup installation with `rustup target add`:
6819   - `arm-unknown-linux-musleabi`
6820   - `arm-unknown-linux-musleabihf`
6821   - `armv7-unknown-linux-musleabihf`
6822 * This release includes [experimental support for WebAssembly][1.14wasm], via
6823   the `wasm32-unknown-emscripten` target. This target is known to have major
6824   defects. Please test, report, and fix.
6825 * rustup no longer installs documentation by default. Run `rustup
6826   component add rust-docs` to install.
6827 * [Fix line stepping in debugger][37310]
6828 * [Enable line number debuginfo in releases][37280]
6829
6830 Misc
6831 ----
6832
6833 * [Disable jemalloc on aarch64/powerpc/mips][37392]
6834 * [Add support for Fuchsia OS][37313]
6835 * [Detect local-rebuild by only MAJOR.MINOR version][37273]
6836
6837 Compatibility Notes
6838 -------------------
6839
6840 * [A number of forward-compatibility lints used by the compiler
6841   to gradually introduce language changes have been converted
6842   to deny by default][36894]:
6843   - ["use of inaccessible extern crate erroneously allowed"][36886]
6844   - ["type parameter default erroneously allowed in invalid location"][36887]
6845   - ["detects super or self keywords at the beginning of global path"][36888]
6846   - ["two overlapping inherent impls define an item with the same name
6847     were erroneously allowed"][36889]
6848   - ["floating-point constants cannot be used in patterns"][36890]
6849   - ["constants of struct or enum type can only be used in a pattern if
6850      the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
6851   - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
6852 * [Prohibit patterns in trait methods without bodies][37378]
6853 * [The atomic `Ordering` enum may not be matched exhaustively][37351]
6854 * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
6855 * [The `$crate` macro variable is accepted in fewer locations][37213]
6856 * [Impls specifying extra region requirements beyond the trait
6857   they implement are rejected][37167]
6858 * [Enums may not be unsized][37111]. Unsized enums are intended to
6859   work but never have. For now they are forbidden.
6860 * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
6861
6862 [tier 2]: https://forge.rust-lang.org/platform-support.html
6863 [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
6864 [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
6865 [36430]: https://github.com/rust-lang/rust/pull/36430
6866 [36595]: https://github.com/rust-lang/rust/pull/36595
6867 [36692]: https://github.com/rust-lang/rust/pull/36692
6868 [36767]: https://github.com/rust-lang/rust/pull/36767
6869 [36794]: https://github.com/rust-lang/rust/pull/36794
6870 [36798]: https://github.com/rust-lang/rust/pull/36798
6871 [36819]: https://github.com/rust-lang/rust/pull/36819
6872 [36822]: https://github.com/rust-lang/rust/pull/36822
6873 [36825]: https://github.com/rust-lang/rust/pull/36825
6874 [36843]: https://github.com/rust-lang/rust/pull/36843
6875 [36880]: https://github.com/rust-lang/rust/pull/36880
6876 [36886]: https://github.com/rust-lang/rust/issues/36886
6877 [36887]: https://github.com/rust-lang/rust/issues/36887
6878 [36888]: https://github.com/rust-lang/rust/issues/36888
6879 [36889]: https://github.com/rust-lang/rust/issues/36889
6880 [36890]: https://github.com/rust-lang/rust/issues/36890
6881 [36891]: https://github.com/rust-lang/rust/issues/36891
6882 [36892]: https://github.com/rust-lang/rust/issues/36892
6883 [36894]: https://github.com/rust-lang/rust/pull/36894
6884 [36917]: https://github.com/rust-lang/rust/pull/36917
6885 [36993]: https://github.com/rust-lang/rust/pull/36993
6886 [37037]: https://github.com/rust-lang/rust/pull/37037
6887 [37064]: https://github.com/rust-lang/rust/pull/37064
6888 [37094]: https://github.com/rust-lang/rust/pull/37094
6889 [37108]: https://github.com/rust-lang/rust/pull/37108
6890 [37111]: https://github.com/rust-lang/rust/pull/37111
6891 [37161]: https://github.com/rust-lang/rust/pull/37161
6892 [37162]: https://github.com/rust-lang/rust/pull/37162
6893 [37167]: https://github.com/rust-lang/rust/pull/37167
6894 [37178]: https://github.com/rust-lang/rust/pull/37178
6895 [37200]: https://github.com/rust-lang/rust/pull/37200
6896 [37213]: https://github.com/rust-lang/rust/pull/37213
6897 [37221]: https://github.com/rust-lang/rust/pull/37221
6898 [37224]: https://github.com/rust-lang/rust/pull/37224
6899 [37230]: https://github.com/rust-lang/rust/pull/37230
6900 [37231]: https://github.com/rust-lang/rust/pull/37231
6901 [37247]: https://github.com/rust-lang/rust/pull/37247
6902 [37267]: https://github.com/rust-lang/rust/pull/37267
6903 [37270]: https://github.com/rust-lang/rust/pull/37270
6904 [37273]: https://github.com/rust-lang/rust/pull/37273
6905 [37280]: https://github.com/rust-lang/rust/pull/37280
6906 [37298]: https://github.com/rust-lang/rust/pull/37298
6907 [37306]: https://github.com/rust-lang/rust/pull/37306
6908 [37310]: https://github.com/rust-lang/rust/pull/37310
6909 [37312]: https://github.com/rust-lang/rust/pull/37312
6910 [37313]: https://github.com/rust-lang/rust/pull/37313
6911 [37315]: https://github.com/rust-lang/rust/pull/37315
6912 [37318]: https://github.com/rust-lang/rust/pull/37318
6913 [37322]: https://github.com/rust-lang/rust/pull/37322
6914 [37326]: https://github.com/rust-lang/rust/pull/37326
6915 [37351]: https://github.com/rust-lang/rust/pull/37351
6916 [37356]: https://github.com/rust-lang/rust/pull/37356
6917 [37367]: https://github.com/rust-lang/rust/pull/37367
6918 [37373]: https://github.com/rust-lang/rust/pull/37373
6919 [37378]: https://github.com/rust-lang/rust/pull/37378
6920 [37389]: https://github.com/rust-lang/rust/pull/37389
6921 [37392]: https://github.com/rust-lang/rust/pull/37392
6922 [37427]: https://github.com/rust-lang/rust/pull/37427
6923 [37439]: https://github.com/rust-lang/rust/pull/37439
6924 [37445]: https://github.com/rust-lang/rust/pull/37445
6925 [37470]: https://github.com/rust-lang/rust/pull/37470
6926 [37569]: https://github.com/rust-lang/rust/pull/37569
6927 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
6928 [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
6929 [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
6930 [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
6931 [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
6932 [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
6933 [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
6934
6935
6936 Version 1.13.0 (2016-11-10)
6937 ===========================
6938
6939 Language
6940 --------
6941
6942 * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
6943   errors, like the `try!` macro, described in [RFC 0243].
6944 * [Stabilize macros in type position][36014]. Described in [RFC 873].
6945 * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
6946 * [Fix `#[derive]` for empty tuple structs/variants][35728]
6947 * [Fix lifetime rules for 'if' conditions][36029]
6948 * [Avoid loading and parsing unconfigured non-inline modules][36482]
6949
6950 Compiler
6951 --------
6952
6953 * [Add the `-C link-arg` argument][36574]
6954 * [Remove the old AST-based backend from rustc_trans][35764]
6955 * [Don't enable NEON by default on armv7 Linux][35814]
6956 * [Fix debug line number info for macro expansions][35238]
6957 * [Do not emit "class method" debuginfo for types that are not
6958   DICompositeType][36008]
6959 * [Warn about multiple conflicting #[repr] hints][34623]
6960 * [When sizing DST, don't double-count nested struct prefixes][36351]
6961 * [Default RUST_MIN_STACK to 16MiB for now][36505]
6962 * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
6963 * [Reject macros with empty repetitions to avoid infinite loop][36721]
6964 * [Expand macros without recursing to avoid stack overflows][36214]
6965
6966 Diagnostics
6967 -----------
6968
6969 * [Replace macro backtraces with labeled local uses][35702]
6970 * [Improve error message for misplaced doc comments][33922]
6971 * [Buffer unix and lock windows to prevent message interleaving][35975]
6972 * [Update lifetime errors to specifically note temporaries][36171]
6973 * [Special case a few colors for Windows][36178]
6974 * [Suggest `use self` when such an import resolves][36289]
6975 * [Be more specific when type parameter shadows primitive type][36338]
6976 * Many minor improvements
6977
6978 Compile-time Optimizations
6979 --------------------------
6980
6981 * [Compute and cache HIR hashes at beginning][35854]
6982 * [Don't hash types in loan paths][36004]
6983 * [Cache projections in trans][35761]
6984 * [Optimize the parser's last token handling][36527]
6985 * [Only instantiate #[inline] functions in codegen units referencing
6986   them][36524]. This leads to big improvements in cases where crates export
6987   define many inline functions without using them directly.
6988 * [Lazily allocate TypedArena's first chunk][36592]
6989 * [Don't allocate during default HashSet creation][36734]
6990
6991 Stabilized APIs
6992 ---------------
6993
6994 * [`checked_abs`]
6995 * [`wrapping_abs`]
6996 * [`overflowing_abs`]
6997 * [`RefCell::try_borrow`]
6998 * [`RefCell::try_borrow_mut`]
6999
7000 Libraries
7001 ---------
7002
7003 * [Add `assert_ne!` and `debug_assert_ne!`][35074]
7004 * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
7005   covariant][35354]
7006 * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
7007 * [Implement `Debug` for `std::vec::IntoIter`][35707]
7008 * [`CString`: avoid excessive growth just to 0-terminate][35871]
7009 * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
7010 * [Use arc4rand on FreeBSD][35884]
7011 * [memrchr: Correct aligned offset computation][35969]
7012 * [Improve Demangling of Rust Symbols][36059]
7013 * [Use monotonic time in condition variables][35048]
7014 * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
7015 * [Implement conversion traits for `char`][35755]
7016 * [Fix illegal instruction caused by overflow in channel cloning][36104]
7017 * [Zero first byte of CString on drop][36264]
7018 * [Inherit overflow checks for sum and product][36372]
7019 * [Add missing Eq implementations][36423]
7020 * [Implement `Debug` for `DirEntry`][36631]
7021 * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
7022   `errno`][36754]
7023 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7024 * [Implement more traits for `std::io::ErrorKind`][35911]
7025 * [Optimize BinaryHeap bounds checking][36072]
7026 * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
7027   `extend_with_element`][36355]
7028 * [Fix overflow checking in unsigned pow()][34942]
7029
7030 Cargo
7031 -----
7032
7033 * This release includes security fixes to both curl and OpenSSL.
7034 * [Fix transitive doctests when panic=abort][cargo/3021]
7035 * [Add --all-features flag to cargo][cargo/3038]
7036 * [Reject path-based dependencies in `cargo package`][cargo/3060]
7037 * [Don't parse the home directory more than once][cargo/3078]
7038 * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
7039 * [Update OpenSSL to 1.0.2j][cargo/3121]
7040 * [Add license and license_file to cargo metadata output][cargo/3110]
7041 * [Make crates-io registry URL optional in config; ignore all changes to
7042   source.crates-io][cargo/3089]
7043 * [Don't download dependencies from other platforms][cargo/3123]
7044 * [Build transitive dev-dependencies when needed][cargo/3125]
7045 * [Add support for per-target rustflags in .cargo/config][cargo/3157]
7046 * [Avoid updating registry when adding existing deps][cargo/3144]
7047 * [Warn about path overrides that won't work][cargo/3136]
7048 * [Use workspaces during `cargo install`][cargo/3146]
7049 * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
7050 * [Add --message-format flag][cargo/3000]
7051 * [Pass target environment for rustdoc][cargo/3205]
7052 * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
7053 * [Update curl and curl-sys][cargo/3241]
7054 * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
7055
7056 Tooling
7057 -------
7058
7059 * [rustdoc: Add the `--sysroot` argument][36586]
7060 * [rustdoc: Fix a couple of issues with the search results][35655]
7061 * [rustdoc: remove the `!` from macro URLs and titles][35234]
7062 * [gdb: Fix pretty-printing special-cased Rust types][35585]
7063 * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
7064
7065 Misc
7066 ----
7067
7068 * [Remove unmaintained style guide][35124]
7069 * [Add s390x support][36369]
7070 * [Initial work at Haiku OS support][36727]
7071 * [Add mips-uclibc targets][35734]
7072 * [Crate-ify compiler-rt into compiler-builtins][35021]
7073 * [Add rustc version info (git hash + date) to dist tarball][36213]
7074 * Many documentation improvements
7075
7076 Compatibility Notes
7077 -------------------
7078
7079 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7080 * [Deny (by default) transmuting from fn item types to pointer-sized
7081   types][34923]. Continuing the long transition to zero-sized fn items,
7082   per [RFC 401].
7083 * [Fix `#[derive]` for empty tuple structs/variants][35728].
7084   Part of [RFC 1506].
7085 * [Issue deprecation warnings for safe accesses to extern statics][36173]
7086 * [Fix lifetime rules for 'if' conditions][36029].
7087 * [Inherit overflow checks for sum and product][36372].
7088 * [Forbid user-defined macros named "macro_rules"][36730].
7089
7090 [33922]: https://github.com/rust-lang/rust/pull/33922
7091 [34623]: https://github.com/rust-lang/rust/pull/34623
7092 [34923]: https://github.com/rust-lang/rust/pull/34923
7093 [34942]: https://github.com/rust-lang/rust/pull/34942
7094 [35021]: https://github.com/rust-lang/rust/pull/35021
7095 [35048]: https://github.com/rust-lang/rust/pull/35048
7096 [35074]: https://github.com/rust-lang/rust/pull/35074
7097 [35124]: https://github.com/rust-lang/rust/pull/35124
7098 [35234]: https://github.com/rust-lang/rust/pull/35234
7099 [35238]: https://github.com/rust-lang/rust/pull/35238
7100 [35354]: https://github.com/rust-lang/rust/pull/35354
7101 [35559]: https://github.com/rust-lang/rust/pull/35559
7102 [35585]: https://github.com/rust-lang/rust/pull/35585
7103 [35627]: https://github.com/rust-lang/rust/pull/35627
7104 [35655]: https://github.com/rust-lang/rust/pull/35655
7105 [35702]: https://github.com/rust-lang/rust/pull/35702
7106 [35707]: https://github.com/rust-lang/rust/pull/35707
7107 [35728]: https://github.com/rust-lang/rust/pull/35728
7108 [35734]: https://github.com/rust-lang/rust/pull/35734
7109 [35755]: https://github.com/rust-lang/rust/pull/35755
7110 [35761]: https://github.com/rust-lang/rust/pull/35761
7111 [35764]: https://github.com/rust-lang/rust/pull/35764
7112 [35814]: https://github.com/rust-lang/rust/pull/35814
7113 [35854]: https://github.com/rust-lang/rust/pull/35854
7114 [35871]: https://github.com/rust-lang/rust/pull/35871
7115 [35884]: https://github.com/rust-lang/rust/pull/35884
7116 [35911]: https://github.com/rust-lang/rust/pull/35911
7117 [35969]: https://github.com/rust-lang/rust/pull/35969
7118 [35975]: https://github.com/rust-lang/rust/pull/35975
7119 [36004]: https://github.com/rust-lang/rust/pull/36004
7120 [36008]: https://github.com/rust-lang/rust/pull/36008
7121 [36014]: https://github.com/rust-lang/rust/pull/36014
7122 [36029]: https://github.com/rust-lang/rust/pull/36029
7123 [36059]: https://github.com/rust-lang/rust/pull/36059
7124 [36072]: https://github.com/rust-lang/rust/pull/36072
7125 [36101]: https://github.com/rust-lang/rust/pull/36101
7126 [36104]: https://github.com/rust-lang/rust/pull/36104
7127 [36171]: https://github.com/rust-lang/rust/pull/36171
7128 [36173]: https://github.com/rust-lang/rust/pull/36173
7129 [36178]: https://github.com/rust-lang/rust/pull/36178
7130 [36213]: https://github.com/rust-lang/rust/pull/36213
7131 [36214]: https://github.com/rust-lang/rust/pull/36214
7132 [36264]: https://github.com/rust-lang/rust/pull/36264
7133 [36266]: https://github.com/rust-lang/rust/pull/36266
7134 [36289]: https://github.com/rust-lang/rust/pull/36289
7135 [36338]: https://github.com/rust-lang/rust/pull/36338
7136 [36351]: https://github.com/rust-lang/rust/pull/36351
7137 [36355]: https://github.com/rust-lang/rust/pull/36355
7138 [36369]: https://github.com/rust-lang/rust/pull/36369
7139 [36372]: https://github.com/rust-lang/rust/pull/36372
7140 [36423]: https://github.com/rust-lang/rust/pull/36423
7141 [36482]: https://github.com/rust-lang/rust/pull/36482
7142 [36505]: https://github.com/rust-lang/rust/pull/36505
7143 [36524]: https://github.com/rust-lang/rust/pull/36524
7144 [36527]: https://github.com/rust-lang/rust/pull/36527
7145 [36551]: https://github.com/rust-lang/rust/pull/36551
7146 [36574]: https://github.com/rust-lang/rust/pull/36574
7147 [36586]: https://github.com/rust-lang/rust/pull/36586
7148 [36592]: https://github.com/rust-lang/rust/pull/36592
7149 [36631]: https://github.com/rust-lang/rust/pull/36631
7150 [36721]: https://github.com/rust-lang/rust/pull/36721
7151 [36727]: https://github.com/rust-lang/rust/pull/36727
7152 [36730]: https://github.com/rust-lang/rust/pull/36730
7153 [36734]: https://github.com/rust-lang/rust/pull/36734
7154 [36754]: https://github.com/rust-lang/rust/pull/36754
7155 [36995]: https://github.com/rust-lang/rust/pull/36995
7156 [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
7157 [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
7158 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
7159 [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
7160 [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
7161 [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
7162 [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
7163 [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
7164 [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
7165 [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
7166 [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
7167 [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
7168 [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
7169 [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
7170 [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
7171 [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
7172 [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
7173 [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
7174 [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
7175 [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
7176 [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
7177 [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
7178 [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
7179 [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
7180 [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
7181 [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
7182 [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
7183 [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
7184 [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
7185 [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
7186 [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
7187 [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
7188
7189
7190 Version 1.12.1 (2016-10-20)
7191 ===========================
7192
7193 Regression Fixes
7194 ----------------
7195
7196 * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
7197 * [Confusion with double negation and booleans][36856]
7198 * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
7199 * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
7200 * [1.12.0: High memory usage when linking in release mode with debug info][36926]
7201 * [Corrupted memory after updated to 1.12][36936]
7202 * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
7203 * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
7204 * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
7205
7206 [36381]: https://github.com/rust-lang/rust/issues/36381
7207 [36856]: https://github.com/rust-lang/rust/issues/36856
7208 [36875]: https://github.com/rust-lang/rust/issues/36875
7209 [36924]: https://github.com/rust-lang/rust/issues/36924
7210 [36926]: https://github.com/rust-lang/rust/issues/36926
7211 [36936]: https://github.com/rust-lang/rust/issues/36936
7212 [37026]: https://github.com/rust-lang/rust/issues/37026
7213 [37112]: https://github.com/rust-lang/rust/issues/37112
7214 [37153]: https://github.com/rust-lang/rust/issues/37153
7215
7216
7217 Version 1.12.0 (2016-09-29)
7218 ===========================
7219
7220 Highlights
7221 ----------
7222
7223 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7224   This translation pass is far simpler than the previous AST->LLVM pass, and
7225   creates opportunities to perform new optimizations directly on the MIR. It
7226   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7227 * [`rustc` presents a new, more readable error format, along with
7228   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7229   Most common editors supporting Rust have been updated to work with it. It was
7230   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7231
7232 Compiler
7233 --------
7234
7235 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7236   This translation pass is far simpler than the previous AST->LLVM pass, and
7237   creates opportunities to perform new optimizations directly on the MIR. It
7238   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7239 * [Print the Rust target name, not the LLVM target name, with
7240   `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
7241 * [The computation of `TypeId` is correct in some cases where it was previously
7242   producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
7243 * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
7244 * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
7245   `--print relocation-models`, and `--print code-models` print the available
7246   options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
7247   `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
7248 * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
7249   `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
7250   These targets produce statically-linked binaries. There are no binary release
7251   builds yet though.
7252
7253 Diagnostics
7254 -----------
7255
7256 * [`rustc` presents a new, more readable error format, along with
7257   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7258   Most common editors supporting Rust have been updated to work with it. It was
7259   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7260 * [In error descriptions, references are now described in plain English,
7261   instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
7262 * [In error type descriptions, unknown numeric types are named `{integer}` or
7263   `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
7264 * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
7265
7266 Language
7267 --------
7268
7269 * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
7270 * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
7271 * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
7272   useful](https://github.com/rust-lang/rust/pull/34908)
7273 * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
7274   inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
7275 * [Semicolons are properly required as statement delimiters inside
7276   `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
7277 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
7278
7279 Stabilized APIs
7280 ---------------
7281
7282 * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
7283 * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
7284 * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
7285 * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
7286 * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
7287 * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
7288 * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
7289 * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
7290 * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
7291 * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
7292   Both on Unix and Windows.
7293 * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
7294 * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
7295 * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
7296 * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
7297 * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
7298 * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
7299 * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
7300 * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
7301
7302 Libraries
7303 ---------
7304
7305 * [The `format!` macro and friends now allow a single argument to be formatted
7306   in multiple styles](https://github.com/rust-lang/rust/pull/33642)
7307 * [The lifetime bounds on `[T]::binary_search_by` and
7308   `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
7309 * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
7310 * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
7311 * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
7312 * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
7313 * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
7314 * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
7315 * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
7316 * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
7317   implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
7318 * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
7319   implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
7320 * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
7321 * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
7322   `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
7323 * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
7324 * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
7325 * [`mpsc::sync_channel` `Receiver`s return any available message before
7326   reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
7327 * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
7328 * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
7329
7330 Cargo
7331 -----
7332
7333 * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
7334 * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
7335 * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
7336 * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
7337 * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
7338 * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
7339 * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
7340 * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
7341 * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
7342 * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
7343 * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
7344 * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
7345 * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
7346 * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
7347 * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
7348 * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
7349
7350 Performance
7351 -----------
7352
7353 * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
7354 * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
7355
7356 Tooling
7357 -------
7358
7359 * [Test binaries now support a `--test-threads` argument to specify the number
7360   of threads used to run tests, and which acts the same as the
7361   `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
7362 * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
7363 * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
7364 * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7365 * [Rust releases now come with source packages that can be installed by rustup
7366   via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
7367   The resulting source code can be used by tools and IDES, located in the
7368   sysroot under `lib/rustlib/src`.
7369
7370 Misc
7371 ----
7372
7373 * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
7374 * Many minor improvements to the documentation.
7375 * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
7376
7377 Compatibility Notes
7378 -------------------
7379
7380 * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
7381   with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
7382 * [When formatting strings, if "precision" is specified, the "fill",
7383   "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
7384 * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
7385
7386
7387 Version 1.11.0 (2016-08-18)
7388 ===========================
7389
7390 Language
7391 --------
7392
7393 * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
7394 * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
7395 * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
7396 * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
7397
7398 Stabilized APIs
7399 ---------------
7400
7401 * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
7402 * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
7403 * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
7404 * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
7405 * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
7406 * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
7407   (in libcore - previously stabilized in libstd)
7408 * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
7409   (in libcore - previously stabilized in libstd)
7410 * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
7411   (in libcore - previously stabilized in libstd)
7412 * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
7413   (in libcore - previously stabilized in libstd)
7414 * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7415 * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7416 * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
7417 * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
7418
7419 Libraries
7420 ---------
7421
7422 * [The `thread_local!` macro supports multiple definitions in a single
7423    invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
7424 * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
7425 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
7426   `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
7427 * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
7428 * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
7429 * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
7430 * [The main thread is now called "main" instead of "&lt;main&gt;"](https://github.com/rust-lang/rust/pull/33803)
7431
7432 Cargo
7433 -----
7434
7435 * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
7436 * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
7437 * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
7438 * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
7439 * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
7440   and `-vv` prints warnings for all crates.
7441 * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
7442 * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
7443   This provides room for expansion by arbitrary tools.
7444 * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
7445 * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
7446 * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
7447 * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
7448 * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
7449 * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
7450 * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
7451
7452 Performance
7453 -----------
7454
7455 * [Caching projections speeds up type check dramatically for some
7456   workloads](https://github.com/rust-lang/rust/pull/33816)
7457 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
7458   This hasher is faster, but is believed to provide sufficient
7459   protection from collision attacks.
7460 * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
7461
7462 Rustdoc
7463 -------
7464
7465 * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
7466 * [Fix inlined renamed re-exports in import lists](https://github.com/rust-lang/rust/pull/34479)
7467 * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
7468 * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
7469 * [Fix redirect pages for renamed re-exports](https://github.com/rust-lang/rust/pull/34245)
7470
7471 Tooling
7472 -------
7473
7474 * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
7475 * [When emitting debug info, rustc emits frame pointers for closures,
7476   shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
7477 * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7478 * Many more errors have been given error codes and extended
7479   explanations
7480 * API documentation continues to be improved, with many new examples
7481
7482 Misc
7483 ----
7484
7485 * [rustc no longer hangs when dependencies recursively re-export
7486   submodules](https://github.com/rust-lang/rust/pull/34542)
7487 * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
7488 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
7489   rewritten](https://github.com/rust-lang/rust/pull/33895)
7490 * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
7491   No targets use this yet, but it works toward AVR support.
7492
7493 Compatibility Notes
7494 -------------------
7495
7496 * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
7497 * [The new follow-set rules that place restrictions on `macro_rules!`
7498   in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
7499   This was an [amendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
7500   and has been a warning since 1.10.
7501 * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
7502   This causes breakage in some corner cases.
7503
7504
7505 Version 1.10.0 (2016-07-07)
7506 ===========================
7507
7508 Language
7509 --------
7510
7511 * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
7512   [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
7513 * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
7514 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
7515 * [`panic!` can be converted to a runtime abort with the
7516   `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
7517   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7518 * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
7519   cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
7520   [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md).
7521   Note that Cargo does not yet directly support cdylibs.
7522
7523 Stabilized APIs
7524 ---------------
7525
7526 * `os::windows::fs::OpenOptionsExt::access_mode`
7527 * `os::windows::fs::OpenOptionsExt::share_mode`
7528 * `os::windows::fs::OpenOptionsExt::custom_flags`
7529 * `os::windows::fs::OpenOptionsExt::attributes`
7530 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
7531 * `os::unix::fs::OpenOptionsExt::custom_flags`
7532 * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
7533 * `Default for sync::Weak`
7534 * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
7535 * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
7536 * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
7537 * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
7538 * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
7539 * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
7540 * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
7541 * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
7542 * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
7543 * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
7544 * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
7545 * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
7546 * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
7547 * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
7548 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
7549 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
7550 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
7551 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
7552 * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
7553 * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
7554 * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
7555 * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
7556 * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
7557 * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
7558 * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
7559 * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7560 * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7561 * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7562 * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7563 * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
7564 * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
7565 * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
7566 * Read/Write/RawFd impls for `UnixStream`
7567 * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
7568 * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
7569 * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
7570 * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
7571 * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
7572 * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
7573 * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
7574 * RawFd impls for `UnixListener`
7575 * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
7576 * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
7577 * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
7578 * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
7579 * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
7580 * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
7581 * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
7582 * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
7583 * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
7584 * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
7585 * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
7586 * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
7587 * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
7588 * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
7589 * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
7590 * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
7591 * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
7592 * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
7593 * RawFd impls for `UnixDatagram`
7594 * `{BTree,Hash}Map::values_mut`
7595 * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/std/primitive.slice.html#method.binary_search_by_key)
7596
7597 Libraries
7598 ---------
7599
7600 * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
7601   The semantics of this minor method are subtle and probably not what
7602   most people want.
7603 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
7604 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
7605   will fall back to `/dev/urandom` temporarily to avoid blocking
7606   during early boot](https://github.com/rust-lang/rust/pull/33086).
7607 * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
7608 * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
7609 * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
7610 * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
7611 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
7612 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
7613   `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
7614
7615 Cargo
7616 -----
7617 * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
7618   This controls the runtime behavior of the `panic!` macro
7619   and can be either "unwind" (the default), or "abort".
7620   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7621 * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
7622 * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
7623 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
7624   variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
7625 * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
7626 * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
7627 * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
7628   By default they are retried twice, which can be customized with the
7629   `net.retry` value in `.cargo/config`.
7630 * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
7631 * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
7632 * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
7633 * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
7634   Makes it possible to install multiple crates in parallel.
7635 * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
7636 * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
7637 * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
7638 * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
7639 * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
7640 * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
7641
7642 Performance
7643 -----------
7644
7645 * [rustc memory usage was reduced by refactoring the context used for
7646   type checking](https://github.com/rust-lang/rust/pull/33425).
7647 * [Speed up creation of `HashMap`s by caching the random keys used
7648   to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
7649 * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
7650 * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
7651 * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
7652   10x faster than the previous lookup tables.
7653 * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
7654
7655 Usability
7656 ---------
7657
7658 * Many incremental improvements to documentation and rustdoc.
7659 * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
7660 * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
7661 * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
7662 * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
7663 * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
7664 * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
7665 * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
7666
7667 Misc
7668 ----
7669
7670 * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
7671 * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
7672 * [`std` no longer prints backtraces on platforms where the running
7673   module must be loaded with `env::current_exe`, which can't be relied
7674   on](https://github.com/rust-lang/rust/pull/33554).
7675 * This release includes std binaries for the i586-unknown-linux-gnu,
7676   i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
7677   i586 target is for old x86 hardware without SSE2, and the armv7
7678   target is for Android running on modern ARM architectures.
7679 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
7680   Unix platforms](https://github.com/rust-lang/rust/pull/32835).
7681 * [On Unix the runtime aborts by calling `libc::abort` instead of
7682   generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
7683 * [Rust is now bootstrapped from the previous release of Rust,
7684   instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
7685
7686 Compatibility Notes
7687 -------------------
7688
7689 * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
7690 * [`target_env` for Linux ARM targets is just `gnu`, not
7691   `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
7692 * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
7693 * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
7694 * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
7695   Affects how macros are parsed.
7696 * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
7697 * [Feature-gated attributes on macro-generated macro invocations are
7698   now rejected](https://github.com/rust-lang/rust/pull/32791).
7699 * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
7700   This caused some minor changes to type inference.
7701
7702
7703 Version 1.9.0 (2016-05-26)
7704 ==========================
7705
7706 Language
7707 --------
7708
7709 * The `#[deprecated]` attribute when applied to an API will generate
7710   warnings when used. The warnings may be suppressed with
7711   `#[allow(deprecated)]`. [RFC 1270].
7712 * [`fn` item types are zero sized, and each `fn` names a unique
7713   type][1.9fn]. This will break code that transmutes `fn`s, so calling
7714   `transmute` on a `fn` type will generate a warning for a few cycles,
7715   then will be converted to an error.
7716 * [Field and method resolution understand visibility, so private
7717   fields and methods cannot prevent the proper use of public fields
7718   and methods][1.9fv].
7719 * [The parser considers unicode codepoints in the
7720   `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
7721
7722 Stabilized APIs
7723 ---------------
7724
7725 * [`std::panic`]
7726 * [`std::panic::catch_unwind`] (renamed from `recover`)
7727 * [`std::panic::resume_unwind`] (renamed from `propagate`)
7728 * [`std::panic::AssertUnwindSafe`] (renamed from `AssertRecoverSafe`)
7729 * [`std::panic::UnwindSafe`] (renamed from `RecoverSafe`)
7730 * [`str::is_char_boundary`]
7731 * [`<*const T>::as_ref`]
7732 * [`<*mut T>::as_ref`]
7733 * [`<*mut T>::as_mut`]
7734 * [`AsciiExt::make_ascii_uppercase`]
7735 * [`AsciiExt::make_ascii_lowercase`]
7736 * [`char::decode_utf16`]
7737 * [`char::DecodeUtf16`]
7738 * [`char::DecodeUtf16Error`]
7739 * [`char::DecodeUtf16Error::unpaired_surrogate`]
7740 * [`BTreeSet::take`]
7741 * [`BTreeSet::replace`]
7742 * [`BTreeSet::get`]
7743 * [`HashSet::take`]
7744 * [`HashSet::replace`]
7745 * [`HashSet::get`]
7746 * [`OsString::with_capacity`]
7747 * [`OsString::clear`]
7748 * [`OsString::capacity`]
7749 * [`OsString::reserve`]
7750 * [`OsString::reserve_exact`]
7751 * [`OsStr::is_empty`]
7752 * [`OsStr::len`]
7753 * [`std::os::unix::thread`]
7754 * [`RawPthread`]
7755 * [`JoinHandleExt`]
7756 * [`JoinHandleExt::as_pthread_t`]
7757 * [`JoinHandleExt::into_pthread_t`]
7758 * [`HashSet::hasher`]
7759 * [`HashMap::hasher`]
7760 * [`CommandExt::exec`]
7761 * [`File::try_clone`]
7762 * [`SocketAddr::set_ip`]
7763 * [`SocketAddr::set_port`]
7764 * [`SocketAddrV4::set_ip`]
7765 * [`SocketAddrV4::set_port`]
7766 * [`SocketAddrV6::set_ip`]
7767 * [`SocketAddrV6::set_port`]
7768 * [`SocketAddrV6::set_flowinfo`]
7769 * [`SocketAddrV6::set_scope_id`]
7770 * [`slice::copy_from_slice`]
7771 * [`ptr::read_volatile`]
7772 * [`ptr::write_volatile`]
7773 * [`OpenOptions::create_new`]
7774 * [`TcpStream::set_nodelay`]
7775 * [`TcpStream::nodelay`]
7776 * [`TcpStream::set_ttl`]
7777 * [`TcpStream::ttl`]
7778 * [`TcpStream::set_only_v6`]
7779 * [`TcpStream::only_v6`]
7780 * [`TcpStream::take_error`]
7781 * [`TcpStream::set_nonblocking`]
7782 * [`TcpListener::set_ttl`]
7783 * [`TcpListener::ttl`]
7784 * [`TcpListener::set_only_v6`]
7785 * [`TcpListener::only_v6`]
7786 * [`TcpListener::take_error`]
7787 * [`TcpListener::set_nonblocking`]
7788 * [`UdpSocket::set_broadcast`]
7789 * [`UdpSocket::broadcast`]
7790 * [`UdpSocket::set_multicast_loop_v4`]
7791 * [`UdpSocket::multicast_loop_v4`]
7792 * [`UdpSocket::set_multicast_ttl_v4`]
7793 * [`UdpSocket::multicast_ttl_v4`]
7794 * [`UdpSocket::set_multicast_loop_v6`]
7795 * [`UdpSocket::multicast_loop_v6`]
7796 * [`UdpSocket::set_multicast_ttl_v6`]
7797 * [`UdpSocket::multicast_ttl_v6`]
7798 * [`UdpSocket::set_ttl`]
7799 * [`UdpSocket::ttl`]
7800 * [`UdpSocket::set_only_v6`]
7801 * [`UdpSocket::only_v6`]
7802 * [`UdpSocket::join_multicast_v4`]
7803 * [`UdpSocket::join_multicast_v6`]
7804 * [`UdpSocket::leave_multicast_v4`]
7805 * [`UdpSocket::leave_multicast_v6`]
7806 * [`UdpSocket::take_error`]
7807 * [`UdpSocket::connect`]
7808 * [`UdpSocket::send`]
7809 * [`UdpSocket::recv`]
7810 * [`UdpSocket::set_nonblocking`]
7811
7812 Libraries
7813 ---------
7814
7815 * [`std::sync::Once` is poisoned if its initialization function
7816   fails][1.9o].
7817 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
7818 * [Most types implement `fmt::Debug`][1.9db].
7819 * [The default buffer size used by `BufReader` and `BufWriter` was
7820   reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
7821   used by other languages.
7822 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
7823   `Duration` additionally implements `*=` and `/=`][1.9ta].
7824 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
7825 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
7826 * [`Chain` implements `BufRead`][1.9ch].
7827 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
7828
7829 Cargo
7830 -----
7831
7832 * [Cargo can now run concurrently][1.9cc].
7833 * [Top-level overrides allow specific revisions of crates to be
7834   overridden through the entire crate graph][1.9ct].  This is intended
7835   to make upgrades easier for large projects, by allowing crates to be
7836   forked temporarily until they've been upgraded and republished.
7837 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
7838 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
7839   on the commandline][1.9cf]. `rustc` arguments can also be specified
7840   in the `build.rustflags` configuration key.
7841
7842 Performance
7843 -----------
7844
7845 * [The time complexity of comparing variables for equivalence during type
7846   unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
7847   to major compilation time improvement in some scenarios.
7848 * [`ToString` is specialized for `str`, giving it the same performance
7849   as `to_owned`][1.9ts].
7850 * [Spawning processes with `Command::output` no longer creates extra
7851   threads][1.9sp].
7852 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
7853   for C-like enums][1.9cl].
7854
7855 Misc
7856 ----
7857
7858 * [Passing the `--quiet` flag to a test runner will produce
7859   much-abbreviated output][1.9q].
7860 * The Rust Project now publishes std binaries for the
7861   `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
7862   `i586-pc-windows-msvc` targets.
7863
7864 Compatibility Notes
7865 -------------------
7866
7867 * [`std::sync::Once` is poisoned if its initialization function
7868   fails][1.9o].
7869 * [It is illegal to define methods with the same name in overlapping
7870   inherent `impl` blocks][1.9sn].
7871 * [`fn` item types are zero sized, and each `fn` names a unique
7872   type][1.9fn]. This will break code that transmutes `fn`s, so calling
7873   `transmute` on a `fn` type will generate a warning for a few cycles,
7874   then will be converted to an error.
7875 * [Improvements to const evaluation may trigger new errors when integer
7876   literals are out of range][1.9ce].
7877
7878
7879 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
7880 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
7881 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
7882 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
7883 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
7884 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
7885 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
7886 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
7887 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
7888 [1.9db]: https://github.com/rust-lang/rust/pull/32054
7889 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
7890 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
7891 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
7892 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
7893 [1.9o]: https://github.com/rust-lang/rust/pull/32325
7894 [1.9q]: https://github.com/rust-lang/rust/pull/31887
7895 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
7896 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
7897 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
7898 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
7899 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
7900 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
7901 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
7902 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
7903 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
7904 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
7905 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
7906 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
7907 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
7908 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
7909 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
7910 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
7911 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
7912 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
7913 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
7914 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
7915 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
7916 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
7917 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
7918 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
7919 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
7920 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
7921 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
7922 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
7923 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
7924 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
7925 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
7926 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
7927 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
7928 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
7929 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
7930 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
7931 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
7932 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
7933 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
7934 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
7935 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
7936 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
7937 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
7938 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
7939 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
7940 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
7941 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
7942 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
7943 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
7944 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
7945 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
7946 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
7947 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
7948 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
7949 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
7950 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
7951 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
7952 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
7953 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
7954 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
7955 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
7956 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
7957 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
7958 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
7959 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
7960 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
7961 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
7962 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
7963 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
7964 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
7965 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
7966 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
7967 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
7968 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
7969 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
7970 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
7971 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
7972 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
7973 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
7974 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
7975 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
7976 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
7977 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
7978 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
7979 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
7980 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
7981 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
7982 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
7983 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
7984 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
7985 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
7986 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
7987 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
7988 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
7989
7990
7991 Version 1.8.0 (2016-04-14)
7992 ==========================
7993
7994 Language
7995 --------
7996
7997 * Rust supports overloading of compound assignment statements like
7998   `+=` by implementing the [`AddAssign`], [`SubAssign`],
7999   [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
8000   [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
8001   traits. [RFC 953].
8002 * Empty structs can be defined with braces, as in `struct Foo { }`, in
8003   addition to the non-braced form, `struct Foo;`. [RFC 218].
8004
8005 Libraries
8006 ---------
8007
8008 * Stabilized APIs:
8009   * [`str::encode_utf16`] (renamed from `utf16_units`)
8010   * [`str::EncodeUtf16`] (renamed from `Utf16Units`)
8011   * [`Ref::map`]
8012   * [`RefMut::map`]
8013   * [`ptr::drop_in_place`]
8014   * [`time::Instant`]
8015   * [`time::SystemTime`]
8016   * [`Instant::now`]
8017   * [`Instant::duration_since`] (renamed from `duration_from_earlier`)
8018   * [`Instant::elapsed`]
8019   * [`SystemTime::now`]
8020   * [`SystemTime::duration_since`] (renamed from `duration_from_earlier`)
8021   * [`SystemTime::elapsed`]
8022   * Various `Add`/`Sub` impls for `Time` and `SystemTime`
8023   * [`SystemTimeError`]
8024   * [`SystemTimeError::duration`]
8025   * Various impls for `SystemTimeError`
8026   * [`UNIX_EPOCH`]
8027   * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
8028     [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
8029     [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
8030 * [The `write!` and `writeln!` macros correctly emit errors if any of
8031   their arguments can't be formatted][1.8w].
8032 * [Various I/O functions support large files on 32-bit Linux][1.8l].
8033 * [The Unix-specific `raw` modules, which contain a number of
8034   redefined C types are deprecated][1.8r], including `os::raw::unix`,
8035   `os::raw::macos`, and `os::raw::linux`. These modules defined types
8036   such as `ino_t` and `dev_t`. The inconsistency of these definitions
8037   across platforms was making it difficult to implement `std`
8038   correctly. Those that need these definitions should use the `libc`
8039   crate. [RFC 1415].
8040 * The Unix-specific `MetadataExt` traits, including
8041   `os::unix::fs::MetadataExt`, which expose values such as inode
8042   numbers [no longer return platform-specific types][1.8r], but
8043   instead return widened integers. [RFC 1415].
8044 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
8045 * [Atomic loads and stores are not volatile][1.8a].
8046 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
8047
8048 Performance
8049 -----------
8050
8051 * [Inlining hash functions lead to a 3% compile-time improvement in
8052   some workloads][1.8h].
8053 * When using jemalloc, its symbols are [unprefixed so that it
8054   overrides the libc malloc implementation][1.8h]. This means that for
8055   rustc, LLVM is now using jemalloc, which results in a 6%
8056   compile-time improvement on a specific workload.
8057 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
8058
8059 Misc
8060 ----
8061
8062 * [32-bit MSVC builds finally implement unwinding][1.8ms].
8063   i686-pc-windows-msvc is now considered a tier-1 platform.
8064 * [The `--print targets` flag prints a list of supported targets][1.8t].
8065 * [The `--print cfg` flag prints the `cfg`s defined for the current
8066   target][1.8cf].
8067 * [`rustc` can be built with an new Cargo-based build system, written
8068   in Rust][1.8b].  It will eventually replace Rust's Makefile-based
8069   build system. To enable it configure with `configure --rustbuild`.
8070 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
8071   variants while also indicating the total number of missing variants
8072   if more than 3][1.8m].
8073 * [Executable stacks are disabled on Linux and BSD][1.8nx].
8074 * The Rust Project now publishes binary releases of the standard
8075   library for a number of tier-2 targets:
8076   `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
8077   `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
8078   `x86_64-rumprun-netbsd`. These can be installed with
8079   tools such as [multirust][1.8mr].
8080
8081 Cargo
8082 -----
8083
8084 * [`cargo init` creates a new Cargo project in the current
8085   directory][1.8ci].  It is otherwise like `cargo new`.
8086 * [Cargo has configuration keys for `-v` and
8087   `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
8088   `[term]` section of `.cargo/config`.
8089 * [Configuration keys that evaluate to strings or integers can be set
8090   via environment variables][1.8ce]. For example the `build.jobs` key
8091   can be set via `CARGO_BUILD_JOBS`. Environment variables take
8092   precedence over config files.
8093 * [Target-specific dependencies support Rust `cfg` syntax for
8094   describing targets][1.8cfg] so that dependencies for multiple
8095   targets can be specified together. [RFC 1361].
8096 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
8097   `RUSTDOC` take precedence over the `build.target-dir`,
8098   `build.rustc`, and `build.rustdoc` configuration values][1.8cfv].
8099 * [The child process tree is killed on Windows when Cargo is
8100   killed][1.8ck].
8101 * [The `build.target` configuration value sets the target platform,
8102   like `--target`][1.8ct].
8103
8104 Compatibility Notes
8105 -------------------
8106
8107 * [Unstable compiler flags have been further restricted][1.8u]. Since
8108   1.0 `-Z` flags have been considered unstable, and other flags that
8109   were considered unstable additionally required passing `-Z
8110   unstable-options` to access. Unlike unstable language and library
8111   features though, these options have been accessible on the stable
8112   release channel. Going forward, *new unstable flags will not be
8113   available on the stable release channel*, and old unstable flags
8114   will warn about their usage. In the future, all unstable flags will
8115   be unavailable on the stable release channel.
8116 * [It is no longer possible to `match` on empty enum variants using
8117   the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
8118 * The Unix-specific `MetadataExt` traits, including
8119   `os::unix::fs::MetadataExt`, which expose values such as inode
8120   numbers [no longer return platform-specific types][1.8r], but
8121   instead return widened integers. [RFC 1415].
8122 * [Modules sourced from the filesystem cannot appear within arbitrary
8123   blocks, but only within other modules][1.8mf].
8124 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
8125 * On Unix, [stack overflow triggers a runtime abort instead of a
8126   SIGSEGV][1.8so].
8127 * [`Command::spawn` and its equivalents return an error if any of
8128   its command-line arguments contain interior `NUL`s][1.8n].
8129 * [Tuple and unit enum variants from other crates are in the type
8130   namespace][1.8tn].
8131 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
8132   type instead of `.a` files][1.8st]. Additionally, for the MSVC
8133   toolchain, `rustc` emits import libraries named `foo.dll.lib`
8134   instead of `foo.lib`.
8135
8136
8137 [1.8a]: https://github.com/rust-lang/rust/pull/30962
8138 [1.8b]: https://github.com/rust-lang/rust/pull/31123
8139 [1.8c]: https://github.com/rust-lang/rust/pull/31530
8140 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
8141 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
8142 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
8143 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
8144 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
8145 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
8146 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
8147 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
8148 [1.8cfv]: https://github.com/rust-lang/cargo/issues/2365
8149 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
8150 [1.8h]: https://github.com/rust-lang/rust/pull/31460
8151 [1.8l]: https://github.com/rust-lang/rust/pull/31668
8152 [1.8m]: https://github.com/rust-lang/rust/pull/31020
8153 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
8154 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
8155 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
8156 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
8157 [1.8n]: https://github.com/rust-lang/rust/pull/31056
8158 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
8159 [1.8r]: https://github.com/rust-lang/rust/pull/31551
8160 [1.8so]: https://github.com/rust-lang/rust/pull/31333
8161 [1.8st]: https://github.com/rust-lang/rust/pull/29520
8162 [1.8t]: https://github.com/rust-lang/rust/pull/31358
8163 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
8164 [1.8u]: https://github.com/rust-lang/rust/pull/31793
8165 [1.8v]: https://github.com/rust-lang/rust/pull/31757
8166 [1.8w]: https://github.com/rust-lang/rust/pull/31904
8167 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
8168 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
8169 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
8170 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
8171 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
8172 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
8173 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
8174 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
8175 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
8176 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
8177 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
8178 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
8179 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
8180 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
8181 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
8182 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
8183 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
8184 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
8185 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
8186 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
8187 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
8188 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
8189 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
8190 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
8191 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
8192 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
8193 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
8194 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
8195 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
8196 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
8197
8198
8199 Version 1.7.0 (2016-03-03)
8200 ==========================
8201
8202 Libraries
8203 ---------
8204
8205 * Stabilized APIs
8206   * `Path`
8207     * [`Path::strip_prefix`] (renamed from relative_from)
8208     * [`path::StripPrefixError`] (new error type returned from strip_prefix)
8209   * `Ipv4Addr`
8210     * [`Ipv4Addr::is_loopback`]
8211     * [`Ipv4Addr::is_private`]
8212     * [`Ipv4Addr::is_link_local`]
8213     * [`Ipv4Addr::is_multicast`]
8214     * [`Ipv4Addr::is_broadcast`]
8215     * [`Ipv4Addr::is_documentation`]
8216   * `Ipv6Addr`
8217     * [`Ipv6Addr::is_unspecified`]
8218     * [`Ipv6Addr::is_loopback`]
8219     * [`Ipv6Addr::is_multicast`]
8220   * `Vec`
8221     * [`Vec::as_slice`]
8222     * [`Vec::as_mut_slice`]
8223   * `String`
8224     * [`String::as_str`]
8225     * [`String::as_mut_str`]
8226   * Slices
8227     * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
8228     be the same length
8229     * `<[T]>::`[`sort_by_key`]
8230   * checked, saturated, and overflowing operations
8231     * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
8232     * [`i32::saturating_mul`]
8233     * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
8234     * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
8235     * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
8236     * [`u32::saturating_mul`]
8237     * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
8238     * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
8239     * and checked, saturated, and overflowing operations for other primitive types
8240   * FFI
8241     * [`ffi::IntoStringError`]
8242     * [`CString::into_string`]
8243     * [`CString::into_bytes`]
8244     * [`CString::into_bytes_with_nul`]
8245     * `From<CString> for Vec<u8>`
8246   * `IntoStringError`
8247     * [`IntoStringError::into_cstring`]
8248     * [`IntoStringError::utf8_error`]
8249     * `Error for IntoStringError`
8250   * Hashing
8251     * [`std::hash::BuildHasher`]
8252     * [`BuildHasher::Hasher`]
8253     * [`BuildHasher::build_hasher`]
8254     * [`std::hash::BuildHasherDefault`]
8255     * [`HashMap::with_hasher`]
8256     * [`HashMap::with_capacity_and_hasher`]
8257     * [`HashSet::with_hasher`]
8258     * [`HashSet::with_capacity_and_hasher`]
8259     * [`std::collections::hash_map::RandomState`]
8260     * [`RandomState::new`]
8261 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
8262   ASCII input][1.7utf8]. This means that creating `String`s and `str`s
8263   from bytes is faster.
8264 * [The performance of `LineWriter` (and thus `io::stdout`) was
8265   improved by using `memchr` to search for newlines][1.7m].
8266 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
8267   `f64` variants were stabilized previously.
8268 * [`BTreeMap` was rewritten to use less memory and improve the performance
8269   of insertion and iteration, the latter by as much as 5x][1.7bm].
8270 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
8271   covariant over their contained type][1.7bt].
8272 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
8273   over their contained type][1.7ll].
8274 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
8275   searching methods.
8276 * [`Any` is implemented for unsized types][1.7a].
8277 * [`Hash` is implemented for `Duration`][1.7h].
8278
8279 Misc
8280 ----
8281
8282 * [When running tests with `--test`, rustdoc will pass `--cfg`
8283   arguments to the compiler][1.7dt].
8284 * [The compiler is built with RPATH information by default][1.7rpa].
8285   This means that it will be possible to run `rustc` when installed in
8286   unusual configurations without configuring the dynamic linker search
8287   path explicitly.
8288 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
8289   any RPATH entries (emitted with `-C rpath`) *not* take precedence
8290   over `LD_LIBRARY_PATH`.
8291
8292 Cargo
8293 -----
8294
8295 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
8296   any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
8297 * [The `rerun-if-changed` build script directive no longer causes the
8298   build script to incorrectly run twice in certain scenarios][1.7rr].
8299
8300 Compatibility Notes
8301 -------------------
8302
8303 * Soundness fixes to the interactions between associated types and
8304   lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
8305   code that violates the new rules. This is a significant change that
8306   is known to break existing code, so it has emitted warnings for the
8307   new error cases since 1.4 to give crate authors time to adapt. The
8308   details of what is changing are subtle; read the RFC for more.
8309 * [Several bugs in the compiler's visibility calculations were
8310   fixed][1.7v]. Since this was found to break significant amounts of
8311   code, the new errors will be emitted as warnings for several release
8312   cycles, under the `private_in_public` lint.
8313 * Defaulted type parameters were accidentally accepted in positions
8314   that were not intended. In this release, [defaulted type parameters
8315   appearing outside of type definitions will generate a
8316   warning][1.7d], which will become an error in future releases.
8317 * [Parsing "." as a float results in an error instead of 0][1.7p].
8318   That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
8319 * [Borrows of closure parameters may not outlive the closure][1.7bc].
8320
8321 [1.7a]: https://github.com/rust-lang/rust/pull/30928
8322 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
8323 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
8324 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
8325 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
8326 [1.7d]: https://github.com/rust-lang/rust/pull/30724
8327 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
8328 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
8329 [1.7f]: https://github.com/rust-lang/rust/pull/30672
8330 [1.7h]: https://github.com/rust-lang/rust/pull/30818
8331 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
8332 [1.7m]: https://github.com/rust-lang/rust/pull/30381
8333 [1.7p]: https://github.com/rust-lang/rust/pull/30681
8334 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
8335 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
8336 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
8337 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
8338 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
8339 [1.7v]: https://github.com/rust-lang/rust/pull/29973
8340 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8341 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
8342 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
8343 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
8344 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
8345 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
8346 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
8347 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
8348 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
8349 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
8350 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
8351 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
8352 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
8353 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
8354 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
8355 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
8356 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
8357 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
8358 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
8359 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
8360 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
8361 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
8362 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
8363 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
8364 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
8365 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
8366 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
8367 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
8368 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
8369 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
8370 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
8371 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
8372 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
8373 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
8374 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
8375 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
8376 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
8377 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
8378 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
8379 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
8380 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
8381 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
8382 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
8383 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
8384 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
8385 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
8386 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
8387 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8388 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
8389 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8390 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
8391 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
8392 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
8393 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
8394 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
8395 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
8396 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
8397 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
8398 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
8399 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
8400
8401
8402 Version 1.6.0 (2016-01-21)
8403 ==========================
8404
8405 Language
8406 --------
8407
8408 * The `#![no_std]` attribute causes a crate to not be linked to the
8409   standard library, but only the [core library][1.6co], as described
8410   in [RFC 1184]. The core library defines common types and traits but
8411   has no platform dependencies whatsoever, and is the basis for Rust
8412   software in environments that cannot support a full port of the
8413   standard library, such as operating systems. Most of the core
8414   library is now stable.
8415
8416 Libraries
8417 ---------
8418
8419 * Stabilized APIs:
8420   [`Read::read_exact`],
8421   [`ErrorKind::UnexpectedEof`] (renamed from `UnexpectedEOF`),
8422   [`fs::DirBuilder`], [`fs::DirBuilder::new`],
8423   [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
8424   [`os::unix::fs::DirBuilderExt`],
8425   [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
8426   [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
8427   [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
8428   [`collections::hash_map::Drain`],
8429   [`collections::hash_map::HashMap::drain`],
8430   [`collections::hash_set::Drain`],
8431   [`collections::hash_set::HashSet::drain`],
8432   [`collections::binary_heap::Drain`],
8433   [`collections::binary_heap::BinaryHeap::drain`],
8434   [`Vec::extend_from_slice`] (renamed from `push_all`),
8435   [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
8436   [`RwLock::into_inner`],
8437   [`Iterator::min_by_key`] (renamed from `min_by`),
8438   [`Iterator::max_by_key`] (renamed from `max_by`).
8439 * The [core library][1.6co] is stable, as are most of its APIs.
8440 * [The `assert_eq!` macro supports arguments that don't implement
8441   `Sized`][1.6ae], such as arrays. In this way it behaves more like
8442   `assert!`.
8443 * Several timer functions that take duration in milliseconds [are
8444   deprecated in favor of those that take `Duration`][1.6ms]. These
8445   include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
8446   `thread::park_timeout_ms`.
8447 * The algorithm by which `Vec` reserves additional elements was
8448   [tweaked to not allocate excessive space][1.6a] while still growing
8449   exponentially.
8450 * `From` conversions are [implemented from integers to floats][1.6f]
8451   in cases where the conversion is lossless. Thus they are not
8452   implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
8453   or `f64`. They are also not implemented for `isize` and `usize`
8454   because the implementations would be platform-specific. `From` is
8455   also implemented from `f32` to `f64`.
8456 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
8457 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
8458 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
8459 * [`BinaryHeap` was refactored][1.6bh] for modest performance
8460   improvements.
8461 * Sorting slices that are already sorted [is 50% faster in some
8462   cases][1.6s].
8463
8464 Cargo
8465 -----
8466
8467 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
8468 * Cargo build scripts can specify their dependencies by emitting the
8469   [`rerun-if-changed`][1.6rr] key.
8470 * crates.io will reject publication of crates with dependencies that
8471   have a wildcard version constraint. Crates with wildcard
8472   dependencies were seen to cause a variety of problems, as described
8473   in [RFC 1241]. Since 1.5 publication of such crates has emitted a
8474   warning.
8475 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
8476   release folder.  A variety of artifacts that Cargo failed to clean
8477   are now correctly deleted.
8478
8479 Misc
8480 ----
8481
8482 * The `unreachable_code` lint [warns when a function call's argument
8483   diverges][1.6dv].
8484 * The parser indicates [failures that may be caused by
8485   confusingly-similar Unicode characters][1.6uc]
8486 * Certain macro errors [are reported at definition time][1.6m], not
8487   expansion.
8488
8489 Compatibility Notes
8490 -------------------
8491
8492 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
8493   environment variable when locating crates. This was a pre-cargo
8494   feature for integrating with the package manager that was
8495   accidentally never removed.
8496 * [A number of bugs were fixed in the privacy checker][1.6p] that
8497   could cause previously-accepted code to break.
8498 * [Modules and unit/tuple structs may not share the same name][1.6ts].
8499 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
8500   struct pattern syntax (`Foo(..)`) can no longer be used to match
8501   unit structs. This is a warning now, but will become an error in
8502   future releases. Patterns that share the same name as a const are
8503   now an error.
8504 * A bug was fixed that causes [rustc not to apply default type
8505   parameters][1.6xc] when resolving certain method implementations of
8506   traits defined in other crates.
8507
8508 [1.6a]: https://github.com/rust-lang/rust/pull/29454
8509 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
8510 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
8511 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
8512 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
8513 [1.6co]: http://doc.rust-lang.org/core/index.html
8514 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
8515 [1.6f]: https://github.com/rust-lang/rust/pull/29129
8516 [1.6m]: https://github.com/rust-lang/rust/pull/29828
8517 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
8518 [1.6p]: https://github.com/rust-lang/rust/pull/29726
8519 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
8520 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
8521 [1.6s]: https://github.com/rust-lang/rust/pull/29675
8522 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
8523 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
8524 [1.6us]: https://github.com/rust-lang/rust/pull/29383
8525 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
8526 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
8527 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
8528 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
8529 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
8530 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
8531 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
8532 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
8533 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
8534 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
8535 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
8536 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
8537 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
8538 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
8539 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
8540 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
8541 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
8542 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
8543 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
8544 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
8545 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
8546 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
8547 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
8548 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
8549 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
8550 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
8551 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
8552 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
8553 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
8554 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
8555
8556
8557 Version 1.5.0 (2015-12-10)
8558 ==========================
8559
8560 * ~700 changes, numerous bugfixes
8561
8562 Highlights
8563 ----------
8564
8565 * Stabilized APIs:
8566   [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
8567   [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
8568   [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
8569   [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
8570   [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
8571   [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
8572   [`Formatter::sign_minus`], [`Formatter::sign_plus`],
8573   [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
8574   [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
8575   [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
8576   [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
8577   [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
8578   [`Path::read_link`], [`Path::symlink_metadata`],
8579   [`Utf8Error::valid_up_to`], [`Vec::resize`],
8580   [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
8581   [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
8582   [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
8583   [`slice::split_first_mut`], [`slice::split_first`],
8584   [`slice::split_last_mut`], [`slice::split_last`],
8585   [`char::from_u32_unchecked`], [`fs::canonicalize`],
8586   [`str::MatchIndices`], [`str::RMatchIndices`],
8587   [`str::match_indices`], [`str::rmatch_indices`],
8588   [`str::slice_mut_unchecked`], [`string::ParseError`].
8589 * Rust applications hosted on crates.io can be installed locally to
8590   `~/.cargo/bin` with the [`cargo install`] command. Among other
8591   things this makes it easier to augment Cargo with new subcommands:
8592   when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
8593   invoked as `cargo foo`.
8594 * Crates with wildcard (`*`) dependencies will [emit warnings when
8595   published][1.5w]. In 1.6 it will no longer be possible to publish
8596   crates with wildcard dependencies.
8597
8598 Breaking Changes
8599 ----------------
8600
8601 * The rules determining when a particular lifetime must outlive
8602   a particular value (known as '[dropck]') have been [modified
8603   to not rely on parametricity][1.5p].
8604 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
8605   and `Arc`][1.5a]. Because these smart pointer types implement
8606   `Deref`, this causes breakage in cases where the interior type
8607   contains methods of the same name.
8608 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
8609   that they could drop their content. Soundness fix.
8610 * All method invocations are [properly checked][1.5wf1] for
8611   [well-formedness][1.5wf2]. Soundness fix.
8612 * Traits whose supertraits contain `Self` are [not object
8613   safe][1.5o]. Soundness fix.
8614 * Target specifications support a [`no_default_libraries`][1.5nd]
8615   setting that controls whether `-nodefaultlibs` is passed to the
8616   linker, and in turn the `is_like_windows` setting no longer affects
8617   the `-nodefaultlibs` flag.
8618 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
8619 * The `#[inline]` and `#[repr]` attributes [can only appear
8620   in valid locations][1.5at].
8621 * Native libraries linked from the local crate are [passed to
8622   the linker before native libraries from upstream crates][1.5nl].
8623 * Two rarely-used attributes, `#[no_debug]` and
8624   `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
8625 * Negation of unsigned integers, which has been a warning for
8626   several releases, [is now behind a feature gate and will
8627   generate errors][1.5nu].
8628 * The parser accidentally accepted visibility modifiers on
8629   enum variants, a bug [which has been fixed][1.5ev].
8630 * [A bug was fixed that allowed `use` statements to import unstable
8631   features][1.5use].
8632
8633 Language
8634 --------
8635
8636 * When evaluating expressions at compile-time that are not
8637   compile-time constants (const-evaluating expressions in non-const
8638   contexts), incorrect code such as overlong bitshifts and arithmetic
8639   overflow will [generate a warning instead of an error][1.5ce],
8640   delaying the error until runtime. This will allow the
8641   const-evaluator to be expanded in the future backwards-compatibly.
8642 * The `improper_ctypes` lint [no longer warns about using `isize` and
8643   `usize` in FFI][1.5ict].
8644
8645 Libraries
8646 ---------
8647
8648 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
8649   invariant][1.5c].
8650 * `Default` is [implemented for mutable slices][1.5d].
8651 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
8652 * There are now `From` conversions [between floating point
8653   types][1.5f] where the conversions are lossless.
8654 * There are now `From` conversions [between integer types][1.5i] where
8655   the conversions are lossless.
8656 * [`fs::Metadata` implements `Clone`][1.5fs].
8657 * The `parse` method [accepts a leading "+" when parsing
8658   integers][1.5pi].
8659 * [`AsMut` is implemented for `Vec`][1.5am].
8660 * The `clone_from` implementations for `String` and `BinaryHeap` [have
8661   been optimized][1.5cf] and no longer rely on the default impl.
8662 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
8663   `unsafe extern "C"` function types now [implement `Clone`,
8664   `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
8665   `fmt::Debug` for up to 12 arguments][1.5fp].
8666 * [Dropping `Vec`s is much faster in unoptimized builds when the
8667   element types don't implement `Drop`][1.5dv].
8668 * A bug that caused in incorrect behavior when [combining `VecDeque`
8669   with zero-sized types][1.5vdz] was resolved.
8670 * [`PartialOrd` for slices is faster][1.5po].
8671
8672 Miscellaneous
8673 -------------
8674
8675 * [Crate metadata size was reduced by 20%][1.5md].
8676 * [Improvements to code generation reduced the size of libcore by 3.3
8677   MB and rustc's memory usage by 18MB][1.5m].
8678 * [Improvements to deref translation increased performance in
8679   unoptimized builds][1.5dr].
8680 * Various errors in trait resolution [are deduplicated to only be
8681   reported once][1.5te].
8682 * Rust has preliminary [support for rumprun kernels][1.5rr].
8683 * Rust has preliminary [support for NetBSD on amd64][1.5na].
8684
8685 [1.5use]: https://github.com/rust-lang/rust/pull/28364
8686 [1.5po]: https://github.com/rust-lang/rust/pull/28436
8687 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
8688 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
8689 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
8690 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
8691 [1.5md]: https://github.com/rust-lang/rust/pull/28521
8692 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
8693 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
8694 [1.5na]: https://github.com/rust-lang/rust/pull/28543
8695 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
8696 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
8697 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
8698 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
8699 [1.5te]: https://github.com/rust-lang/rust/pull/28645
8700 [1.5at]: https://github.com/rust-lang/rust/pull/28650
8701 [1.5am]: https://github.com/rust-lang/rust/pull/28663
8702 [1.5m]: https://github.com/rust-lang/rust/pull/28778
8703 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
8704 [1.5a]: https://github.com/rust-lang/rust/pull/28811
8705 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
8706 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
8707 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
8708 [1.5i]: https://github.com/rust-lang/rust/pull/28921
8709 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
8710 [1.5f]: https://github.com/rust-lang/rust/pull/29129
8711 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
8712 [1.5s]: https://github.com/rust-lang/rust/pull/29190
8713 [1.5d]: https://github.com/rust-lang/rust/pull/29245
8714 [1.5o]: https://github.com/rust-lang/rust/pull/29259
8715 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
8716 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8717 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
8718 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
8719 [1.5c]: https://github.com/rust-lang/rust/pull/29110
8720 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
8721 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
8722 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
8723 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
8724 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
8725 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
8726 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
8727 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
8728 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
8729 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
8730 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
8731 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
8732 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
8733 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
8734 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
8735 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
8736 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
8737 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
8738 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
8739 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
8740 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
8741 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
8742 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
8743 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
8744 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
8745 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
8746 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
8747 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
8748 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
8749 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
8750 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
8751 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
8752 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
8753 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
8754 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
8755 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
8756 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
8757 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
8758 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
8759 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
8760 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
8761 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
8762 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
8763 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
8764 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
8765 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
8766 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
8767 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
8768 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
8769 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
8770 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
8771 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
8772 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
8773 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
8774
8775 Version 1.4.0 (2015-10-29)
8776 ==========================
8777
8778 * ~1200 changes, numerous bugfixes
8779
8780 Highlights
8781 ----------
8782
8783 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
8784   GNU) are now supported and recommended for use.
8785
8786 Breaking Changes
8787 ----------------
8788
8789 * [Several changes have been made to fix type soundness and improve
8790   the behavior of associated types][sound]. See [RFC 1214]. Although
8791   we have mostly introduced these changes as warnings this release, to
8792   become errors next release, there are still some scenarios that will
8793   see immediate breakage.
8794 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
8795   line breaks in addition to `\n`][crlf].
8796 * [Loans of `'static` lifetime extend to the end of a function][stat].
8797 * [`str::parse` no longer introduces avoidable rounding error when
8798   parsing floating point numbers. Together with earlier changes to
8799   float formatting/output, "round trips" like f.to_string().parse()
8800   now preserve the value of f exactly. Additionally, leading plus
8801   signs are now accepted][fp3].
8802
8803
8804 Language
8805 --------
8806
8807 * `use` statements that import multiple items [can now rename
8808   them][i], as in `use foo::{bar as kitten, baz as puppy}`.
8809 * [Binops work correctly on fat pointers][binfat].
8810 * `pub extern crate`, which does not behave as expected, [issues a
8811   warning][pec] until a better solution is found.
8812
8813 Libraries
8814 ---------
8815
8816 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
8817   [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
8818   [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
8819   [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
8820   [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
8821   `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
8822   `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
8823   [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
8824   [`String::into_boxed_str`], [`TcpStream::read_timeout`],
8825   [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
8826   [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
8827   [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
8828   [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
8829   [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
8830   [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
8831   [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
8832   [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
8833   [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
8834   [`thread::sleep`].
8835 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
8836   `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
8837   `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
8838   `f64::from_str_radix`.
8839 * [Reverse-searching strings is faster with the 'two-way'
8840   algorithm][s].
8841 * [`std::io::copy` allows `?Sized` arguments][cc].
8842 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
8843   [override `count`, `nth` and `last` with an *O*(1)
8844   implementation][it].
8845 * [`Default` is implemented for arrays up to `[T; 32]`][d].
8846 * [`IntoRawFd` has been added to the Unix-specific prelude,
8847   `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
8848   prelude][pr].
8849 * [`Extend<String>` and `FromIterator<String` are both implemented for
8850   `String`][es].
8851 * [`IntoIterator` is implemented for references to `Option` and
8852   `Result`][into2].
8853 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
8854   Copy`][ext] as part of [RFC 839]. This will cause type inference
8855   breakage in rare situations.
8856 * [`BinaryHeap` implements `Debug`][bh2].
8857 * [`Borrow` and `BorrowMut` are implemented for fixed-size
8858   arrays][bm].
8859 * [`extern fn`s with the "Rust" and "C" ABIs implement common
8860   traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
8861 * [String comparison is faster][faststr].
8862 * `&mut T` where `T: std::fmt::Write` [also implements
8863   `std::fmt::Write`][mutw].
8864 * [A stable regression in `VecDeque::push_back` and other
8865   capacity-altering methods that caused panics for zero-sized types
8866   was fixed][vd].
8867 * [Function pointers implement traits for up to 12 parameters][fp2].
8868
8869 Miscellaneous
8870 -------------
8871
8872 * The compiler [no longer uses the 'morestack' feature to prevent
8873   stack overflow][mm]. Instead it uses guard pages and stack
8874   probes (though stack probes are not yet implemented on any platform
8875   but Windows).
8876 * [The compiler matches traits faster when projections are involved][p].
8877 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
8878   `usize`][ffi].
8879 * [Cargo now displays useful information about what its doing during
8880   `cargo update`][cu].
8881
8882 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
8883 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
8884 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
8885 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
8886 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
8887 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
8888 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
8889 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
8890 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
8891 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
8892 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
8893 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
8894 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
8895 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
8896 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
8897 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
8898 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
8899 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
8900 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
8901 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
8902 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
8903 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
8904 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
8905 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
8906 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
8907 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
8908 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
8909 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
8910 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
8911 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
8912 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
8913 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
8914 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
8915 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
8916 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
8917 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
8918 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
8919 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
8920 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
8921 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
8922 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
8923 [bh2]: https://github.com/rust-lang/rust/pull/28156
8924 [binfat]: https://github.com/rust-lang/rust/pull/28270
8925 [bm]: https://github.com/rust-lang/rust/pull/28197
8926 [cc]: https://github.com/rust-lang/rust/pull/27531
8927 [crlf]: https://github.com/rust-lang/rust/pull/28034
8928 [cu]: https://github.com/rust-lang/cargo/pull/1931
8929 [d]: https://github.com/rust-lang/rust/pull/27825
8930 [dep]: https://github.com/rust-lang/rust/pull/28339
8931 [es]: https://github.com/rust-lang/rust/pull/27956
8932 [ext]: https://github.com/rust-lang/rust/pull/28094
8933 [faststr]: https://github.com/rust-lang/rust/pull/28338
8934 [ffi]: https://github.com/rust-lang/rust/pull/28779
8935 [fp]: https://github.com/rust-lang/rust/pull/28268
8936 [fp2]: https://github.com/rust-lang/rust/pull/28560
8937 [fp3]: https://github.com/rust-lang/rust/pull/27307
8938 [i]: https://github.com/rust-lang/rust/pull/27451
8939 [into2]: https://github.com/rust-lang/rust/pull/28039
8940 [it]: https://github.com/rust-lang/rust/pull/27652
8941 [mm]: https://github.com/rust-lang/rust/pull/27338
8942 [mutw]: https://github.com/rust-lang/rust/pull/28368
8943 [sound]: https://github.com/rust-lang/rust/pull/27641
8944 [p]: https://github.com/rust-lang/rust/pull/27866
8945 [pec]: https://github.com/rust-lang/rust/pull/28486
8946 [pr]: https://github.com/rust-lang/rust/pull/27896
8947 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
8948 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8949 [s]: https://github.com/rust-lang/rust/pull/27474
8950 [stab]: https://github.com/rust-lang/rust/pull/28339
8951 [stat]: https://github.com/rust-lang/rust/pull/28321
8952 [vd]: https://github.com/rust-lang/rust/pull/28494
8953
8954 Version 1.3.0 (2015-09-17)
8955 ==============================
8956
8957 * ~900 changes, numerous bugfixes
8958
8959 Highlights
8960 ----------
8961
8962 * The [new object lifetime defaults][nold] have been [turned
8963   on][nold2] after a cycle of warnings about the change. Now types
8964   like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
8965   being interpreted as `&'a Box<Trait+'a>` to `&'a
8966   Box<Trait+'static>`.
8967 * [The Rustonomicon][nom] is a new book in the official documentation
8968   that dives into writing unsafe Rust.
8969 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
8970   timekeeping is employed by other std APIs, as well as out-of-tree
8971   time crates.
8972
8973 Breaking Changes
8974 ----------------
8975
8976 * The [new object lifetime defaults][nold] have been [turned
8977   on][nold2] after a cycle of warnings about the change.
8978 * There is a known [regression][lr] in how object lifetime elision is
8979   interpreted, the proper solution for which is undetermined.
8980 * The `#[prelude_import]` attribute, an internal implementation
8981   detail, was accidentally stabilized previously. [It has been put
8982   behind the `prelude_import` feature gate][pi]. This change is
8983   believed to break no existing code.
8984 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
8985   [more sane for dynamically sized types][dst3]. Code that relied on
8986   the previous behavior is thought to be broken.
8987 * The `dropck` rules, which checks that destructors can't access
8988   destroyed values, [have been updated][dropck] to match the
8989   [RFC][dropckrfc]. This fixes some soundness holes, and as such will
8990   cause some previously-compiling code to no longer build.
8991
8992 Language
8993 --------
8994
8995 * The [new object lifetime defaults][nold] have been [turned
8996   on][nold2] after a cycle of warnings about the change.
8997 * Semicolons may [now follow types and paths in
8998   macros](https://github.com/rust-lang/rust/pull/27000).
8999 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9000   [more sane for dynamically sized types][dst3]. Code that relied on
9001   the previous behavior is not known to exist, and suspected to be
9002   broken.
9003 * `'static` variables [may now be recursive][st].
9004 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
9005   implementations correctly.
9006 * The `dropck` rules, which checks that destructors can't access
9007   destroyed values, [have been updated][dropck] to match the
9008   [RFC][dropckrfc].
9009
9010 Libraries
9011 ---------
9012
9013 * The [`Duration`] API, [has been stabilized][ds], as well as the
9014   `std::time` module, which presently contains only `Duration`.
9015 * `Box<str>` and `Box<[T]>` both implement `Clone`.
9016 * The owned C string, [`CString`], implements [`Borrow`] and the
9017   borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
9018   these allow C strings to be borrowed and cloned in generic code.
9019 * [`CStr`] implements [`Debug`].
9020 * [`AtomicPtr`] implements [`Debug`].
9021 * [`Error`] trait objects [can be downcast to their concrete types][e]
9022   in many common configurations, using the [`is`], [`downcast`],
9023   [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
9024   [`Any`] trait.
9025 * Searching for substrings now [employs the two-way algorithm][search]
9026   instead of doing a naive search. This gives major speedups to a
9027   number of methods, including [`contains`][sc], [`find`][sf],
9028   [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
9029   [`ends_with`][sew] are also faster.
9030 * The performance of `PartialEq` for slices is [much faster][ps].
9031 * The [`Hash`] trait offers the default method, [`hash_slice`], which
9032   is overridden and optimized by the implementations for scalars.
9033 * The [`Hasher`] trait now has a number of specialized `write_*`
9034   methods for primitive types, for efficiency.
9035 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
9036   methods for accessing the 'inner error', if any: [`get_ref`][iegr],
9037   [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
9038   of [`std::error::Error::cause`][iec] also delegates to the inner
9039   error.
9040 * [`process::Child`][pc] gained the [`id`] method, which returns a
9041   `u32` representing the platform-specific process identifier.
9042 * The [`connect`] method on slices is deprecated, replaced by the new
9043   [`join`] method (note that both of these are on the *unstable*
9044   [`SliceConcatExt`] trait, but through the magic of the prelude are
9045   available to stable code anyway).
9046 * The [`Div`] operator is implemented for [`Wrapping`] types.
9047 * [`DerefMut` is implemented for `String`][dms].
9048 * Performance of SipHash (the default hasher for `HashMap`) is
9049   [better for long data][sh].
9050 * [`AtomicPtr`] implements [`Send`].
9051 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
9052   are now [specialized to use uninitialized buffers for increased
9053   performance][rte].
9054 * Lifetime parameters of foreign functions [are now resolved
9055   properly][f].
9056
9057 Misc
9058 ----
9059
9060 * Rust can now, with some coercion, [produce programs that run on
9061   Windows XP][xp], though XP is not considered a supported platform.
9062 * Porting Rust on Windows from the GNU toolchain to MSVC continues
9063   ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
9064   recommended for use in 1.3, though should be fully-functional
9065   in the [64-bit 1.4 beta][b14].
9066 * On Fedora-based systems installation will [properly configure the
9067   dynamic linker][fl].
9068 * The compiler gained many new extended error descriptions, which can
9069   be accessed with the `--explain` flag.
9070 * The `dropck` pass, which checks that destructors can't access
9071   destroyed values, [has been rewritten][27261]. This fixes some
9072   soundness holes, and as such will cause some previously-compiling
9073   code to no longer build.
9074 * `rustc` now uses [LLVM to write archive files where possible][ar].
9075   Eventually this will eliminate the compiler's dependency on the ar
9076   utility.
9077 * Rust has [preliminary support for i686 FreeBSD][26959] (it has long
9078   supported FreeBSD on x86_64).
9079 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
9080   [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
9081   more strict.
9082 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
9083   will kill the process instead of leaking][nlp].
9084
9085 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
9086 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
9087 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
9088 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
9089 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
9090 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9091 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9092 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
9093 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
9094 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
9095 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
9096 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
9097 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
9098 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
9099 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
9100 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
9101 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
9102 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
9103 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9104 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
9105 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
9106 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
9107 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
9108 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
9109 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
9110 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
9111 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
9112 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
9113 [ar]: https://github.com/rust-lang/rust/pull/26926
9114 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
9115 [dms]: https://github.com/rust-lang/rust/pull/26241
9116 [27261]: https://github.com/rust-lang/rust/pull/27261
9117 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9118 [ds]: https://github.com/rust-lang/rust/pull/26818
9119 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
9120 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
9121 [dst3]: https://github.com/rust-lang/rust/pull/27351
9122 [e]: https://github.com/rust-lang/rust/pull/24793
9123 [f]: https://github.com/rust-lang/rust/pull/26588
9124 [26959]: https://github.com/rust-lang/rust/pull/26959
9125 [fl]: https://github.com/rust-lang/rust-installer/pull/41
9126 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
9127 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
9128 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
9129 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
9130 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
9131 [lic]: https://github.com/rust-lang/rust/pull/26583
9132 [lnu]: https://github.com/rust-lang/rust/pull/27026
9133 [lr]: https://github.com/rust-lang/rust/issues/27248
9134 [lum]: https://github.com/rust-lang/rust/pull/26378
9135 [lur]: https://github.com/rust-lang/rust/pull/26783
9136 [nlp]: https://github.com/rust-lang/rust/pull/27176
9137 [nold2]: https://github.com/rust-lang/rust/pull/27045
9138 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
9139 [nom]: http://doc.rust-lang.org/nightly/nomicon/
9140 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
9141 [pi]: https://github.com/rust-lang/rust/pull/26699
9142 [ps]: https://github.com/rust-lang/rust/pull/26884
9143 [rte]: https://github.com/rust-lang/rust/pull/26950
9144 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
9145 [search]: https://github.com/rust-lang/rust/pull/26327
9146 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
9147 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
9148 [sh]: https://github.com/rust-lang/rust/pull/27280
9149 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
9150 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
9151 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
9152 [st]: https://github.com/rust-lang/rust/pull/26630
9153 [win1]: https://github.com/rust-lang/rust/pull/26569
9154 [win2]: https://github.com/rust-lang/rust/pull/26741
9155 [win3]: https://github.com/rust-lang/rust/pull/26741
9156 [win4]: https://github.com/rust-lang/rust/pull/27210
9157 [xp]: https://github.com/rust-lang/rust/pull/26569
9158
9159 Version 1.2.0 (2015-08-07)
9160 ==========================
9161
9162 * ~1200 changes, numerous bugfixes
9163
9164 Highlights
9165 ----------
9166
9167 * [Dynamically-sized-type coercions][dst] allow smart pointer types
9168   like `Rc` to contain types without a fixed size, arrays and trait
9169   objects, finally enabling use of `Rc<[T]>` and completing the
9170   implementation of DST.
9171 * [Parallel codegen][parcodegen] is now working again, which can
9172   substantially speed up large builds in debug mode; It also gets
9173   another ~33% speedup when bootstrapping on a 4 core machine (using 8
9174   jobs). It's not enabled by default, but will be "in the near
9175   future". It can be activated with the `-C codegen-units=N` flag to
9176   `rustc`.
9177 * This is the first release with [experimental support for linking
9178   with the MSVC linker and lib C on Windows (instead of using the GNU
9179   variants via MinGW)][win]. It is yet recommended only for the most
9180   intrepid Rustaceans.
9181 * Benchmark compilations are showing a 30% improvement in
9182   bootstrapping over 1.1.
9183
9184 Breaking Changes
9185 ----------------
9186
9187 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
9188   unicode case mapping, which is a previously-planned change in
9189   behavior and considered a bugfix.
9190 * [`mem::align_of`] now specifies [the *minimum alignment* for
9191   T][align], which is usually the alignment programs are interested
9192   in, and the same value reported by clang's
9193   `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
9194   break real code.
9195 * [The `#[packed]` attribute is no longer silently accepted by the
9196   compiler][packed]. This attribute did nothing and code that
9197   mentioned it likely did not work as intended.
9198 * Associated type defaults are [now behind the
9199   `associated_type_defaults` feature gate][ad]. In 1.1 associated type
9200   defaults *did not work*, but could be mentioned syntactically. As
9201   such this breakage has minimal impact.
9202
9203 Language
9204 --------
9205
9206 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
9207   matching against dereferenceable values.
9208
9209 Libraries
9210 ---------
9211
9212 * The [`Extend`] trait, which grows a collection from an iterator, is
9213   implemented over iterators of references, for `String`, `Vec`,
9214   `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
9215   `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
9216 * The [`iter::once`] function returns an iterator that yields a single
9217   element, and [`iter::empty`] returns an iterator that yields no
9218   elements.
9219 * The [`matches`] and [`rmatches`] methods on `str` return iterators
9220   over substring matches.
9221 * [`Cell`] and [`RefCell`] both implement `Eq`.
9222 * A number of methods for wrapping arithmetic are added to the
9223   integral types, [`wrapping_div`], [`wrapping_rem`],
9224   [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
9225   addition to the existing [`wrapping_add`], [`wrapping_sub`], and
9226   [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
9227   type.. It is illegal for the default arithmetic operations in Rust
9228   to overflow; the desire to wrap must be explicit.
9229 * The `{:#?}` formatting specifier [displays the alternate,
9230   pretty-printed][debugfmt] form of the `Debug` formatter. This
9231   feature was actually introduced prior to 1.0 with little
9232   fanfare.
9233 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
9234   for writing data to formatted strings, similar to [`io::Write`].
9235 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
9236   [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
9237   are used by code generators to emit implementations of [`Debug`].
9238 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
9239   methods that convert case, following Unicode case mapping.
9240 * It is now easier to handle poisoned locks. The [`PoisonError`]
9241   type, returned by failing lock operations, exposes `into_inner`,
9242   `get_ref`, and `get_mut`, which all give access to the inner lock
9243   guard, and allow the poisoned lock to continue to operate. The
9244   `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
9245   poisoned lock without attempting to take the lock.
9246 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
9247   [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
9248   On Windows the `FromRawHandle` trait is implemented for `Stdio`,
9249   and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
9250   `ChildStderr`.
9251 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
9252   malformed input.
9253
9254 Misc
9255 ----
9256
9257 * `rustc` employs smarter heuristics for guessing at [typos].
9258 * `rustc` emits more efficient code for [no-op conversions between
9259   unsafe pointers][nop].
9260 * Fat pointers are now [passed in pairs of immediate arguments][fat],
9261   resulting in faster compile times and smaller code.
9262
9263 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
9264 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9265 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
9266 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
9267 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
9268 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
9269 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
9270 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
9271 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
9272 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
9273 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
9274 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
9275 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
9276 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
9277 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
9278 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
9279 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9280 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
9281 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
9282 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
9283 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
9284 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
9285 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
9286 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
9287 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
9288 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9289 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
9290 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
9291 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
9292 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
9293 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
9294 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
9295 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
9296 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9297 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9298 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
9299 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
9300 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
9301 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
9302 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
9303 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
9304 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9305 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
9306 [align]: https://github.com/rust-lang/rust/pull/25646
9307 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
9308 [typos]: https://github.com/rust-lang/rust/pull/26087
9309 [nop]: https://github.com/rust-lang/rust/pull/26336
9310 [fat]: https://github.com/rust-lang/rust/pull/26411
9311 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
9312 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
9313 [packed]: https://github.com/rust-lang/rust/pull/25541
9314 [ad]: https://github.com/rust-lang/rust/pull/27382
9315 [win]: https://github.com/rust-lang/rust/pull/25350
9316
9317 Version 1.1.0 (2015-06-25)
9318 =========================
9319
9320 * ~850 changes, numerous bugfixes
9321
9322 Highlights
9323 ----------
9324
9325 * The [`std::fs` module has been expanded][fs] to expand the set of
9326   functionality exposed:
9327   * `DirEntry` now supports optimizations like `file_type` and `metadata` which
9328     don't incur a syscall on some platforms.
9329   * A `symlink_metadata` function has been added.
9330   * The `fs::Metadata` structure now lowers to its OS counterpart, providing
9331     access to all underlying information.
9332 * The compiler now contains extended explanations of many errors. When an error
9333   with an explanation occurs the compiler suggests using the `--explain` flag
9334   to read the explanation. Error explanations are also [available online][err-index].
9335 * Thanks to multiple [improvements][sk] to [type checking][pre], as
9336   well as other work, the time to bootstrap the compiler decreased by
9337   32%.
9338
9339 Libraries
9340 ---------
9341
9342 * The [`str::split_whitespace`] method splits a string on unicode
9343   whitespace boundaries.
9344 * On both Windows and Unix, new extension traits provide conversion of
9345   I/O types to and from the underlying system handles. On Unix, these
9346   traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
9347   and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
9348   `TcpListener`, and `UpdSocket`. Further implementations for
9349   `std::process` will be stabilized later.
9350 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
9351   Windows, symlinks can be created with
9352   `std::os::windows::symlink_dir` and
9353   `std::os::windows::symlink_file`.
9354 * The `mpsc::Receiver` type can now be converted into an iterator with
9355   `into_iter` on the [`IntoIterator`] trait.
9356 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
9357   implementation of the [`From`] trait.
9358 * The `Debug` implementation for `RangeFull` [creates output that is
9359   more consistent with other implementations][rf].
9360 * [`Debug` is implemented for `File`][file].
9361 * The `Default` implementation for `Arc` [no longer requires `Sync +
9362   Send`][arc].
9363 * [The `Iterator` methods `count`, `nth`, and `last` have been
9364   overridden for slices to have *O*(1) performance instead of *O*(*n*)][si].
9365 * Incorrect handling of paths on Windows has been improved in both the
9366   compiler and the standard library.
9367 * [`AtomicPtr` gained a `Default` implementation][ap].
9368 * In accordance with Rust's policy on arithmetic overflow `abs` now
9369   [panics on overflow when debug assertions are enabled][abs].
9370 * The [`Cloned`] iterator, which was accidentally left unstable for
9371   1.0 [has been stabilized][c].
9372 * The [`Incoming`] iterator, which iterates over incoming TCP
9373   connections, and which was accidentally unnamable in 1.0, [is now
9374   properly exported][inc].
9375 * [`BinaryHeap`] no longer corrupts itself [when functions called by
9376   `sift_up` or `sift_down` panic][bh].
9377 * The [`split_off`] method of `LinkedList` [no longer corrupts
9378   the list in certain scenarios][ll].
9379
9380 Misc
9381 ----
9382
9383 * Type checking performance [has improved notably][sk] with
9384   [multiple improvements][pre].
9385 * The compiler [suggests code changes][ch] for more errors.
9386 * rustc and it's build system have experimental support for [building
9387   toolchains against MUSL][m] instead of glibc on Linux.
9388 * The compiler defines the `target_env` cfg value, which is used for
9389   distinguishing toolchains that are otherwise for the same
9390   platform. Presently this is set to `gnu` for common GNU Linux
9391   targets and for MinGW targets, and `musl` for MUSL Linux targets.
9392 * The [`cargo rustc`][crc] command invokes a build with custom flags
9393   to rustc.
9394 * [Android executables are always position independent][pie].
9395 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
9396   with `Drop`][24935].
9397
9398 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
9399 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9400 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9401 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
9402 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
9403 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
9404 [rf]: https://github.com/rust-lang/rust/pull/24491
9405 [err-index]: https://doc.rust-lang.org/error-index.html
9406 [sk]: https://github.com/rust-lang/rust/pull/24615
9407 [pre]: https://github.com/rust-lang/rust/pull/25323
9408 [file]: https://github.com/rust-lang/rust/pull/24598
9409 [ch]: https://github.com/rust-lang/rust/pull/24683
9410 [arc]: https://github.com/rust-lang/rust/pull/24695
9411 [si]: https://github.com/rust-lang/rust/pull/24701
9412 [ap]: https://github.com/rust-lang/rust/pull/24834
9413 [m]: https://github.com/rust-lang/rust/pull/24777
9414 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
9415 [crc]: https://github.com/rust-lang/cargo/pull/1568
9416 [pie]: https://github.com/rust-lang/rust/pull/24953
9417 [abs]: https://github.com/rust-lang/rust/pull/25441
9418 [c]: https://github.com/rust-lang/rust/pull/25496
9419 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
9420 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
9421 [inc]: https://github.com/rust-lang/rust/pull/25522
9422 [bh]: https://github.com/rust-lang/rust/pull/25856
9423 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
9424 [ll]: https://github.com/rust-lang/rust/pull/26022
9425 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
9426 [24935]: https://github.com/rust-lang/rust/pull/24935
9427
9428 Version 1.0.0 (2015-05-15)
9429 ========================
9430
9431 * ~1500 changes, numerous bugfixes
9432
9433 Highlights
9434 ----------
9435
9436 * The vast majority of the standard library is now `#[stable]`. It is
9437   no longer possible to use unstable features with a stable build of
9438   the compiler.
9439 * Many popular crates on [crates.io] now work on the stable release
9440   channel.
9441 * Arithmetic on basic integer types now [checks for overflow in debug
9442   builds][overflow].
9443
9444 Language
9445 --------
9446
9447 * Several [restrictions have been added to trait coherence][coh] in
9448   order to make it easier for upstream authors to change traits
9449   without breaking downstream code.
9450 * Digits of binary and octal literals are [lexed more eagerly][lex] to
9451   improve error messages and macro behavior. For example, `0b1234` is
9452   now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
9453 * Trait bounds [are always invariant][inv], eliminating the need for
9454   the `PhantomFn` and `MarkerTrait` lang items, which have been
9455   removed.
9456 * ["-" is no longer a valid character in crate names][cr], the `extern crate
9457   "foo" as bar` syntax has been replaced with `extern crate foo as
9458   bar`, and Cargo now automatically translates "-" in *package* names
9459   to underscore for the crate name.
9460 * [Lifetime shadowing is an error][lt].
9461 * [`Send` no longer implies `'static`][send-rfc].
9462 * [UFCS now supports trait-less associated paths][moar-ufcs] like
9463   `MyType::default()`.
9464 * Primitive types [now have inherent methods][prim-inherent],
9465   obviating the need for extension traits like `SliceExt`.
9466 * Methods with `Self: Sized` in their `where` clause are [considered
9467   object-safe][self-sized], allowing many extension traits like
9468   `IteratorExt` to be merged into the traits they extended.
9469 * You can now [refer to associated types][assoc-where] whose
9470   corresponding trait bounds appear only in a `where` clause.
9471 * The final bits of [OIBIT landed][oibit-final], meaning that traits
9472   like `Send` and `Sync` are now library-defined.
9473 * A [Reflect trait][reflect] was introduced, which means that
9474   downcasting via the `Any` trait is effectively limited to concrete
9475   types. This helps retain the potentially-important "parametricity"
9476   property: generic code cannot behave differently for different type
9477   arguments except in minor ways.
9478 * The `unsafe_destructor` feature is now deprecated in favor of the
9479   [new `dropck`][rfc769]. This change is a major reduction in unsafe
9480   code.
9481
9482 Libraries
9483 ---------
9484
9485 * The `thread_local` module [has been renamed to `std::thread`][th].
9486 * The methods of `IteratorExt` [have been moved to the `Iterator`
9487   trait itself][23300].
9488 * Several traits that implement Rust's conventions for type
9489   conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
9490   [centralized in the `std::convert` module][con].
9491 * The `FromError` trait [was removed in favor of `From`][fe].
9492 * The basic sleep function [has moved to
9493   `std::thread::sleep_ms`][slp].
9494 * The `splitn` function now takes an `n` parameter that represents the
9495   number of items yielded by the returned iterator [instead of the
9496   number of 'splits'][spl].
9497 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
9498 * [Derived implementations of `PartialOrd` now order enums according
9499   to their explicitly-assigned discriminants][po].
9500 * [Methods for searching strings are generic over `Pattern`s][pat],
9501   implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
9502   some others.
9503 * [In method resolution, object methods are resolved before inherent
9504   methods][meth].
9505 * [`String::from_str` has been deprecated in favor of the `From` impl,
9506   `String::from`][24517].
9507 * [`io::Error` implements `Sync`][ios].
9508 * [The `words` method on `&str` has been replaced with
9509   `split_whitespace`][sw], to avoid answering the tricky question, 'what is
9510   a word?'
9511 * The new path and IO modules are complete and `#[stable]`. This
9512   was the major library focus for this cycle.
9513 * The path API was [revised][path-normalize] to normalize `.`,
9514   adjusting the tradeoffs in favor of the most common usage.
9515 * A large number of remaining APIs in `std` were also stabilized
9516   during this cycle; about 75% of the non-deprecated API surface
9517   is now stable.
9518 * The new [string pattern API][string-pattern] landed, which makes
9519   the string slice API much more internally consistent and flexible.
9520 * A new set of [generic conversion traits][conversion] replaced
9521   many existing ad hoc traits.
9522 * Generic numeric traits were [completely removed][num-traits]. This
9523   was made possible thanks to inherent methods for primitive types,
9524   and the removal gives maximal flexibility for designing a numeric
9525   hierarchy in the future.
9526 * The `Fn` traits are now related via [inheritance][fn-inherit]
9527   and provide ergonomic [blanket implementations][fn-blanket].
9528 * The `Index` and `IndexMut` traits were changed to
9529   [take the index by value][index-value], enabling code like
9530   `hash_map["string"]` to work.
9531 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
9532   `Copy` data is known to be `Clone` as well.
9533
9534 Misc
9535 ----
9536
9537 * Many errors now have extended explanations that can be accessed with
9538   the `--explain` flag to `rustc`.
9539 * Many new examples have been added to the standard library
9540   documentation.
9541 * rustdoc has received a number of improvements focused on completion
9542   and polish.
9543 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
9544 * Much headway was made on ecosystem-wide CI, making it possible
9545   to [compare builds for breakage][ci-compare].
9546
9547
9548 [crates.io]: http://crates.io
9549 [clo]: https://github.com/rust-lang/rust/pull/24034
9550 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
9551 [con]: https://github.com/rust-lang/rust/pull/23875
9552 [cr]: https://github.com/rust-lang/rust/pull/23419
9553 [fe]: https://github.com/rust-lang/rust/pull/23879
9554 [23300]: https://github.com/rust-lang/rust/pull/23300
9555 [inv]: https://github.com/rust-lang/rust/pull/23938
9556 [ios]: https://github.com/rust-lang/rust/pull/24133
9557 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
9558 [lt]: https://github.com/rust-lang/rust/pull/24057
9559 [meth]: https://github.com/rust-lang/rust/pull/24056
9560 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
9561 [po]: https://github.com/rust-lang/rust/pull/24270
9562 [24517]: https://github.com/rust-lang/rust/pull/24517
9563 [slp]: https://github.com/rust-lang/rust/pull/23949
9564 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
9565 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
9566 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
9567 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
9568 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
9569 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
9570 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
9571 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
9572 [self-sized]: https://github.com/rust-lang/rust/pull/22301
9573 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
9574 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
9575 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
9576 [reflect]: https://github.com/rust-lang/rust/pull/23712
9577 [conversion]: https://github.com/rust-lang/rfcs/pull/529
9578 [num-traits]: https://github.com/rust-lang/rust/pull/23549
9579 [index-value]: https://github.com/rust-lang/rust/pull/23601
9580 [rfc769]: https://github.com/rust-lang/rfcs/pull/769
9581 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
9582 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
9583 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
9584 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
9585 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
9586
9587
9588 Version 1.0.0-alpha.2 (2015-02-20)
9589 =====================================
9590
9591 * ~1300 changes, numerous bugfixes
9592
9593 * Highlights
9594
9595     * The various I/O modules were [overhauled][io-rfc] to reduce
9596       unnecessary abstractions and provide better interoperation with
9597       the underlying platform. The old `io` module remains temporarily
9598       at `std::old_io`.
9599     * The standard library now [participates in feature gating][feat],
9600       so use of unstable libraries now requires a `#![feature(...)]`
9601       attribute. The impact of this change is [described on the
9602       forum][feat-forum]. [RFC][feat-rfc].
9603
9604 * Language
9605
9606     * `for` loops [now operate on the `IntoIterator` trait][into],
9607       which eliminates the need to call `.iter()`, etc. to iterate
9608       over collections. There are some new subtleties to remember
9609       though regarding what sort of iterators various types yield, in
9610       particular that `for foo in bar { }` yields values from a move
9611       iterator, destroying the original collection. [RFC][into-rfc].
9612     * Objects now have [default lifetime bounds][obj], so you don't
9613       have to write `Box<Trait+'static>` when you don't care about
9614       storing references. [RFC][obj-rfc].
9615     * In types that implement `Drop`, [lifetimes must outlive the
9616       value][drop]. This will soon make it possible to safely
9617       implement `Drop` for types where `#[unsafe_destructor]` is now
9618       required. Read the [gorgeous RFC][drop-rfc] for details.
9619     * The fully qualified <T as Trait>::X syntax lets you set the Self
9620       type for a trait method or associated type. [RFC][ufcs-rfc].
9621     * References to types that implement `Deref<U>` now [automatically
9622       coerce to references][deref] to the dereferenced type `U`,
9623       e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
9624       should eliminate many unsightly uses of `&*`, as when converting
9625       from references to vectors into references to
9626       slices. [RFC][deref-rfc].
9627     * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
9628       `|:|`) is obsolete and closure kind is inferred from context.
9629     * [`Self` is a keyword][Self].
9630
9631 * Libraries
9632
9633     * The `Show` and `String` formatting traits [have been
9634       renamed][fmt] to `Debug` and `Display` to more clearly reflect
9635       their related purposes. Automatically getting a string
9636       conversion to use with `format!("{:?}", something_to_debug)` is
9637       now written `#[derive(Debug)]`.
9638     * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
9639       OsStr}`, provide strings in platform-specific encodings for easier
9640       interop with system APIs. [RFC][osstr-rfc].
9641     * The `boxed::into_raw` and `Box::from_raw` functions [convert
9642       between `Box<T>` and `*mut T`][boxraw], a common pattern for
9643       creating raw pointers.
9644
9645 * Tooling
9646
9647     * Certain long error messages of the form 'expected foo found bar'
9648       are now [split neatly across multiple
9649       lines][multiline]. Examples in the PR.
9650     * On Unix Rust can be [uninstalled][un] by running
9651       `/usr/local/lib/rustlib/uninstall.sh`.
9652     * The `#[rustc_on_unimplemented]` attribute, requiring the
9653       'on_unimplemented' feature, lets rustc [display custom error
9654       messages when a trait is expected to be implemented for a type
9655       but is not][onun].
9656
9657 * Misc
9658
9659     * Rust is tested against a [LALR grammar][lalr], which parses
9660       almost all the Rust files that rustc does.
9661
9662 [boxraw]: https://github.com/rust-lang/rust/pull/21318
9663 [close]: https://github.com/rust-lang/rust/pull/21843
9664 [deref]: https://github.com/rust-lang/rust/pull/21351
9665 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
9666 [drop]: https://github.com/rust-lang/rust/pull/21972
9667 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9668 [feat]: https://github.com/rust-lang/rust/pull/21248
9669 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
9670 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
9671 [fmt]: https://github.com/rust-lang/rust/pull/21457
9672 [into]: https://github.com/rust-lang/rust/pull/20790
9673 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
9674 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9675 [lalr]: https://github.com/rust-lang/rust/pull/21452
9676 [multiline]: https://github.com/rust-lang/rust/pull/19870
9677 [obj]: https://github.com/rust-lang/rust/pull/22230
9678 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
9679 [onun]: https://github.com/rust-lang/rust/pull/20889
9680 [osstr]: https://github.com/rust-lang/rust/pull/21488
9681 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9682 [Self]: https://github.com/rust-lang/rust/pull/22158
9683 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
9684 [un]: https://github.com/rust-lang/rust/pull/22256
9685
9686
9687 Version 1.0.0-alpha (2015-01-09)
9688 ==================================
9689
9690   * ~2400 changes, numerous bugfixes
9691
9692   * Highlights
9693
9694     * The language itself is considered feature complete for 1.0,
9695       though there will be many usability improvements and bugfixes
9696       before the final release.
9697     * Nearly 50% of the public API surface of the standard library has
9698       been declared 'stable'. Those interfaces are unlikely to change
9699       before 1.0.
9700     * The long-running debate over integer types has been
9701       [settled][ints]: Rust will ship with types named `isize` and
9702       `usize`, rather than `int` and `uint`, for pointer-sized
9703       integers. Guidelines will be rolled out during the alpha cycle.
9704     * Most crates that are not `std` have been moved out of the Rust
9705       distribution into the Cargo ecosystem so they can evolve
9706       separately and don't need to be stabilized as quickly, including
9707       'time', 'getopts', 'num', 'regex', and 'term'.
9708     * Documentation continues to be expanded with more API coverage, more
9709       examples, and more in-depth explanations. The guides have been
9710       consolidated into [The Rust Programming Language][trpl].
9711     * "[Rust By Example][rbe]" is now maintained by the Rust team.
9712     * All official Rust binary installers now come with [Cargo], the
9713       Rust package manager.
9714
9715 * Language
9716
9717     * Closures have been [completely redesigned][unboxed] to be
9718       implemented in terms of traits, can now be used as generic type
9719       bounds and thus monomorphized and inlined, or via an opaque
9720       pointer (boxed) as in the old system. The new system is often
9721       referred to as 'unboxed' closures.
9722     * Traits now support [associated types][assoc], allowing families
9723       of related types to be defined together and used generically in
9724       powerful ways.
9725     * Enum variants are [namespaced by their type names][enum].
9726     * [`where` clauses][where] provide a more versatile and attractive
9727       syntax for specifying generic bounds, though the previous syntax
9728       remains valid.
9729     * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
9730       numeric types.
9731     * Rust [no longer has a runtime][rt] of any description, and only
9732       supports OS threads, not green threads.
9733     * At long last, Rust has been overhauled for 'dynamically-sized
9734       types' ([DST]), which integrates 'fat pointers' (object types,
9735       arrays, and `str`) more deeply into the type system, making it
9736       more consistent.
9737     * Rust now has a general [range syntax][range], `i..j`, `i..`, and
9738       `..j` that produce range types and which, when combined with the
9739       `Index` operator and multidispatch, leads to a convenient slice
9740       notation, `[i..j]`.
9741     * The new range syntax revealed an ambiguity in the fixed-length
9742       array syntax, so now fixed length arrays [are written `[T;
9743       N]`][arrays].
9744     * The `Copy` trait is no longer implemented automatically. Unsafe
9745       pointers no longer implement `Sync` and `Send` so types
9746       containing them don't automatically either. `Sync` and `Send`
9747       are now 'unsafe traits' so one can "forcibly" implement them via
9748       `unsafe impl` if a type confirms to the requirements for them
9749       even though the internals do not (e.g. structs containing unsafe
9750       pointers like `Arc`). These changes are intended to prevent some
9751       footguns and are collectively known as [opt-in built-in
9752       traits][oibit] (though `Sync` and `Send` will soon become pure
9753       library types unknown to the compiler).
9754     * Operator traits now take their operands [by value][ops], and
9755       comparison traits can use multidispatch to compare one type
9756       against multiple other types, allowing e.g. `String` to be
9757       compared with `&str`.
9758     * `if let` and `while let` are no longer feature-gated.
9759     * Rust has adopted a more [uniform syntax for escaping unicode
9760       characters][unicode].
9761     * `macro_rules!` [has been declared stable][mac]. Though it is a
9762       flawed system it is sufficiently popular that it must be usable
9763       for 1.0. Effort has gone into [future-proofing][mac-future] it
9764       in ways that will allow other macro systems to be developed in
9765       parallel, and won't otherwise impact the evolution of the
9766       language.
9767     * The prelude has been [pared back significantly][prelude] such
9768       that it is the minimum necessary to support the most pervasive
9769       code patterns, and through [generalized where clauses][where]
9770       many of the prelude extension traits have been consolidated.
9771     * Rust's rudimentary reflection [has been removed][refl], as it
9772       incurred too much code generation for little benefit.
9773     * [Struct variants][structvars] are no longer feature-gated.
9774     * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
9775       known as 'higher-ranked trait bounds', this crucially allows
9776       unboxed closures to work.
9777     * Macros invocations surrounded by parens or square brackets and
9778       not terminated by a semicolon are [parsed as
9779       expressions][macros], which makes expressions like `vec![1i32,
9780       2, 3].len()` work as expected.
9781     * Trait objects now implement their traits automatically, and
9782       traits that can be coerced to objects now must be [object
9783       safe][objsafe].
9784     * Automatically deriving traits is now done with `#[derive(...)]`
9785       not `#[deriving(...)]` for [consistency with other naming
9786       conventions][derive].
9787     * Importing the containing module or enum at the same time as
9788       items or variants they contain is [now done with `self` instead
9789       of `mod`][self], as in use `foo::{self, bar}`
9790     * Glob imports are no longer feature-gated.
9791     * The `box` operator and `box` patterns have been feature-gated
9792       pending a redesign. For now unique boxes should be allocated
9793       like other containers, with `Box::new`.
9794
9795 * Libraries
9796
9797     * A [series][coll1] of [efforts][coll2] to establish
9798       [conventions][coll3] for collections types has resulted in API
9799       improvements throughout the standard library.
9800     * New [APIs for error handling][err] provide ergonomic interop
9801       between error types, and [new conventions][err-conv] describe
9802       more clearly the recommended error handling strategies in Rust.
9803     * The `fail!` macro has been renamed to [`panic!`][panic] so that
9804       it is easier to discuss failure in the context of error handling
9805       without making clarifications as to whether you are referring to
9806       the 'fail' macro or failure more generally.
9807     * On Linux, `OsRng` prefers the new, more reliable `getrandom`
9808       syscall when available.
9809     * The 'serialize' crate has been renamed 'rustc-serialize' and
9810       moved out of the distribution to Cargo. Although it is widely
9811       used now, it is expected to be superseded in the near future.
9812     * The `Show` formatter, typically implemented with
9813       `#[derive(Show)]` is [now requested with the `{:?}`
9814       specifier][show] and is intended for use by all types, for uses
9815       such as `println!` debugging. The new `String` formatter must be
9816       implemented by hand, uses the `{}` specifier, and is intended
9817       for full-fidelity conversions of things that can logically be
9818       represented as strings.
9819
9820 * Tooling
9821
9822     * [Flexible target specification][flex] allows rustc's code
9823       generation to be configured to support otherwise-unsupported
9824       platforms.
9825     * Rust comes with rust-gdb and rust-lldb scripts that launch their
9826       respective debuggers with Rust-appropriate pretty-printing.
9827     * The Windows installation of Rust is distributed with the
9828       MinGW components currently required to link binaries on that
9829       platform.
9830
9831 * Misc
9832
9833     * Nullable enum optimizations have been extended to more types so
9834       that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
9835       space than the inner types themselves.
9836     * Work has begun on supporting AArch64.
9837
9838 [Cargo]: https://crates.io
9839 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
9840 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
9841 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
9842 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
9843 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
9844 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
9845 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
9846 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
9847 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
9848 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
9849 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
9850 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
9851 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
9852 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
9853 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
9854 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
9855 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
9856 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
9857 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
9858 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
9859 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
9860 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
9861 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
9862 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
9863 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
9864 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
9865 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
9866 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
9867 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
9868 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
9869 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
9870 [trpl]: https://doc.rust-lang.org/book/index.html
9871 [rbe]: http://rustbyexample.com/
9872
9873
9874 Version 0.12.0 (2014-10-09)
9875 =============================
9876
9877   * ~1900 changes, numerous bugfixes
9878
9879   * Highlights
9880
9881     * The introductory documentation (now called The Rust Guide) has
9882       been completely rewritten, as have a number of supplementary
9883       guides.
9884     * Rust's package manager, Cargo, continues to improve and is
9885       sometimes considered to be quite awesome.
9886     * Many API's in `std` have been reviewed and updated for
9887       consistency with the in-development Rust coding
9888       guidelines. The standard library documentation tracks
9889       stabilization progress.
9890     * Minor libraries have been moved out-of-tree to the rust-lang org
9891       on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
9892       be installed with Cargo.
9893     * Lifetime elision allows lifetime annotations to be left off of
9894       function declarations in many common scenarios.
9895     * Rust now works on 64-bit Windows.
9896
9897   * Language
9898     * Indexing can be overloaded with the `Index` and `IndexMut`
9899       traits.
9900     * The `if let` construct takes a branch only if the `let` pattern
9901       matches, currently behind the 'if_let' feature gate.
9902     * 'where clauses', a more flexible syntax for specifying trait
9903       bounds that is more aesthetic, have been added for traits and
9904       free functions. Where clauses will in the future make it
9905       possible to constrain associated types, which would be
9906       impossible with the existing syntax.
9907     * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
9908       the 'slicing_syntax' feature gate, and can be overloaded with
9909       the `Slice` or `SliceMut` traits.
9910     * The syntax for matching of sub-slices has been changed to use a
9911       postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
9912       consistency with other uses of `..` and to future-proof
9913       potential additional uses of the syntax.
9914     * The syntax for matching inclusive ranges in patterns has changed
9915       from `0..3` to `0...4` to be consistent with the exclusive range
9916       syntax for slicing.
9917     * Matching of sub-slices in non-tail positions (e.g.  `[a.., b,
9918       c]`) has been put behind the 'advanced_slice_patterns' feature
9919       gate and may be removed in the future.
9920     * Components of tuples and tuple structs can be extracted using
9921       the `value.0` syntax, currently behind the `tuple_indexing`
9922       feature gate.
9923     * The `#[crate_id]` attribute is no longer supported; versioning
9924       is handled by the package manager.
9925     * Renaming crate imports are now written `extern crate foo as bar`
9926       instead of `extern crate bar = foo`.
9927     * Renaming use statements are now written `use foo as bar` instead
9928       of `use bar = foo`.
9929     * `let` and `match` bindings and argument names in macros are now
9930       hygienic.
9931     * The new, more efficient, closure types ('unboxed closures') have
9932       been added under a feature gate, 'unboxed_closures'. These will
9933       soon replace the existing closure types, once higher-ranked
9934       trait lifetimes are added to the language.
9935     * `move` has been added as a keyword, for indicating closures
9936       that capture by value.
9937     * Mutation and assignment is no longer allowed in pattern guards.
9938     * Generic structs and enums can now have trait bounds.
9939     * The `Share` trait is now called `Sync` to free up the term
9940       'shared' to refer to 'shared reference' (the default reference
9941       type.
9942     * Dynamically-sized types have been mostly implemented,
9943       unifying the behavior of fat-pointer types with the rest of the
9944       type system.
9945     * As part of dynamically-sized types, the `Sized` trait has been
9946       introduced, which qualifying types implement by default, and
9947       which type parameters expect by default. To specify that a type
9948       parameter does not need to be sized, write `<Sized? T>`. Most
9949       types are `Sized`, notable exceptions being unsized arrays
9950       (`[T]`) and trait types.
9951     * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
9952     * Lifetime bounds can now be applied to type parameters and object
9953       types.
9954     * The old, reference counted GC type, `Gc<T>` which was once
9955       denoted by the `@` sigil, has finally been removed. GC will be
9956       revisited in the future.
9957
9958   * Libraries
9959     * Library documentation has been improved for a number of modules.
9960     * Bit-vectors, collections::bitv has been modernized.
9961     * The url crate is deprecated in favor of
9962       http://github.com/servo/rust-url, which can be installed with
9963       Cargo.
9964     * Most I/O stream types can be cloned and subsequently closed from
9965       a different thread.
9966     * A `std::time::Duration` type has been added for use in I/O
9967       methods that rely on timers, as well as in the 'time' crate's
9968       `Timespec` arithmetic.
9969     * The runtime I/O abstraction layer that enabled the green thread
9970       scheduler to do non-thread-blocking I/O has been removed, along
9971       with the libuv-based implementation employed by the green thread
9972       scheduler. This will greatly simplify the future I/O work.
9973     * `collections::btree` has been rewritten to have a more
9974       idiomatic and efficient design.
9975
9976   * Tooling
9977     * rustdoc output now indicates the stability levels of API's.
9978     * The `--crate-name` flag can specify the name of the crate
9979       being compiled, like `#[crate_name]`.
9980     * The `-C metadata` specifies additional metadata to hash into
9981       symbol names, and `-C extra-filename` specifies additional
9982       information to put into the output filename, for use by the
9983       package manager for versioning.
9984     * debug info generation has continued to improve and should be
9985       more reliable under both gdb and lldb.
9986     * rustc has experimental support for compiling in parallel
9987       using the `-C codegen-units` flag.
9988     * rustc no longer encodes rpath information into binaries by
9989       default.
9990
9991   * Misc
9992     * Stack usage has been optimized with LLVM lifetime annotations.
9993     * Official Rust binaries on Linux are more compatible with older
9994       kernels and distributions, built on CentOS 5.10.
9995
9996
9997 Version 0.11.0 (2014-07-02)
9998 ==========================
9999
10000   * ~1700 changes, numerous bugfixes
10001
10002   * Language
10003     * ~[T] has been removed from the language. This type is superseded by
10004       the Vec<T> type.
10005     * ~str has been removed from the language. This type is superseded by
10006       the String type.
10007     * ~T has been removed from the language. This type is superseded by the
10008       Box<T> type.
10009     * @T has been removed from the language. This type is superseded by the
10010       standard library's std::gc::Gc<T> type.
10011     * Struct fields are now all private by default.
10012     * Vector indices and shift amounts are both required to be a `uint`
10013       instead of any integral type.
10014     * Byte character, byte string, and raw byte string literals are now all
10015       supported by prefixing the normal literal with a `b`.
10016     * Multiple ABIs are no longer allowed in an ABI string
10017     * The syntax for lifetimes on closures/procedures has been tweaked
10018       slightly: `<'a>|A, B|: 'b + K -> T`
10019     * Floating point modulus has been removed from the language; however it
10020       is still provided by a library implementation.
10021     * Private enum variants are now disallowed.
10022     * The `priv` keyword has been removed from the language.
10023     * A closure can no longer be invoked through a &-pointer.
10024     * The `use foo, bar, baz;` syntax has been removed from the language.
10025     * The transmute intrinsic no longer works on type parameters.
10026     * Statics now allow blocks/items in their definition.
10027     * Trait bounds are separated from objects with + instead of : now.
10028     * Objects can no longer be read while they are mutably borrowed.
10029     * The address of a static is now marked as insignificant unless the
10030       #[inline(never)] attribute is placed it.
10031     * The #[unsafe_destructor] attribute is now behind a feature gate.
10032     * Struct literals are no longer allowed in ambiguous positions such as
10033       if, while, match, and for..in.
10034     * Declaration of lang items and intrinsics are now feature-gated by
10035       default.
10036     * Integral literals no longer default to `int`, and floating point
10037       literals no longer default to `f64`. Literals must be suffixed with an
10038       appropriate type if inference cannot determine the type of the
10039       literal.
10040     * The Box<T> type is no longer implicitly borrowed to &mut T.
10041     * Procedures are now required to not capture borrowed references.
10042
10043   * Libraries
10044     * The standard library is now a "facade" over a number of underlying
10045       libraries. This means that development on the standard library should
10046       be speedier due to smaller crates, as well as a clearer line between
10047       all dependencies.
10048     * A new library, libcore, lives under the standard library's facade
10049       which is Rust's "0-assumption" library, suitable for embedded and
10050       kernel development for example.
10051     * A regex crate has been added to the standard distribution. This crate
10052       includes statically compiled regular expressions.
10053     * The unwrap/unwrap_err methods on Result require a Show bound for
10054       better error messages.
10055     * The return types of the std::comm primitives have been centralized
10056       around the Result type.
10057     * A number of I/O primitives have gained the ability to time out their
10058       operations.
10059     * A number of I/O primitives have gained the ability to close their
10060       reading/writing halves to cancel pending operations.
10061     * Reverse iterator methods have been removed in favor of `rev()` on
10062       their forward-iteration counterparts.
10063     * A bitflags! macro has been added to enable easy interop with C and
10064       management of bit flags.
10065     * A debug_assert! macro is now provided which is disabled when
10066       `--cfg ndebug` is passed to the compiler.
10067     * A graphviz crate has been added for creating .dot files.
10068     * The std::cast module has been migrated into std::mem.
10069     * The std::local_data api has been migrated from freestanding functions
10070       to being based on methods.
10071     * The Pod trait has been renamed to Copy.
10072     * jemalloc has been added as the default allocator for types.
10073     * The API for allocating memory has been changed to use proper alignment
10074       and sized deallocation
10075     * Connecting a TcpStream or binding a TcpListener is now based on a
10076       string address and a u16 port. This allows connecting to a hostname as
10077       opposed to an IP.
10078     * The Reader trait now contains a core method, read_at_least(), which
10079       correctly handles many repeated 0-length reads.
10080     * The process-spawning API is now centered around a builder-style
10081       Command struct.
10082     * The :? printing qualifier has been moved from the standard library to
10083       an external libdebug crate.
10084     * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
10085       have been renamed to Eq/Ord.
10086     * The select/plural methods have been removed from format!. The escapes
10087       for { and } have also changed from \{ and \} to {{ and }},
10088       respectively.
10089     * The TaskBuilder API has been re-worked to be a true builder, and
10090       extension traits for spawning native/green tasks have been added.
10091
10092   * Tooling
10093     * All breaking changes to the language or libraries now have their
10094       commit message annotated with `[breaking-change]` to allow for easy
10095       discovery of breaking changes.
10096     * The compiler will now try to suggest how to annotate lifetimes if a
10097       lifetime-related error occurs.
10098     * Debug info continues to be improved greatly with general bug fixes and
10099       better support for situations like link time optimization (LTO).
10100     * Usage of syntax extensions when cross-compiling has been fixed.
10101     * Functionality equivalent to GCC & Clang's -ffunction-sections,
10102       -fdata-sections and --gc-sections has been enabled by default
10103     * The compiler is now stricter about where it will load module files
10104       from when a module is declared via `mod foo;`.
10105     * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
10106       Syntax extensions are now discovered via a "plugin registrar" type
10107       which will be extended in the future to other various plugins.
10108     * Lints have been restructured to allow for dynamically loadable lints.
10109     * A number of rustdoc improvements:
10110       * The HTML output has been visually redesigned.
10111       * Markdown is now powered by hoedown instead of sundown.
10112       * Searching heuristics have been greatly improved.
10113       * The search index has been reduced in size by a great amount.
10114       * Cross-crate documentation via `pub use` has been greatly improved.
10115       * Primitive types are now hyperlinked and documented.
10116     * Documentation has been moved from static.rust-lang.org/doc to
10117       doc.rust-lang.org
10118     * A new sandbox, play.rust-lang.org, is available for running and
10119       sharing rust code examples on-line.
10120     * Unused attributes are now more robustly warned about.
10121     * The dead_code lint now warns about unused struct fields.
10122     * Cross-compiling to iOS is now supported.
10123     * Cross-compiling to mipsel is now supported.
10124     * Stability attributes are now inherited by default and no longer apply
10125       to intra-crate usage, only inter-crate usage.
10126     * Error message related to non-exhaustive match expressions have been
10127       greatly improved.
10128
10129
10130 Version 0.10 (2014-04-03)
10131 =========================
10132
10133   * ~1500 changes, numerous bugfixes
10134
10135   * Language
10136     * A new RFC process is now in place for modifying the language.
10137     * Patterns with `@`-pointers have been removed from the language.
10138     * Patterns with unique vectors (`~[T]`) have been removed from the
10139       language.
10140     * Patterns with unique strings (`~str`) have been removed from the
10141       language.
10142     * `@str` has been removed from the language.
10143     * `@[T]` has been removed from the language.
10144     * `@self` has been removed from the language.
10145     * `@Trait` has been removed from the language.
10146     * Headers on `~` allocations which contain `@` boxes inside the type for
10147       reference counting have been removed.
10148     * The semantics around the lifetimes of temporary expressions have changed,
10149       see #3511 and #11585 for more information.
10150     * Cross-crate syntax extensions are now possible, but feature gated. See
10151       #11151 for more information. This includes both `macro_rules!` macros as
10152       well as syntax extensions such as `format!`.
10153     * New lint modes have been added, and older ones have been turned on to be
10154       warn-by-default.
10155       * Unnecessary parentheses
10156       * Uppercase statics
10157       * Camel Case types
10158       * Uppercase variables
10159       * Publicly visible private types
10160       * `#[deriving]` with raw pointers
10161     * Unsafe functions can no longer be coerced to closures.
10162     * Various obscure macros such as `log_syntax!` are now behind feature gates.
10163     * The `#[simd]` attribute is now behind a feature gate.
10164     * Visibility is no longer allowed on `extern crate` statements, and
10165       unnecessary visibility (`priv`) is no longer allowed on `use` statements.
10166     * Trailing commas are now allowed in argument lists and tuple patterns.
10167     * The `do` keyword has been removed, it is now a reserved keyword.
10168     * Default type parameters have been implemented, but are feature gated.
10169     * Borrowed variables through captures in closures are now considered soundly.
10170     * `extern mod` is now `extern crate`
10171     * The `Freeze` trait has been removed.
10172     * The `Share` trait has been added for types that can be shared among
10173       threads.
10174     * Labels in macros are now hygienic.
10175     * Expression/statement macro invocations can be delimited with `{}` now.
10176     * Treatment of types allowed in `static mut` locations has been tweaked.
10177     * The `*` and `.` operators are now overloadable through the `Deref` and
10178       `DerefMut` traits.
10179     * `~Trait` and `proc` no longer have `Send` bounds by default.
10180     * Partial type hints are now supported with the `_` type marker.
10181     * An `Unsafe` type was introduced for interior mutability. It is now
10182       considered undefined to transmute from `&T` to `&mut T` without using the
10183       `Unsafe` type.
10184     * The #[linkage] attribute was implemented for extern statics/functions.
10185     * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
10186     * `Pod` was renamed to `Copy`.
10187
10188   * Libraries
10189     * The `libextra` library has been removed. It has now been decomposed into
10190       component libraries with smaller and more focused nuggets of
10191       functionality. The full list of libraries can be found on the
10192       documentation index page.
10193     * std: `std::condition` has been removed. All I/O errors are now propagated
10194       through the `Result` type. In order to assist with error handling, a
10195       `try!` macro for unwrapping errors with an early return and a lint for
10196       unused results has been added. See #12039 for more information.
10197     * std: The `vec` module has been renamed to `slice`.
10198     * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
10199       This will become the only growable vector in the future.
10200     * std: `std::io` now has more public re-exports. Types such as `BufferedReader`
10201       are now found at `std::io::BufferedReader` instead of
10202       `std::io::buffered::BufferedReader`.
10203     * std: `print` and `println` are no longer in the prelude, the `print!` and
10204       `println!` macros are intended to be used instead.
10205     * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
10206       attempts to statically prevent cycles.
10207     * std: The standard distribution is adopting the policy of pushing failure
10208       to the user rather than failing in libraries. Many functions (such as
10209       `slice::last()`) now return `Option<T>` instead of `T` + failing.
10210     * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
10211       deriving mode: `#[deriving(Show)]`.
10212     * std: `ToStr` is now implemented for all types implementing `Show`.
10213     * std: The formatting trait methods now take `&self` instead of `&T`
10214     * std: The `invert()` method on iterators has been renamed to `rev()`
10215     * std: `std::num` has seen a reduction in the genericity of its traits,
10216       consolidating functionality into a few core traits.
10217     * std: Backtraces are now printed on task failure if the environment
10218       variable `RUST_BACKTRACE` is present.
10219     * std: Naming conventions for iterators have been standardized. More details
10220       can be found on the wiki's style guide.
10221     * std: `eof()` has been removed from the `Reader` trait. Specific types may
10222       still implement the function.
10223     * std: Networking types are now cloneable to allow simultaneous reads/writes.
10224     * std: `assert_approx_eq!` has been removed
10225     * std: The `e` and `E` formatting specifiers for floats have been added to
10226       print them in exponential notation.
10227     * std: The `Times` trait has been removed
10228     * std: Indications of variance and opting out of builtin bounds is done
10229       through marker types in `std::kinds::marker` now
10230     * std: `hash` has been rewritten, `IterBytes` has been removed, and
10231       `#[deriving(Hash)]` is now possible.
10232     * std: `SharedChan` has been removed, `Sender` is now cloneable.
10233     * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
10234     * std: `Chan::new` is now `channel()`.
10235     * std: A new synchronous channel type has been implemented.
10236     * std: A `select!` macro is now provided for selecting over `Receiver`s.
10237     * std: `hashmap` and `trie` have been moved to `libcollections`
10238     * std: `run` has been rolled into `io::process`
10239     * std: `assert_eq!` now uses `{}` instead of `{:?}`
10240     * std: The equality and comparison traits have seen some reorganization.
10241     * std: `rand` has moved to `librand`.
10242     * std: `to_{lower,upper}case` has been implemented for `char`.
10243     * std: Logging has been moved to `liblog`.
10244     * collections: `HashMap` has been rewritten for higher performance and less
10245       memory usage.
10246     * native: The default runtime is now `libnative`. If `libgreen` is desired,
10247       it can be booted manually. The runtime guide has more information and
10248       examples.
10249     * native: All I/O functionality except signals has been implemented.
10250     * green: Task spawning with `libgreen` has been optimized with stack caching
10251       and various trimming of code.
10252     * green: Tasks spawned by `libgreen` now have an unmapped guard page.
10253     * sync: The `extra::sync` module has been updated to modern rust (and moved
10254       to the `sync` library), tweaking and improving various interfaces while
10255       dropping redundant functionality.
10256     * sync: A new `Barrier` type has been added to the `sync` library.
10257     * sync: An efficient mutex for native and green tasks has been implemented.
10258     * serialize: The `base64` module has seen some improvement. It treats
10259       newlines better, has non-string error values, and has seen general
10260       cleanup.
10261     * fourcc: A `fourcc!` macro was introduced
10262     * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
10263       hexadecimal literal.
10264
10265   * Tooling
10266     * `rustpkg` has been deprecated and removed from the main repository. Its
10267       replacement, `cargo`, is under development.
10268     * Nightly builds of rust are now available
10269     * The memory usage of rustc has been improved many times throughout this
10270       release cycle.
10271     * The build process supports disabling rpath support for the rustc binary
10272       itself.
10273     * Code generation has improved in some cases, giving more information to the
10274       LLVM optimization passes to enable more extensive optimizations.
10275     * Debuginfo compatibility with lldb on OSX has been restored.
10276     * The master branch is now gated on an android bot, making building for
10277       android much more reliable.
10278     * Output flags have been centralized into one `--emit` flag.
10279     * Crate type flags have been centralized into one `--crate-type` flag.
10280     * Codegen flags have been consolidated behind a `-C` flag.
10281     * Linking against outdated crates now has improved error messages.
10282     * Error messages with lifetimes will often suggest how to annotate the
10283       function to fix the error.
10284     * Many more types are documented in the standard library, and new guides
10285       were written.
10286     * Many `rustdoc` improvements:
10287       * code blocks are syntax highlighted.
10288       * render standalone markdown files.
10289       * the --test flag tests all code blocks by default.
10290       * exported macros are displayed.
10291       * re-exported types have their documentation inlined at the location of the
10292         first re-export.
10293       * search works across crates that have been rendered to the same output
10294         directory.
10295
10296
10297 Version 0.9 (2014-01-09)
10298 ==========================
10299
10300    * ~1800 changes, numerous bugfixes
10301
10302    * Language
10303       * The `float` type has been removed. Use `f32` or `f64` instead.
10304       * A new facility for enabling experimental features (feature gating) has
10305         been added, using the crate-level `#[feature(foo)]` attribute.
10306       * Managed boxes (@) are now behind a feature gate
10307         (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
10308         standard library's `Gc` or `Rc` types instead.
10309       * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
10310       * Jumping back to the top of a loop is now done with `continue` instead of
10311         `loop`.
10312       * Strings can no longer be mutated through index assignment.
10313       * Raw strings can be created via the basic `r"foo"` syntax or with matched
10314         hash delimiters, as in `r###"foo"###`.
10315       * `~fn` is now written `proc (args) -> retval { ... }` and may only be
10316         called once.
10317       * The `&fn` type is now written `|args| -> ret` to match the literal form.
10318       * `@fn`s have been removed.
10319       * `do` only works with procs in order to make it obvious what the cost
10320         of `do` is.
10321       * Single-element tuple-like structs can no longer be dereferenced to
10322         obtain the inner value. A more comprehensive solution for overloading
10323         the dereference operator will be provided in the future.
10324       * The `#[link(...)]` attribute has been replaced with
10325         `#[crate_id = "name#vers"]`.
10326       * Empty `impl`s must be terminated with empty braces and may not be
10327         terminated with a semicolon.
10328       * Keywords are no longer allowed as lifetime names; the `self` lifetime
10329         no longer has any special meaning.
10330       * The old `fmt!` string formatting macro has been removed.
10331       * `printf!` and `printfln!` (old-style formatting) removed in favor of
10332         `print!` and `println!`.
10333       * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
10334       * The `extern mod foo (name = "bar")` syntax has been removed. Use
10335         `extern mod foo = "bar"` instead.
10336       * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
10337       * Macros can have attributes.
10338       * Macros can expand to items with attributes.
10339       * Macros can expand to multiple items.
10340       * The `asm!` macro is feature-gated (`#[feature(asm)]`).
10341       * Comments may be nested.
10342       * Values automatically coerce to trait objects they implement, without
10343         an explicit `as`.
10344       * Enum discriminants are no longer an entire word but as small as needed to
10345         contain all the variants. The `repr` attribute can be used to override
10346         the discriminant size, as in `#[repr(int)]` for integer-sized, and
10347         `#[repr(C)]` to match C enums.
10348       * Non-string literals are not allowed in attributes (they never worked).
10349       * The FFI now supports variadic functions.
10350       * Octal numeric literals, as in `0o7777`.
10351       * The `concat!` syntax extension performs compile-time string concatenation.
10352       * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
10353         removed as Rust no longer uses segmented stacks.
10354       * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
10355       * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
10356         not `*`; ignoring remaining fields of a struct is also done with `..`,
10357         not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
10358       * `rustc` supports the "win64" calling convention via `extern "win64"`.
10359       * `rustc` supports the "system" calling convention, which defaults to the
10360         preferred convention for the target platform, "stdcall" on 32-bit Windows,
10361         "C" elsewhere.
10362       * The `type_overflow` lint (default: warn) checks literals for overflow.
10363       * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
10364       * The `attribute_usage` lint (default: warn) warns about unknown
10365         attributes.
10366       * The `unknown_features` lint (default: warn) warns about unknown
10367         feature gates.
10368       * The `dead_code` lint (default: warn) checks for dead code.
10369       * Rust libraries can be linked statically to one another
10370       * `#[link_args]` is behind the `link_args` feature gate.
10371       * Native libraries are now linked with `#[link(name = "foo")]`
10372       * Native libraries can be statically linked to a rust crate
10373         (`#[link(name = "foo", kind = "static")]`).
10374       * Native OS X frameworks are now officially supported
10375         (`#[link(name = "foo", kind = "framework")]`).
10376       * The `#[thread_local]` attribute creates thread-local (not task-local)
10377         variables. Currently behind the `thread_local` feature gate.
10378       * The `return` keyword may be used in closures.
10379       * Types that can be copied via a memcpy implement the `Pod` kind.
10380       * The `cfg` attribute can now be used on struct fields and enum variants.
10381
10382    * Libraries
10383       * std: The `option` and `result` API's have been overhauled to make them
10384         simpler, more consistent, and more composable.
10385       * std: The entire `std::io` module has been replaced with one that is
10386         more comprehensive and that properly interfaces with the underlying
10387         scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
10388         implemented.
10389       * std: `io::util` contains a number of useful implementations of
10390         `Reader` and `Writer`, including `NullReader`, `NullWriter`,
10391         `ZeroReader`, `TeeReader`.
10392       * std: The reference counted pointer type `extra::rc` moved into std.
10393       * std: The `Gc` type in the `gc` module will replace `@` (it is currently
10394         just a wrapper around it).
10395       * std: The `Either` type has been removed.
10396       * std: `fmt::Default` can be implemented for any type to provide default
10397         formatting to the `format!` macro, as in `format!("{}", myfoo)`.
10398       * std: The `rand` API continues to be tweaked.
10399       * std: The `rust_begin_unwind` function, useful for inserting breakpoints
10400         on failure in gdb, is now named `rust_fail`.
10401       * std: The `each_key` and `each_value` methods on `HashMap` have been
10402         replaced by the `keys` and `values` iterators.
10403       * std: Functions dealing with type size and alignment have moved from the
10404         `sys` module to the `mem` module.
10405       * std: The `path` module was written and API changed.
10406       * std: `str::from_utf8` has been changed to cast instead of allocate.
10407       * std: `starts_with` and `ends_with` methods added to vectors via the
10408         `ImmutableEqVector` trait, which is in the prelude.
10409       * std: Vectors can be indexed with the `get_opt` method, which returns `None`
10410         if the index is out of bounds.
10411       * std: Task failure no longer propagates between tasks, as the model was
10412         complex, expensive, and incompatible with thread-based tasks.
10413       * std: The `Any` type can be used for dynamic typing.
10414       * std: `~Any` can be passed to the `fail!` macro and retrieved via
10415         `task::try`.
10416       * std: Methods that produce iterators generally do not have an `_iter`
10417         suffix now.
10418       * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
10419         roots (mutable fields, etc.). Use instead of e.g. `@mut`.
10420       * std: `util::ignore` renamed to `prelude::drop`.
10421       * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
10422         trait.
10423       * std: `vec::raw` has seen a lot of cleanup and API changes.
10424       * std: The standard library no longer includes any C++ code, and very
10425         minimal C, eliminating the dependency on libstdc++.
10426       * std: Runtime scheduling and I/O functionality has been factored out into
10427         extensible interfaces and is now implemented by two different crates:
10428         libnative, for native threading and I/O; and libgreen, for green threading
10429         and I/O. This paves the way for using the standard library in more limited
10430         embedded environments.
10431       * std: The `comm` module has been rewritten to be much faster, have a
10432         simpler, more consistent API, and to work for both native and green
10433         threading.
10434       * std: All libuv dependencies have been moved into the rustuv crate.
10435       * native: New implementations of runtime scheduling on top of OS threads.
10436       * native: New native implementations of TCP, UDP, file I/O, process spawning,
10437         and other I/O.
10438       * green: The green thread scheduler and message passing types are almost
10439         entirely lock-free.
10440       * extra: The `flatpipes` module had bitrotted and was removed.
10441       * extra: All crypto functions have been removed and Rust now has a policy of
10442         not reimplementing crypto in the standard library. In the future crypto
10443         will be provided by external crates with bindings to established libraries.
10444       * extra: `c_vec` has been modernized.
10445       * extra: The `sort` module has been removed. Use the `sort` method on
10446         mutable slices.
10447
10448    * Tooling
10449       * The `rust` and `rusti` commands have been removed, due to lack of
10450         maintenance.
10451       * `rustdoc` was completely rewritten.
10452       * `rustdoc` can test code examples in documentation.
10453       * `rustpkg` can test packages with the argument, 'test'.
10454       * `rustpkg` supports arbitrary dependencies, including C libraries.
10455       * `rustc`'s support for generating debug info is improved again.
10456       * `rustc` has better error reporting for unbalanced delimiters.
10457       * `rustc`'s JIT support was removed due to bitrot.
10458       * Executables and static libraries can be built with LTO (-Z lto)
10459       * `rustc` adds a `--dep-info` flag for communicating dependencies to
10460         build tools.
10461
10462
10463 Version 0.8 (2013-09-26)
10464 ============================
10465
10466    * ~2200 changes, numerous bugfixes
10467
10468    * Language
10469       * The `for` loop syntax has changed to work with the `Iterator` trait.
10470       * At long last, unwinding works on Windows.
10471       * Default methods are ready for use.
10472       * Many trait inheritance bugs fixed.
10473       * Owned and borrowed trait objects work more reliably.
10474       * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
10475       * rustc can omit emission of code for the `debug!` macro if it is passed
10476         `--cfg ndebug`
10477       * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
10478         for foo.rs, then foo/mod.rs, and will generate an error when both are
10479         present.
10480       * Strings no longer contain trailing nulls. The new `std::c_str` module
10481         provides new mechanisms for converting to C strings.
10482       * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
10483       * The FFI has been overhauled such that foreign functions are called directly,
10484         instead of through a stack-switching wrapper.
10485       * Calling a foreign function must be done through a Rust function with the
10486         `#[fixed_stack_segment]` attribute.
10487       * The `externfn!` macro can be used to declare both a foreign function and
10488         a `#[fixed_stack_segment]` wrapper at once.
10489       * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
10490       * `unsafe` is no longer allowed on extern fns - they are all unsafe.
10491       * `priv` is disallowed everywhere except for struct fields and enum variants.
10492       * `&T` (besides `&'static T`) is no longer allowed in `@T`.
10493       * `ref` bindings in irrefutable patterns work correctly now.
10494       * `char` is now prevented from containing invalid code points.
10495       * Casting to `bool` is no longer allowed.
10496       * `\0` is now accepted as an escape in chars and strings.
10497       * `yield` is a reserved keyword.
10498       * `typeof` is a reserved keyword.
10499       * Crates may be imported by URL with `extern mod foo = "url";`.
10500       * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
10501       * Static vectors can be initialized with repeating elements,
10502         e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
10503       * Static structs can be initialized with functional record update,
10504         e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
10505       * `cfg!` can be used to conditionally execute code based on the crate
10506         configuration, similarly to `#[cfg(...)]`.
10507       * The `unnecessary_qualification` lint detects unneeded module
10508         prefixes (default: allow).
10509       * Arithmetic operations have been implemented on the SIMD types in
10510         `std::unstable::simd`.
10511       * Exchange allocation headers were removed, reducing memory usage.
10512       * `format!` implements a completely new, extensible, and higher-performance
10513         string formatting system. It will replace `fmt!`.
10514       * `print!` and `println!` write formatted strings (using the `format!`
10515         extension) to stdout.
10516       * `write!` and `writeln!` write formatted strings (using the `format!`
10517         extension) to the new Writers in `std::rt::io`.
10518       * The library section in which a function or static is placed may
10519         be specified with `#[link_section = "..."]`.
10520       * The `proto!` syntax extension for defining bounded message protocols
10521         was removed.
10522       * `macro_rules!` is hygienic for `let` declarations.
10523       * The `#[export_name]` attribute specifies the name of a symbol.
10524       * `unreachable!` can be used to indicate unreachable code, and fails
10525         if executed.
10526
10527    * Libraries
10528       * std: Transitioned to the new runtime, written in Rust.
10529       * std: Added an experimental I/O library, `rt::io`, based on the new
10530         runtime.
10531       * std: A new generic `range` function was added to the prelude, replacing
10532         `uint::range` and friends.
10533       * std: `range_rev` no longer exists. Since range is an iterator it can be
10534         reversed with `range(lo, hi).invert()`.
10535       * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
10536         renamed to `unwrap_or`.
10537       * std: The `iterator` module was renamed to `iter`.
10538       * std: Integral types now support the `checked_add`, `checked_sub`, and
10539         `checked_mul` operations for detecting overflow.
10540       * std: Many methods in `str`, `vec`, `option, `result` were renamed for
10541         consistency.
10542       * std: Methods are standardizing on conventions for casting methods:
10543         `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
10544         and cheap casts.
10545       * std: The `CString` type in `c_str` provides new ways to convert to and
10546         from C strings.
10547       * std: `DoubleEndedIterator` can yield elements in two directions.
10548       * std: The `mut_split` method on vectors partitions an `&mut [T]` into
10549         two splices.
10550       * std: `str::from_bytes` renamed to `str::from_utf8`.
10551       * std: `pop_opt` and `shift_opt` methods added to vectors.
10552       * std: The task-local data interface no longer uses @, and keys are
10553         no longer function pointers.
10554       * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
10555       * std: Added `SharedPort` to `comm`.
10556       * std: `Eq` has a default method for `ne`; only `eq` is required
10557         in implementations.
10558       * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
10559         is required in implementations.
10560       * std: `is_utf8` performance is improved, impacting many string functions.
10561       * std: `os::MemoryMap` provides cross-platform mmap.
10562       * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
10563         are not 'in-bounds' are considered undefined.
10564       * std: Many freestanding functions in `vec` removed in favor of methods.
10565       * std: Many freestanding functions on scalar types removed in favor of
10566         methods.
10567       * std: Many options to task builders were removed since they don't make
10568         sense in the new scheduler design.
10569       * std: More containers implement `FromIterator` so can be created by the
10570         `collect` method.
10571       * std: More complete atomic types in `unstable::atomics`.
10572       * std: `comm::PortSet` removed.
10573       * std: Mutating methods in the `Set` and `Map` traits have been moved into
10574         the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
10575         `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
10576         default implementations.
10577       * std: Various `from_str` functions were removed in favor of a generic
10578         `from_str` which is available in the prelude.
10579       * std: `util::unreachable` removed in favor of the `unreachable!` macro.
10580       * extra: `dlist`, the doubly-linked list was modernized.
10581       * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
10582       * extra: Added `glob` module, replacing `std::os::glob`.
10583       * extra: `rope` was removed.
10584       * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
10585       * extra: `net`, and `timer` were removed. The experimental replacements
10586         are `std::rt::io::net` and `std::rt::io::timer`.
10587       * extra: Iterators implemented for `SmallIntMap`.
10588       * extra: Iterators implemented for `Bitv` and `BitvSet`.
10589       * extra: `SmallIntSet` removed. Use `BitvSet`.
10590       * extra: Performance of JSON parsing greatly improved.
10591       * extra: `semver` updated to SemVer 2.0.0.
10592       * extra: `term` handles more terminals correctly.
10593       * extra: `dbg` module removed.
10594       * extra: `par` module removed.
10595       * extra: `future` was cleaned up, with some method renames.
10596       * extra: Most free functions in `getopts` were converted to methods.
10597
10598    * Other
10599       * rustc's debug info generation (`-Z debug-info`) is greatly improved.
10600       * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
10601         similarly to gcc's `--march` flag.
10602       * rustc's performance compiling small crates is much better.
10603       * rustpkg has received many improvements.
10604       * rustpkg supports git tags as package IDs.
10605       * rustpkg builds into target-specific directories so it can be used for
10606         cross-compiling.
10607       * The number of concurrent test tasks is controlled by the environment
10608         variable RUST_TEST_TASKS.
10609       * The test harness can now report metrics for benchmarks.
10610       * All tools have man pages.
10611       * Programs compiled with `--test` now support the `-h` and `--help` flags.
10612       * The runtime uses jemalloc for allocations.
10613       * Segmented stacks are temporarily disabled as part of the transition to
10614         the new runtime. Stack overflows are possible!
10615       * A new documentation backend, rustdoc_ng, is available for use. It is
10616         still invoked through the normal `rustdoc` command.
10617
10618
10619 Version 0.7 (2013-07-03)
10620 =======================
10621
10622    * ~2000 changes, numerous bugfixes
10623
10624    * Language
10625       * `impl`s no longer accept a visibility qualifier. Put them on methods
10626         instead.
10627       * The borrow checker has been rewritten with flow-sensitivity, fixing
10628         many bugs and inconveniences.
10629       * The `self` parameter no longer implicitly means `&'self self`,
10630         and can be explicitly marked with a lifetime.
10631       * Overloadable compound operators (`+=`, etc.) have been temporarily
10632         removed due to bugs.
10633       * The `for` loop protocol now requires `for`-iterators to return `bool`
10634         so they compose better.
10635       * The `Durable` trait is replaced with the `'static` bounds.
10636       * Trait default methods work more often.
10637       * Structs with the `#[packed]` attribute have byte alignment and
10638         no padding between fields.
10639       * Type parameters bound by `Copy` must now be copied explicitly with
10640         the `copy` keyword.
10641       * It is now illegal to move out of a dereferenced unsafe pointer.
10642       * `Option<~T>` is now represented as a nullable pointer.
10643       * `@mut` does dynamic borrow checks correctly.
10644       * The `main` function is only detected at the topmost level of the crate.
10645         The `#[main]` attribute is still valid anywhere.
10646       * Struct fields may no longer be mutable. Use inherited mutability.
10647       * The `#[no_send]` attribute makes a type that would otherwise be
10648         `Send`, not.
10649       * The `#[no_freeze]` attribute makes a type that would otherwise be
10650         `Freeze`, not.
10651       * Unbounded recursion will abort the process after reaching the limit
10652         specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
10653       * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
10654         are never implicitly copyable.
10655       * `#[static_assert]` makes compile-time assertions about static bools.
10656       * At long last, 'argument modes' no longer exist.
10657       * The rarely used `use mod` statement no longer exists.
10658
10659    * Syntax extensions
10660       * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
10661         argument list.
10662       * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
10663         `Rand`, `Zero` and `ToStr` can all be automatically derived with
10664         `#[deriving(...)]`.
10665       * The `bytes!` macro returns a vector of bytes for string, u8, char,
10666         and unsuffixed integer literals.
10667
10668    * Libraries
10669       * The `core` crate was renamed to `std`.
10670       * The `std` crate was renamed to `extra`.
10671       * More and improved documentation.
10672       * std: `iterator` module for external iterator objects.
10673       * Many old-style (internal, higher-order function) iterators replaced by
10674         implementations of `Iterator`.
10675       * std: Many old internal vector and string iterators,
10676         incl. `any`, `all`. removed.
10677       * std: The `finalize` method of `Drop` renamed to `drop`.
10678       * std: The `drop` method now takes `&mut self` instead of `&self`.
10679       * std: The prelude no longer re-exports any modules, only types and traits.
10680       * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
10681         `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
10682       * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
10683         `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
10684       * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
10685         `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
10686       * std: Many types implement `Clone`.
10687       * std: `path` type renamed to `Path`.
10688       * std: `mut` module and `Mut` type removed.
10689       * std: Many standalone functions removed in favor of methods and iterators
10690         in `vec`, `str`. In the future methods will also work as functions.
10691       * std: `reinterpret_cast` removed. Use `transmute`.
10692       * std: ascii string handling in `std::ascii`.
10693       * std: `Rand` is implemented for ~/@.
10694       * std: `run` module for spawning processes overhauled.
10695       * std: Various atomic types added to `unstable::atomic`.
10696       * std: Various types implement `Zero`.
10697       * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
10698       * std: Borrowed pointer functions moved from `ptr` to `borrow`.
10699       * std: Added `os::mkdir_recursive`.
10700       * std: Added `os::glob` function performs filesystems globs.
10701       * std: `FuzzyEq` renamed to `ApproxEq`.
10702       * std: `Map` now defines `pop` and `swap` methods.
10703       * std: `Cell` constructors converted to static methods.
10704       * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
10705       * extra: `flate` module moved from `std` to `extra`.
10706       * extra: `fileinput` module for iterating over a series of files.
10707       * extra: `Complex` number type and `complex` module.
10708       * extra: `Rational` number type and `rational` module.
10709       * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
10710       * extra: `term` uses terminfo now, is more correct.
10711       * extra: `arc` functions converted to methods.
10712       * extra: Implementation of fixed output size variations of SHA-2.
10713
10714    * Tooling
10715       * `unused_variables` lint mode for unused variables (default: warn).
10716       * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
10717         (default: warn).
10718       * `unused_mut` lint mode for identifying unused `mut` qualifiers
10719         (default: warn).
10720       * `dead_assignment` lint mode for unread variables (default: warn).
10721       * `unnecessary_allocation` lint mode detects some heap allocations that are
10722         immediately borrowed so could be written without allocating (default: warn).
10723       * `missing_doc` lint mode (default: allow).
10724       * `unreachable_code` lint mode (default: warn).
10725       * The `rusti` command has been rewritten and a number of bugs addressed.
10726       * rustc outputs in color on more terminals.
10727       * rustc accepts a `--link-args` flag to pass arguments to the linker.
10728       * rustc accepts a `-Z print-link-args` flag for debugging linkage.
10729       * Compiling with `-g` will make the binary record information about
10730         dynamic borrowcheck failures for debugging.
10731       * rustdoc has a nicer stylesheet.
10732       * Various improvements to rustdoc.
10733       * Improvements to rustpkg (see the detailed release notes).
10734
10735
10736 Version 0.6 (2013-04-03)
10737 ========================
10738
10739    * ~2100 changes, numerous bugfixes
10740
10741    * Syntax changes
10742       * The self type parameter in traits is now spelled `Self`
10743       * The `self` parameter in trait and impl methods must now be explicitly
10744         named (for example: `fn f(&self) { }`). Implicit self is deprecated.
10745       * Static methods no longer require the `static` keyword and instead
10746         are distinguished by the lack of a `self` parameter
10747       * Replaced the `Durable` trait with the `'static` lifetime
10748       * The old closure type syntax with the trailing sigil has been
10749         removed in favor of the more consistent leading sigil
10750       * `super` is a keyword, and may be prefixed to paths
10751       * Trait bounds are separated with `+` instead of whitespace
10752       * Traits are implemented with `impl Trait for Type`
10753         instead of `impl Type: Trait`
10754       * Lifetime syntax is now `&'l foo` instead of `&l/foo`
10755       * The `export` keyword has finally been removed
10756       * The `move` keyword has been removed (see "Semantic changes")
10757       * The interior mutability qualifier on vectors, `[mut T]`, has been
10758         removed. Use `&mut [T]`, etc.
10759       * `mut` is no longer valid in `~mut T`. Use inherited mutability
10760       * `fail` is no longer a keyword. Use `fail!()`
10761       * `assert` is no longer a keyword. Use `assert!()`
10762       * `log` is no longer a keyword. use `debug!`, etc.
10763       * 1-tuples may be represented as `(T,)`
10764       * Struct fields may no longer be `mut`. Use inherited mutability,
10765         `@mut T`, `core::mut` or `core::cell`
10766       * `extern mod { ... }` is no longer valid syntax for foreign
10767         function modules. Use extern blocks: `extern { ... }`
10768       * Newtype enums removed. Use tuple-structs.
10769       * Trait implementations no longer support visibility modifiers
10770       * Pattern matching over vectors improved and expanded
10771       * `const` renamed to `static` to correspond to lifetime name,
10772         and make room for future `static mut` unsafe mutable globals.
10773       * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
10774       * `Clone` implementations can be automatically generated with
10775         `#[deriving(Clone)]`
10776       * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
10777         instead of `foo as Bar`.
10778       * Fixed length vector types are now written as `[int, .. 3]`
10779         instead of `[int * 3]`.
10780       * Fixed length vector types can express the length as a constant
10781         expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
10782
10783    * Semantic changes
10784       * Types with owned pointers or custom destructors move by default,
10785         eliminating the `move` keyword
10786       * All foreign functions are considered unsafe
10787       * &mut is now unaliasable
10788       * Writes to borrowed @mut pointers are prevented dynamically
10789       * () has size 0
10790       * The name of the main function can be customized using #[main]
10791       * The default type of an inferred closure is &fn instead of @fn
10792       * `use` statements may no longer be "chained" - they cannot import
10793         identifiers imported by previous `use` statements
10794       * `use` statements are crate relative, importing from the "top"
10795         of the crate by default. Paths may be prefixed with `super::`
10796         or `self::` to change the search behavior.
10797       * Method visibility is inherited from the implementation declaration
10798       * Structural records have been removed
10799       * Many more types can be used in static items, including enums
10800         'static-lifetime pointers and vectors
10801       * Pattern matching over vectors improved and expanded
10802       * Typechecking of closure types has been overhauled to
10803         improve inference and eliminate unsoundness
10804       * Macros leave scope at the end of modules, unless that module is
10805         tagged with #[macro_escape]
10806
10807    * Libraries
10808       * Added big integers to `std::bigint`
10809       * Removed `core::oldcomm` module
10810       * Added pipe-based `core::comm` module
10811       * Numeric traits have been reorganized under `core::num`
10812       * `vec::slice` finally returns a slice
10813       * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
10814       * Containers reorganized around traits in `core::container`
10815       * `core::dvec` removed, `~[T]` is a drop-in replacement
10816       * `core::send_map` renamed to `core::hashmap`
10817       * `std::map` removed; replaced with `core::hashmap`
10818       * `std::treemap` reimplemented as an owned balanced tree
10819       * `std::deque` and `std::smallintmap` reimplemented as owned containers
10820       * `core::trie` added as a fast ordered map for integer keys
10821       * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
10822       * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
10823         overload the comparison operators, whereas `TotalOrd` is used
10824         by certain container types
10825
10826    * Other
10827       * Replaced the 'cargo' package manager with 'rustpkg'
10828       * Added all-purpose 'rust' tool
10829       * `rustc --test` now supports benchmarks with the `#[bench]` attribute
10830       * rustc now *attempts* to offer spelling suggestions
10831       * Improved support for ARM and Android
10832       * Preliminary MIPS backend
10833       * Improved foreign function ABI implementation for x86, x86_64
10834       * Various memory usage improvements
10835       * Rust code may be embedded in foreign code under limited circumstances
10836       * Inline assembler supported by new asm!() syntax extension.
10837
10838
10839 Version 0.5 (2012-12-21)
10840 ===========================
10841
10842    * ~900 changes, numerous bugfixes
10843
10844    * Syntax changes
10845       * Removed `<-` move operator
10846       * Completed the transition from the `#fmt` extension syntax to `fmt!`
10847       * Removed old fixed length vector syntax - `[T]/N`
10848       * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
10849       * Macros may now expand to items and statements
10850       * `a.b()` is always parsed as a method call, never as a field projection
10851       * `Eq` and `IterBytes` implementations can be automatically generated
10852         with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
10853       * Removed the special crate language for `.rc` files
10854       * Function arguments may consist of any irrefutable pattern
10855
10856    * Semantic changes
10857       * `&` and `~` pointers may point to objects
10858       * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
10859       * Enum variants may be structs
10860       * Destructors can be added to all nominal types with the Drop trait
10861       * Structs and nullary enum variants may be constants
10862       * Values that cannot be implicitly copied are now automatically moved
10863         without writing `move` explicitly
10864       * `&T` may now be coerced to `*T`
10865       * Coercions happen in `let` statements as well as function calls
10866       * `use` statements now take crate-relative paths
10867       * The module and type namespaces have been merged so that static
10868         method names can be resolved under the trait in which they are
10869         declared
10870
10871    * Improved support for language features
10872       * Trait inheritance works in many scenarios
10873       * More support for explicit self arguments in methods - `self`, `&self`
10874         `@self`, and `~self` all generally work as expected
10875       * Static methods work in more situations
10876       * Experimental: Traits may declare default methods for the implementations
10877         to use
10878
10879    * Libraries
10880       * New condition handling system in `core::condition`
10881       * Timsort added to `std::sort`
10882       * New priority queue, `std::priority_queue`
10883       * Pipes for serializable types, `std::flatpipes'
10884       * Serialization overhauled to be trait-based
10885       * Expanded `getopts` definitions
10886       * Moved futures to `std`
10887       * More functions are pure now
10888       * `core::comm` renamed to `oldcomm`. Still deprecated
10889       * `rustdoc` and `cargo` are libraries now
10890
10891    * Misc
10892       * Added a preliminary REPL, `rusti`
10893       * License changed from MIT to dual MIT/APL2
10894
10895
10896 Version 0.4 (2012-10-15)
10897 ==========================
10898
10899    * ~2000 changes, numerous bugfixes
10900
10901    * Syntax
10902       * All keywords are now strict and may not be used as identifiers anywhere
10903       * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
10904         'of', 'with', 'to', 'class'.
10905       * Classes are replaced with simpler structs
10906       * Explicit method self types
10907       * `ret` became `return` and `alt` became `match`
10908       * `import` is now `use`; `use is now `extern mod`
10909       * `extern mod { ... }` is now `extern { ... }`
10910       * `use mod` is the recommended way to import modules
10911       * `pub` and `priv` replace deprecated export lists
10912       * The syntax of `match` pattern arms now uses fat arrow (=>)
10913       * `main` no longer accepts an args vector; use `os::args` instead
10914
10915    * Semantics
10916       * Trait implementations are now coherent, ala Haskell typeclasses
10917       * Trait methods may be static
10918       * Argument modes are deprecated
10919       * Borrowed pointers are much more mature and recommended for use
10920       * Strings and vectors in the static region are stored in constant memory
10921       * Typestate was removed
10922       * Resolution rewritten to be more reliable
10923       * Support for 'dual-mode' data structures (freezing and thawing)
10924
10925    * Libraries
10926       * Most binary operators can now be overloaded via the traits in
10927         `core::ops'
10928       * `std::net::url` for representing URLs
10929       * Sendable hash maps in `core::send_map`
10930       * `core::task' gained a (currently unsafe) task-local storage API
10931
10932    * Concurrency
10933       * An efficient new intertask communication primitive called the pipe,
10934         along with a number of higher-level channel types, in `core::pipes`
10935       * `std::arc`, an atomically reference counted, immutable, shared memory
10936         type
10937       * `std::sync`, various exotic synchronization tools based on arcs and pipes
10938       * Futures are now based on pipes and sendable
10939       * More robust linked task failure
10940       * Improved task builder API
10941
10942    * Other
10943       * Improved error reporting
10944       * Preliminary JIT support
10945       * Preliminary work on precise GC
10946       * Extensive architectural improvements to rustc
10947       * Begun a transition away from buggy C++-based reflection (shape) code to
10948         Rust-based (visitor) code
10949       * All hash functions and tables converted to secure, randomized SipHash
10950
10951
10952 Version 0.3  (2012-07-12)
10953 ========================
10954
10955    * ~1900 changes, numerous bugfixes
10956
10957    * New coding conveniences
10958       * Integer-literal suffix inference
10959       * Per-item control over warnings, errors
10960       * #[cfg(windows)] and #[cfg(unix)] attributes
10961       * Documentation comments
10962       * More compact closure syntax
10963       * 'do' expressions for treating higher-order functions as
10964         control structures
10965       * *-patterns (wildcard extended to all constructor fields)
10966
10967    * Semantic cleanup
10968       * Name resolution pass and exhaustiveness checker rewritten
10969       * Region pointers and borrow checking supersede alias
10970         analysis
10971       * Init-ness checking is now provided by a region-based liveness
10972         pass instead of the typestate pass; same for last-use analysis
10973       * Extensive work on region pointers
10974
10975    * Experimental new language features
10976       * Slices and fixed-size, interior-allocated vectors
10977       * #!-comments for lang versioning, shell execution
10978       * Destructors and iface implementation for classes;
10979         type-parameterized classes and class methods
10980       * 'const' type kind for types that can be used to implement
10981         shared-memory concurrency patterns
10982
10983    * Type reflection
10984
10985    * Removal of various obsolete features
10986       * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
10987                  'crust', 'native' (now 'extern'), 'cont' (now 'again')
10988
10989       * Constructs: do-while loops ('do' repurposed), fn binding,
10990                     resources (replaced by destructors)
10991
10992    * Compiler reorganization
10993       * Syntax-layer of compiler split into separate crate
10994       * Clang (from LLVM project) integrated into build
10995       * Typechecker split into sub-modules
10996
10997    * New library code
10998       * New time functions
10999       * Extension methods for many built-in types
11000       * Arc: atomic-refcount read-only / exclusive-use shared cells
11001       * Par: parallel map and search routines
11002       * Extensive work on libuv interface
11003       * Much vector code moved to libraries
11004       * Syntax extensions: #line, #col, #file, #mod, #stringify,
11005         #include, #include_str, #include_bin
11006
11007    * Tool improvements
11008       * Cargo automatically resolves dependencies
11009
11010
11011 Version 0.2  (2012-03-29)
11012 =========================
11013
11014    * >1500 changes, numerous bugfixes
11015
11016    * New docs and doc tooling
11017
11018    * New port: FreeBSD x86_64
11019
11020    * Compilation model enhancements
11021       * Generics now specialized, multiply instantiated
11022       * Functions now inlined across separate crates
11023
11024    * Scheduling, stack and threading fixes
11025       * Noticeably improved message-passing performance
11026       * Explicit schedulers
11027       * Callbacks from C
11028       * Helgrind clean
11029
11030    * Experimental new language features
11031       * Operator overloading
11032       * Region pointers
11033       * Classes
11034
11035    * Various language extensions
11036       * C-callback function types: 'crust fn ...'
11037       * Infinite-loop construct: 'loop { ... }'
11038       * Shorten 'mutable' to 'mut'
11039       * Required mutable-local qualifier: 'let mut ...'
11040       * Basic glob-exporting: 'export foo::*;'
11041       * Alt now exhaustive, 'alt check' for runtime-checked
11042       * Block-function form of 'for' loop, with 'break' and 'ret'.
11043
11044    * New library code
11045       * AST quasi-quote syntax extension
11046       * Revived libuv interface
11047       * New modules: core::{future, iter}, std::arena
11048       * Merged per-platform std::{os*, fs*} to core::{libc, os}
11049       * Extensive cleanup, regularization in libstd, libcore
11050
11051
11052 Version 0.1  (2012-01-20)
11053 ===============================
11054
11055    * Most language features work, including:
11056       * Unique pointers, unique closures, move semantics
11057       * Interface-constrained generics
11058       * Static interface dispatch
11059       * Stack growth
11060       * Multithread task scheduling
11061       * Typestate predicates
11062       * Failure unwinding, destructors
11063       * Pattern matching and destructuring assignment
11064       * Lightweight block-lambda syntax
11065       * Preliminary macro-by-example
11066
11067    * Compiler works with the following configurations:
11068       * Linux: x86 and x86_64 hosts and targets
11069       * macOS: x86 and x86_64 hosts and targets
11070       * Windows: x86 hosts and targets
11071
11072    * Cross compilation / multi-target configuration supported.
11073
11074    * Preliminary API-documentation and package-management tools included.
11075
11076 Known issues:
11077
11078    * Documentation is incomplete.
11079
11080    * Performance is below intended target.
11081
11082    * Standard library APIs are subject to extensive change, reorganization.
11083
11084    * Language-level versioning is not yet operational - future code will
11085      break unexpectedly.