]> git.lizzy.rs Git - rust.git/blob - RELEASES.md
Rollup merge of #42397 - sfackler:syncsender-sync, r=alexcrichton
[rust.git] / RELEASES.md
1 Version 1.18.0 (2017-06-08)
2 ===========================
3
4 Language
5 --------
6
7 - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to
8   make the item visible to just that module tree. Also accepts the keyword
9   `crate` to make something public to the whole crate but not users of the
10   library. Example: `pub(crate) mod utils;`. [RFC 1422].
11 - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the
12   `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665].
13 - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept
14   types like `Write + Send`, trailing `+` are now supported in trait objects,
15   and better error reporting for trait objects starting with `?Sized`.
16 - [0e+10 is now a valid floating point literal][40589]
17 - [Now warns if you bind a lifetime parameter to 'static][40734]
18 - [Tuples, Enum variant fields, and structs with no `repr` attribute or with
19   `#[repr(Rust)]` are reordered to minimize padding and produce a smaller
20   representation in some cases.][40377]
21
22 Compiler
23 --------
24
25 - [rustc can now emit mir with `--emit mir`][39891]
26 - [Improved LLVM IR for trivial functions][40367]
27 - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723]
28 - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation
29   opportunities found through profiling
30 - [Improved backtrace formatting when panicking][38165]
31
32 Libraries
33 ---------
34
35 - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the
36   iterator hasn't been advanced the original `Vec` is reassembled with no actual
37   iteration or reallocation.
38 - [Simplified HashMap Bucket interface][40561] provides performance
39   improvements for iterating and cloning.
40 - [Specialize Vec::from_elem to use calloc][40409]
41 - [Fixed Race condition in fs::create_dir_all][39799]
42 - [No longer caching stdio on Windows][40516]
43 - [Optimized insertion sort in slice][40807] insertion sort in some cases
44   2.50%~ faster and in one case now 12.50% faster.
45 - [Optimized `AtomicBool::fetch_nand`][41143]
46
47 Stabilized APIs
48 ---------------
49
50 - [`Child::try_wait`]
51 - [`HashMap::retain`]
52 - [`HashSet::retain`]
53 - [`PeekMut::pop`]
54 - [`TcpStream::peek`]
55 - [`UdpSocket::peek`]
56 - [`UdpSocket::peek_from`]
57
58 Cargo
59 -----
60
61 - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust.
62   You can now create new cargo projects with Pijul using `cargo new --vcs pijul`
63 - [Now always emits build script warnings for crates that fail to build][cargo/3847]
64 - [Added Android build support][cargo/3885]
65 - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs
66   of a certain type, for example `cargo build --bins` will build all
67   binaries.
68 - [Added support for haiku][cargo/3952]
69
70 Misc
71 ----
72
73 - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338]
74 - [Added rust-winbg script for better debugging on Windows][39983]
75 - [Rust now uses the official cross compiler for NetBSD][40612]
76 - [rustdoc now accepts `#` at the start of files][40828]
77 - [Fixed jemalloc support for musl][41168]
78
79 Compatibility Notes
80 -------------------
81
82 - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now
83   always placed after the sign if it exists and before the digits. With the `#`
84   flag the zeroes are placed after the prefix and before the digits.
85 - [Due to the struct field optimisation][40377], using `transmute` on structs
86   that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has
87   always been undefined behavior, but is now more likely to break in practice.
88 - [The refactor of trait object type parsing][40043] fixed a bug where `+` was
89   receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as
90   `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send`
91 - [Overlapping inherent `impl`s are now a hard error][40728]
92 - [`PartialOrd` and `Ord` must agree on the ordering.][41270]
93 - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output
94   `out.asm` and `out.ll` instead of only one of the filetypes.
95 - [ calling a function that returns `Self` will no longer work][41805] when
96   the size of `Self` cannot be statically determined.
97 - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805]
98   this has caused a few regressions namely:
99
100   - Changed the link order of local static/dynamic libraries (respecting the
101     order on given rather than having the compiler reorder).
102   - Changed how MinGW is linked, native code linked to dynamic libraries
103     may require manually linking to the gcc support library (for the native
104     code itself)
105
106 [38165]: https://github.com/rust-lang/rust/pull/38165
107 [39799]: https://github.com/rust-lang/rust/pull/39799
108 [39891]: https://github.com/rust-lang/rust/pull/39891
109 [39983]: https://github.com/rust-lang/rust/pull/39983
110 [40043]: https://github.com/rust-lang/rust/pull/40043
111 [40241]: https://github.com/rust-lang/rust/pull/40241
112 [40338]: https://github.com/rust-lang/rust/pull/40338
113 [40367]: https://github.com/rust-lang/rust/pull/40367
114 [40377]: https://github.com/rust-lang/rust/pull/40377
115 [40409]: https://github.com/rust-lang/rust/pull/40409
116 [40516]: https://github.com/rust-lang/rust/pull/40516
117 [40556]: https://github.com/rust-lang/rust/pull/40556
118 [40561]: https://github.com/rust-lang/rust/pull/40561
119 [40589]: https://github.com/rust-lang/rust/pull/40589
120 [40612]: https://github.com/rust-lang/rust/pull/40612
121 [40723]: https://github.com/rust-lang/rust/pull/40723
122 [40728]: https://github.com/rust-lang/rust/pull/40728
123 [40731]: https://github.com/rust-lang/rust/pull/40731
124 [40734]: https://github.com/rust-lang/rust/pull/40734
125 [40805]: https://github.com/rust-lang/rust/pull/40805
126 [40807]: https://github.com/rust-lang/rust/pull/40807
127 [40828]: https://github.com/rust-lang/rust/pull/40828
128 [40870]: https://github.com/rust-lang/rust/pull/40870
129 [41085]: https://github.com/rust-lang/rust/pull/41085
130 [41143]: https://github.com/rust-lang/rust/pull/41143
131 [41168]: https://github.com/rust-lang/rust/pull/41168
132 [41270]: https://github.com/rust-lang/rust/issues/41270
133 [41469]: https://github.com/rust-lang/rust/pull/41469
134 [41805]: https://github.com/rust-lang/rust/issues/41805
135 [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md
136 [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md
137 [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
138 [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain
139 [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain
140 [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop
141 [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek
142 [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from
143 [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek
144 [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842
145 [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847
146 [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885
147 [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901
148 [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952
149
150
151 Version 1.17.0 (2017-04-27)
152 ===========================
153
154 Language
155 --------
156
157 * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
158 * [Fields of structs may be initialized without duplicating the field/variable
159   names][39761]. [RFC 1682]
160 * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
161 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
162   there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
163   coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
164   `'b`. Soundness fix.
165 * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
166 * [Static variables may contain references to other statics][40027]
167
168 Compiler
169 --------
170
171 * [Exit quickly on only `--emit dep-info`][40336]
172 * [Make `-C relocation-model` more correctly determine whether the linker
173   creates a position-independent executable][40245]
174 * [Add `-C overflow-checks` to directly control whether integer overflow
175   panics][40037]
176 * [The rustc type checker now checks items on demand instead of in a single
177   in-order pass][40008]. This is mostly an internal refactoring in support of
178   future work, including incremental type checking, but also resolves [RFC
179   1647], allowing `Self` to appear in `impl` `where` clauses.
180 * [Optimize vtable loads][39995]
181 * [Turn off vectorization for Emscripten targets][39990]
182 * [Provide suggestions for unknown macros imported with `use`][39953]
183 * [Fix ICEs in path resolution][39939]
184 * [Strip exception handling code on Emscripten when `panic=abort`][39193]
185 * [Add clearer error message using `&str + &str`][39116]
186
187 Stabilized APIs
188 ---------------
189
190 * [`Arc::into_raw`]
191 * [`Arc::from_raw`]
192 * [`Arc::ptr_eq`]
193 * [`Rc::into_raw`]
194 * [`Rc::from_raw`]
195 * [`Rc::ptr_eq`]
196 * [`Ordering::then`]
197 * [`Ordering::then_with`]
198 * [`BTreeMap::range`]
199 * [`BTreeMap::range_mut`]
200 * [`collections::Bound`]
201 * [`process::abort`]
202 * [`ptr::read_unaligned`]
203 * [`ptr::write_unaligned`]
204 * [`Result::expect_err`]
205 * [`Cell::swap`]
206 * [`Cell::replace`]
207 * [`Cell::into_inner`]
208 * [`Cell::take`]
209
210 Libraries
211 ---------
212
213 * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
214 * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
215 * [`String` implements `FromIterator<&char>`][40028]
216 * `Box` [implements][40009] a number of new conversions:
217   `From<Box<str>> for String`,
218   `From<Box<[T]>> for Vec<T>`,
219   `From<Box<CStr>> for CString`,
220   `From<Box<OsStr>> for OsString`,
221   `From<Box<Path>> for PathBuf`,
222   `Into<Box<str>> for String`,
223   `Into<Box<[T]>> for Vec<T>`,
224   `Into<Box<CStr>> for CString`,
225   `Into<Box<OsStr>> for OsString`,
226   `Into<Box<Path>> for PathBuf`,
227   `Default for Box<str>`,
228   `Default for Box<CStr>`,
229   `Default for Box<OsStr>`,
230   `From<&CStr> for Box<CStr>`,
231   `From<&OsStr> for Box<OsStr>`,
232   `From<&Path> for Box<Path>`
233 * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
234 * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
235 * [Slightly optimize `slice::sort`][39538]
236 * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
237 * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
238   `Box<str>` implements `From<&str>`][39438]
239 * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
240   `From<(I, u16)> where I: Into<IpAddr>`][39372]
241 * [`format!` estimates the needed capacity before writing a string][39356]
242 * [Support unprivileged symlink creation in Windows][38921]
243 * [`PathBuf` implements `Default`][38764]
244 * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
245 * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
246   and poor hash functions.
247
248 Cargo
249 -----
250
251 * [Add `cargo check --all`][cargo/3731]
252 * [Add an option to ignore SSL revocation checking][cargo/3699]
253 * [Add `cargo run --package`][cargo/3691]
254 * [Add `required_features`][cargo/3667]
255 * [Assume `build.rs` is a build script][cargo/3664]
256 * [Find workspace via `workspace_root` link in containing member][cargo/3562]
257
258 Misc
259 ----
260
261 * [Documentation is rendered with mdbook instead of the obsolete, in-tree
262   `rustbook`][39633]
263 * [The "Unstable Book" documents nightly-only features][ubook]
264 * [Improve the style of the sidebar in rustdoc output][40265]
265 * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
266 * [Fix MSP430 breakage due to `i128`][40257]
267 * [Preliminary Solaris/SPARCv9 support][39903]
268 * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
269   run without installing the MSVC runtime.
270 * [`rustdoc --test` includes file names in test names][39788]
271 * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
272   `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
273 * [Initial support for `aarch64-unknown-freebsd`][39491]
274 * [Initial support for `i686-unknown-netbsd`][39426]
275 * [This release no longer includes the old makefile build system][39431]. Rust
276   is built with a custom build system, written in Rust, and with Cargo.
277 * [Add Debug implementations for libcollection structs][39002]
278 * [`TypeId` implements `PartialOrd` and `Ord`][38981]
279 * [`--test-threads=0` produces an error][38945]
280 * [`rustup` installs documentation by default][40526]
281 * [The Rust source includes NatVis visualizations][39843]. These can be used by
282   WinDbg and Visual Studio to improve the debugging experience.
283
284 Compatibility Notes
285 -------------------
286
287 * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
288   workaround, either use MSVC 2015 or run vcvars.bat.
289 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
290   disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
291   `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
292   fix.
293 * [`format!` and `Display::to_string` panic if an underlying formatting
294   implementation returns an error][40117]. Previously the error was silently
295   ignored. It is incorrect for `write_fmt` to return an error when writing
296   to a string.
297 * [In-tree crates are verified to be unstable][39851]. Previously, some minor
298   crates were marked stable and could be accessed from the stable toolchain.
299 * [Rust git source no longer includes vendored crates][39728]. Those that need
300   to build with vendored crates should build from release tarballs.
301 * [Fix inert attributes from `proc_macro_derives`][39572]
302 * [During crate resolution, rustc prefers a crate in the sysroot if two crates
303   are otherwise identical][39518]. Unlikely to be encountered outside the Rust
304   build system.
305 * [Fixed bugs around how type inference interacts with dead-code][39485]. The
306   existing code generally ignores the type of dead-code unless a type-hint is
307   provided; this can cause surprising inference interactions particularly around
308   defaulting. The new code uniformly ignores the result type of dead-code.
309 * [Tuple-struct constructors with private fields are no longer visible][38932]
310 * [Lifetime parameters that do not appear in the arguments are now considered
311   early-bound][38897], resolving a soundness bug (#[32330]). The
312   `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
313   April of 2016.
314 * [rustdoc: fix doctests with non-feature crate attributes][38161]
315 * [Make transmuting from fn item types to pointer-sized types a hard
316   error][34198]
317
318 [27787]: https://github.com/rust-lang/rust/issues/27787
319 [32330]: https://github.com/rust-lang/rust/issues/32330
320 [34198]: https://github.com/rust-lang/rust/pull/34198
321 [38161]: https://github.com/rust-lang/rust/pull/38161
322 [38368]: https://github.com/rust-lang/rust/pull/38368
323 [38584]: https://github.com/rust-lang/rust/issues/38584
324 [38661]: https://github.com/rust-lang/rust/pull/38661
325 [38764]: https://github.com/rust-lang/rust/pull/38764
326 [38864]: https://github.com/rust-lang/rust/issues/38864
327 [38897]: https://github.com/rust-lang/rust/pull/38897
328 [38921]: https://github.com/rust-lang/rust/pull/38921
329 [38932]: https://github.com/rust-lang/rust/pull/38932
330 [38945]: https://github.com/rust-lang/rust/pull/38945
331 [38981]: https://github.com/rust-lang/rust/pull/38981
332 [39002]: https://github.com/rust-lang/rust/pull/39002
333 [39116]: https://github.com/rust-lang/rust/pull/39116
334 [39193]: https://github.com/rust-lang/rust/pull/39193
335 [39265]: https://github.com/rust-lang/rust/pull/39265
336 [39356]: https://github.com/rust-lang/rust/pull/39356
337 [39372]: https://github.com/rust-lang/rust/pull/39372
338 [39426]: https://github.com/rust-lang/rust/pull/39426
339 [39431]: https://github.com/rust-lang/rust/pull/39431
340 [39438]: https://github.com/rust-lang/rust/pull/39438
341 [39440]: https://github.com/rust-lang/rust/pull/39440
342 [39485]: https://github.com/rust-lang/rust/pull/39485
343 [39491]: https://github.com/rust-lang/rust/pull/39491
344 [39518]: https://github.com/rust-lang/rust/pull/39518
345 [39538]: https://github.com/rust-lang/rust/pull/39538
346 [39572]: https://github.com/rust-lang/rust/pull/39572
347 [39633]: https://github.com/rust-lang/rust/pull/39633
348 [39642]: https://github.com/rust-lang/rust/pull/39642
349 [39728]: https://github.com/rust-lang/rust/pull/39728
350 [39761]: https://github.com/rust-lang/rust/pull/39761
351 [39788]: https://github.com/rust-lang/rust/pull/39788
352 [39793]: https://github.com/rust-lang/rust/pull/39793
353 [39837]: https://github.com/rust-lang/rust/pull/39837
354 [39843]: https://github.com/rust-lang/rust/pull/39843
355 [39851]: https://github.com/rust-lang/rust/pull/39851
356 [39903]: https://github.com/rust-lang/rust/pull/39903
357 [39939]: https://github.com/rust-lang/rust/pull/39939
358 [39953]: https://github.com/rust-lang/rust/pull/39953
359 [39960]: https://github.com/rust-lang/rust/pull/39960
360 [39990]: https://github.com/rust-lang/rust/pull/39990
361 [39995]: https://github.com/rust-lang/rust/pull/39995
362 [40008]: https://github.com/rust-lang/rust/pull/40008
363 [40009]: https://github.com/rust-lang/rust/pull/40009
364 [40027]: https://github.com/rust-lang/rust/pull/40027
365 [40028]: https://github.com/rust-lang/rust/pull/40028
366 [40037]: https://github.com/rust-lang/rust/pull/40037
367 [40117]: https://github.com/rust-lang/rust/pull/40117
368 [40166]: https://github.com/rust-lang/rust/pull/40166
369 [40245]: https://github.com/rust-lang/rust/pull/40245
370 [40257]: https://github.com/rust-lang/rust/pull/40257
371 [40261]: https://github.com/rust-lang/rust/pull/40261
372 [40265]: https://github.com/rust-lang/rust/pull/40265
373 [40319]: https://github.com/rust-lang/rust/pull/40319
374 [40336]: https://github.com/rust-lang/rust/pull/40336
375 [40526]: https://github.com/rust-lang/rust/pull/40526
376 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
377 [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
378 [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
379 [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
380 [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
381 [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
382 [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
383 [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
384 [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
385 [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
386 [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
387 [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
388 [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
389 [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
390 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
391 [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
392 [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
393 [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
394 [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
395 [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
396 [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
397 [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
398 [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
399 [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
400 [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
401 [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
402 [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
403 [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
404 [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
405 [mdbook]: https://crates.io/crates/mdbook
406 [ubook]: https://doc.rust-lang.org/unstable-book/
407
408
409 Version 1.16.0 (2017-03-16)
410 ===========================
411
412 Language
413 --------
414
415 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
416 * [Uninhabitable enums (those without any variants) no longer permit wildcard
417   match patterns][38069]
418 * [Clean up semantics of `self` in an import list][38313]
419 * [`Self` may appear in `impl` headers][38920]
420 * [`Self` may appear in struct expressions][39282]
421
422 Compiler
423 --------
424
425 * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
426   a `.rmeta` file containing only crate metadata][38571]. This can be
427   used by tools like the Rust Language Service to perform
428   metadata-only builds.
429 * [Levenshtein based typo suggestions now work in most places, while
430   previously they worked only for fields and sometimes for local
431   variables][38927]. Together with the overhaul of "no
432   resolution"/"unexpected resolution" errors (#[38154]) they result in
433   large and systematic improvement in resolution diagnostics.
434 * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
435   `U`][38670]
436 * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
437 * [`rustc` no longer attempts to provide "consider using an explicit
438   lifetime" suggestions][37057]. They were inaccurate.
439
440 Stabilized APIs
441 ---------------
442
443 * [`VecDeque::truncate`]
444 * [`VecDeque::resize`]
445 * [`String::insert_str`]
446 * [`Duration::checked_add`]
447 * [`Duration::checked_sub`]
448 * [`Duration::checked_div`]
449 * [`Duration::checked_mul`]
450 * [`str::replacen`]
451 * [`str::repeat`]
452 * [`SocketAddr::is_ipv4`]
453 * [`SocketAddr::is_ipv6`]
454 * [`IpAddr::is_ipv4`]
455 * [`IpAddr::is_ipv6`]
456 * [`Vec::dedup_by`]
457 * [`Vec::dedup_by_key`]
458 * [`Result::unwrap_or_default`]
459 * [`<*const T>::wrapping_offset`]
460 * [`<*mut T>::wrapping_offset`]
461 * `CommandExt::creation_flags`
462 * [`File::set_permissions`]
463 * [`String::split_off`]
464
465 Libraries
466 ---------
467
468 * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
469   their argument by `Borrow` parameter][37761]
470 * [All public types in std implement `Debug`][38006]
471 * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
472 * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
473 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
474   Windows][38274]
475 * [std: Fix partial writes in `LineWriter`][38062]
476 * [std: Clamp max read/write sizes on Unix][38062]
477 * [Use more specific panic message for `&str` slicing errors][38066]
478 * [`TcpListener::set_only_v6` is deprecated][38304]. This
479   functionality cannot be achieved in std currently.
480 * [`writeln!`, like `println!`, now accepts a form with no string
481   or formatting arguments, to just print a newline][38469]
482 * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
483 * [Reduce the size of static data in `std_unicode::tables`][38781]
484 * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
485   `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
486   `Display`][38909]
487 * [`Duration` implements `Sum`][38712]
488 * [`String` implements `ToSocketAddrs`][39048]
489
490 Cargo
491 -----
492
493 * [The `cargo check` command does a type check of a project without
494   building it][cargo/3296]
495 * [crates.io will display CI badges from Travis and AppVeyor, if
496   specified in Cargo.toml][cargo/3546]
497 * [crates.io will display categories listed in Cargo.toml][cargo/3301]
498 * [Compilation profiles accept integer values for `debug`, in addition
499   to `true` and `false`. These are passed to `rustc` as the value to
500   `-C debuginfo`][cargo/3534]
501 * [Implement `cargo --version --verbose`][cargo/3604]
502 * [All builds now output 'dep-info' build dependencies compatible with
503   make and ninja][cargo/3557]
504 * [Build all workspace members with `build --all`][cargo/3511]
505 * [Document all workspace members with `doc --all`][cargo/3515]
506 * [Path deps outside workspace are not members][cargo/3443]
507
508 Misc
509 ----
510
511 * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
512   the path to the Rust implementation][38589]
513 * [The `armv7-linux-androideabi` target no longer enables NEON
514   extensions, per Google's ABI guide][38413]
515 * [The stock standard library can be compiled for Redox OS][38401]
516 * [Rust has initial SPARC support][38726]. Tier 3. No builds
517   available.
518 * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
519   builds available.
520 * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
521
522 Compatibility Notes
523 -------------------
524
525 * [Uninhabitable enums (those without any variants) no longer permit wildcard
526   match patterns][38069]
527 * In this release, references to uninhabited types can not be
528   pattern-matched. This was accidentally allowed in 1.15.
529 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
530 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
531   Windows][38274]
532 * [Clean up semantics of `self` in an import list][38313]
533
534 [37057]: https://github.com/rust-lang/rust/pull/37057
535 [37761]: https://github.com/rust-lang/rust/pull/37761
536 [38006]: https://github.com/rust-lang/rust/pull/38006
537 [38051]: https://github.com/rust-lang/rust/pull/38051
538 [38062]: https://github.com/rust-lang/rust/pull/38062
539 [38062]: https://github.com/rust-lang/rust/pull/38622
540 [38066]: https://github.com/rust-lang/rust/pull/38066
541 [38069]: https://github.com/rust-lang/rust/pull/38069
542 [38131]: https://github.com/rust-lang/rust/pull/38131
543 [38154]: https://github.com/rust-lang/rust/pull/38154
544 [38274]: https://github.com/rust-lang/rust/pull/38274
545 [38304]: https://github.com/rust-lang/rust/pull/38304
546 [38313]: https://github.com/rust-lang/rust/pull/38313
547 [38314]: https://github.com/rust-lang/rust/pull/38314
548 [38327]: https://github.com/rust-lang/rust/pull/38327
549 [38401]: https://github.com/rust-lang/rust/pull/38401
550 [38413]: https://github.com/rust-lang/rust/pull/38413
551 [38469]: https://github.com/rust-lang/rust/pull/38469
552 [38559]: https://github.com/rust-lang/rust/pull/38559
553 [38571]: https://github.com/rust-lang/rust/pull/38571
554 [38580]: https://github.com/rust-lang/rust/pull/38580
555 [38589]: https://github.com/rust-lang/rust/pull/38589
556 [38670]: https://github.com/rust-lang/rust/pull/38670
557 [38712]: https://github.com/rust-lang/rust/pull/38712
558 [38726]: https://github.com/rust-lang/rust/pull/38726
559 [38781]: https://github.com/rust-lang/rust/pull/38781
560 [38798]: https://github.com/rust-lang/rust/pull/38798
561 [38909]: https://github.com/rust-lang/rust/pull/38909
562 [38920]: https://github.com/rust-lang/rust/pull/38920
563 [38927]: https://github.com/rust-lang/rust/pull/38927
564 [39048]: https://github.com/rust-lang/rust/pull/39048
565 [39282]: https://github.com/rust-lang/rust/pull/39282
566 [39379]: https://github.com/rust-lang/rust/pull/39379
567 [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
568 [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
569 [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
570 [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
571 [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
572 [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
573 [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
574 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
575 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
576 [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
577 [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
578 [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
579 [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
580 [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
581 [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
582 [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
583 [`VecDeque::resize`]:  https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
584 [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
585 [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
586 [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
587 [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
588 [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
589 [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
590 [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
591 [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
592 [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
593 [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
594 [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
595 [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
596 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
597
598
599 Version 1.15.1 (2017-02-09)
600 ===========================
601
602 * [Fix IntoIter::as_mut_slice's signature][39466]
603 * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
604
605 [39466]: https://github.com/rust-lang/rust/pull/39466
606 [39523]: https://github.com/rust-lang/rust/pull/39523
607
608
609 Version 1.15.0 (2017-02-02)
610 ===========================
611
612 Language
613 --------
614
615 * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
616   stable. This allows popular code-generating crates like Serde and Diesel to
617   work ergonomically. [RFC 1681].
618 * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
619   with curly braces][36868]. Part of [RFC 1506].
620 * [A number of minor changes to name resolution have been activated][37127].
621   They add up to more consistent semantics, allowing for future evolution of
622   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
623   details of what is different. The breaking changes here have been transitioned
624   through the [`legacy_imports`] lint since 1.14, with no known regressions.
625 * [In `macro_rules`, `path` fragments can now be parsed as type parameter
626   bounds][38279]
627 * [`?Sized` can be used in `where` clauses][37791]
628 * [There is now a limit on the size of monomorphized types and it can be
629   modified with the `#![type_size_limit]` crate attribute, similarly to
630   the `#![recursion_limit]` attribute][37789]
631
632 Compiler
633 --------
634
635 * [On Windows, the compiler will apply dllimport attributes when linking to
636   extern functions][37973]. Additional attributes and flags can control which
637   library kind is linked and its name. [RFC 1717].
638 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
639 * [The `--test` flag works with procedural macro crates][38107]
640 * [Fix `extern "aapcs" fn` ABI][37814]
641 * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
642 * [The `format!` expander recognizes incorrect `printf` and shell-style
643   formatting directives and suggests the correct format][37613].
644 * [Only report one error for all unused imports in an import list][37456]
645
646 Compiler Performance
647 --------------------
648
649 * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
650 * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
651 * [Don't clone in `UnificationTable::probe`][37848]
652 * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
653 * [Use small vectors in type walker][37760]
654 * [Macro expansion performance was improved][37701]
655 * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
656 * [Replace FNV with a faster hash function][37229]
657
658 Stabilized APIs
659 ---------------
660
661 * [`std::iter::Iterator::min_by`]
662 * [`std::iter::Iterator::max_by`]
663 * [`std::os::*::fs::FileExt`]
664 * [`std::sync::atomic::Atomic*::get_mut`]
665 * [`std::sync::atomic::Atomic*::into_inner`]
666 * [`std::vec::IntoIter::as_slice`]
667 * [`std::vec::IntoIter::as_mut_slice`]
668 * [`std::sync::mpsc::Receiver::try_iter`]
669 * [`std::os::unix::process::CommandExt::before_exec`]
670 * [`std::rc::Rc::strong_count`]
671 * [`std::rc::Rc::weak_count`]
672 * [`std::sync::Arc::strong_count`]
673 * [`std::sync::Arc::weak_count`]
674 * [`std::char::encode_utf8`]
675 * [`std::char::encode_utf16`]
676 * [`std::cell::Ref::clone`]
677 * [`std::io::Take::into_inner`]
678
679 Libraries
680 ---------
681
682 * [The standard sorting algorithm has been rewritten for dramatic performance
683   improvements][38192]. It is a hybrid merge sort, drawing influences from
684   Timsort. Previously it was a naive merge sort.
685 * [`Iterator::nth` no longer has a `Sized` bound][38134]
686 * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
687   performance.
688 * [`chars().count()` is much faster][37888] and so are [`chars().last()`
689   and `char_indices().last()`][37882]
690 * [Fix ARM Objective-C ABI in `std::env::args`][38146]
691 * [Chinese characters display correctly in `fmt::Debug`][37855]
692 * [Derive `Default` for `Duration`][37699]
693 * [Support creation of anonymous pipes on WinXP/2k][37677]
694 * [`mpsc::RecvTimeoutError` implements `Error`][37527]
695 * [Don't pass overlapped handles to processes][38835]
696
697 Cargo
698 -----
699
700 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
701   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
702   should instead check the variable at runtime with `std::env`. That the value
703   was set at build time was a bug, and incorrect when cross-compiling. This
704   change is known to cause breakage.
705 * [Add `--all` flag to `cargo test`][cargo/3221]
706 * [Compile statically against the MSVC CRT][cargo/3363]
707 * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
708 * [Link OpenSSL statically on OSX][cargo/3311]
709 * [Apply new fingerprinting to build dir outputs][cargo/3310]
710 * [Test for bad path overrides with summaries][cargo/3336]
711 * [Require `cargo install --vers` to take a semver version][cargo/3338]
712 * [Fix retrying crate downloads for network errors][cargo/3348]
713 * [Implement string lookup for `build.rustflags` config key][cargo/3356]
714 * [Emit more info on --message-format=json][cargo/3319]
715 * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
716 * [Don't ignore errors in workspace manifest][cargo/3409]
717 * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
718
719 Tooling
720 -------
721
722 * [Test runners (binaries built with `--test`) now support a `--list` argument
723   that lists the tests it contains][38185]
724 * [Test runners now support a `--exact` argument that makes the test filter
725   match exactly, instead of matching only a substring of the test name][38181]
726 * [rustdoc supports a `--playground-url` flag][37763]
727 * [rustdoc provides more details about `#[should_panic]` errors][37749]
728
729 Misc
730 ----
731
732 * [The Rust build system is now written in Rust][37817]. The Makefiles may
733   continue to be used in this release by passing `--disable-rustbuild` to the
734   configure script, but they will be deleted soon. Note that the new build
735   system uses a different on-disk layout that will likely affect any scripts
736   building Rust.
737 * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
738   releases.
739 * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
740 * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
741   releases.
742
743 Compatibility Notes
744 -------------------
745
746 * [A number of minor changes to name resolution have been activated][37127].
747   They add up to more consistent semantics, allowing for future evolution of
748   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
749   details of what is different. The breaking changes here have been transitioned
750   through the [`legacy_imports`] lint since 1.14, with no known regressions.
751 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
752   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
753   should instead check the variable at runtime with `std::env`. That the value
754   was set at build time was a bug, and incorrect when cross-compiling. This
755   change is known to cause breakage.
756 * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
757   types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
758   1.10 and is now an error by default. It will become a hard error in the near
759   future.
760 * [The semantics relating modules to file system directories are changing in
761   minor ways][37602]. This is captured in the new `legacy_directory_ownership`
762   lint, which is a warning in this release, and will become a hard error in the
763   future.
764 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
765 * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
766   the underlying iterator][37834]
767
768 ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
769 [33685]: https://github.com/rust-lang/rust/issues/33685
770 [36868]: https://github.com/rust-lang/rust/pull/36868
771 [37127]: https://github.com/rust-lang/rust/pull/37127
772 [37229]: https://github.com/rust-lang/rust/pull/37229
773 [37456]: https://github.com/rust-lang/rust/pull/37456
774 [37527]: https://github.com/rust-lang/rust/pull/37527
775 [37602]: https://github.com/rust-lang/rust/pull/37602
776 [37613]: https://github.com/rust-lang/rust/pull/37613
777 [37615]: https://github.com/rust-lang/rust/pull/37615
778 [37636]: https://github.com/rust-lang/rust/pull/37636
779 [37627]: https://github.com/rust-lang/rust/pull/37627
780 [37642]: https://github.com/rust-lang/rust/pull/37642
781 [37677]: https://github.com/rust-lang/rust/pull/37677
782 [37699]: https://github.com/rust-lang/rust/pull/37699
783 [37701]: https://github.com/rust-lang/rust/pull/37701
784 [37705]: https://github.com/rust-lang/rust/pull/37705
785 [37749]: https://github.com/rust-lang/rust/pull/37749
786 [37760]: https://github.com/rust-lang/rust/pull/37760
787 [37763]: https://github.com/rust-lang/rust/pull/37763
788 [37764]: https://github.com/rust-lang/rust/pull/37764
789 [37789]: https://github.com/rust-lang/rust/pull/37789
790 [37791]: https://github.com/rust-lang/rust/pull/37791
791 [37814]: https://github.com/rust-lang/rust/pull/37814
792 [37817]: https://github.com/rust-lang/rust/pull/37817
793 [37834]: https://github.com/rust-lang/rust/pull/37834
794 [37848]: https://github.com/rust-lang/rust/pull/37848
795 [37855]: https://github.com/rust-lang/rust/pull/37855
796 [37882]: https://github.com/rust-lang/rust/pull/37882
797 [37888]: https://github.com/rust-lang/rust/pull/37888
798 [37973]: https://github.com/rust-lang/rust/pull/37973
799 [37979]: https://github.com/rust-lang/rust/pull/37979
800 [38086]: https://github.com/rust-lang/rust/pull/38086
801 [38107]: https://github.com/rust-lang/rust/pull/38107
802 [38117]: https://github.com/rust-lang/rust/pull/38117
803 [38134]: https://github.com/rust-lang/rust/pull/38134
804 [38146]: https://github.com/rust-lang/rust/pull/38146
805 [38181]: https://github.com/rust-lang/rust/pull/38181
806 [38182]: https://github.com/rust-lang/rust/pull/38182
807 [38185]: https://github.com/rust-lang/rust/pull/38185
808 [38192]: https://github.com/rust-lang/rust/pull/38192
809 [38279]: https://github.com/rust-lang/rust/pull/38279
810 [38835]: https://github.com/rust-lang/rust/pull/38835
811 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
812 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
813 [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
814 [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
815 [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
816 [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
817 [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
818 [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
819 [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
820 [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
821 [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
822 [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
823 [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
824 [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
825 [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
826 [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
827 [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
828 [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
829 [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
830 [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
831 [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
832 [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
833 [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
834 [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
835 [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
836 [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
837 [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
838 [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
839 [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
840 [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
841 [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
842 [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
843 [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
844 [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
845 [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
846 [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
847 [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
848 [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
849
850
851 Version 1.14.0 (2016-12-22)
852 ===========================
853
854 Language
855 --------
856
857 * [`..` matches multiple tuple fields in enum variants, structs
858   and tuples][36843]. [RFC 1492].
859 * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
860 * [`use *` and `use ::*` both glob-import from the crate root][37367]
861 * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
862   dereferencing][36822]
863
864 Compiler
865 --------
866
867 * [Mark enums with non-zero discriminant as non-zero][37224]
868 * [Lower-case `static mut` names are linted like other
869   statics and consts][37162]
870 * [Fix ICE on some macros in const integer positions
871    (e.g. `[u8; m!()]`)][36819]
872 * [Improve error message and snippet for "did you mean `x`"][36798]
873 * [Add a panic-strategy field to the target specification][36794]
874 * [Include LLVM version in `--version --verbose`][37200]
875
876 Compile-time Optimizations
877 --------------------------
878
879 * [Improve macro expansion performance][37569]
880 * [Shrink `Expr_::ExprInlineAsm`][37445]
881 * [Replace all uses of SHA-256 with BLAKE2b][37439]
882 * [Reduce the number of bytes hashed by `IchHasher`][37427]
883 * [Avoid more allocations when compiling html5ever][37373]
884 * [Use `SmallVector` in `CombineFields::instantiate`][37322]
885 * [Avoid some allocations in the macro parser][37318]
886 * [Use a faster deflate setting][37298]
887 * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
888   during interning of slices][37270]
889 * [Optimize `write_metadata`][37267]
890 * [Don't process obligation forest cycles when stalled][37231]
891 * [Avoid many `CrateConfig` clones][37161]
892 * [Optimize `Substs::super_fold_with`][37108]
893 * [Optimize `ObligationForest`'s `NodeState` handling][36993]
894 * [Speed up `plug_leaks`][36917]
895
896 Libraries
897 ---------
898
899 * [`println!()`, with no arguments, prints newline][36825].
900   Previously, an empty string was required to achieve the same.
901 * [`Wrapping` impls standard binary and unary operators, as well as
902    the `Sum` and `Product` iterators][37356]
903 * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
904   Vec<T>`][37326]
905 * [Improve `fold` performance for `chain`, `cloned`, `map`, and
906   `VecDeque` iterators][37315]
907 * [Improve `SipHasher` performance on small values][37312]
908 * [Add Iterator trait TrustedLen to enable better FromIterator /
909   Extend][37306]
910 * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
911 * [`ReadDir` implements `Debug`][37221]
912 * [Implement `RefUnwindSafe` for atomic types][37178]
913 * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
914 * [Avoid allocations in `Decoder::read_str`][37064]
915 * [`io::Error` implements `From<io::ErrorKind>`][37037]
916 * [Impl `Debug` for raw pointers to unsized data][36880]
917 * [Don't reuse `HashMap` random seeds][37470]
918 * [The internal memory layout of `HashMap` is more cache-friendly, for
919   significant improvements in some operations][36692]
920 * [`HashMap` uses less memory on 32-bit architectures][36595]
921 * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
922
923 Cargo
924 -----
925
926 * [Expose rustc cfg values to build scripts][cargo/3243]
927 * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
928 * [Fix passing --features when testing multiple packages][cargo/3280]
929 * [Use a single profile set per workspace][cargo/3249]
930 * [Load `replace` sections from lock files][cargo/3220]
931 * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
932
933 Tooling
934 -------
935
936 * [rustup is the recommended Rust installation method][1.14rustup]
937 * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
938   S390x. These are [tier 2] platforms and may have major defects. Follow the
939   instructions on the website to install, or add the targets to an existing
940   installation with `rustup target add`. The new target triples are:
941   - `mips-unknown-linux-gnu`
942   - `mipsel-unknown-linux-gnu`
943   - `mips64-unknown-linux-gnuabi64`
944   - `mips64el-unknown-linux-gnuabi64 `
945   - `powerpc-unknown-linux-gnu`
946   - `powerpc64-unknown-linux-gnu`
947   - `powerpc64le-unknown-linux-gnu`
948   - `s390x-unknown-linux-gnu `
949 * This release includes target (std) builds for ARM Linux running MUSL
950   libc. These are [tier 2] platforms and may have major defects. Add the
951   following triples to an existing rustup installation with `rustup target add`:
952   - `arm-unknown-linux-musleabi`
953   - `arm-unknown-linux-musleabihf`
954   - `armv7-unknown-linux-musleabihf`
955 * This release includes [experimental support for WebAssembly][1.14wasm], via
956   the `wasm32-unknown-emscripten` target. This target is known to have major
957   defects. Please test, report, and fix.
958 * rustup no longer installs documentation by default. Run `rustup
959   component add rust-docs` to install.
960 * [Fix line stepping in debugger][37310]
961 * [Enable line number debuginfo in releases][37280]
962
963 Misc
964 ----
965
966 * [Disable jemalloc on aarch64/powerpc/mips][37392]
967 * [Add support for Fuchsia OS][37313]
968 * [Detect local-rebuild by only MAJOR.MINOR version][37273]
969
970 Compatibility Notes
971 -------------------
972
973 * [A number of forward-compatibility lints used by the compiler
974   to gradually introduce language changes have been converted
975   to deny by default][36894]:
976   - ["use of inaccessible extern crate erroneously allowed"][36886]
977   - ["type parameter default erroneously allowed in invalid location"][36887]
978   - ["detects super or self keywords at the beginning of global path"][36888]
979   - ["two overlapping inherent impls define an item with the same name
980     were erroneously allowed"][36889]
981   - ["floating-point constants cannot be used in patterns"][36890]
982   - ["constants of struct or enum type can only be used in a pattern if
983      the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
984   - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
985 * [Prohibit patterns in trait methods without bodies][37378]
986 * [The atomic `Ordering` enum may not be matched exhaustively][37351]
987 * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
988 * [The `$crate` macro variable is accepted in fewer locations][37213]
989 * [Impls specifying extra region requirements beyond the trait
990   they implement are rejected][37167]
991 * [Enums may not be unsized][37111]. Unsized enums are intended to
992   work but never have. For now they are forbidden.
993 * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
994
995 [tier 2]: https://forge.rust-lang.org/platform-support.html
996 [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
997 [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
998 [36430]: https://github.com/rust-lang/rust/pull/36430
999 [36595]: https://github.com/rust-lang/rust/pull/36595
1000 [36595]: https://github.com/rust-lang/rust/pull/36595
1001 [36692]: https://github.com/rust-lang/rust/pull/36692
1002 [36767]: https://github.com/rust-lang/rust/pull/36767
1003 [36794]: https://github.com/rust-lang/rust/pull/36794
1004 [36798]: https://github.com/rust-lang/rust/pull/36798
1005 [36819]: https://github.com/rust-lang/rust/pull/36819
1006 [36822]: https://github.com/rust-lang/rust/pull/36822
1007 [36825]: https://github.com/rust-lang/rust/pull/36825
1008 [36843]: https://github.com/rust-lang/rust/pull/36843
1009 [36880]: https://github.com/rust-lang/rust/pull/36880
1010 [36886]: https://github.com/rust-lang/rust/issues/36886
1011 [36887]: https://github.com/rust-lang/rust/issues/36887
1012 [36888]: https://github.com/rust-lang/rust/issues/36888
1013 [36889]: https://github.com/rust-lang/rust/issues/36889
1014 [36890]: https://github.com/rust-lang/rust/issues/36890
1015 [36891]: https://github.com/rust-lang/rust/issues/36891
1016 [36892]: https://github.com/rust-lang/rust/issues/36892
1017 [36894]: https://github.com/rust-lang/rust/pull/36894
1018 [36917]: https://github.com/rust-lang/rust/pull/36917
1019 [36993]: https://github.com/rust-lang/rust/pull/36993
1020 [37037]: https://github.com/rust-lang/rust/pull/37037
1021 [37064]: https://github.com/rust-lang/rust/pull/37064
1022 [37094]: https://github.com/rust-lang/rust/pull/37094
1023 [37108]: https://github.com/rust-lang/rust/pull/37108
1024 [37111]: https://github.com/rust-lang/rust/pull/37111
1025 [37161]: https://github.com/rust-lang/rust/pull/37161
1026 [37162]: https://github.com/rust-lang/rust/pull/37162
1027 [37167]: https://github.com/rust-lang/rust/pull/37167
1028 [37178]: https://github.com/rust-lang/rust/pull/37178
1029 [37200]: https://github.com/rust-lang/rust/pull/37200
1030 [37213]: https://github.com/rust-lang/rust/pull/37213
1031 [37221]: https://github.com/rust-lang/rust/pull/37221
1032 [37224]: https://github.com/rust-lang/rust/pull/37224
1033 [37230]: https://github.com/rust-lang/rust/pull/37230
1034 [37231]: https://github.com/rust-lang/rust/pull/37231
1035 [37247]: https://github.com/rust-lang/rust/pull/37247
1036 [37267]: https://github.com/rust-lang/rust/pull/37267
1037 [37270]: https://github.com/rust-lang/rust/pull/37270
1038 [37273]: https://github.com/rust-lang/rust/pull/37273
1039 [37280]: https://github.com/rust-lang/rust/pull/37280
1040 [37298]: https://github.com/rust-lang/rust/pull/37298
1041 [37306]: https://github.com/rust-lang/rust/pull/37306
1042 [37310]: https://github.com/rust-lang/rust/pull/37310
1043 [37312]: https://github.com/rust-lang/rust/pull/37312
1044 [37313]: https://github.com/rust-lang/rust/pull/37313
1045 [37315]: https://github.com/rust-lang/rust/pull/37315
1046 [37318]: https://github.com/rust-lang/rust/pull/37318
1047 [37322]: https://github.com/rust-lang/rust/pull/37322
1048 [37326]: https://github.com/rust-lang/rust/pull/37326
1049 [37351]: https://github.com/rust-lang/rust/pull/37351
1050 [37356]: https://github.com/rust-lang/rust/pull/37356
1051 [37367]: https://github.com/rust-lang/rust/pull/37367
1052 [37373]: https://github.com/rust-lang/rust/pull/37373
1053 [37378]: https://github.com/rust-lang/rust/pull/37378
1054 [37389]: https://github.com/rust-lang/rust/pull/37389
1055 [37392]: https://github.com/rust-lang/rust/pull/37392
1056 [37427]: https://github.com/rust-lang/rust/pull/37427
1057 [37439]: https://github.com/rust-lang/rust/pull/37439
1058 [37445]: https://github.com/rust-lang/rust/pull/37445
1059 [37470]: https://github.com/rust-lang/rust/pull/37470
1060 [37569]: https://github.com/rust-lang/rust/pull/37569
1061 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
1062 [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
1063 [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
1064 [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
1065 [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
1066 [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
1067 [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
1068
1069
1070 Version 1.13.0 (2016-11-10)
1071 ===========================
1072
1073 Language
1074 --------
1075
1076 * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
1077   errors, like the `try!` macro, described in [RFC 0243].
1078 * [Stabilize macros in type position][36014]. Described in [RFC 873].
1079 * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
1080 * [Fix `#[derive]` for empty tuple structs/variants][35728]
1081 * [Fix lifetime rules for 'if' conditions][36029]
1082 * [Avoid loading and parsing unconfigured non-inline modules][36482]
1083
1084 Compiler
1085 --------
1086
1087 * [Add the `-C link-arg` argument][36574]
1088 * [Remove the old AST-based backend from rustc_trans][35764]
1089 * [Don't enable NEON by default on armv7 Linux][35814]
1090 * [Fix debug line number info for macro expansions][35238]
1091 * [Do not emit "class method" debuginfo for types that are not
1092   DICompositeType][36008]
1093 * [Warn about multiple conflicting #[repr] hints][34623]
1094 * [When sizing DST, don't double-count nested struct prefixes][36351]
1095 * [Default RUST_MIN_STACK to 16MiB for now][36505]
1096 * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
1097 * [Reject macros with empty repetitions to avoid infinite loop][36721]
1098 * [Expand macros without recursing to avoid stack overflows][36214]
1099
1100 Diagnostics
1101 -----------
1102
1103 * [Replace macro backtraces with labeled local uses][35702]
1104 * [Improve error message for missplaced doc comments][33922]
1105 * [Buffer unix and lock windows to prevent message interleaving][35975]
1106 * [Update lifetime errors to specifically note temporaries][36171]
1107 * [Special case a few colors for Windows][36178]
1108 * [Suggest `use self` when such an import resolves][36289]
1109 * [Be more specific when type parameter shadows primitive type][36338]
1110 * Many minor improvements
1111
1112 Compile-time Optimizations
1113 --------------------------
1114
1115 * [Compute and cache HIR hashes at beginning][35854]
1116 * [Don't hash types in loan paths][36004]
1117 * [Cache projections in trans][35761]
1118 * [Optimize the parser's last token handling][36527]
1119 * [Only instantiate #[inline] functions in codegen units referencing
1120   them][36524]. This leads to big improvements in cases where crates export
1121   define many inline functions without using them directly.
1122 * [Lazily allocate TypedArena's first chunk][36592]
1123 * [Don't allocate during default HashSet creation][36734]
1124
1125 Stabilized APIs
1126 ---------------
1127
1128 * [`checked_abs`]
1129 * [`wrapping_abs`]
1130 * [`overflowing_abs`]
1131 * [`RefCell::try_borrow`]
1132 * [`RefCell::try_borrow_mut`]
1133
1134 Libraries
1135 ---------
1136
1137 * [Add `assert_ne!` and `debug_assert_ne!`][35074]
1138 * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
1139   covariant][35354]
1140 * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
1141 * [Implement `Debug` for `std::vec::IntoIter`][35707]
1142 * [`CString`: avoid excessive growth just to 0-terminate][35871]
1143 * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
1144 * [Use arc4rand on FreeBSD][35884]
1145 * [memrchr: Correct aligned offset computation][35969]
1146 * [Improve Demangling of Rust Symbols][36059]
1147 * [Use monotonic time in condition variables][35048]
1148 * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
1149 * [Implement conversion traits for `char`][35755]
1150 * [Fix illegal instruction caused by overflow in channel cloning][36104]
1151 * [Zero first byte of CString on drop][36264]
1152 * [Inherit overflow checks for sum and product][36372]
1153 * [Add missing Eq implementations][36423]
1154 * [Implement `Debug` for `DirEntry`][36631]
1155 * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
1156   `errno`][36754]
1157 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
1158 * [Implement more traits for `std::io::ErrorKind`][35911]
1159 * [Optimize BinaryHeap bounds checking][36072]
1160 * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
1161   `extend_with_element`][36355]
1162 * [Fix overflow checking in unsigned pow()][34942]
1163
1164 Cargo
1165 -----
1166
1167 * This release includes security fixes to both curl and OpenSSL.
1168 * [Fix transitive doctests when panic=abort][cargo/3021]
1169 * [Add --all-features flag to cargo][cargo/3038]
1170 * [Reject path-based dependencies in `cargo package`][cargo/3060]
1171 * [Don't parse the home directory more than once][cargo/3078]
1172 * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
1173 * [Update OpenSSL to 1.0.2j][cargo/3121]
1174 * [Add license and license_file to cargo metadata output][cargo/3110]
1175 * [Make crates-io registry URL optional in config; ignore all changes to
1176   source.crates-io][cargo/3089]
1177 * [Don't download dependencies from other platforms][cargo/3123]
1178 * [Build transitive dev-dependencies when needed][cargo/3125]
1179 * [Add support for per-target rustflags in .cargo/config][cargo/3157]
1180 * [Avoid updating registry when adding existing deps][cargo/3144]
1181 * [Warn about path overrides that won't work][cargo/3136]
1182 * [Use workspaces during `cargo install`][cargo/3146]
1183 * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
1184 * [Add --message-format flag][cargo/3000]
1185 * [Pass target environment for rustdoc][cargo/3205]
1186 * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
1187 * [Update curl and curl-sys][cargo/3241]
1188 * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
1189
1190 Tooling
1191 -------
1192
1193 * [rustdoc: Add the `--sysroot` argument][36586]
1194 * [rustdoc: Fix a couple of issues with the search results][35655]
1195 * [rustdoc: remove the `!` from macro URLs and titles][35234]
1196 * [gdb: Fix pretty-printing special-cased Rust types][35585]
1197 * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
1198
1199 Misc
1200 ----
1201
1202 * [Remove unmaintained style guide][35124]
1203 * [Add s390x support][36369]
1204 * [Initial work at Haiku OS support][36727]
1205 * [Add mips-uclibc targets][35734]
1206 * [Crate-ify compiler-rt into compiler-builtins][35021]
1207 * [Add rustc version info (git hash + date) to dist tarball][36213]
1208 * Many documentation improvements
1209
1210 Compatibility Notes
1211 -------------------
1212
1213 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
1214 * [Deny (by default) transmuting from fn item types to pointer-sized
1215   types][34923]. Continuing the long transition to zero-sized fn items,
1216   per [RFC 401].
1217 * [Fix `#[derive]` for empty tuple structs/variants][35728].
1218   Part of [RFC 1506].
1219 * [Issue deprecation warnings for safe accesses to extern statics][36173]
1220 * [Fix lifetime rules for 'if' conditions][36029].
1221 * [Inherit overflow checks for sum and product][36372].
1222 * [Forbid user-defined macros named "macro_rules"][36730].
1223
1224 [33922]: https://github.com/rust-lang/rust/pull/33922
1225 [34623]: https://github.com/rust-lang/rust/pull/34623
1226 [34923]: https://github.com/rust-lang/rust/pull/34923
1227 [34942]: https://github.com/rust-lang/rust/pull/34942
1228 [34982]: https://github.com/rust-lang/rust/pull/34982
1229 [35021]: https://github.com/rust-lang/rust/pull/35021
1230 [35048]: https://github.com/rust-lang/rust/pull/35048
1231 [35074]: https://github.com/rust-lang/rust/pull/35074
1232 [35124]: https://github.com/rust-lang/rust/pull/35124
1233 [35234]: https://github.com/rust-lang/rust/pull/35234
1234 [35238]: https://github.com/rust-lang/rust/pull/35238
1235 [35354]: https://github.com/rust-lang/rust/pull/35354
1236 [35559]: https://github.com/rust-lang/rust/pull/35559
1237 [35585]: https://github.com/rust-lang/rust/pull/35585
1238 [35627]: https://github.com/rust-lang/rust/pull/35627
1239 [35655]: https://github.com/rust-lang/rust/pull/35655
1240 [35702]: https://github.com/rust-lang/rust/pull/35702
1241 [35707]: https://github.com/rust-lang/rust/pull/35707
1242 [35728]: https://github.com/rust-lang/rust/pull/35728
1243 [35734]: https://github.com/rust-lang/rust/pull/35734
1244 [35755]: https://github.com/rust-lang/rust/pull/35755
1245 [35761]: https://github.com/rust-lang/rust/pull/35761
1246 [35764]: https://github.com/rust-lang/rust/pull/35764
1247 [35814]: https://github.com/rust-lang/rust/pull/35814
1248 [35854]: https://github.com/rust-lang/rust/pull/35854
1249 [35871]: https://github.com/rust-lang/rust/pull/35871
1250 [35884]: https://github.com/rust-lang/rust/pull/35884
1251 [35911]: https://github.com/rust-lang/rust/pull/35911
1252 [35969]: https://github.com/rust-lang/rust/pull/35969
1253 [35975]: https://github.com/rust-lang/rust/pull/35975
1254 [36004]: https://github.com/rust-lang/rust/pull/36004
1255 [36008]: https://github.com/rust-lang/rust/pull/36008
1256 [36014]: https://github.com/rust-lang/rust/pull/36014
1257 [36029]: https://github.com/rust-lang/rust/pull/36029
1258 [36059]: https://github.com/rust-lang/rust/pull/36059
1259 [36072]: https://github.com/rust-lang/rust/pull/36072
1260 [36101]: https://github.com/rust-lang/rust/pull/36101
1261 [36104]: https://github.com/rust-lang/rust/pull/36104
1262 [36171]: https://github.com/rust-lang/rust/pull/36171
1263 [36173]: https://github.com/rust-lang/rust/pull/36173
1264 [36178]: https://github.com/rust-lang/rust/pull/36178
1265 [36213]: https://github.com/rust-lang/rust/pull/36213
1266 [36214]: https://github.com/rust-lang/rust/pull/36214
1267 [36264]: https://github.com/rust-lang/rust/pull/36264
1268 [36266]: https://github.com/rust-lang/rust/pull/36266
1269 [36289]: https://github.com/rust-lang/rust/pull/36289
1270 [36338]: https://github.com/rust-lang/rust/pull/36338
1271 [36351]: https://github.com/rust-lang/rust/pull/36351
1272 [36355]: https://github.com/rust-lang/rust/pull/36355
1273 [36369]: https://github.com/rust-lang/rust/pull/36369
1274 [36372]: https://github.com/rust-lang/rust/pull/36372
1275 [36423]: https://github.com/rust-lang/rust/pull/36423
1276 [36482]: https://github.com/rust-lang/rust/pull/36482
1277 [36505]: https://github.com/rust-lang/rust/pull/36505
1278 [36524]: https://github.com/rust-lang/rust/pull/36524
1279 [36527]: https://github.com/rust-lang/rust/pull/36527
1280 [36551]: https://github.com/rust-lang/rust/pull/36551
1281 [36574]: https://github.com/rust-lang/rust/pull/36574
1282 [36586]: https://github.com/rust-lang/rust/pull/36586
1283 [36592]: https://github.com/rust-lang/rust/pull/36592
1284 [36631]: https://github.com/rust-lang/rust/pull/36631
1285 [36639]: https://github.com/rust-lang/rust/pull/36639
1286 [36721]: https://github.com/rust-lang/rust/pull/36721
1287 [36727]: https://github.com/rust-lang/rust/pull/36727
1288 [36730]: https://github.com/rust-lang/rust/pull/36730
1289 [36734]: https://github.com/rust-lang/rust/pull/36734
1290 [36754]: https://github.com/rust-lang/rust/pull/36754
1291 [36995]: https://github.com/rust-lang/rust/pull/36995
1292 [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
1293 [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
1294 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
1295 [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
1296 [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
1297 [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
1298 [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
1299 [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
1300 [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
1301 [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
1302 [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
1303 [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
1304 [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
1305 [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
1306 [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
1307 [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
1308 [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
1309 [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
1310 [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
1311 [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
1312 [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
1313 [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
1314 [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
1315 [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
1316 [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
1317 [rustup]: https://www.rustup.rs
1318 [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
1319 [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
1320 [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
1321 [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
1322 [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
1323 [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
1324 [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
1325
1326
1327 Version 1.12.1 (2016-10-20)
1328 ===========================
1329
1330 Regression Fixes
1331 ----------------
1332
1333 * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
1334 * [Confusion with double negation and booleans][36856]
1335 * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
1336 * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
1337 * [1.12.0: High memory usage when linking in release mode with debug info][36926]
1338 * [Corrupted memory after updated to 1.12][36936]
1339 * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
1340 * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
1341 * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
1342
1343 [36381]: https://github.com/rust-lang/rust/issues/36381
1344 [36856]: https://github.com/rust-lang/rust/issues/36856
1345 [36875]: https://github.com/rust-lang/rust/issues/36875
1346 [36924]: https://github.com/rust-lang/rust/issues/36924
1347 [36926]: https://github.com/rust-lang/rust/issues/36926
1348 [36936]: https://github.com/rust-lang/rust/issues/36936
1349 [37026]: https://github.com/rust-lang/rust/issues/37026
1350 [37112]: https://github.com/rust-lang/rust/issues/37112
1351 [37153]: https://github.com/rust-lang/rust/issues/37153
1352
1353
1354 Version 1.12.0 (2016-09-29)
1355 ===========================
1356
1357 Highlights
1358 ----------
1359
1360 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
1361   This translation pass is far simpler than the previous AST->LLVM pass, and
1362   creates opportunities to perform new optimizations directly on the MIR. It
1363   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
1364 * [`rustc` presents a new, more readable error format, along with
1365   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
1366   Most common editors supporting Rust have been updated to work with it. It was
1367   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
1368
1369 Compiler
1370 --------
1371
1372 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
1373   This translation pass is far simpler than the previous AST->LLVM pass, and
1374   creates opportunities to perform new optimizations directly on the MIR. It
1375   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
1376 * [Print the Rust target name, not the LLVM target name, with
1377   `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
1378 * [The computation of `TypeId` is correct in some cases where it was previously
1379   producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
1380 * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
1381 * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
1382   `--print relocation-models`, and `--print code-models` print the available
1383   options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
1384   `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
1385 * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
1386   `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
1387   These targets produce statically-linked binaries. There are no binary release
1388   builds yet though.
1389
1390 Diagnostics
1391 -----------
1392
1393 * [`rustc` presents a new, more readable error format, along with
1394   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
1395   Most common editors supporting Rust have been updated to work with it. It was
1396   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
1397 * [In error descriptions, references are now described in plain English,
1398   instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
1399 * [In error type descriptions, unknown numeric types are named `{integer}` or
1400   `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
1401 * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
1402
1403 Language
1404 --------
1405
1406 * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
1407 * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
1408 * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
1409   useful](https://github.com/rust-lang/rust/pull/34908)
1410 * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
1411   inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
1412 * [Semicolons are properly required as statement delimeters inside
1413   `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
1414 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
1415
1416 Stabilized APIs
1417 ---------------
1418
1419 * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
1420 * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
1421 * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
1422 * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
1423 * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
1424 * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
1425 * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
1426 * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
1427 * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
1428 * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
1429   Both on Unix and Windows.
1430 * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
1431 * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
1432 * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
1433 * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
1434 * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
1435 * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
1436 * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
1437 * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
1438
1439 Libraries
1440 ---------
1441
1442 * [The `format!` macro and friends now allow a single argument to be formatted
1443   in multiple styles](https://github.com/rust-lang/rust/pull/33642)
1444 * [The lifetime bounds on `[T]::binary_search_by` and
1445   `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
1446 * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
1447 * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
1448 * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
1449 * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
1450 * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
1451 * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
1452 * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
1453 * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
1454   implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
1455 * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
1456   implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
1457 * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
1458 * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
1459   `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
1460 * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
1461 * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
1462 * [`mpsc::sync_channel` `Receiver`s return any available message before
1463   reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
1464 * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
1465 * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
1466
1467 Cargo
1468 -----
1469
1470 * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
1471 * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
1472 * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
1473 * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
1474 * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
1475 * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
1476 * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
1477 * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
1478 * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
1479 * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
1480 * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
1481 * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
1482 * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
1483 * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
1484 * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
1485 * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
1486
1487 Performance
1488 -----------
1489
1490 * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
1491 * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
1492
1493 Tooling
1494 -------
1495
1496 * [Test binaries now support a `--test-threads` argument to specify the number
1497   of threads used to run tests, and which acts the same as the
1498   `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)  
1499 * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
1500 * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
1501 * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
1502 * [Rust releases now come with source packages that can be installed by rustup
1503   via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
1504   The resulting source code can be used by tools and IDES, located in the
1505   sysroot under `lib/rustlib/src`.
1506
1507 Misc
1508 ----
1509
1510 * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
1511 * Many minor improvements to the documentation.
1512 * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
1513
1514 Compatibility Notes
1515 -------------------
1516
1517 * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
1518   with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
1519 * [When formatting strings, if "precision" is specified, the "fill",
1520   "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
1521 * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
1522
1523
1524 Version 1.11.0 (2016-08-18)
1525 ===========================
1526
1527 Language
1528 --------
1529
1530 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
1531 * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
1532 * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
1533 * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
1534 * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
1535
1536 Stabilized APIs
1537 ---------------
1538
1539 * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
1540 * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
1541 * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
1542 * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
1543 * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
1544 * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
1545   (in libcore - previously stabilized in libstd)
1546 * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
1547   (in libcore - previously stabilized in libstd)
1548 * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
1549   (in libcore - previously stabilized in libstd)
1550 * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
1551   (in libcore - previously stabilized in libstd)
1552 * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
1553 * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
1554 * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
1555 * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
1556
1557 Libraries
1558 ---------
1559
1560 * [The `thread_local!` macro supports multiple definitions in a single
1561    invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
1562 * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
1563 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
1564   `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
1565 * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
1566 * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
1567 * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
1568 * [The main thread is now called "main" instead of "&lt;main&gt;"](https://github.com/rust-lang/rust/pull/33803)
1569
1570 Cargo
1571 -----
1572
1573 * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
1574 * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
1575 * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
1576 * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
1577 * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
1578   and `-vv` prints warnings for all crates.
1579 * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
1580 * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
1581   This provides room for expansion by arbitrary tools.
1582 * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
1583 * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
1584 * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
1585 * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
1586 * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
1587 * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
1588 * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
1589
1590 Performance
1591 -----------
1592
1593 * [Caching projections speeds up type check dramatically for some
1594   workloads](https://github.com/rust-lang/rust/pull/33816)
1595 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
1596   This hasher is faster, but is believed to provide sufficient
1597   protection from collision attacks.
1598 * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
1599
1600 Rustdoc
1601 -------
1602
1603 * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
1604 * [Fix inlined renamed reexports in import lists](https://github.com/rust-lang/rust/pull/34479)
1605 * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
1606 * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
1607 * [Fix redirect pages for renamed reexports](https://github.com/rust-lang/rust/pull/34245)
1608
1609 Tooling
1610 -------
1611
1612 * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
1613 * [When emitting debug info, rustc emits frame pointers for closures,
1614   shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
1615 * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
1616 * Many more errors have been given error codes and extended
1617   explanations
1618 * API documentation continues to be improved, with many new examples
1619
1620 Misc
1621 ----
1622
1623 * [rustc no longer hangs when dependencies recursively re-export
1624   submodules](https://github.com/rust-lang/rust/pull/34542)
1625 * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
1626 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
1627   rewritten](https://github.com/rust-lang/rust/pull/33895)
1628 * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
1629   No targets use this yet, but it works toward AVR support.
1630
1631 Compatibility Notes
1632 -------------------
1633
1634 * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
1635 * [The new follow-set rules that place restrictions on `macro_rules!`
1636   in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
1637   This was an [ammendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
1638   and has been a warning since 1.10.
1639 * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
1640   This causes breakage in some corner cases.
1641
1642
1643 Version 1.10.0 (2016-07-07)
1644 ===========================
1645
1646 Language
1647 --------
1648
1649 * [Allow `concat_idents!` in type positions as well as in expression
1650   positions](https://github.com/rust-lang/rust/pull/33735).
1651 * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
1652   [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
1653 * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
1654 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
1655 * [`panic!` can be converted to a runtime abort with the
1656   `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
1657   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
1658 * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
1659   cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
1660   [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-rdylib.md).
1661   Note that Cargo does not yet directly support cdylibs.
1662
1663 Stabilized APIs
1664 ---------------
1665
1666 * `os::windows::fs::OpenOptionsExt::access_mode`
1667 * `os::windows::fs::OpenOptionsExt::share_mode`
1668 * `os::windows::fs::OpenOptionsExt::custom_flags`
1669 * `os::windows::fs::OpenOptionsExt::attributes`
1670 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
1671 * `os::unix::fs::OpenOptionsExt::custom_flags`
1672 * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
1673 * `Default for sync::Weak`
1674 * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
1675 * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
1676 * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
1677 * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
1678 * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
1679 * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
1680 * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
1681 * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
1682 * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
1683 * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
1684 * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
1685 * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
1686 * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
1687 * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
1688 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
1689 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
1690 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
1691 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
1692 * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
1693 * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
1694 * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
1695 * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
1696 * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
1697 * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
1698 * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
1699 * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
1700 * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
1701 * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
1702 * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
1703 * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
1704 * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
1705 * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
1706 * Read/Write/RawFd impls for `UnixStream`
1707 * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
1708 * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
1709 * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
1710 * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
1711 * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
1712 * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
1713 * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
1714 * RawFd impls for `UnixListener`
1715 * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
1716 * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
1717 * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
1718 * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
1719 * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
1720 * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
1721 * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
1722 * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
1723 * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
1724 * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
1725 * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
1726 * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
1727 * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
1728 * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
1729 * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
1730 * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
1731 * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
1732 * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
1733 * RawFd impls for `UnixDatagram`
1734 * `{BTree,Hash}Map::values_mut`
1735 * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/beta/std/primitive.slice.html#method.binary_search_by_key)
1736
1737 Libraries
1738 ---------
1739
1740 * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
1741   The semantics of this minor method are subtle and probably not what
1742   most people want.
1743 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
1744 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
1745   will fall back to `/dev/urandom` temporarily to avoid blocking
1746   during early boot](https://github.com/rust-lang/rust/pull/33086).
1747 * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
1748 * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
1749 * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
1750 * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
1751 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
1752 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
1753   `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
1754
1755 Cargo
1756 -----
1757 * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
1758   This controls the runtime behavior of the `panic!` macro
1759   and can be either "unwind" (the default), or "abort".
1760   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
1761 * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
1762 * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
1763 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
1764   variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
1765 * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
1766 * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
1767 * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
1768   By default they are retried twice, which can be customized with the
1769   `net.retry` value in `.cargo/config`.
1770 * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
1771 * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
1772 * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
1773 * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
1774   Makes it possible to install multiple crates in parallel.
1775 * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
1776 * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
1777 * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
1778 * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
1779 * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
1780 * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
1781
1782 Performance
1783 -----------
1784
1785 * [rustc memory usage was reduced by refactoring the context used for
1786   type checking](https://github.com/rust-lang/rust/pull/33425).
1787 * [Speed up creation of `HashMap`s by caching the random keys used
1788   to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
1789 * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
1790 * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
1791 * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
1792   10x faster than the previous lookup tables.
1793 * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
1794
1795 Usability
1796 ---------
1797
1798 * Many incremental improvements to documentation and rustdoc.
1799 * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
1800 * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
1801 * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
1802 * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
1803 * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
1804 * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
1805 * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
1806
1807 Misc
1808 ----
1809
1810 * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
1811 * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
1812 * [`std` no longer prints backtraces on platforms where the running
1813   module must be loaded with `env::current_exe`, which can't be relied
1814   on](https://github.com/rust-lang/rust/pull/33554).
1815 * This release includes std binaries for the i586-unknown-linux-gnu,
1816   i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
1817   i586 target is for old x86 hardware without SSE2, and the armv7
1818   target is for Android running on modern ARM architectures.
1819 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
1820   Unix platforms](https://github.com/rust-lang/rust/pull/32835).
1821 * [On Unix the runtime aborts by calling `libc::abort` instead of
1822   generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
1823 * [Rust is now bootstrapped from the previous release of Rust,
1824   instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
1825
1826 Compatibility Notes
1827 -------------------
1828
1829 * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
1830 * [`target_env` for Linux ARM targets is just `gnu`, not
1831   `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
1832 * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
1833 * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
1834 * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
1835   Affects how macros are parsed.
1836 * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
1837 * [Feature-gated attributes on macro-generated macro invocations are
1838   now rejected](https://github.com/rust-lang/rust/pull/32791).
1839 * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
1840   This caused some minor changes to type inference.
1841
1842
1843 Version 1.9.0 (2016-05-26)
1844 ==========================
1845
1846 Language
1847 --------
1848
1849 * The `#[deprecated]` attribute when applied to an API will generate
1850   warnings when used. The warnings may be suppressed with
1851   `#[allow(deprecated)]`. [RFC 1270].
1852 * [`fn` item types are zero sized, and each `fn` names a unique
1853   type][1.9fn]. This will break code that transmutes `fn`s, so calling
1854   `transmute` on a `fn` type will generate a warning for a few cycles,
1855   then will be converted to an error.
1856 * [Field and method resolution understand visibility, so private
1857   fields and methods cannot prevent the proper use of public fields
1858   and methods][1.9fv].
1859 * [The parser considers unicode codepoints in the
1860   `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
1861
1862 Stabilized APIs
1863 ---------------
1864
1865 * [`std::panic`]
1866 * [`std::panic::catch_unwind`][] (renamed from `recover`)
1867 * [`std::panic::resume_unwind`][] (renamed from `propagate`)
1868 * [`std::panic::AssertUnwindSafe`][] (renamed from `AssertRecoverSafe`)
1869 * [`std::panic::UnwindSafe`][] (renamed from `RecoverSafe`)
1870 * [`str::is_char_boundary`]
1871 * [`<*const T>::as_ref`]
1872 * [`<*mut T>::as_ref`]
1873 * [`<*mut T>::as_mut`]
1874 * [`AsciiExt::make_ascii_uppercase`]
1875 * [`AsciiExt::make_ascii_lowercase`]
1876 * [`char::decode_utf16`]
1877 * [`char::DecodeUtf16`]
1878 * [`char::DecodeUtf16Error`]
1879 * [`char::DecodeUtf16Error::unpaired_surrogate`]
1880 * [`BTreeSet::take`]
1881 * [`BTreeSet::replace`]
1882 * [`BTreeSet::get`]
1883 * [`HashSet::take`]
1884 * [`HashSet::replace`]
1885 * [`HashSet::get`]
1886 * [`OsString::with_capacity`]
1887 * [`OsString::clear`]
1888 * [`OsString::capacity`]
1889 * [`OsString::reserve`]
1890 * [`OsString::reserve_exact`]
1891 * [`OsStr::is_empty`]
1892 * [`OsStr::len`]
1893 * [`std::os::unix::thread`]
1894 * [`RawPthread`]
1895 * [`JoinHandleExt`]
1896 * [`JoinHandleExt::as_pthread_t`]
1897 * [`JoinHandleExt::into_pthread_t`]
1898 * [`HashSet::hasher`]
1899 * [`HashMap::hasher`]
1900 * [`CommandExt::exec`]
1901 * [`File::try_clone`]
1902 * [`SocketAddr::set_ip`]
1903 * [`SocketAddr::set_port`]
1904 * [`SocketAddrV4::set_ip`]
1905 * [`SocketAddrV4::set_port`]
1906 * [`SocketAddrV6::set_ip`]
1907 * [`SocketAddrV6::set_port`]
1908 * [`SocketAddrV6::set_flowinfo`]
1909 * [`SocketAddrV6::set_scope_id`]
1910 * [`slice::copy_from_slice`]
1911 * [`ptr::read_volatile`]
1912 * [`ptr::write_volatile`]
1913 * [`OpenOptions::create_new`]
1914 * [`TcpStream::set_nodelay`]
1915 * [`TcpStream::nodelay`]
1916 * [`TcpStream::set_ttl`]
1917 * [`TcpStream::ttl`]
1918 * [`TcpStream::set_only_v6`]
1919 * [`TcpStream::only_v6`]
1920 * [`TcpStream::take_error`]
1921 * [`TcpStream::set_nonblocking`]
1922 * [`TcpListener::set_ttl`]
1923 * [`TcpListener::ttl`]
1924 * [`TcpListener::set_only_v6`]
1925 * [`TcpListener::only_v6`]
1926 * [`TcpListener::take_error`]
1927 * [`TcpListener::set_nonblocking`]
1928 * [`UdpSocket::set_broadcast`]
1929 * [`UdpSocket::broadcast`]
1930 * [`UdpSocket::set_multicast_loop_v4`]
1931 * [`UdpSocket::multicast_loop_v4`]
1932 * [`UdpSocket::set_multicast_ttl_v4`]
1933 * [`UdpSocket::multicast_ttl_v4`]
1934 * [`UdpSocket::set_multicast_loop_v6`]
1935 * [`UdpSocket::multicast_loop_v6`]
1936 * [`UdpSocket::set_multicast_ttl_v6`]
1937 * [`UdpSocket::multicast_ttl_v6`]
1938 * [`UdpSocket::set_ttl`]
1939 * [`UdpSocket::ttl`]
1940 * [`UdpSocket::set_only_v6`]
1941 * [`UdpSocket::only_v6`]
1942 * [`UdpSocket::join_multicast_v4`]
1943 * [`UdpSocket::join_multicast_v6`]
1944 * [`UdpSocket::leave_multicast_v4`]
1945 * [`UdpSocket::leave_multicast_v6`]
1946 * [`UdpSocket::take_error`]
1947 * [`UdpSocket::connect`]
1948 * [`UdpSocket::send`]
1949 * [`UdpSocket::recv`]
1950 * [`UdpSocket::set_nonblocking`]
1951
1952 Libraries
1953 ---------
1954
1955 * [`std::sync::Once` is poisoned if its initialization function
1956   fails][1.9o].
1957 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
1958 * [Most types implement `fmt::Debug`][1.9db].
1959 * [The default buffer size used by `BufReader` and `BufWriter` was
1960   reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
1961   used by other languages.
1962 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
1963   `Duration` additionally implements `*=` and `/=`][1.9ta].
1964 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
1965 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
1966 * [`Chain` implements `BufRead`][1.9ch].
1967 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
1968
1969 Cargo
1970 -----
1971
1972 * [Cargo can now run concurrently][1.9cc].
1973 * [Top-level overrides allow specific revisions of crates to be
1974   overridden through the entire crate graph][1.9ct].  This is intended
1975   to make upgrades easier for large projects, by allowing crates to be
1976   forked temporarily until they've been upgraded and republished.
1977 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
1978 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
1979   on the commandline][1.9cf]. `rustc` arguments can also be specified
1980   in the `build.rustflags` configuration key.
1981
1982 Performance
1983 -----------
1984
1985 * [The time complexity of comparing variables for equivalence during type
1986   unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
1987   to major compilation time improvement in some scenarios.
1988 * [`ToString` is specialized for `str`, giving it the same performance
1989   as `to_owned`][1.9ts].
1990 * [Spawning processes with `Command::output` no longer creates extra
1991   threads][1.9sp].
1992 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
1993   for C-like enums][1.9cl].
1994
1995 Misc
1996 ----
1997
1998 * [Passing the `--quiet` flag to a test runner will produce
1999   much-abbreviated output][1.9q].
2000 * The Rust Project now publishes std binaries for the
2001   `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
2002   `i586-pc-windows-msvc` targets.
2003
2004 Compatibility Notes
2005 -------------------
2006
2007 * [`std::sync::Once` is poisoned if its initialization function
2008   fails][1.9o].
2009 * [It is illegal to define methods with the same name in overlapping
2010   inherent `impl` blocks][1.9sn].
2011 * [`fn` item types are zero sized, and each `fn` names a unique
2012   type][1.9fn]. This will break code that transmutes `fn`s, so calling
2013   `transmute` on a `fn` type will generate a warning for a few cycles,
2014   then will be converted to an error.
2015 * [Improvements to const evaluation may trigger new errors when integer
2016   literals are out of range][1.9ce].
2017
2018
2019 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
2020 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
2021 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
2022 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
2023 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
2024 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
2025 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
2026 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
2027 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
2028 [1.9db]: https://github.com/rust-lang/rust/pull/32054
2029 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
2030 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
2031 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
2032 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
2033 [1.9o]: https://github.com/rust-lang/rust/pull/32325
2034 [1.9q]: https://github.com/rust-lang/rust/pull/31887
2035 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
2036 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
2037 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
2038 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
2039 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
2040 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
2041 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
2042 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
2043 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
2044 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
2045 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
2046 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
2047 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
2048 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
2049 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
2050 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
2051 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
2052 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
2053 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
2054 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
2055 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
2056 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
2057 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
2058 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
2059 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
2060 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
2061 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
2062 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
2063 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
2064 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
2065 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
2066 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
2067 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
2068 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
2069 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
2070 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
2071 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
2072 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
2073 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
2074 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
2075 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
2076 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
2077 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
2078 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
2079 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
2080 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
2081 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
2082 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
2083 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
2084 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
2085 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
2086 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
2087 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
2088 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
2089 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
2090 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
2091 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
2092 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
2093 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
2094 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
2095 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
2096 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
2097 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
2098 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
2099 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
2100 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
2101 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
2102 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
2103 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
2104 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
2105 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
2106 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
2107 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
2108 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
2109 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
2110 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
2111 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
2112 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
2113 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
2114 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
2115 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
2116 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
2117 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
2118 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
2119 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
2120 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
2121 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
2122 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
2123 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
2124 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
2125 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
2126 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
2127 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
2128 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
2129
2130
2131 Version 1.8.0 (2016-04-14)
2132 ==========================
2133
2134 Language
2135 --------
2136
2137 * Rust supports overloading of compound assignment statements like
2138   `+=` by implementing the [`AddAssign`], [`SubAssign`],
2139   [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
2140   [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
2141   traits. [RFC 953].
2142 * Empty structs can be defined with braces, as in `struct Foo { }`, in
2143   addition to the non-braced form, `struct Foo;`. [RFC 218].
2144
2145 Libraries
2146 ---------
2147
2148 * Stabilized APIs:
2149   * [`str::encode_utf16`][] (renamed from `utf16_units`)
2150   * [`str::EncodeUtf16`][] (renamed from `Utf16Units`)
2151   * [`Ref::map`]
2152   * [`RefMut::map`]
2153   * [`ptr::drop_in_place`]
2154   * [`time::Instant`]
2155   * [`time::SystemTime`]
2156   * [`Instant::now`]
2157   * [`Instant::duration_since`][] (renamed from `duration_from_earlier`)
2158   * [`Instant::elapsed`]
2159   * [`SystemTime::now`]
2160   * [`SystemTime::duration_since`][] (renamed from `duration_from_earlier`)
2161   * [`SystemTime::elapsed`]
2162   * Various `Add`/`Sub` impls for `Time` and `SystemTime`
2163   * [`SystemTimeError`]
2164   * [`SystemTimeError::duration`]
2165   * Various impls for `SystemTimeError`
2166   * [`UNIX_EPOCH`]
2167   * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
2168     [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
2169     [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
2170 * [The `write!` and `writeln!` macros correctly emit errors if any of
2171   their arguments can't be formatted][1.8w].
2172 * [Various I/O functions support large files on 32-bit Linux][1.8l].
2173 * [The Unix-specific `raw` modules, which contain a number of
2174   redefined C types are deprecated][1.8r], including `os::raw::unix`,
2175   `os::raw::macos`, and `os::raw::linux`. These modules defined types
2176   such as `ino_t` and `dev_t`. The inconsistency of these definitions
2177   across platforms was making it difficult to implement `std`
2178   correctly. Those that need these definitions should use the `libc`
2179   crate. [RFC 1415].
2180 * The Unix-specific `MetadataExt` traits, including
2181   `os::unix::fs::MetadataExt`, which expose values such as inode
2182   numbers [no longer return platform-specific types][1.8r], but
2183   instead return widened integers. [RFC 1415].
2184 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
2185 * [Atomic loads and stores are not volatile][1.8a].
2186 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
2187
2188 Performance
2189 -----------
2190
2191 * [Inlining hash functions lead to a 3% compile-time improvement in
2192   some workloads][1.8h].
2193 * When using jemalloc, its symbols are [unprefixed so that it
2194   overrides the libc malloc implementation][1.8h]. This means that for
2195   rustc, LLVM is now using jemalloc, which results in a 6%
2196   compile-time improvement on a specific workload.
2197 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
2198
2199 Misc
2200 ----
2201
2202 * [32-bit MSVC builds finally implement unwinding][1.8ms].
2203   i686-pc-windows-msvc is now considered a tier-1 platform.
2204 * [The `--print targets` flag prints a list of supported targets][1.8t].
2205 * [The `--print cfg` flag prints the `cfg`s defined for the current
2206   target][1.8cf].
2207 * [`rustc` can be built with an new Cargo-based build system, written
2208   in Rust][1.8b].  It will eventually replace Rust's Makefile-based
2209   build system. To enable it configure with `configure --rustbuild`.
2210 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
2211   variants while also indicating the total number of missing variants
2212   if more than 3][1.8m].
2213 * [Executable stacks are disabled on Linux and BSD][1.8nx].
2214 * The Rust Project now publishes binary releases of the standard
2215   library for a number of tier-2 targets:
2216   `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
2217   `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
2218   `x86_64-rumprun-netbsd`. These can be installed with
2219   tools such as [multirust][1.8mr].
2220
2221 Cargo
2222 -----
2223
2224 * [`cargo init` creates a new Cargo project in the current
2225   directory][1.8ci].  It is otherwise like `cargo new`.
2226 * [Cargo has configuration keys for `-v` and
2227   `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
2228   `[term]` section of `.cargo/config`.
2229 * [Configuration keys that evaluate to strings or integers can be set
2230   via environment variables][1.8ce]. For example the `build.jobs` key
2231   can be set via `CARGO_BUILD_JOBS`. Environment variables take
2232   precedence over config files.
2233 * [Target-specific dependencies support Rust `cfg` syntax for
2234   describing targets][1.8cfg] so that dependencies for multiple
2235   targets can be specified together. [RFC 1361].
2236 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
2237   `RUSTDOC` take precedence over the `build.target-dir`,
2238   `build.rustc`, and `build.rustdoc` configuration values][1.8cv].
2239 * [The child process tree is killed on Windows when Cargo is
2240   killed][1.8ck].
2241 * [The `build.target` configuration value sets the target platform,
2242   like `--target`][1.8ct].
2243
2244 Compatibility Notes
2245 -------------------
2246
2247 * [Unstable compiler flags have been further restricted][1.8u]. Since
2248   1.0 `-Z` flags have been considered unstable, and other flags that
2249   were considered unstable additionally required passing `-Z
2250   unstable-options` to access. Unlike unstable language and library
2251   features though, these options have been accessible on the stable
2252   release channel. Going forward, *new unstable flags will not be
2253   available on the stable release channel*, and old unstable flags
2254   will warn about their usage. In the future, all unstable flags will
2255   be unavailable on the stable release channel.
2256 * [It is no longer possible to `match` on empty enum variants using
2257   the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
2258 * The Unix-specific `MetadataExt` traits, including
2259   `os::unix::fs::MetadataExt`, which expose values such as inode
2260   numbers [no longer return platform-specific types][1.8r], but
2261   instead return widened integers. [RFC 1415].
2262 * [Modules sourced from the filesystem cannot appear within arbitrary
2263   blocks, but only within other modules][1.8mf].
2264 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
2265 * On Unix, [stack overflow triggers a runtime abort instead of a
2266   SIGSEGV][1.8so].
2267 * [`Command::spawn` and its equivalents return an error if any of
2268   its command-line arguments contain interior `NUL`s][1.8n].
2269 * [Tuple and unit enum variants from other crates are in the type
2270   namespace][1.8tn].
2271 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
2272   type instead of `.a` files][1.8st]. Additionally, for the MSVC
2273   toolchain, `rustc` emits import libraries named `foo.dll.lib`
2274   instead of `foo.lib`.
2275
2276
2277 [1.8a]: https://github.com/rust-lang/rust/pull/30962
2278 [1.8b]: https://github.com/rust-lang/rust/pull/31123
2279 [1.8c]: https://github.com/rust-lang/rust/pull/31530
2280 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
2281 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
2282 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
2283 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
2284 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
2285 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
2286 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
2287 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
2288 [1.8cv]: https://github.com/rust-lang/cargo/issues/2365
2289 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
2290 [1.8h]: https://github.com/rust-lang/rust/pull/31460
2291 [1.8l]: https://github.com/rust-lang/rust/pull/31668
2292 [1.8m]: https://github.com/rust-lang/rust/pull/31020
2293 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
2294 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
2295 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
2296 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
2297 [1.8n]: https://github.com/rust-lang/rust/pull/31056
2298 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
2299 [1.8r]: https://github.com/rust-lang/rust/pull/31551
2300 [1.8so]: https://github.com/rust-lang/rust/pull/31333
2301 [1.8st]: https://github.com/rust-lang/rust/pull/29520
2302 [1.8t]: https://github.com/rust-lang/rust/pull/31358
2303 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
2304 [1.8u]: https://github.com/rust-lang/rust/pull/31793
2305 [1.8v]: https://github.com/rust-lang/rust/pull/31757
2306 [1.8w]: https://github.com/rust-lang/rust/pull/31904
2307 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
2308 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
2309 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
2310 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
2311 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
2312 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
2313 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
2314 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
2315 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
2316 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
2317 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
2318 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
2319 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
2320 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
2321 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
2322 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
2323 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
2324 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
2325 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
2326 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
2327 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
2328 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
2329 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
2330 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
2331 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
2332 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
2333 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
2334 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
2335 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
2336 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
2337
2338
2339 Version 1.7.0 (2016-03-03)
2340 ==========================
2341
2342 Libraries
2343 ---------
2344
2345 * Stabilized APIs
2346   * `Path`
2347     * [`Path::strip_prefix`][] (renamed from relative_from)
2348     * [`path::StripPrefixError`][] (new error type returned from strip_prefix)
2349   * `Ipv4Addr`
2350     * [`Ipv4Addr::is_loopback`]
2351     * [`Ipv4Addr::is_private`]
2352     * [`Ipv4Addr::is_link_local`]
2353     * [`Ipv4Addr::is_multicast`]
2354     * [`Ipv4Addr::is_broadcast`]
2355     * [`Ipv4Addr::is_documentation`]
2356   * `Ipv6Addr`
2357     * [`Ipv6Addr::is_unspecified`]
2358     * [`Ipv6Addr::is_loopback`]
2359     * [`Ipv6Addr::is_multicast`]
2360   * `Vec`
2361     * [`Vec::as_slice`]
2362     * [`Vec::as_mut_slice`]
2363   * `String`
2364     * [`String::as_str`]
2365     * [`String::as_mut_str`]
2366   * Slices
2367     * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
2368     be the same length
2369     * `<[T]>::`[`sort_by_key`]
2370   * checked, saturated, and overflowing operations
2371     * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
2372     * [`i32::saturating_mul`]
2373     * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
2374     * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
2375     * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
2376     * [`u32::saturating_mul`]
2377     * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
2378     * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
2379     * and checked, saturated, and overflowing operations for other primitive types
2380   * FFI
2381     * [`ffi::IntoStringError`]
2382     * [`CString::into_string`]
2383     * [`CString::into_bytes`]
2384     * [`CString::into_bytes_with_nul`]
2385     * `From<CString> for Vec<u8>`
2386   * `IntoStringError`
2387     * [`IntoStringError::into_cstring`]
2388     * [`IntoStringError::utf8_error`]
2389     * `Error for IntoStringError`
2390   * Hashing
2391     * [`std::hash::BuildHasher`]
2392     * [`BuildHasher::Hasher`]
2393     * [`BuildHasher::build_hasher`]
2394     * [`std::hash::BuildHasherDefault`]
2395     * [`HashMap::with_hasher`]
2396     * [`HashMap::with_capacity_and_hasher`]
2397     * [`HashSet::with_hasher`]
2398     * [`HashSet::with_capacity_and_hasher`]
2399     * [`std::collections::hash_map::RandomState`]
2400     * [`RandomState::new`]
2401 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
2402   ASCII input][1.7utf8]. This means that creating `String`s and `str`s
2403   from bytes is faster.
2404 * [The performance of `LineWriter` (and thus `io::stdout`) was
2405   improved by using `memchr` to search for newlines][1.7m].
2406 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
2407   `f64` variants were stabilized previously.
2408 * [`BTreeMap` was rewritten to use less memory and improve the performance
2409   of insertion and iteration, the latter by as much as 5x][1.7bm].
2410 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
2411   covariant over their contained type][1.7bt].
2412 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
2413   over their contained type][1.7ll].
2414 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
2415   searching methods.
2416 * [`Any` is implemented for unsized types][1.7a].
2417 * [`Hash` is implemented for `Duration`][1.7h].
2418
2419 Misc
2420 ----
2421
2422 * [When running tests with `--test`, rustdoc will pass `--cfg`
2423   arguments to the compiler][1.7dt].
2424 * [The compiler is built with RPATH information by default][1.7rpa].
2425   This means that it will be possible to run `rustc` when installed in
2426   unusual configurations without configuring the dynamic linker search
2427   path explicitly.
2428 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
2429   any RPATH entries (emitted with `-C rpath`) *not* take precedence
2430   over `LD_LIBRARY_PATH`.
2431
2432 Cargo
2433 -----
2434
2435 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
2436   any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
2437 * [The `rerun-if-changed` build script directive no longer causes the
2438   build script to incorrectly run twice in certain scenarios][1.7rr].
2439
2440 Compatibility Notes
2441 -------------------
2442
2443 * Soundness fixes to the interactions between associated types and
2444   lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
2445   code that violates the new rules. This is a significant change that
2446   is known to break existing code, so it has emitted warnings for the
2447   new error cases since 1.4 to give crate authors time to adapt. The
2448   details of what is changing are subtle; read the RFC for more.
2449 * [Several bugs in the compiler's visibility calculations were
2450   fixed][1.7v]. Since this was found to break significant amounts of
2451   code, the new errors will be emitted as warnings for several release
2452   cycles, under the `private_in_public` lint.
2453 * Defaulted type parameters were accidentally accepted in positions
2454   that were not intended. In this release, [defaulted type parameters
2455   appearing outside of type definitions will generate a
2456   warning][1.7d], which will become an error in future releases.
2457 * [Parsing "." as a float results in an error instead of 0][1.7p].
2458   That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
2459 * [Borrows of closure parameters may not outlive the closure][1.7bc].
2460
2461 [1.7a]: https://github.com/rust-lang/rust/pull/30928
2462 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
2463 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
2464 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
2465 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
2466 [1.7d]: https://github.com/rust-lang/rust/pull/30724
2467 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
2468 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
2469 [1.7f]: https://github.com/rust-lang/rust/pull/30672
2470 [1.7h]: https://github.com/rust-lang/rust/pull/30818
2471 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
2472 [1.7m]: https://github.com/rust-lang/rust/pull/30381
2473 [1.7p]: https://github.com/rust-lang/rust/pull/30681
2474 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
2475 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
2476 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
2477 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
2478 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
2479 [1.7v]: https://github.com/rust-lang/rust/pull/29973
2480 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
2481 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
2482 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
2483 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
2484 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
2485 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
2486 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
2487 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
2488 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
2489 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
2490 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
2491 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
2492 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
2493 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
2494 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
2495 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
2496 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
2497 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
2498 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
2499 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
2500 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
2501 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
2502 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
2503 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
2504 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
2505 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
2506 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
2507 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
2508 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
2509 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
2510 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
2511 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
2512 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
2513 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
2514 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
2515 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
2516 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
2517 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
2518 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
2519 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
2520 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
2521 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
2522 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
2523 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
2524 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
2525 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
2526 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
2527 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
2528 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
2529 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
2530 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
2531 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
2532 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
2533 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
2534 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
2535 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
2536 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
2537 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
2538 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
2539 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
2540
2541
2542 Version 1.6.0 (2016-01-21)
2543 ==========================
2544
2545 Language
2546 --------
2547
2548 * The `#![no_std]` attribute causes a crate to not be linked to the
2549   standard library, but only the [core library][1.6co], as described
2550   in [RFC 1184]. The core library defines common types and traits but
2551   has no platform dependencies whatsoever, and is the basis for Rust
2552   software in environments that cannot support a full port of the
2553   standard library, such as operating systems. Most of the core
2554   library is now stable.
2555
2556 Libraries
2557 ---------
2558
2559 * Stabilized APIs:
2560   [`Read::read_exact`],
2561   [`ErrorKind::UnexpectedEof`][] (renamed from `UnexpectedEOF`),
2562   [`fs::DirBuilder`], [`fs::DirBuilder::new`],
2563   [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
2564   [`os::unix::fs::DirBuilderExt`],
2565   [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
2566   [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
2567   [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
2568   [`collections::hash_map::Drain`],
2569   [`collections::hash_map::HashMap::drain`],
2570   [`collections::hash_set::Drain`],
2571   [`collections::hash_set::HashSet::drain`],
2572   [`collections::binary_heap::Drain`],
2573   [`collections::binary_heap::BinaryHeap::drain`],
2574   [`Vec::extend_from_slice`][] (renamed from `push_all`),
2575   [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
2576   [`RwLock::into_inner`],
2577   [`Iterator::min_by_key`][] (renamed from `min_by`),
2578   [`Iterator::max_by_key`][] (renamed from `max_by`).
2579 * The [core library][1.6co] is stable, as are most of its APIs.
2580 * [The `assert_eq!` macro supports arguments that don't implement
2581   `Sized`][1.6ae], such as arrays. In this way it behaves more like
2582   `assert!`.
2583 * Several timer functions that take duration in milliseconds [are
2584   deprecated in favor of those that take `Duration`][1.6ms]. These
2585   include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
2586   `thread::park_timeout_ms`.
2587 * The algorithm by which `Vec` reserves additional elements was
2588   [tweaked to not allocate excessive space][1.6a] while still growing
2589   exponentially.
2590 * `From` conversions are [implemented from integers to floats][1.6f]
2591   in cases where the conversion is lossless. Thus they are not
2592   implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
2593   or `f64`. They are also not implemented for `isize` and `usize`
2594   because the implementations would be platform-specific. `From` is
2595   also implemented from `f32` to `f64`.
2596 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
2597 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
2598 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
2599 * [`BinaryHeap` was refactored][1.6bh] for modest performance
2600   improvements.
2601 * Sorting slices that are already sorted [is 50% faster in some
2602   cases][1.6s].
2603
2604 Cargo
2605 -----
2606
2607 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
2608 * Cargo build scripts can specify their dependencies by emitting the
2609   [`rerun-if-changed`][1.6rr] key.
2610 * crates.io will reject publication of crates with dependencies that
2611   have a wildcard version constraint. Crates with wildcard
2612   dependencies were seen to cause a variety of problems, as described
2613   in [RFC 1241]. Since 1.5 publication of such crates has emitted a
2614   warning.
2615 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
2616   release folder.  A variety of artifacts that Cargo failed to clean
2617   are now correctly deleted.
2618
2619 Misc
2620 ----
2621
2622 * The `unreachable_code` lint [warns when a function call's argument
2623   diverges][1.6dv].
2624 * The parser indicates [failures that may be caused by
2625   confusingly-similar Unicode characters][1.6uc]
2626 * Certain macro errors [are reported at definition time][1.6m], not
2627   expansion.
2628
2629 Compatibility Notes
2630 -------------------
2631
2632 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
2633   environment variable when locating crates. This was a pre-cargo
2634   feature for integrating with the package manager that was
2635   accidentally never removed.
2636 * [A number of bugs were fixed in the privacy checker][1.6p] that
2637   could cause previously-accepted code to break.
2638 * [Modules and unit/tuple structs may not share the same name][1.6ts].
2639 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
2640   struct pattern syntax (`Foo(..)`) can no longer be used to match
2641   unit structs. This is a warning now, but will become an error in
2642   future releases. Patterns that share the same name as a const are
2643   now an error.
2644 * A bug was fixed that causes [rustc not to apply default type
2645   parameters][1.6xc] when resolving certain method implementations of
2646   traits defined in other crates.
2647
2648 [1.6a]: https://github.com/rust-lang/rust/pull/29454
2649 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
2650 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
2651 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
2652 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
2653 [1.6co]: http://doc.rust-lang.org/beta/core/index.html
2654 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
2655 [1.6f]: https://github.com/rust-lang/rust/pull/29129
2656 [1.6m]: https://github.com/rust-lang/rust/pull/29828
2657 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
2658 [1.6p]: https://github.com/rust-lang/rust/pull/29726
2659 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
2660 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
2661 [1.6s]: https://github.com/rust-lang/rust/pull/29675
2662 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
2663 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
2664 [1.6us]: https://github.com/rust-lang/rust/pull/29383
2665 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
2666 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
2667 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
2668 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
2669 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
2670 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
2671 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
2672 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
2673 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
2674 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
2675 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
2676 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
2677 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
2678 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
2679 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
2680 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
2681 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
2682 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
2683 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
2684 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
2685 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
2686 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
2687 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
2688 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
2689 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
2690 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
2691 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
2692 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
2693 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
2694 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
2695
2696
2697 Version 1.5.0 (2015-12-10)
2698 ==========================
2699
2700 * ~700 changes, numerous bugfixes
2701
2702 Highlights
2703 ----------
2704
2705 * Stabilized APIs:
2706   [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
2707   [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
2708   [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
2709   [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
2710   [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
2711   [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
2712   [`Formatter::sign_minus`], [`Formatter::sign_plus`],
2713   [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
2714   [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
2715   [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
2716   [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
2717   [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
2718   [`Path::read_link`], [`Path::symlink_metadata`],
2719   [`Utf8Error::valid_up_to`], [`Vec::resize`],
2720   [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
2721   [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
2722   [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
2723   [`slice::split_first_mut`], [`slice::split_first`],
2724   [`slice::split_last_mut`], [`slice::split_last`],
2725   [`char::from_u32_unchecked`], [`fs::canonicalize`],
2726   [`str::MatchIndices`], [`str::RMatchIndices`],
2727   [`str::match_indices`], [`str::rmatch_indices`],
2728   [`str::slice_mut_unchecked`], [`string::ParseError`].
2729 * Rust applications hosted on crates.io can be installed locally to
2730   `~/.cargo/bin` with the [`cargo install`] command. Among other
2731   things this makes it easier to augment Cargo with new subcommands:
2732   when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
2733   invoked as `cargo foo`.
2734 * Crates with wildcard (`*`) dependencies will [emit warnings when
2735   published][1.5w]. In 1.6 it will no longer be possible to publish
2736   crates with wildcard dependencies.
2737
2738 Breaking Changes
2739 ----------------
2740
2741 * The rules determining when a particular lifetime must outlive
2742   a particular value (known as '[dropck]') have been [modified
2743   to not rely on parametricity][1.5p].
2744 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
2745   and `Arc`][1.5a]. Because these smart pointer types implement
2746   `Deref`, this causes breakage in cases where the interior type
2747   contains methods of the same name.
2748 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
2749   that they could drop their content. Soundness fix.
2750 * All method invocations are [properly checked][1.5wf1] for
2751   [well-formedness][1.5wf2]. Soundness fix.
2752 * Traits whose supertraits contain `Self` are [not object
2753   safe][1.5o]. Soundness fix.
2754 * Target specifications support a [`no_default_libraries`][1.5nd]
2755   setting that controls whether `-nodefaultlibs` is passed to the
2756   linker, and in turn the `is_like_windows` setting no longer affects
2757   the `-nodefaultlibs` flag.
2758 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
2759 * The `#[inline]` and `#[repr]` attributes [can only appear
2760   in valid locations][1.5at].
2761 * Native libraries linked from the local crate are [passed to
2762   the linker before native libraries from upstream crates][1.5nl].
2763 * Two rarely-used attributes, `#[no_debug]` and
2764   `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
2765 * Negation of unsigned integers, which has been a warning for
2766   several releases, [is now behind a feature gate and will
2767   generate errors][1.5nu].
2768 * The parser accidentally accepted visibility modifiers on
2769   enum variants, a bug [which has been fixed][1.5ev].
2770 * [A bug was fixed that allowed `use` statements to import unstable
2771   features][1.5use].
2772
2773 Language
2774 --------
2775
2776 * When evaluating expressions at compile-time that are not
2777   compile-time constants (const-evaluating expressions in non-const
2778   contexts), incorrect code such as overlong bitshifts and arithmetic
2779   overflow will [generate a warning instead of an error][1.5ce],
2780   delaying the error until runtime. This will allow the
2781   const-evaluator to be expanded in the future backwards-compatibly.
2782 * The `improper_ctypes` lint [no longer warns about using `isize` and
2783   `usize` in FFI][1.5ict].
2784
2785 Libraries
2786 ---------
2787
2788 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
2789   invariant][1.5c].
2790 * `Default` is [implemented for mutable slices][1.5d].
2791 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
2792 * There are now `From` conversions [between floating point
2793   types][1.5f] where the conversions are lossless.
2794 * Thera are now `From` conversions [between integer types][1.5i] where
2795   the conversions are lossless.
2796 * [`fs::Metadata` implements `Clone`][1.5fs].
2797 * The `parse` method [accepts a leading "+" when parsing
2798   integers][1.5pi].
2799 * [`AsMut` is implemented for `Vec`][1.5am].
2800 * The `clone_from` implementations for `String` and `BinaryHeap` [have
2801   been optimized][1.5cf] and no longer rely on the default impl.
2802 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
2803   `unsafe extern "C"` function types now [implement `Clone`,
2804   `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
2805   `fmt::Debug` for up to 12 arguments][1.5fp].
2806 * [Dropping `Vec`s is much faster in unoptimized builds when the
2807   element types don't implement `Drop`][1.5dv].
2808 * A bug that caused in incorrect behavior when [combining `VecDeque`
2809   with zero-sized types][1.5vdz] was resolved.
2810 * [`PartialOrd` for slices is faster][1.5po].
2811
2812 Miscellaneous
2813 -------------
2814
2815 * [Crate metadata size was reduced by 20%][1.5md].
2816 * [Improvements to code generation reduced the size of libcore by 3.3
2817   MB and rustc's memory usage by 18MB][1.5m].
2818 * [Improvements to deref translation increased performance in
2819   unoptimized builds][1.5dr].
2820 * Various errors in trait resolution [are deduplicated to only be
2821   reported once][1.5te].
2822 * Rust has preliminary [support for rumprun kernels][1.5rr].
2823 * Rust has preliminary [support for NetBSD on amd64][1.5na].
2824
2825 [1.5use]: https://github.com/rust-lang/rust/pull/28364
2826 [1.5po]: https://github.com/rust-lang/rust/pull/28436
2827 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
2828 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
2829 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
2830 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
2831 [1.5md]: https://github.com/rust-lang/rust/pull/28521
2832 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
2833 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
2834 [1.5na]: https://github.com/rust-lang/rust/pull/28543
2835 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
2836 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
2837 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
2838 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
2839 [1.5te]: https://github.com/rust-lang/rust/pull/28645
2840 [1.5at]: https://github.com/rust-lang/rust/pull/28650
2841 [1.5am]: https://github.com/rust-lang/rust/pull/28663
2842 [1.5m]: https://github.com/rust-lang/rust/pull/28778
2843 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
2844 [1.5a]: https://github.com/rust-lang/rust/pull/28811
2845 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
2846 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
2847 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
2848 [1.5i]: https://github.com/rust-lang/rust/pull/28921
2849 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
2850 [1.5f]: https://github.com/rust-lang/rust/pull/29129
2851 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
2852 [1.5s]: https://github.com/rust-lang/rust/pull/29190
2853 [1.5d]: https://github.com/rust-lang/rust/pull/29245
2854 [1.5o]: https://github.com/rust-lang/rust/pull/29259
2855 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
2856 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
2857 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
2858 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
2859 [1.5c]: https://github.com/rust-lang/rust/pull/29110
2860 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
2861 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
2862 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
2863 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
2864 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
2865 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
2866 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
2867 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
2868 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
2869 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
2870 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
2871 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
2872 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
2873 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
2874 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
2875 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
2876 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
2877 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
2878 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
2879 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
2880 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
2881 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
2882 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
2883 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
2884 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
2885 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
2886 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
2887 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
2888 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
2889 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
2890 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
2891 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
2892 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
2893 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
2894 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
2895 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
2896 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
2897 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
2898 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
2899 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
2900 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
2901 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
2902 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
2903 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
2904 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
2905 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
2906 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
2907 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
2908 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
2909 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
2910 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
2911 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
2912 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
2913 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
2914
2915 Version 1.4.0 (2015-10-29)
2916 ==========================
2917
2918 * ~1200 changes, numerous bugfixes
2919
2920 Highlights
2921 ----------
2922
2923 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
2924   GNU) are now supported and recommended for use.
2925
2926 Breaking Changes
2927 ----------------
2928
2929 * [Several changes have been made to fix type soundness and improve
2930   the behavior of associated types][sound]. See [RFC 1214]. Although
2931   we have mostly introduced these changes as warnings this release, to
2932   become errors next release, there are still some scenarios that will
2933   see immediate breakage.
2934 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
2935   line breaks in addition to `\n`][crlf].
2936 * [Loans of `'static` lifetime extend to the end of a function][stat].
2937 * [`str::parse` no longer introduces avoidable rounding error when
2938   parsing floating point numbers. Together with earlier changes to
2939   float formatting/output, "round trips" like f.to_string().parse()
2940   now preserve the value of f exactly. Additionally, leading plus
2941   signs are now accepted][fp3].
2942
2943
2944 Language
2945 --------
2946
2947 * `use` statements that import multiple items [can now rename
2948   them][i], as in `use foo::{bar as kitten, baz as puppy}`.
2949 * [Binops work correctly on fat pointers][binfat].
2950 * `pub extern crate`, which does not behave as expected, [issues a
2951   warning][pec] until a better solution is found.
2952
2953 Libraries
2954 ---------
2955
2956 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
2957   [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
2958   [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
2959   [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
2960   [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
2961   `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
2962   `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
2963   [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
2964   [`String::into_boxed_str`], [`TcpStream::read_timeout`],
2965   [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
2966   [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
2967   [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
2968   [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
2969   [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
2970   [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
2971   [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
2972   [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
2973   [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
2974   [`thread::sleep`].
2975 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
2976   `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
2977   `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
2978   `f64::from_str_radix`.
2979 * [Reverse-searching strings is faster with the 'two-way'
2980   algorithm][s].
2981 * [`std::io::copy` allows `?Sized` arguments][cc].
2982 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
2983   [override `count`, `nth` and `last` with an O(1)
2984   implementation][it].
2985 * [`Default` is implemented for arrays up to `[T; 32]`][d].
2986 * [`IntoRawFd` has been added to the Unix-specific prelude,
2987   `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
2988   prelude][pr].
2989 * [`Extend<String>` and `FromIterator<String` are both implemented for
2990   `String`][es].
2991 * [`IntoIterator` is implemented for references to `Option` and
2992   `Result`][into2].
2993 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
2994   Copy`][ext] as part of [RFC 839]. This will cause type inferance
2995   breakage in rare situations.
2996 * [`BinaryHeap` implements `Debug`][bh2].
2997 * [`Borrow` and `BorrowMut` are implemented for fixed-size
2998   arrays][bm].
2999 * [`extern fn`s with the "Rust" and "C" ABIs implement common
3000   traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
3001 * [String comparison is faster][faststr].
3002 * `&mut T` where `T: std::fmt::Write` [also implements
3003   `std::fmt::Write`][mutw].
3004 * [A stable regression in `VecDeque::push_back` and other
3005   capicity-altering methods that caused panics for zero-sized types
3006   was fixed][vd].
3007 * [Function pointers implement traits for up to 12 parameters][fp2].
3008
3009 Miscellaneous
3010 -------------
3011
3012 * The compiler [no longer uses the 'morestack' feature to prevent
3013   stack overflow][mm]. Instead it uses guard pages and stack
3014   probes (though stack probes are not yet implemented on any platform
3015   but Windows).
3016 * [The compiler matches traits faster when projections are involved][p].
3017 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
3018   `usize`][ffi].
3019 * [Cargo now displays useful information about what its doing during
3020   `cargo update`][cu].
3021
3022 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
3023 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
3024 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
3025 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
3026 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
3027 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
3028 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
3029 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
3030 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
3031 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
3032 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
3033 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
3034 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
3035 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
3036 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
3037 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
3038 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
3039 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
3040 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
3041 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
3042 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
3043 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
3044 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
3045 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
3046 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
3047 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
3048 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
3049 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
3050 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
3051 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
3052 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
3053 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
3054 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
3055 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
3056 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
3057 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
3058 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
3059 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
3060 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
3061 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
3062 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
3063 [bh2]: https://github.com/rust-lang/rust/pull/28156
3064 [binfat]: https://github.com/rust-lang/rust/pull/28270
3065 [bm]: https://github.com/rust-lang/rust/pull/28197
3066 [cc]: https://github.com/rust-lang/rust/pull/27531
3067 [crlf]: https://github.com/rust-lang/rust/pull/28034
3068 [cu]: https://github.com/rust-lang/cargo/pull/1931
3069 [d]: https://github.com/rust-lang/rust/pull/27825
3070 [dep]: https://github.com/rust-lang/rust/pull/28339
3071 [es]: https://github.com/rust-lang/rust/pull/27956
3072 [ext]: https://github.com/rust-lang/rust/pull/28094
3073 [faststr]: https://github.com/rust-lang/rust/pull/28338
3074 [ffi]: https://github.com/rust-lang/rust/pull/28779
3075 [fp]: https://github.com/rust-lang/rust/pull/28268
3076 [fp2]: https://github.com/rust-lang/rust/pull/28560
3077 [fp3]: https://github.com/rust-lang/rust/pull/27307
3078 [i]: https://github.com/rust-lang/rust/pull/27451
3079 [into2]: https://github.com/rust-lang/rust/pull/28039
3080 [it]: https://github.com/rust-lang/rust/pull/27652
3081 [mm]: https://github.com/rust-lang/rust/pull/27338
3082 [mutw]: https://github.com/rust-lang/rust/pull/28368
3083 [sound]: https://github.com/rust-lang/rust/pull/27641
3084 [p]: https://github.com/rust-lang/rust/pull/27866
3085 [pec]: https://github.com/rust-lang/rust/pull/28486
3086 [pr]: https://github.com/rust-lang/rust/pull/27896
3087 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
3088 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
3089 [s]: https://github.com/rust-lang/rust/pull/27474
3090 [stab]: https://github.com/rust-lang/rust/pull/28339
3091 [stat]: https://github.com/rust-lang/rust/pull/28321
3092 [vd]: https://github.com/rust-lang/rust/pull/28494
3093
3094 Version 1.3.0 (2015-09-17)
3095 ==============================
3096
3097 * ~900 changes, numerous bugfixes
3098
3099 Highlights
3100 ----------
3101
3102 * The [new object lifetime defaults][nold] have been [turned
3103   on][nold2] after a cycle of warnings about the change. Now types
3104   like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
3105   being interpreted as `&'a Box<Trait+'a>` to `&'a
3106   Box<Trait+'static>`.
3107 * [The Rustonomicon][nom] is a new book in the official documentation
3108   that dives into writing unsafe Rust.
3109 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
3110   timekeeping is employed by other std APIs, as well as out-of-tree
3111   time crates.
3112
3113 Breaking Changes
3114 ----------------
3115
3116 * The [new object lifetime defaults][nold] have been [turned
3117   on][nold2] after a cycle of warnings about the change.
3118 * There is a known [regression][lr] in how object lifetime elision is
3119   interpreted, the proper solution for which is undetermined.
3120 * The `#[prelude_import]` attribute, an internal implementation
3121   detail, was accidentally stabilized previously. [It has been put
3122   behind the `prelude_import` feature gate][pi]. This change is
3123   believed to break no existing code.
3124 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
3125   [more sane for dynamically sized types][dst3]. Code that relied on
3126   the previous behavior is thought to be broken.
3127 * The `dropck` rules, which checks that destructors can't access
3128   destroyed values, [have been updated][dropck] to match the
3129   [RFC][dropckrfc]. This fixes some soundness holes, and as such will
3130   cause some previously-compiling code to no longer build.
3131
3132 Language
3133 --------
3134
3135 * The [new object lifetime defaults][nold] have been [turned
3136   on][nold2] after a cycle of warnings about the change.
3137 * Semicolons may [now follow types and paths in
3138   macros](https://github.com/rust-lang/rust/pull/27000).
3139 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
3140   [more sane for dynamically sized types][dst3]. Code that relied on
3141   the previous behavior is not known to exist, and suspected to be
3142   broken.
3143 * `'static` variables [may now be recursive][st].
3144 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
3145   implementations correctly.
3146 * The `dropck` rules, which checks that destructors can't access
3147   destroyed values, [have been updated][dropck] to match the
3148   [RFC][dropckrfc].
3149
3150 Libraries
3151 ---------
3152
3153 * The [`Duration`] API, [has been stabilized][ds], as well as the
3154   `std::time` module, which presently contains only `Duration`.
3155 * `Box<str>` and `Box<[T]>` both implement `Clone`.
3156 * The owned C string, [`CString`], implements [`Borrow`] and the
3157   borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
3158   these allow C strings to be borrowed and cloned in generic code.
3159 * [`CStr`] implements [`Debug`].
3160 * [`AtomicPtr`] implements [`Debug`].
3161 * [`Error`] trait objects [can be downcast to their concrete types][e]
3162   in many common configurations, using the [`is`], [`downcast`],
3163   [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
3164   [`Any`] trait.
3165 * Searching for substrings now [employs the two-way algorithm][search]
3166   instead of doing a naive search. This gives major speedups to a
3167   number of methods, including [`contains`][sc], [`find`][sf],
3168   [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
3169   [`ends_with`][sew] are also faster.
3170 * The performance of `PartialEq` for slices is [much faster][ps].
3171 * The [`Hash`] trait offers the default method, [`hash_slice`], which
3172   is overridden and optimized by the implementations for scalars.
3173 * The [`Hasher`] trait now has a number of specialized `write_*`
3174   methods for primitive types, for efficiency.
3175 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
3176   methods for accessing the 'inner error', if any: [`get_ref`][iegr],
3177   [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
3178   of [`std::error::Error::cause`][iec] also delegates to the inner
3179   error.
3180 * [`process::Child`][pc] gained the [`id`] method, which returns a
3181   `u32` representing the platform-specific process identifier.
3182 * The [`connect`] method on slices is deprecated, replaced by the new
3183   [`join`] method (note that both of these are on the *unstable*
3184   [`SliceConcatExt`] trait, but through the magic of the prelude are
3185   available to stable code anyway).
3186 * The [`Div`] operator is implemented for [`Wrapping`] types.
3187 * [`DerefMut` is implemented for `String`][dms].
3188 * Performance of SipHash (the default hasher for `HashMap`) is
3189   [better for long data][sh].
3190 * [`AtomicPtr`] implements [`Send`].
3191 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
3192   are now [specialized to use uninitalized buffers for increased
3193   performance][rte].
3194 * Lifetime parameters of foreign functions [are now resolved
3195   properly][f].
3196
3197 Misc
3198 ----
3199
3200 * Rust can now, with some coercion, [produce programs that run on
3201   Windows XP][xp], though XP is not considered a supported platform.
3202 * Porting Rust on Windows from the GNU toolchain to MSVC continues
3203   ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
3204   recommended for use in 1.3, though should be fully-functional
3205   in the [64-bit 1.4 beta][b14].
3206 * On Fedora-based systems installation will [properly configure the
3207   dynamic linker][fl].
3208 * The compiler gained many new extended error descriptions, which can
3209   be accessed with the `--explain` flag.
3210 * The `dropck` pass, which checks that destructors can't access
3211   destroyed values, [has been rewritten][dropck]. This fixes some
3212   soundness holes, and as such will cause some previously-compiling
3213   code to no longer build.
3214 * `rustc` now uses [LLVM to write archive files where possible][ar].
3215   Eventually this will eliminate the compiler's dependency on the ar
3216   utility.
3217 * Rust has [preliminary support for i686 FreeBSD][fb] (it has long
3218   supported FreeBSD on x86_64).
3219 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
3220   [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
3221   more strict.
3222 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
3223   will kill the process instead of leaking][nlp].
3224
3225 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
3226 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
3227 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
3228 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
3229 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
3230 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
3231 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
3232 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
3233 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
3234 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
3235 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
3236 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
3237 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
3238 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
3239 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
3240 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
3241 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
3242 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
3243 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
3244 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
3245 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
3246 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
3247 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
3248 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
3249 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
3250 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
3251 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
3252 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
3253 [ar]: https://github.com/rust-lang/rust/pull/26926
3254 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
3255 [dms]: https://github.com/rust-lang/rust/pull/26241
3256 [dropck]: https://github.com/rust-lang/rust/pull/27261
3257 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
3258 [ds]: https://github.com/rust-lang/rust/pull/26818
3259 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
3260 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
3261 [dst3]: https://github.com/rust-lang/rust/pull/27351
3262 [e]: https://github.com/rust-lang/rust/pull/24793
3263 [f]: https://github.com/rust-lang/rust/pull/26588
3264 [fb]: https://github.com/rust-lang/rust/pull/26959
3265 [fl]: https://github.com/rust-lang/rust-installer/pull/41
3266 [hs]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
3267 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
3268 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
3269 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
3270 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
3271 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
3272 [lic]: https://github.com/rust-lang/rust/pull/26583
3273 [lnu]: https://github.com/rust-lang/rust/pull/27026
3274 [lr]: https://github.com/rust-lang/rust/issues/27248
3275 [lum]: https://github.com/rust-lang/rust/pull/26378
3276 [lur]: https://github.com/rust-lang/rust/pull/26783
3277 [nlp]: https://github.com/rust-lang/rust/pull/27176
3278 [nold2]: https://github.com/rust-lang/rust/pull/27045
3279 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
3280 [nom]: http://doc.rust-lang.org/nightly/nomicon/
3281 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
3282 [pi]: https://github.com/rust-lang/rust/pull/26699
3283 [ps]: https://github.com/rust-lang/rust/pull/26884
3284 [rte]: https://github.com/rust-lang/rust/pull/26950
3285 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
3286 [search]: https://github.com/rust-lang/rust/pull/26327
3287 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
3288 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
3289 [sh]: https://github.com/rust-lang/rust/pull/27280
3290 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
3291 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
3292 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
3293 [st]: https://github.com/rust-lang/rust/pull/26630
3294 [win1]: https://github.com/rust-lang/rust/pull/26569
3295 [win2]: https://github.com/rust-lang/rust/pull/26741
3296 [win3]: https://github.com/rust-lang/rust/pull/26741
3297 [win4]: https://github.com/rust-lang/rust/pull/27210
3298 [xp]: https://github.com/rust-lang/rust/pull/26569
3299
3300 Version 1.2.0 (2015-08-07)
3301 ==========================
3302
3303 * ~1200 changes, numerous bugfixes
3304
3305 Highlights
3306 ----------
3307
3308 * [Dynamically-sized-type coercions][dst] allow smart pointer types
3309   like `Rc` to contain types without a fixed size, arrays and trait
3310   objects, finally enabling use of `Rc<[T]>` and completing the
3311   implementation of DST.
3312 * [Parallel codegen][parcodegen] is now working again, which can
3313   substantially speed up large builds in debug mode; It also gets
3314   another ~33% speedup when bootstrapping on a 4 core machine (using 8
3315   jobs). It's not enabled by default, but will be "in the near
3316   future". It can be activated with the `-C codegen-units=N` flag to
3317   `rustc`.
3318 * This is the first release with [experimental support for linking
3319   with the MSVC linker and lib C on Windows (instead of using the GNU
3320   variants via MinGW)][win]. It is yet recommended only for the most
3321   intrepid Rusticians.
3322 * Benchmark compilations are showing a 30% improvement in
3323   bootstrapping over 1.1.
3324
3325 Breaking Changes
3326 ----------------
3327
3328 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
3329   unicode case mapping, which is a previously-planned change in
3330   behavior and considered a bugfix.
3331 * [`mem::align_of`] now specifies [the *minimum alignment* for
3332   T][align], which is usually the alignment programs are interested
3333   in, and the same value reported by clang's
3334   `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
3335   break real code.
3336 * [The `#[packed]` attribute is no longer silently accepted by the
3337   compiler][packed]. This attribute did nothing and code that
3338   mentioned it likely did not work as intended.
3339 * Associated type defaults are [now behind the
3340   `associated_type_defaults` feature gate][ad]. In 1.1 associated type
3341   defaults *did not work*, but could be mentioned syntactically. As
3342   such this breakage has minimal impact.
3343
3344 Language
3345 --------
3346
3347 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
3348   matching against dereferencable values.
3349
3350 Libraries
3351 ---------
3352
3353 * The [`Extend`] trait, which grows a collection from an iterator, is
3354   implemented over iterators of references, for `String`, `Vec`,
3355   `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
3356   `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
3357 * The [`iter::once`] function returns an iterator that yields a single
3358   element, and [`iter::empty`] returns an iterator that yields no
3359   elements.
3360 * The [`matches`] and [`rmatches`] methods on `str` return iterators
3361   over substring matches.
3362 * [`Cell`] and [`RefCell`] both implement `Eq`.
3363 * A number of methods for wrapping arithmetic are added to the
3364   integral types, [`wrapping_div`], [`wrapping_rem`],
3365   [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
3366   addition to the existing [`wrapping_add`], [`wrapping_sub`], and
3367   [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
3368   type.. It is illegal for the default arithmetic operations in Rust
3369   to overflow; the desire to wrap must be explicit.
3370 * The `{:#?}` formatting specifier [displays the alternate,
3371   pretty-printed][debugfmt] form of the `Debug` formatter. This
3372   feature was actually introduced prior to 1.0 with little
3373   fanfare.
3374 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
3375   for writing data to formatted strings, similar to [`io::Write`].
3376 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
3377   [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
3378   are used by code generators to emit implementations of [`Debug`].
3379 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
3380   methods that convert case, following Unicode case mapping.
3381 * It is now easier to handle poisoned locks. The [`PoisonError`]
3382   type, returned by failing lock operations, exposes `into_inner`,
3383   `get_ref`, and `get_mut`, which all give access to the inner lock
3384   guard, and allow the poisoned lock to continue to operate. The
3385   `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
3386   poisoned lock without attempting to take the lock.
3387 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
3388   [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
3389   On Windows the `FromRawHandle` trait is implemented for `Stdio`,
3390   and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
3391   `ChildStderr`.
3392 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
3393   malformed input.
3394
3395 Misc
3396 ----
3397
3398 * `rustc` employs smarter heuristics for guessing at [typos].
3399 * `rustc` emits more efficient code for [no-op conversions between
3400   unsafe pointers][nop].
3401 * Fat pointers are now [passed in pairs of immediate arguments][fat],
3402   resulting in faster compile times and smaller code.
3403
3404 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
3405 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
3406 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
3407 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
3408 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
3409 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
3410 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
3411 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
3412 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
3413 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
3414 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
3415 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
3416 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
3417 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
3418 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
3419 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
3420 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
3421 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
3422 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
3423 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
3424 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
3425 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
3426 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
3427 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
3428 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
3429 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
3430 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
3431 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
3432 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
3433 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
3434 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
3435 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
3436 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
3437 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
3438 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
3439 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
3440 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
3441 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
3442 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
3443 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
3444 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
3445 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
3446 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
3447 [align]: https://github.com/rust-lang/rust/pull/25646
3448 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
3449 [typos]: https://github.com/rust-lang/rust/pull/26087
3450 [nop]: https://github.com/rust-lang/rust/pull/26336
3451 [fat]: https://github.com/rust-lang/rust/pull/26411
3452 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
3453 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
3454 [packed]: https://github.com/rust-lang/rust/pull/25541
3455 [ad]: https://github.com/rust-lang/rust/pull/27382
3456 [win]: https://github.com/rust-lang/rust/pull/25350
3457
3458 Version 1.1.0 (2015-06-25)
3459 =========================
3460
3461 * ~850 changes, numerous bugfixes
3462
3463 Highlights
3464 ----------
3465
3466 * The [`std::fs` module has been expanded][fs] to expand the set of
3467   functionality exposed:
3468   * `DirEntry` now supports optimizations like `file_type` and `metadata` which
3469     don't incur a syscall on some platforms.
3470   * A `symlink_metadata` function has been added.
3471   * The `fs::Metadata` structure now lowers to its OS counterpart, providing
3472     access to all underlying information.
3473 * The compiler now contains extended explanations of many errors. When an error
3474   with an explanation occurs the compiler suggests using the `--explain` flag
3475   to read the explanation. Error explanations are also [available online][err-index].
3476 * Thanks to multiple [improvements][sk] to [type checking][pre], as
3477   well as other work, the time to bootstrap the compiler decreased by
3478   32%.
3479
3480 Libraries
3481 ---------
3482
3483 * The [`str::split_whitespace`] method splits a string on unicode
3484   whitespace boundaries.
3485 * On both Windows and Unix, new extension traits provide conversion of
3486   I/O types to and from the underlying system handles. On Unix, these
3487   traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
3488   and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
3489   `TcpListener`, and `UpdSocket`. Further implementations for
3490   `std::process` will be stabilized later.
3491 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
3492   Windows, symlinks can be created with
3493   `std::os::windows::symlink_dir` and
3494   `std::os::windows::symlink_file`.
3495 * The `mpsc::Receiver` type can now be converted into an iterator with
3496   `into_iter` on the [`IntoIterator`] trait.
3497 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
3498   implementation of the [`From`] trait.
3499 * The `Debug` implementation for `RangeFull` [creates output that is
3500   more consistent with other implementations][rf].
3501 * [`Debug` is implemented for `File`][file].
3502 * The `Default` implementation for `Arc` [no longer requires `Sync +
3503   Send`][arc].
3504 * [The `Iterator` methods `count`, `nth`, and `last` have been
3505   overridden for slices to have O(1) performance instead of O(n)][si].
3506 * Incorrect handling of paths on Windows has been improved in both the
3507   compiler and the standard library.
3508 * [`AtomicPtr` gained a `Default` implementation][ap].
3509 * In accordance with Rust's policy on arithmetic overflow `abs` now
3510   [panics on overflow when debug assertions are enabled][abs].
3511 * The [`Cloned`] iterator, which was accidentally left unstable for
3512   1.0 [has been stabilized][c].
3513 * The [`Incoming`] iterator, which iterates over incoming TCP
3514   connections, and which was accidentally unnamable in 1.0, [is now
3515   properly exported][inc].
3516 * [`BinaryHeap`] no longer corrupts itself [when functions called by
3517   `sift_up` or `sift_down` panic][bh].
3518 * The [`split_off`] method of `LinkedList` [no longer corrupts
3519   the list in certain scenarios][ll].
3520
3521 Misc
3522 ----
3523
3524 * Type checking performance [has improved notably][sk] with
3525   [multiple improvements][pre].
3526 * The compiler [suggests code changes][ch] for more errors.
3527 * rustc and it's build system have experimental support for [building
3528   toolchains against MUSL][m] instead of glibc on Linux.
3529 * The compiler defines the `target_env` cfg value, which is used for
3530   distinguishing toolchains that are otherwise for the same
3531   platform. Presently this is set to `gnu` for common GNU Linux
3532   targets and for MinGW targets, and `musl` for MUSL Linux targets.
3533 * The [`cargo rustc`][crc] command invokes a build with custom flags
3534   to rustc.
3535 * [Android executables are always position independent][pie].
3536 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
3537   with `Drop`][drop].
3538
3539 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
3540 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
3541 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
3542 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
3543 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
3544 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
3545 [rf]: https://github.com/rust-lang/rust/pull/24491
3546 [err-index]: https://doc.rust-lang.org/error-index.html
3547 [sk]: https://github.com/rust-lang/rust/pull/24615
3548 [pre]: https://github.com/rust-lang/rust/pull/25323
3549 [file]: https://github.com/rust-lang/rust/pull/24598
3550 [ch]: https://github.com/rust-lang/rust/pull/24683
3551 [arc]: https://github.com/rust-lang/rust/pull/24695
3552 [si]: https://github.com/rust-lang/rust/pull/24701
3553 [ap]: https://github.com/rust-lang/rust/pull/24834
3554 [m]: https://github.com/rust-lang/rust/pull/24777
3555 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
3556 [crc]: https://github.com/rust-lang/cargo/pull/1568
3557 [pie]: https://github.com/rust-lang/rust/pull/24953
3558 [abs]: https://github.com/rust-lang/rust/pull/25441
3559 [c]: https://github.com/rust-lang/rust/pull/25496
3560 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
3561 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
3562 [inc]: https://github.com/rust-lang/rust/pull/25522
3563 [bh]: https://github.com/rust-lang/rust/pull/25856
3564 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
3565 [ll]: https://github.com/rust-lang/rust/pull/26022
3566 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
3567 [drop]: https://github.com/rust-lang/rust/pull/24935
3568
3569 Version 1.0.0 (2015-05-15)
3570 ========================
3571
3572 * ~1500 changes, numerous bugfixes
3573
3574 Highlights
3575 ----------
3576
3577 * The vast majority of the standard library is now `#[stable]`. It is
3578   no longer possible to use unstable features with a stable build of
3579   the compiler.
3580 * Many popular crates on [crates.io] now work on the stable release
3581   channel.
3582 * Arithmetic on basic integer types now [checks for overflow in debug
3583   builds][overflow].
3584
3585 Language
3586 --------
3587
3588 * Several [restrictions have been added to trait coherence][coh] in
3589   order to make it easier for upstream authors to change traits
3590   without breaking downstream code.
3591 * Digits of binary and octal literals are [lexed more eagerly][lex] to
3592   improve error messages and macro behavior. For example, `0b1234` is
3593   now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
3594 * Trait bounds [are always invariant][inv], eliminating the need for
3595   the `PhantomFn` and `MarkerTrait` lang items, which have been
3596   removed.
3597 * ["-" is no longer a valid character in crate names][cr], the `extern crate
3598   "foo" as bar` syntax has been replaced with `extern crate foo as
3599   bar`, and Cargo now automatically translates "-" in *package* names
3600   to underscore for the crate name.
3601 * [Lifetime shadowing is an error][lt].
3602 * [`Send` no longer implies `'static`][send-rfc].
3603 * [UFCS now supports trait-less associated paths][moar-ufcs] like
3604   `MyType::default()`.
3605 * Primitive types [now have inherent methods][prim-inherent],
3606   obviating the need for extension traits like `SliceExt`.
3607 * Methods with `Self: Sized` in their `where` clause are [considered
3608   object-safe][self-sized], allowing many extension traits like
3609   `IteratorExt` to be merged into the traits they extended.
3610 * You can now [refer to associated types][assoc-where] whose
3611   corresponding trait bounds appear only in a `where` clause.
3612 * The final bits of [OIBIT landed][oibit-final], meaning that traits
3613   like `Send` and `Sync` are now library-defined.
3614 * A [Reflect trait][reflect] was introduced, which means that
3615   downcasting via the `Any` trait is effectively limited to concrete
3616   types. This helps retain the potentially-important "parametricity"
3617   property: generic code cannot behave differently for different type
3618   arguments except in minor ways.
3619 * The `unsafe_destructor` feature is now deprecated in favor of the
3620   [new `dropck`][dropck]. This change is a major reduction in unsafe
3621   code.
3622
3623 Libraries
3624 ---------
3625
3626 * The `thread_local` module [has been renamed to `std::thread`][th].
3627 * The methods of `IteratorExt` [have been moved to the `Iterator`
3628   trait itself][ie].
3629 * Several traits that implement Rust's conventions for type
3630   conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
3631   [centralized in the `std::convert` module][con].
3632 * The `FromError` trait [was removed in favor of `From`][fe].
3633 * The basic sleep function [has moved to
3634   `std::thread::sleep_ms`][slp].
3635 * The `splitn` function now takes an `n` parameter that represents the
3636   number of items yielded by the returned iterator [instead of the
3637   number of 'splits'][spl].
3638 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
3639 * [Derived implementations of `PartialOrd` now order enums according
3640   to their explicitly-assigned discriminants][po].
3641 * [Methods for searching strings are generic over `Pattern`s][pat],
3642   implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
3643   some others.
3644 * [In method resolution, object methods are resolved before inherent
3645   methods][meth].
3646 * [`String::from_str` has been deprecated in favor of the `From` impl,
3647   `String::from`][sf].
3648 * [`io::Error` implements `Sync`][ios].
3649 * [The `words` method on `&str` has been replaced with
3650   `split_whitespace`][sw], to avoid answering the tricky question, 'what is
3651   a word?'
3652 * The new path and IO modules are complete and `#[stable]`. This
3653   was the major library focus for this cycle.
3654 * The path API was [revised][path-normalize] to normalize `.`,
3655   adjusting the tradeoffs in favor of the most common usage.
3656 * A large number of remaining APIs in `std` were also stabilized
3657   during this cycle; about 75% of the non-deprecated API surface
3658   is now stable.
3659 * The new [string pattern API][string-pattern] landed, which makes
3660   the string slice API much more internally consistent and flexible.
3661 * A new set of [generic conversion traits][conversion] replaced
3662   many existing ad hoc traits.
3663 * Generic numeric traits were [completely removed][num-traits]. This
3664   was made possible thanks to inherent methods for primitive types,
3665   and the removal gives maximal flexibility for designing a numeric
3666   hierarchy in the future.
3667 * The `Fn` traits are now related via [inheritance][fn-inherit]
3668   and provide ergonomic [blanket implementations][fn-blanket].
3669 * The `Index` and `IndexMut` traits were changed to
3670   [take the index by value][index-value], enabling code like
3671   `hash_map["string"]` to work.
3672 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
3673   `Copy` data is known to be `Clone` as well.
3674
3675 Misc
3676 ----
3677
3678 * Many errors now have extended explanations that can be accessed with
3679   the `--explain` flag to `rustc`.
3680 * Many new examples have been added to the standard library
3681   documentation.
3682 * rustdoc has received a number of improvements focused on completion
3683   and polish.
3684 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
3685 * Much headway was made on ecosystem-wide CI, making it possible
3686   to [compare builds for breakage][ci-compare].
3687
3688
3689 [crates.io]: http://crates.io
3690 [clo]: https://github.com/rust-lang/rust/pull/24034
3691 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
3692 [con]: https://github.com/rust-lang/rust/pull/23875
3693 [cr]: https://github.com/rust-lang/rust/pull/23419
3694 [fe]: https://github.com/rust-lang/rust/pull/23879
3695 [ie]: https://github.com/rust-lang/rust/pull/23300
3696 [inv]: https://github.com/rust-lang/rust/pull/23938
3697 [ios]: https://github.com/rust-lang/rust/pull/24133
3698 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
3699 [lt]: https://github.com/rust-lang/rust/pull/24057
3700 [meth]: https://github.com/rust-lang/rust/pull/24056
3701 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
3702 [po]: https://github.com/rust-lang/rust/pull/24270
3703 [sf]: https://github.com/rust-lang/rust/pull/24517
3704 [slp]: https://github.com/rust-lang/rust/pull/23949
3705 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
3706 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
3707 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
3708 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
3709 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
3710 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
3711 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
3712 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
3713 [self-sized]: https://github.com/rust-lang/rust/pull/22301
3714 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
3715 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
3716 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
3717 [reflect]: https://github.com/rust-lang/rust/pull/23712
3718 [conversion]: https://github.com/rust-lang/rfcs/pull/529
3719 [num-traits]: https://github.com/rust-lang/rust/pull/23549
3720 [index-value]: https://github.com/rust-lang/rust/pull/23601
3721 [dropck]: https://github.com/rust-lang/rfcs/pull/769
3722 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
3723 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
3724 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
3725 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
3726 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
3727
3728
3729 Version 1.0.0-alpha.2 (2015-02-20)
3730 =====================================
3731
3732 * ~1300 changes, numerous bugfixes
3733
3734 * Highlights
3735
3736     * The various I/O modules were [overhauled][io-rfc] to reduce
3737       unnecessary abstractions and provide better interoperation with
3738       the underlying platform. The old `io` module remains temporarily
3739       at `std::old_io`.
3740     * The standard library now [participates in feature gating][feat],
3741       so use of unstable libraries now requires a `#![feature(...)]`
3742       attribute. The impact of this change is [described on the
3743       forum][feat-forum]. [RFC][feat-rfc].
3744
3745 * Language
3746
3747     * `for` loops [now operate on the `IntoIterator` trait][into],
3748       which eliminates the need to call `.iter()`, etc. to iterate
3749       over collections. There are some new subtleties to remember
3750       though regarding what sort of iterators various types yield, in
3751       particular that `for foo in bar { }` yields values from a move
3752       iterator, destroying the original collection. [RFC][into-rfc].
3753     * Objects now have [default lifetime bounds][obj], so you don't
3754       have to write `Box<Trait+'static>` when you don't care about
3755       storing references. [RFC][obj-rfc].
3756     * In types that implement `Drop`, [lifetimes must outlive the
3757       value][drop]. This will soon make it possible to safely
3758       implement `Drop` for types where `#[unsafe_destructor]` is now
3759       required. Read the [gorgeous RFC][drop-rfc] for details.
3760     * The fully qualified <T as Trait>::X syntax lets you set the Self
3761       type for a trait method or associated type. [RFC][ufcs-rfc].
3762     * References to types that implement `Deref<U>` now [automatically
3763       coerce to references][deref] to the dereferenced type `U`,
3764       e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
3765       should eliminate many unsightly uses of `&*`, as when converting
3766       from references to vectors into references to
3767       slices. [RFC][deref-rfc].
3768     * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
3769       `|:|`) is obsolete and closure kind is inferred from context.
3770     * [`Self` is a keyword][Self].
3771
3772 * Libraries
3773
3774     * The `Show` and `String` formatting traits [have been
3775       renamed][fmt] to `Debug` and `Display` to more clearly reflect
3776       their related purposes. Automatically getting a string
3777       conversion to use with `format!("{:?}", something_to_debug)` is
3778       now written `#[derive(Debug)]`.
3779     * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
3780       OsStr}`, provide strings in platform-specific encodings for easier
3781       interop with system APIs. [RFC][osstr-rfc].
3782     * The `boxed::into_raw` and `Box::from_raw` functions [convert
3783       between `Box<T>` and `*mut T`][boxraw], a common pattern for
3784       creating raw pointers.
3785
3786 * Tooling
3787
3788     * Certain long error messages of the form 'expected foo found bar'
3789       are now [split neatly across multiple
3790       lines][multiline]. Examples in the PR.
3791     * On Unix Rust can be [uninstalled][un] by running
3792       `/usr/local/lib/rustlib/uninstall.sh`.
3793     * The `#[rustc_on_unimplemented]` attribute, requiring the
3794       'on_unimplemented' feature, lets rustc [display custom error
3795       messages when a trait is expected to be implemented for a type
3796       but is not][onun].
3797
3798 * Misc
3799
3800     * Rust is tested against a [LALR grammar][lalr], which parses
3801       almost all the Rust files that rustc does.
3802
3803 [boxraw]: https://github.com/rust-lang/rust/pull/21318
3804 [close]: https://github.com/rust-lang/rust/pull/21843
3805 [deref]: https://github.com/rust-lang/rust/pull/21351
3806 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
3807 [drop]: https://github.com/rust-lang/rust/pull/21972
3808 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
3809 [feat]: https://github.com/rust-lang/rust/pull/21248
3810 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
3811 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
3812 [fmt]: https://github.com/rust-lang/rust/pull/21457
3813 [into]: https://github.com/rust-lang/rust/pull/20790
3814 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
3815 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
3816 [lalr]: https://github.com/rust-lang/rust/pull/21452
3817 [multiline]: https://github.com/rust-lang/rust/pull/19870
3818 [obj]: https://github.com/rust-lang/rust/pull/22230
3819 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
3820 [onun]: https://github.com/rust-lang/rust/pull/20889
3821 [osstr]: https://github.com/rust-lang/rust/pull/21488
3822 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
3823 [Self]: https://github.com/rust-lang/rust/pull/22158
3824 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
3825 [un]: https://github.com/rust-lang/rust/pull/22256
3826
3827
3828 Version 1.0.0-alpha (2015-01-09)
3829 ==================================
3830
3831   * ~2400 changes, numerous bugfixes
3832
3833   * Highlights
3834
3835     * The language itself is considered feature complete for 1.0,
3836       though there will be many usability improvements and bugfixes
3837       before the final release.
3838     * Nearly 50% of the public API surface of the standard library has
3839       been declared 'stable'. Those interfaces are unlikely to change
3840       before 1.0.
3841     * The long-running debate over integer types has been
3842       [settled][ints]: Rust will ship with types named `isize` and
3843       `usize`, rather than `int` and `uint`, for pointer-sized
3844       integers. Guidelines will be rolled out during the alpha cycle.
3845     * Most crates that are not `std` have been moved out of the Rust
3846       distribution into the Cargo ecosystem so they can evolve
3847       separately and don't need to be stabilized as quickly, including
3848       'time', 'getopts', 'num', 'regex', and 'term'.
3849     * Documentation continues to be expanded with more API coverage, more
3850       examples, and more in-depth explanations. The guides have been
3851       consolidated into [The Rust Programming Language][trpl].
3852     * "[Rust By Example][rbe]" is now maintained by the Rust team.
3853     * All official Rust binary installers now come with [Cargo], the
3854       Rust package manager.
3855
3856 * Language
3857
3858     * Closures have been [completely redesigned][unboxed] to be
3859       implemented in terms of traits, can now be used as generic type
3860       bounds and thus monomorphized and inlined, or via an opaque
3861       pointer (boxed) as in the old system. The new system is often
3862       referred to as 'unboxed' closures.
3863     * Traits now support [associated types][assoc], allowing families
3864       of related types to be defined together and used generically in
3865       powerful ways.
3866     * Enum variants are [namespaced by their type names][enum].
3867     * [`where` clauses][where] provide a more versatile and attractive
3868       syntax for specifying generic bounds, though the previous syntax
3869       remains valid.
3870     * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
3871       numeric types.
3872     * Rust [no longer has a runtime][rt] of any description, and only
3873       supports OS threads, not green threads.
3874     * At long last, Rust has been overhauled for 'dynamically-sized
3875       types' ([DST]), which integrates 'fat pointers' (object types,
3876       arrays, and `str`) more deeply into the type system, making it
3877       more consistent.
3878     * Rust now has a general [range syntax][range], `i..j`, `i..`, and
3879       `..j` that produce range types and which, when combined with the
3880       `Index` operator and multidispatch, leads to a convenient slice
3881       notation, `[i..j]`.
3882     * The new range syntax revealed an ambiguity in the fixed-length
3883       array syntax, so now fixed length arrays [are written `[T;
3884       N]`][arrays].
3885     * The `Copy` trait is no longer implemented automatically. Unsafe
3886       pointers no longer implement `Sync` and `Send` so types
3887       containing them don't automatically either. `Sync` and `Send`
3888       are now 'unsafe traits' so one can "forcibly" implement them via
3889       `unsafe impl` if a type confirms to the requirements for them
3890       even though the internals do not (e.g. structs containing unsafe
3891       pointers like `Arc`). These changes are intended to prevent some
3892       footguns and are collectively known as [opt-in built-in
3893       traits][oibit] (though `Sync` and `Send` will soon become pure
3894       library types unknown to the compiler).
3895     * Operator traits now take their operands [by value][ops], and
3896       comparison traits can use multidispatch to compare one type
3897       against multiple other types, allowing e.g. `String` to be
3898       compared with `&str`.
3899     * `if let` and `while let` are no longer feature-gated.
3900     * Rust has adopted a more [uniform syntax for escaping unicode
3901       characters][unicode].
3902     * `macro_rules!` [has been declared stable][mac]. Though it is a
3903       flawed system it is sufficiently popular that it must be usable
3904       for 1.0. Effort has gone into [future-proofing][mac-future] it
3905       in ways that will allow other macro systems to be developed in
3906       parallel, and won't otherwise impact the evolution of the
3907       language.
3908     * The prelude has been [pared back significantly][prelude] such
3909       that it is the minimum necessary to support the most pervasive
3910       code patterns, and through [generalized where clauses][where]
3911       many of the prelude extension traits have been consolidated.
3912     * Rust's rudimentary reflection [has been removed][refl], as it
3913       incurred too much code generation for little benefit.
3914     * [Struct variants][structvars] are no longer feature-gated.
3915     * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
3916       known as 'higher-ranked trait bounds', this crucially allows
3917       unboxed closures to work.
3918     * Macros invocations surrounded by parens or square brackets and
3919       not terminated by a semicolon are [parsed as
3920       expressions][macros], which makes expressions like `vec![1i32,
3921       2, 3].len()` work as expected.
3922     * Trait objects now implement their traits automatically, and
3923       traits that can be coerced to objects now must be [object
3924       safe][objsafe].
3925     * Automatically deriving traits is now done with `#[derive(...)]`
3926       not `#[deriving(...)]` for [consistency with other naming
3927       conventions][derive].
3928     * Importing the containing module or enum at the same time as
3929       items or variants they contain is [now done with `self` instead
3930       of `mod`][self], as in use `foo::{self, bar}`
3931     * Glob imports are no longer feature-gated.
3932     * The `box` operator and `box` patterns have been feature-gated
3933       pending a redesign. For now unique boxes should be allocated
3934       like other containers, with `Box::new`.
3935
3936 * Libraries
3937
3938     * A [series][coll1] of [efforts][coll2] to establish
3939       [conventions][coll3] for collections types has resulted in API
3940       improvements throughout the standard library.
3941     * New [APIs for error handling][err] provide ergonomic interop
3942       between error types, and [new conventions][err-conv] describe
3943       more clearly the recommended error handling strategies in Rust.
3944     * The `fail!` macro has been renamed to [`panic!`][panic] so that
3945       it is easier to discuss failure in the context of error handling
3946       without making clarifications as to whether you are referring to
3947       the 'fail' macro or failure more generally.
3948     * On Linux, `OsRng` prefers the new, more reliable `getrandom`
3949       syscall when available.
3950     * The 'serialize' crate has been renamed 'rustc-serialize' and
3951       moved out of the distribution to Cargo. Although it is widely
3952       used now, it is expected to be superseded in the near future.
3953     * The `Show` formatter, typically implemented with
3954       `#[derive(Show)]` is [now requested with the `{:?}`
3955       specifier][show] and is intended for use by all types, for uses
3956       such as `println!` debugging. The new `String` formatter must be
3957       implemented by hand, uses the `{}` specifier, and is intended
3958       for full-fidelity conversions of things that can logically be
3959       represented as strings.
3960
3961 * Tooling
3962
3963     * [Flexible target specification][flex] allows rustc's code
3964       generation to be configured to support otherwise-unsupported
3965       platforms.
3966     * Rust comes with rust-gdb and rust-lldb scripts that launch their
3967       respective debuggers with Rust-appropriate pretty-printing.
3968     * The Windows installation of Rust is distributed with the
3969       MinGW components currently required to link binaries on that
3970       platform.
3971
3972 * Misc
3973
3974     * Nullable enum optimizations have been extended to more types so
3975       that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
3976       space than the inner types themselves.
3977     * Work has begun on supporting AArch64.
3978
3979 [Cargo]: https://crates.io
3980 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
3981 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
3982 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
3983 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
3984 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
3985 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
3986 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
3987 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
3988 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
3989 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
3990 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
3991 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
3992 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
3993 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
3994 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
3995 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
3996 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
3997 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
3998 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
3999 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
4000 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
4001 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
4002 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
4003 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
4004 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
4005 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
4006 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
4007 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
4008 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
4009 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
4010 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
4011 [trpl]: https://doc.rust-lang.org/book/index.html
4012 [rbe]: http://rustbyexample.com/
4013
4014
4015 Version 0.12.0 (2014-10-09)
4016 =============================
4017
4018   * ~1900 changes, numerous bugfixes
4019
4020   * Highlights
4021
4022     * The introductory documentation (now called The Rust Guide) has
4023       been completely rewritten, as have a number of supplementary
4024       guides.
4025     * Rust's package manager, Cargo, continues to improve and is
4026       sometimes considered to be quite awesome.
4027     * Many API's in `std` have been reviewed and updated for
4028       consistency with the in-development Rust coding
4029       guidelines. The standard library documentation tracks
4030       stabilization progress.
4031     * Minor libraries have been moved out-of-tree to the rust-lang org
4032       on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
4033       be installed with Cargo.
4034     * Lifetime elision allows lifetime annotations to be left off of
4035       function declarations in many common scenarios.
4036     * Rust now works on 64-bit Windows.
4037
4038   * Language
4039     * Indexing can be overloaded with the `Index` and `IndexMut`
4040       traits.
4041     * The `if let` construct takes a branch only if the `let` pattern
4042       matches, currently behind the 'if_let' feature gate.
4043     * 'where clauses', a more flexible syntax for specifying trait
4044       bounds that is more aesthetic, have been added for traits and
4045       free functions. Where clauses will in the future make it
4046       possible to constrain associated types, which would be
4047       impossible with the existing syntax.
4048     * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
4049       the 'slicing_syntax' feature gate, and can be overloaded with
4050       the `Slice` or `SliceMut` traits.
4051     * The syntax for matching of sub-slices has been changed to use a
4052       postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
4053       consistency with other uses of `..` and to future-proof
4054       potential additional uses of the syntax.
4055     * The syntax for matching inclusive ranges in patterns has changed
4056       from `0..3` to `0...4` to be consistent with the exclusive range
4057       syntax for slicing.
4058     * Matching of sub-slices in non-tail positions (e.g.  `[a.., b,
4059       c]`) has been put behind the 'advanced_slice_patterns' feature
4060       gate and may be removed in the future.
4061     * Components of tuples and tuple structs can be extracted using
4062       the `value.0` syntax, currently behind the `tuple_indexing`
4063       feature gate.
4064     * The `#[crate_id]` attribute is no longer supported; versioning
4065       is handled by the package manager.
4066     * Renaming crate imports are now written `extern crate foo as bar`
4067       instead of `extern crate bar = foo`.
4068     * Renaming use statements are now written `use foo as bar` instead
4069       of `use bar = foo`.
4070     * `let` and `match` bindings and argument names in macros are now
4071       hygienic.
4072     * The new, more efficient, closure types ('unboxed closures') have
4073       been added under a feature gate, 'unboxed_closures'. These will
4074       soon replace the existing closure types, once higher-ranked
4075       trait lifetimes are added to the language.
4076     * `move` has been added as a keyword, for indicating closures
4077       that capture by value.
4078     * Mutation and assignment is no longer allowed in pattern guards.
4079     * Generic structs and enums can now have trait bounds.
4080     * The `Share` trait is now called `Sync` to free up the term
4081       'shared' to refer to 'shared reference' (the default reference
4082       type.
4083     * Dynamically-sized types have been mostly implemented,
4084       unifying the behavior of fat-pointer types with the rest of the
4085       type system.
4086     * As part of dynamically-sized types, the `Sized` trait has been
4087       introduced, which qualifying types implement by default, and
4088       which type parameters expect by default. To specify that a type
4089       parameter does not need to be sized, write `<Sized? T>`. Most
4090       types are `Sized`, notable exceptions being unsized arrays
4091       (`[T]`) and trait types.
4092     * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
4093     * Lifetime bounds can now be applied to type parameters and object
4094       types.
4095     * The old, reference counted GC type, `Gc<T>` which was once
4096       denoted by the `@` sigil, has finally been removed. GC will be
4097       revisited in the future.
4098
4099   * Libraries
4100     * Library documentation has been improved for a number of modules.
4101     * Bit-vectors, collections::bitv has been modernized.
4102     * The url crate is deprecated in favor of
4103       http://github.com/servo/rust-url, which can be installed with
4104       Cargo.
4105     * Most I/O stream types can be cloned and subsequently closed from
4106       a different thread.
4107     * A `std::time::Duration` type has been added for use in I/O
4108       methods that rely on timers, as well as in the 'time' crate's
4109       `Timespec` arithmetic.
4110     * The runtime I/O abstraction layer that enabled the green thread
4111       scheduler to do non-thread-blocking I/O has been removed, along
4112       with the libuv-based implementation employed by the green thread
4113       scheduler. This will greatly simplify the future I/O work.
4114     * `collections::btree` has been rewritten to have a more
4115       idiomatic and efficient design.
4116
4117   * Tooling
4118     * rustdoc output now indicates the stability levels of API's.
4119     * The `--crate-name` flag can specify the name of the crate
4120       being compiled, like `#[crate_name]`.
4121     * The `-C metadata` specifies additional metadata to hash into
4122       symbol names, and `-C extra-filename` specifies additional
4123       information to put into the output filename, for use by the
4124       package manager for versioning.
4125     * debug info generation has continued to improve and should be
4126       more reliable under both gdb and lldb.
4127     * rustc has experimental support for compiling in parallel
4128       using the `-C codegen-units` flag.
4129     * rustc no longer encodes rpath information into binaries by
4130       default.
4131
4132   * Misc
4133     * Stack usage has been optimized with LLVM lifetime annotations.
4134     * Official Rust binaries on Linux are more compatible with older
4135       kernels and distributions, built on CentOS 5.10.
4136
4137
4138 Version 0.11.0 (2014-07-02)
4139 ==========================
4140
4141   * ~1700 changes, numerous bugfixes
4142
4143   * Language
4144     * ~[T] has been removed from the language. This type is superseded by
4145       the Vec<T> type.
4146     * ~str has been removed from the language. This type is superseded by
4147       the String type.
4148     * ~T has been removed from the language. This type is superseded by the
4149       Box<T> type.
4150     * @T has been removed from the language. This type is superseded by the
4151       standard library's std::gc::Gc<T> type.
4152     * Struct fields are now all private by default.
4153     * Vector indices and shift amounts are both required to be a `uint`
4154       instead of any integral type.
4155     * Byte character, byte string, and raw byte string literals are now all
4156       supported by prefixing the normal literal with a `b`.
4157     * Multiple ABIs are no longer allowed in an ABI string
4158     * The syntax for lifetimes on closures/procedures has been tweaked
4159       slightly: `<'a>|A, B|: 'b + K -> T`
4160     * Floating point modulus has been removed from the language; however it
4161       is still provided by a library implementation.
4162     * Private enum variants are now disallowed.
4163     * The `priv` keyword has been removed from the language.
4164     * A closure can no longer be invoked through a &-pointer.
4165     * The `use foo, bar, baz;` syntax has been removed from the language.
4166     * The transmute intrinsic no longer works on type parameters.
4167     * Statics now allow blocks/items in their definition.
4168     * Trait bounds are separated from objects with + instead of : now.
4169     * Objects can no longer be read while they are mutably borrowed.
4170     * The address of a static is now marked as insignificant unless the
4171       #[inline(never)] attribute is placed it.
4172     * The #[unsafe_destructor] attribute is now behind a feature gate.
4173     * Struct literals are no longer allowed in ambiguous positions such as
4174       if, while, match, and for..in.
4175     * Declaration of lang items and intrinsics are now feature-gated by
4176       default.
4177     * Integral literals no longer default to `int`, and floating point
4178       literals no longer default to `f64`. Literals must be suffixed with an
4179       appropriate type if inference cannot determine the type of the
4180       literal.
4181     * The Box<T> type is no longer implicitly borrowed to &mut T.
4182     * Procedures are now required to not capture borrowed references.
4183
4184   * Libraries
4185     * The standard library is now a "facade" over a number of underlying
4186       libraries. This means that development on the standard library should
4187       be speeder due to smaller crates, as well as a clearer line between
4188       all dependencies.
4189     * A new library, libcore, lives under the standard library's facade
4190       which is Rust's "0-assumption" library, suitable for embedded and
4191       kernel development for example.
4192     * A regex crate has been added to the standard distribution. This crate
4193       includes statically compiled regular expressions.
4194     * The unwrap/unwrap_err methods on Result require a Show bound for
4195       better error messages.
4196     * The return types of the std::comm primitives have been centralized
4197       around the Result type.
4198     * A number of I/O primitives have gained the ability to time out their
4199       operations.
4200     * A number of I/O primitives have gained the ability to close their
4201       reading/writing halves to cancel pending operations.
4202     * Reverse iterator methods have been removed in favor of `rev()` on
4203       their forward-iteration counterparts.
4204     * A bitflags! macro has been added to enable easy interop with C and
4205       management of bit flags.
4206     * A debug_assert! macro is now provided which is disabled when
4207       `--cfg ndebug` is passed to the compiler.
4208     * A graphviz crate has been added for creating .dot files.
4209     * The std::cast module has been migrated into std::mem.
4210     * The std::local_data api has been migrated from freestanding functions
4211       to being based on methods.
4212     * The Pod trait has been renamed to Copy.
4213     * jemalloc has been added as the default allocator for types.
4214     * The API for allocating memory has been changed to use proper alignment
4215       and sized deallocation
4216     * Connecting a TcpStream or binding a TcpListener is now based on a
4217       string address and a u16 port. This allows connecting to a hostname as
4218       opposed to an IP.
4219     * The Reader trait now contains a core method, read_at_least(), which
4220       correctly handles many repeated 0-length reads.
4221     * The process-spawning API is now centered around a builder-style
4222       Command struct.
4223     * The :? printing qualifier has been moved from the standard library to
4224       an external libdebug crate.
4225     * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
4226       have been renamed to Eq/Ord.
4227     * The select/plural methods have been removed from format!. The escapes
4228       for { and } have also changed from \{ and \} to {{ and }},
4229       respectively.
4230     * The TaskBuilder API has been re-worked to be a true builder, and
4231       extension traits for spawning native/green tasks have been added.
4232
4233   * Tooling
4234     * All breaking changes to the language or libraries now have their
4235       commit message annotated with `[breaking-change]` to allow for easy
4236       discovery of breaking changes.
4237     * The compiler will now try to suggest how to annotate lifetimes if a
4238       lifetime-related error occurs.
4239     * Debug info continues to be improved greatly with general bug fixes and
4240       better support for situations like link time optimization (LTO).
4241     * Usage of syntax extensions when cross-compiling has been fixed.
4242     * Functionality equivalent to GCC & Clang's -ffunction-sections,
4243       -fdata-sections and --gc-sections has been enabled by default
4244     * The compiler is now stricter about where it will load module files
4245       from when a module is declared via `mod foo;`.
4246     * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
4247       Syntax extensions are now discovered via a "plugin registrar" type
4248       which will be extended in the future to other various plugins.
4249     * Lints have been restructured to allow for dynamically loadable lints.
4250     * A number of rustdoc improvements:
4251       * The HTML output has been visually redesigned.
4252       * Markdown is now powered by hoedown instead of sundown.
4253       * Searching heuristics have been greatly improved.
4254       * The search index has been reduced in size by a great amount.
4255       * Cross-crate documentation via `pub use` has been greatly improved.
4256       * Primitive types are now hyperlinked and documented.
4257     * Documentation has been moved from static.rust-lang.org/doc to
4258       doc.rust-lang.org
4259     * A new sandbox, play.rust-lang.org, is available for running and
4260       sharing rust code examples on-line.
4261     * Unused attributes are now more robustly warned about.
4262     * The dead_code lint now warns about unused struct fields.
4263     * Cross-compiling to iOS is now supported.
4264     * Cross-compiling to mipsel is now supported.
4265     * Stability attributes are now inherited by default and no longer apply
4266       to intra-crate usage, only inter-crate usage.
4267     * Error message related to non-exhaustive match expressions have been
4268       greatly improved.
4269
4270
4271 Version 0.10 (2014-04-03)
4272 =========================
4273
4274   * ~1500 changes, numerous bugfixes
4275
4276   * Language
4277     * A new RFC process is now in place for modifying the language.
4278     * Patterns with `@`-pointers have been removed from the language.
4279     * Patterns with unique vectors (`~[T]`) have been removed from the
4280       language.
4281     * Patterns with unique strings (`~str`) have been removed from the
4282       language.
4283     * `@str` has been removed from the language.
4284     * `@[T]` has been removed from the language.
4285     * `@self` has been removed from the language.
4286     * `@Trait` has been removed from the language.
4287     * Headers on `~` allocations which contain `@` boxes inside the type for
4288       reference counting have been removed.
4289     * The semantics around the lifetimes of temporary expressions have changed,
4290       see #3511 and #11585 for more information.
4291     * Cross-crate syntax extensions are now possible, but feature gated. See
4292       #11151 for more information. This includes both `macro_rules!` macros as
4293       well as syntax extensions such as `format!`.
4294     * New lint modes have been added, and older ones have been turned on to be
4295       warn-by-default.
4296       * Unnecessary parentheses
4297       * Uppercase statics
4298       * Camel Case types
4299       * Uppercase variables
4300       * Publicly visible private types
4301       * `#[deriving]` with raw pointers
4302     * Unsafe functions can no longer be coerced to closures.
4303     * Various obscure macros such as `log_syntax!` are now behind feature gates.
4304     * The `#[simd]` attribute is now behind a feature gate.
4305     * Visibility is no longer allowed on `extern crate` statements, and
4306       unnecessary visibility (`priv`) is no longer allowed on `use` statements.
4307     * Trailing commas are now allowed in argument lists and tuple patterns.
4308     * The `do` keyword has been removed, it is now a reserved keyword.
4309     * Default type parameters have been implemented, but are feature gated.
4310     * Borrowed variables through captures in closures are now considered soundly.
4311     * `extern mod` is now `extern crate`
4312     * The `Freeze` trait has been removed.
4313     * The `Share` trait has been added for types that can be shared among
4314       threads.
4315     * Labels in macros are now hygienic.
4316     * Expression/statement macro invocations can be delimited with `{}` now.
4317     * Treatment of types allowed in `static mut` locations has been tweaked.
4318     * The `*` and `.` operators are now overloadable through the `Deref` and
4319       `DerefMut` traits.
4320     * `~Trait` and `proc` no longer have `Send` bounds by default.
4321     * Partial type hints are now supported with the `_` type marker.
4322     * An `Unsafe` type was introduced for interior mutability. It is now
4323       considered undefined to transmute from `&T` to `&mut T` without using the
4324       `Unsafe` type.
4325     * The #[linkage] attribute was implemented for extern statics/functions.
4326     * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
4327     * `Pod` was renamed to `Copy`.
4328
4329   * Libraries
4330     * The `libextra` library has been removed. It has now been decomposed into
4331       component libraries with smaller and more focused nuggets of
4332       functionality. The full list of libraries can be found on the
4333       documentation index page.
4334     * std: `std::condition` has been removed. All I/O errors are now propagated
4335       through the `Result` type. In order to assist with error handling, a
4336       `try!` macro for unwrapping errors with an early return and a lint for
4337       unused results has been added. See #12039 for more information.
4338     * std: The `vec` module has been renamed to `slice`.
4339     * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
4340       This will become the only growable vector in the future.
4341     * std: `std::io` now has more public-reexports. Types such as `BufferedReader`
4342       are now found at `std::io::BufferedReader` instead of
4343       `std::io::buffered::BufferedReader`.
4344     * std: `print` and `println` are no longer in the prelude, the `print!` and
4345       `println!` macros are intended to be used instead.
4346     * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
4347       attempts to statically prevent cycles.
4348     * std: The standard distribution is adopting the policy of pushing failure
4349       to the user rather than failing in libraries. Many functions (such as
4350       `slice::last()`) now return `Option<T>` instead of `T` + failing.
4351     * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
4352       deriving mode: `#[deriving(Show)]`.
4353     * std: `ToStr` is now implemented for all types implementing `Show`.
4354     * std: The formatting trait methods now take `&self` instead of `&T`
4355     * std: The `invert()` method on iterators has been renamed to `rev()`
4356     * std: `std::num` has seen a reduction in the genericity of its traits,
4357       consolidating functionality into a few core traits.
4358     * std: Backtraces are now printed on task failure if the environment
4359       variable `RUST_BACKTRACE` is present.
4360     * std: Naming conventions for iterators have been standardized. More details
4361       can be found on the wiki's style guide.
4362     * std: `eof()` has been removed from the `Reader` trait. Specific types may
4363       still implement the function.
4364     * std: Networking types are now cloneable to allow simultaneous reads/writes.
4365     * std: `assert_approx_eq!` has been removed
4366     * std: The `e` and `E` formatting specifiers for floats have been added to
4367       print them in exponential notation.
4368     * std: The `Times` trait has been removed
4369     * std: Indications of variance and opting out of builtin bounds is done
4370       through marker types in `std::kinds::marker` now
4371     * std: `hash` has been rewritten, `IterBytes` has been removed, and
4372       `#[deriving(Hash)]` is now possible.
4373     * std: `SharedChan` has been removed, `Sender` is now cloneable.
4374     * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
4375     * std: `Chan::new` is now `channel()`.
4376     * std: A new synchronous channel type has been implemented.
4377     * std: A `select!` macro is now provided for selecting over `Receiver`s.
4378     * std: `hashmap` and `trie` have been moved to `libcollections`
4379     * std: `run` has been rolled into `io::process`
4380     * std: `assert_eq!` now uses `{}` instead of `{:?}`
4381     * std: The equality and comparison traits have seen some reorganization.
4382     * std: `rand` has moved to `librand`.
4383     * std: `to_{lower,upper}case` has been implemented for `char`.
4384     * std: Logging has been moved to `liblog`.
4385     * collections: `HashMap` has been rewritten for higher performance and less
4386       memory usage.
4387     * native: The default runtime is now `libnative`. If `libgreen` is desired,
4388       it can be booted manually. The runtime guide has more information and
4389       examples.
4390     * native: All I/O functionality except signals has been implemented.
4391     * green: Task spawning with `libgreen` has been optimized with stack caching
4392       and various trimming of code.
4393     * green: Tasks spawned by `libgreen` now have an unmapped guard page.
4394     * sync: The `extra::sync` module has been updated to modern rust (and moved
4395       to the `sync` library), tweaking and improving various interfaces while
4396       dropping redundant functionality.
4397     * sync: A new `Barrier` type has been added to the `sync` library.
4398     * sync: An efficient mutex for native and green tasks has been implemented.
4399     * serialize: The `base64` module has seen some improvement. It treats
4400       newlines better, has non-string error values, and has seen general
4401       cleanup.
4402     * fourcc: A `fourcc!` macro was introduced
4403     * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
4404       hexadecimal literal.
4405
4406   * Tooling
4407     * `rustpkg` has been deprecated and removed from the main repository. Its
4408       replacement, `cargo`, is under development.
4409     * Nightly builds of rust are now available
4410     * The memory usage of rustc has been improved many times throughout this
4411       release cycle.
4412     * The build process supports disabling rpath support for the rustc binary
4413       itself.
4414     * Code generation has improved in some cases, giving more information to the
4415       LLVM optimization passes to enable more extensive optimizations.
4416     * Debuginfo compatibility with lldb on OSX has been restored.
4417     * The master branch is now gated on an android bot, making building for
4418       android much more reliable.
4419     * Output flags have been centralized into one `--emit` flag.
4420     * Crate type flags have been centralized into one `--crate-type` flag.
4421     * Codegen flags have been consolidated behind a `-C` flag.
4422     * Linking against outdated crates now has improved error messages.
4423     * Error messages with lifetimes will often suggest how to annotate the
4424       function to fix the error.
4425     * Many more types are documented in the standard library, and new guides
4426       were written.
4427     * Many `rustdoc` improvements:
4428       * code blocks are syntax highlighted.
4429       * render standalone markdown files.
4430       * the --test flag tests all code blocks by default.
4431       * exported macros are displayed.
4432       * reexported types have their documentation inlined at the location of the
4433         first reexport.
4434       * search works across crates that have been rendered to the same output
4435         directory.
4436
4437
4438 Version 0.9 (2014-01-09)
4439 ==========================
4440
4441    * ~1800 changes, numerous bugfixes
4442
4443    * Language
4444       * The `float` type has been removed. Use `f32` or `f64` instead.
4445       * A new facility for enabling experimental features (feature gating) has
4446         been added, using the crate-level `#[feature(foo)]` attribute.
4447       * Managed boxes (@) are now behind a feature gate
4448         (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
4449         standard library's `Gc` or `Rc` types instead.
4450       * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
4451       * Jumping back to the top of a loop is now done with `continue` instead of
4452         `loop`.
4453       * Strings can no longer be mutated through index assignment.
4454       * Raw strings can be created via the basic `r"foo"` syntax or with matched
4455         hash delimiters, as in `r###"foo"###`.
4456       * `~fn` is now written `proc (args) -> retval { ... }` and may only be
4457         called once.
4458       * The `&fn` type is now written `|args| -> ret` to match the literal form.
4459       * `@fn`s have been removed.
4460       * `do` only works with procs in order to make it obvious what the cost
4461         of `do` is.
4462       * Single-element tuple-like structs can no longer be dereferenced to
4463         obtain the inner value. A more comprehensive solution for overloading
4464         the dereference operator will be provided in the future.
4465       * The `#[link(...)]` attribute has been replaced with
4466         `#[crate_id = "name#vers"]`.
4467       * Empty `impl`s must be terminated with empty braces and may not be
4468         terminated with a semicolon.
4469       * Keywords are no longer allowed as lifetime names; the `self` lifetime
4470         no longer has any special meaning.
4471       * The old `fmt!` string formatting macro has been removed.
4472       * `printf!` and `printfln!` (old-style formatting) removed in favor of
4473         `print!` and `println!`.
4474       * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
4475       * The `extern mod foo (name = "bar")` syntax has been removed. Use
4476         `extern mod foo = "bar"` instead.
4477       * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
4478       * Macros can have attributes.
4479       * Macros can expand to items with attributes.
4480       * Macros can expand to multiple items.
4481       * The `asm!` macro is feature-gated (`#[feature(asm)]`).
4482       * Comments may be nested.
4483       * Values automatically coerce to trait objects they implement, without
4484         an explicit `as`.
4485       * Enum discriminants are no longer an entire word but as small as needed to
4486         contain all the variants. The `repr` attribute can be used to override
4487         the discriminant size, as in `#[repr(int)]` for integer-sized, and
4488         `#[repr(C)]` to match C enums.
4489       * Non-string literals are not allowed in attributes (they never worked).
4490       * The FFI now supports variadic functions.
4491       * Octal numeric literals, as in `0o7777`.
4492       * The `concat!` syntax extension performs compile-time string concatenation.
4493       * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
4494         removed as Rust no longer uses segmented stacks.
4495       * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
4496       * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
4497         not `*`; ignoring remaining fields of a struct is also done with `..`,
4498         not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
4499       * `rustc` supports the "win64" calling convention via `extern "win64"`.
4500       * `rustc` supports the "system" calling convention, which defaults to the
4501         preferred convention for the target platform, "stdcall" on 32-bit Windows,
4502         "C" elsewhere.
4503       * The `type_overflow` lint (default: warn) checks literals for overflow.
4504       * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
4505       * The `attribute_usage` lint (default: warn) warns about unknown
4506         attributes.
4507       * The `unknown_features` lint (default: warn) warns about unknown
4508         feature gates.
4509       * The `dead_code` lint (default: warn) checks for dead code.
4510       * Rust libraries can be linked statically to one another
4511       * `#[link_args]` is behind the `link_args` feature gate.
4512       * Native libraries are now linked with `#[link(name = "foo")]`
4513       * Native libraries can be statically linked to a rust crate
4514         (`#[link(name = "foo", kind = "static")]`).
4515       * Native OS X frameworks are now officially supported
4516         (`#[link(name = "foo", kind = "framework")]`).
4517       * The `#[thread_local]` attribute creates thread-local (not task-local)
4518         variables. Currently behind the `thread_local` feature gate.
4519       * The `return` keyword may be used in closures.
4520       * Types that can be copied via a memcpy implement the `Pod` kind.
4521       * The `cfg` attribute can now be used on struct fields and enum variants.
4522
4523    * Libraries
4524       * std: The `option` and `result` API's have been overhauled to make them
4525         simpler, more consistent, and more composable.
4526       * std: The entire `std::io` module has been replaced with one that is
4527         more comprehensive and that properly interfaces with the underlying
4528         scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
4529         implemented.
4530       * std: `io::util` contains a number of useful implementations of
4531         `Reader` and `Writer`, including `NullReader`, `NullWriter`,
4532         `ZeroReader`, `TeeReader`.
4533       * std: The reference counted pointer type `extra::rc` moved into std.
4534       * std: The `Gc` type in the `gc` module will replace `@` (it is currently
4535         just a wrapper around it).
4536       * std: The `Either` type has been removed.
4537       * std: `fmt::Default` can be implemented for any type to provide default
4538         formatting to the `format!` macro, as in `format!("{}", myfoo)`.
4539       * std: The `rand` API continues to be tweaked.
4540       * std: The `rust_begin_unwind` function, useful for inserting breakpoints
4541         on failure in gdb, is now named `rust_fail`.
4542       * std: The `each_key` and `each_value` methods on `HashMap` have been
4543         replaced by the `keys` and `values` iterators.
4544       * std: Functions dealing with type size and alignment have moved from the
4545         `sys` module to the `mem` module.
4546       * std: The `path` module was written and API changed.
4547       * std: `str::from_utf8` has been changed to cast instead of allocate.
4548       * std: `starts_with` and `ends_with` methods added to vectors via the
4549         `ImmutableEqVector` trait, which is in the prelude.
4550       * std: Vectors can be indexed with the `get_opt` method, which returns `None`
4551         if the index is out of bounds.
4552       * std: Task failure no longer propagates between tasks, as the model was
4553         complex, expensive, and incompatible with thread-based tasks.
4554       * std: The `Any` type can be used for dynamic typing.
4555       * std: `~Any` can be passed to the `fail!` macro and retrieved via
4556         `task::try`.
4557       * std: Methods that produce iterators generally do not have an `_iter`
4558         suffix now.
4559       * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
4560         roots (mutable fields, etc.). Use instead of e.g. `@mut`.
4561       * std: `util::ignore` renamed to `prelude::drop`.
4562       * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
4563         trait.
4564       * std: `vec::raw` has seen a lot of cleanup and API changes.
4565       * std: The standard library no longer includes any C++ code, and very
4566         minimal C, eliminating the dependency on libstdc++.
4567       * std: Runtime scheduling and I/O functionality has been factored out into
4568         extensible interfaces and is now implemented by two different crates:
4569         libnative, for native threading and I/O; and libgreen, for green threading
4570         and I/O. This paves the way for using the standard library in more limited
4571         embedded environments.
4572       * std: The `comm` module has been rewritten to be much faster, have a
4573         simpler, more consistent API, and to work for both native and green
4574         threading.
4575       * std: All libuv dependencies have been moved into the rustuv crate.
4576       * native: New implementations of runtime scheduling on top of OS threads.
4577       * native: New native implementations of TCP, UDP, file I/O, process spawning,
4578         and other I/O.
4579       * green: The green thread scheduler and message passing types are almost
4580         entirely lock-free.
4581       * extra: The `flatpipes` module had bitrotted and was removed.
4582       * extra: All crypto functions have been removed and Rust now has a policy of
4583         not reimplementing crypto in the standard library. In the future crypto
4584         will be provided by external crates with bindings to established libraries.
4585       * extra: `c_vec` has been modernized.
4586       * extra: The `sort` module has been removed. Use the `sort` method on
4587         mutable slices.
4588
4589    * Tooling
4590       * The `rust` and `rusti` commands have been removed, due to lack of
4591         maintenance.
4592       * `rustdoc` was completely rewritten.
4593       * `rustdoc` can test code examples in documentation.
4594       * `rustpkg` can test packages with the argument, 'test'.
4595       * `rustpkg` supports arbitrary dependencies, including C libraries.
4596       * `rustc`'s support for generating debug info is improved again.
4597       * `rustc` has better error reporting for unbalanced delimiters.
4598       * `rustc`'s JIT support was removed due to bitrot.
4599       * Executables and static libraries can be built with LTO (-Z lto)
4600       * `rustc` adds a `--dep-info` flag for communicating dependencies to
4601         build tools.
4602
4603
4604 Version 0.8 (2013-09-26)
4605 ============================
4606
4607    * ~2200 changes, numerous bugfixes
4608
4609    * Language
4610       * The `for` loop syntax has changed to work with the `Iterator` trait.
4611       * At long last, unwinding works on Windows.
4612       * Default methods are ready for use.
4613       * Many trait inheritance bugs fixed.
4614       * Owned and borrowed trait objects work more reliably.
4615       * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
4616       * rustc can omit emission of code for the `debug!` macro if it is passed
4617         `--cfg ndebug`
4618       * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
4619         for foo.rs, then foo/mod.rs, and will generate an error when both are
4620         present.
4621       * Strings no longer contain trailing nulls. The new `std::c_str` module
4622         provides new mechanisms for converting to C strings.
4623       * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
4624       * The FFI has been overhauled such that foreign functions are called directly,
4625         instead of through a stack-switching wrapper.
4626       * Calling a foreign function must be done through a Rust function with the
4627         `#[fixed_stack_segment]` attribute.
4628       * The `externfn!` macro can be used to declare both a foreign function and
4629         a `#[fixed_stack_segment]` wrapper at once.
4630       * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
4631       * `unsafe` is no longer allowed on extern fns - they are all unsafe.
4632       * `priv` is disallowed everywhere except for struct fields and enum variants.
4633       * `&T` (besides `&'static T`) is no longer allowed in `@T`.
4634       * `ref` bindings in irrefutable patterns work correctly now.
4635       * `char` is now prevented from containing invalid code points.
4636       * Casting to `bool` is no longer allowed.
4637       * `\0` is now accepted as an escape in chars and strings.
4638       * `yield` is a reserved keyword.
4639       * `typeof` is a reserved keyword.
4640       * Crates may be imported by URL with `extern mod foo = "url";`.
4641       * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
4642       * Static vectors can be initialized with repeating elements,
4643         e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
4644       * Static structs can be initialized with functional record update,
4645         e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
4646       * `cfg!` can be used to conditionally execute code based on the crate
4647         configuration, similarly to `#[cfg(...)]`.
4648       * The `unnecessary_qualification` lint detects unneeded module
4649         prefixes (default: allow).
4650       * Arithmetic operations have been implemented on the SIMD types in
4651         `std::unstable::simd`.
4652       * Exchange allocation headers were removed, reducing memory usage.
4653       * `format!` implements a completely new, extensible, and higher-performance
4654         string formatting system. It will replace `fmt!`.
4655       * `print!` and `println!` write formatted strings (using the `format!`
4656         extension) to stdout.
4657       * `write!` and `writeln!` write formatted strings (using the `format!`
4658         extension) to the new Writers in `std::rt::io`.
4659       * The library section in which a function or static is placed may
4660         be specified with `#[link_section = "..."]`.
4661       * The `proto!` syntax extension for defining bounded message protocols
4662         was removed.
4663       * `macro_rules!` is hygienic for `let` declarations.
4664       * The `#[export_name]` attribute specifies the name of a symbol.
4665       * `unreachable!` can be used to indicate unreachable code, and fails
4666         if executed.
4667
4668    * Libraries
4669       * std: Transitioned to the new runtime, written in Rust.
4670       * std: Added an experimental I/O library, `rt::io`, based on the new
4671         runtime.
4672       * std: A new generic `range` function was added to the prelude, replacing
4673         `uint::range` and friends.
4674       * std: `range_rev` no longer exists. Since range is an iterator it can be
4675         reversed with `range(lo, hi).invert()`.
4676       * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
4677         renamed to `unwrap_or`.
4678       * std: The `iterator` module was renamed to `iter`.
4679       * std: Integral types now support the `checked_add`, `checked_sub`, and
4680         `checked_mul` operations for detecting overflow.
4681       * std: Many methods in `str`, `vec`, `option, `result` were renamed for
4682         consistency.
4683       * std: Methods are standardizing on conventions for casting methods:
4684         `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
4685         and cheap casts.
4686       * std: The `CString` type in `c_str` provides new ways to convert to and
4687         from C strings.
4688       * std: `DoubleEndedIterator` can yield elements in two directions.
4689       * std: The `mut_split` method on vectors partitions an `&mut [T]` into
4690         two splices.
4691       * std: `str::from_bytes` renamed to `str::from_utf8`.
4692       * std: `pop_opt` and `shift_opt` methods added to vectors.
4693       * std: The task-local data interface no longer uses @, and keys are
4694         no longer function pointers.
4695       * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
4696       * std: Added `SharedPort` to `comm`.
4697       * std: `Eq` has a default method for `ne`; only `eq` is required
4698         in implementations.
4699       * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
4700         is required in implementations.
4701       * std: `is_utf8` performance is improved, impacting many string functions.
4702       * std: `os::MemoryMap` provides cross-platform mmap.
4703       * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
4704         are not 'in-bounds' are considered undefined.
4705       * std: Many freestanding functions in `vec` removed in favor of methods.
4706       * std: Many freestanding functions on scalar types removed in favor of
4707         methods.
4708       * std: Many options to task builders were removed since they don't make
4709         sense in the new scheduler design.
4710       * std: More containers implement `FromIterator` so can be created by the
4711         `collect` method.
4712       * std: More complete atomic types in `unstable::atomics`.
4713       * std: `comm::PortSet` removed.
4714       * std: Mutating methods in the `Set` and `Map` traits have been moved into
4715         the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
4716         `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
4717         default implementations.
4718       * std: Various `from_str` functions were removed in favor of a generic
4719         `from_str` which is available in the prelude.
4720       * std: `util::unreachable` removed in favor of the `unreachable!` macro.
4721       * extra: `dlist`, the doubly-linked list was modernized.
4722       * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
4723       * extra: Added `glob` module, replacing `std::os::glob`.
4724       * extra: `rope` was removed.
4725       * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
4726       * extra: `net`, and `timer` were removed. The experimental replacements
4727         are `std::rt::io::net` and `std::rt::io::timer`.
4728       * extra: Iterators implemented for `SmallIntMap`.
4729       * extra: Iterators implemented for `Bitv` and `BitvSet`.
4730       * extra: `SmallIntSet` removed. Use `BitvSet`.
4731       * extra: Performance of JSON parsing greatly improved.
4732       * extra: `semver` updated to SemVer 2.0.0.
4733       * extra: `term` handles more terminals correctly.
4734       * extra: `dbg` module removed.
4735       * extra: `par` module removed.
4736       * extra: `future` was cleaned up, with some method renames.
4737       * extra: Most free functions in `getopts` were converted to methods.
4738
4739    * Other
4740       * rustc's debug info generation (`-Z debug-info`) is greatly improved.
4741       * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
4742         similarly to gcc's `--march` flag.
4743       * rustc's performance compiling small crates is much better.
4744       * rustpkg has received many improvements.
4745       * rustpkg supports git tags as package IDs.
4746       * rustpkg builds into target-specific directories so it can be used for
4747         cross-compiling.
4748       * The number of concurrent test tasks is controlled by the environment
4749         variable RUST_TEST_TASKS.
4750       * The test harness can now report metrics for benchmarks.
4751       * All tools have man pages.
4752       * Programs compiled with `--test` now support the `-h` and `--help` flags.
4753       * The runtime uses jemalloc for allocations.
4754       * Segmented stacks are temporarily disabled as part of the transition to
4755         the new runtime. Stack overflows are possible!
4756       * A new documentation backend, rustdoc_ng, is available for use. It is
4757         still invoked through the normal `rustdoc` command.
4758
4759
4760 Version 0.7 (2013-07-03)
4761 =======================
4762
4763    * ~2000 changes, numerous bugfixes
4764
4765    * Language
4766       * `impl`s no longer accept a visibility qualifier. Put them on methods
4767         instead.
4768       * The borrow checker has been rewritten with flow-sensitivity, fixing
4769         many bugs and inconveniences.
4770       * The `self` parameter no longer implicitly means `&'self self`,
4771         and can be explicitly marked with a lifetime.
4772       * Overloadable compound operators (`+=`, etc.) have been temporarily
4773         removed due to bugs.
4774       * The `for` loop protocol now requires `for`-iterators to return `bool`
4775         so they compose better.
4776       * The `Durable` trait is replaced with the `'static` bounds.
4777       * Trait default methods work more often.
4778       * Structs with the `#[packed]` attribute have byte alignment and
4779         no padding between fields.
4780       * Type parameters bound by `Copy` must now be copied explicitly with
4781         the `copy` keyword.
4782       * It is now illegal to move out of a dereferenced unsafe pointer.
4783       * `Option<~T>` is now represented as a nullable pointer.
4784       * `@mut` does dynamic borrow checks correctly.
4785       * The `main` function is only detected at the topmost level of the crate.
4786         The `#[main]` attribute is still valid anywhere.
4787       * Struct fields may no longer be mutable. Use inherited mutability.
4788       * The `#[no_send]` attribute makes a type that would otherwise be
4789         `Send`, not.
4790       * The `#[no_freeze]` attribute makes a type that would otherwise be
4791         `Freeze`, not.
4792       * Unbounded recursion will abort the process after reaching the limit
4793         specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
4794       * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
4795         are never implicitly copyable.
4796       * `#[static_assert]` makes compile-time assertions about static bools.
4797       * At long last, 'argument modes' no longer exist.
4798       * The rarely used `use mod` statement no longer exists.
4799
4800    * Syntax extensions
4801       * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
4802         argument list.
4803       * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
4804         `Rand`, `Zero` and `ToStr` can all be automatically derived with
4805         `#[deriving(...)]`.
4806       * The `bytes!` macro returns a vector of bytes for string, u8, char,
4807         and unsuffixed integer literals.
4808
4809    * Libraries
4810       * The `core` crate was renamed to `std`.
4811       * The `std` crate was renamed to `extra`.
4812       * More and improved documentation.
4813       * std: `iterator` module for external iterator objects.
4814       * Many old-style (internal, higher-order function) iterators replaced by
4815         implementations of `Iterator`.
4816       * std: Many old internal vector and string iterators,
4817         incl. `any`, `all`. removed.
4818       * std: The `finalize` method of `Drop` renamed to `drop`.
4819       * std: The `drop` method now takes `&mut self` instead of `&self`.
4820       * std: The prelude no longer reexports any modules, only types and traits.
4821       * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
4822         `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
4823       * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
4824         `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
4825       * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
4826         `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
4827       * std: Many types implement `Clone`.
4828       * std: `path` type renamed to `Path`.
4829       * std: `mut` module and `Mut` type removed.
4830       * std: Many standalone functions removed in favor of methods and iterators
4831         in `vec`, `str`. In the future methods will also work as functions.
4832       * std: `reinterpret_cast` removed. Use `transmute`.
4833       * std: ascii string handling in `std::ascii`.
4834       * std: `Rand` is implemented for ~/@.
4835       * std: `run` module for spawning processes overhauled.
4836       * std: Various atomic types added to `unstable::atomic`.
4837       * std: Various types implement `Zero`.
4838       * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
4839       * std: Borrowed pointer functions moved from `ptr` to `borrow`.
4840       * std: Added `os::mkdir_recursive`.
4841       * std: Added `os::glob` function performs filesystems globs.
4842       * std: `FuzzyEq` renamed to `ApproxEq`.
4843       * std: `Map` now defines `pop` and `swap` methods.
4844       * std: `Cell` constructors converted to static methods.
4845       * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
4846       * extra: `flate` module moved from `std` to `extra`.
4847       * extra: `fileinput` module for iterating over a series of files.
4848       * extra: `Complex` number type and `complex` module.
4849       * extra: `Rational` number type and `rational` module.
4850       * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
4851       * extra: `term` uses terminfo now, is more correct.
4852       * extra: `arc` functions converted to methods.
4853       * extra: Implementation of fixed output size variations of SHA-2.
4854
4855    * Tooling
4856       * `unused_variable`  lint mode for unused variables (default: warn).
4857       * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
4858         (default: warn).
4859       * `unused_mut` lint mode for identifying unused `mut` qualifiers
4860         (default: warn).
4861       * `dead_assignment` lint mode for unread variables (default: warn).
4862       * `unnecessary_allocation` lint mode detects some heap allocations that are
4863         immediately borrowed so could be written without allocating (default: warn).
4864       * `missing_doc` lint mode (default: allow).
4865       * `unreachable_code` lint mode (default: warn).
4866       * The `rusti` command has been rewritten and a number of bugs addressed.
4867       * rustc outputs in color on more terminals.
4868       * rustc accepts a `--link-args` flag to pass arguments to the linker.
4869       * rustc accepts a `-Z print-link-args` flag for debugging linkage.
4870       * Compiling with `-g` will make the binary record information about
4871         dynamic borrowcheck failures for debugging.
4872       * rustdoc has a nicer stylesheet.
4873       * Various improvements to rustdoc.
4874       * Improvements to rustpkg (see the detailed release notes).
4875
4876
4877 Version 0.6 (2013-04-03)
4878 ========================
4879
4880    * ~2100 changes, numerous bugfixes
4881
4882    * Syntax changes
4883       * The self type parameter in traits is now spelled `Self`
4884       * The `self` parameter in trait and impl methods must now be explicitly
4885         named (for example: `fn f(&self) { }`). Implicit self is deprecated.
4886       * Static methods no longer require the `static` keyword and instead
4887         are distinguished by the lack of a `self` parameter
4888       * Replaced the `Durable` trait with the `'static` lifetime
4889       * The old closure type syntax with the trailing sigil has been
4890         removed in favor of the more consistent leading sigil
4891       * `super` is a keyword, and may be prefixed to paths
4892       * Trait bounds are separated with `+` instead of whitespace
4893       * Traits are implemented with `impl Trait for Type`
4894         instead of `impl Type: Trait`
4895       * Lifetime syntax is now `&'l foo` instead of `&l/foo`
4896       * The `export` keyword has finally been removed
4897       * The `move` keyword has been removed (see "Semantic changes")
4898       * The interior mutability qualifier on vectors, `[mut T]`, has been
4899         removed. Use `&mut [T]`, etc.
4900       * `mut` is no longer valid in `~mut T`. Use inherited mutability
4901       * `fail` is no longer a keyword. Use `fail!()`
4902       * `assert` is no longer a keyword. Use `assert!()`
4903       * `log` is no longer a keyword. use `debug!`, etc.
4904       * 1-tuples may be represented as `(T,)`
4905       * Struct fields may no longer be `mut`. Use inherited mutability,
4906         `@mut T`, `core::mut` or `core::cell`
4907       * `extern mod { ... }` is no longer valid syntax for foreign
4908         function modules. Use extern blocks: `extern { ... }`
4909       * Newtype enums removed. Use tuple-structs.
4910       * Trait implementations no longer support visibility modifiers
4911       * Pattern matching over vectors improved and expanded
4912       * `const` renamed to `static` to correspond to lifetime name,
4913         and make room for future `static mut` unsafe mutable globals.
4914       * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
4915       * `Clone` implementations can be automatically generated with
4916         `#[deriving(Clone)]`
4917       * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
4918         instead of `foo as Bar`.
4919       * Fixed length vector types are now written as `[int, .. 3]`
4920         instead of `[int * 3]`.
4921       * Fixed length vector types can express the length as a constant
4922         expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
4923
4924    * Semantic changes
4925       * Types with owned pointers or custom destructors move by default,
4926         eliminating the `move` keyword
4927       * All foreign functions are considered unsafe
4928       * &mut is now unaliasable
4929       * Writes to borrowed @mut pointers are prevented dynamically
4930       * () has size 0
4931       * The name of the main function can be customized using #[main]
4932       * The default type of an inferred closure is &fn instead of @fn
4933       * `use` statements may no longer be "chained" - they cannot import
4934         identifiers imported by previous `use` statements
4935       * `use` statements are crate relative, importing from the "top"
4936         of the crate by default. Paths may be prefixed with `super::`
4937         or `self::` to change the search behavior.
4938       * Method visibility is inherited from the implementation declaration
4939       * Structural records have been removed
4940       * Many more types can be used in static items, including enums
4941         'static-lifetime pointers and vectors
4942       * Pattern matching over vectors improved and expanded
4943       * Typechecking of closure types has been overhauled to
4944         improve inference and eliminate unsoundness
4945       * Macros leave scope at the end of modules, unless that module is
4946         tagged with #[macro_escape]
4947
4948    * Libraries
4949       * Added big integers to `std::bigint`
4950       * Removed `core::oldcomm` module
4951       * Added pipe-based `core::comm` module
4952       * Numeric traits have been reorganized under `core::num`
4953       * `vec::slice` finally returns a slice
4954       * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
4955       * Containers reorganized around traits in `core::container`
4956       * `core::dvec` removed, `~[T]` is a drop-in replacement
4957       * `core::send_map` renamed to `core::hashmap`
4958       * `std::map` removed; replaced with `core::hashmap`
4959       * `std::treemap` reimplemented as an owned balanced tree
4960       * `std::deque` and `std::smallintmap` reimplemented as owned containers
4961       * `core::trie` added as a fast ordered map for integer keys
4962       * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
4963       * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
4964         overload the comparison operators, whereas `TotalOrd` is used
4965         by certain container types
4966
4967    * Other
4968       * Replaced the 'cargo' package manager with 'rustpkg'
4969       * Added all-purpose 'rust' tool
4970       * `rustc --test` now supports benchmarks with the `#[bench]` attribute
4971       * rustc now *attempts* to offer spelling suggestions
4972       * Improved support for ARM and Android
4973       * Preliminary MIPS backend
4974       * Improved foreign function ABI implementation for x86, x86_64
4975       * Various memory usage improvements
4976       * Rust code may be embedded in foreign code under limited circumstances
4977       * Inline assembler supported by new asm!() syntax extension.
4978
4979
4980 Version 0.5 (2012-12-21)
4981 ===========================
4982
4983    * ~900 changes, numerous bugfixes
4984
4985    * Syntax changes
4986       * Removed `<-` move operator
4987       * Completed the transition from the `#fmt` extension syntax to `fmt!`
4988       * Removed old fixed length vector syntax - `[T]/N`
4989       * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
4990       * Macros may now expand to items and statements
4991       * `a.b()` is always parsed as a method call, never as a field projection
4992       * `Eq` and `IterBytes` implementations can be automatically generated
4993         with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
4994       * Removed the special crate language for `.rc` files
4995       * Function arguments may consist of any irrefutable pattern
4996
4997    * Semantic changes
4998       * `&` and `~` pointers may point to objects
4999       * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
5000       * Enum variants may be structs
5001       * Destructors can be added to all nominal types with the Drop trait
5002       * Structs and nullary enum variants may be constants
5003       * Values that cannot be implicitly copied are now automatically moved
5004         without writing `move` explicitly
5005       * `&T` may now be coerced to `*T`
5006       * Coercions happen in `let` statements as well as function calls
5007       * `use` statements now take crate-relative paths
5008       * The module and type namespaces have been merged so that static
5009         method names can be resolved under the trait in which they are
5010         declared
5011
5012    * Improved support for language features
5013       * Trait inheritance works in many scenarios
5014       * More support for explicit self arguments in methods - `self`, `&self`
5015         `@self`, and `~self` all generally work as expected
5016       * Static methods work in more situations
5017       * Experimental: Traits may declare default methods for the implementations
5018         to use
5019
5020    * Libraries
5021       * New condition handling system in `core::condition`
5022       * Timsort added to `std::sort`
5023       * New priority queue, `std::priority_queue`
5024       * Pipes for serializable types, `std::flatpipes'
5025       * Serialization overhauled to be trait-based
5026       * Expanded `getopts` definitions
5027       * Moved futures to `std`
5028       * More functions are pure now
5029       * `core::comm` renamed to `oldcomm`. Still deprecated
5030       * `rustdoc` and `cargo` are libraries now
5031
5032    * Misc
5033       * Added a preliminary REPL, `rusti`
5034       * License changed from MIT to dual MIT/APL2
5035
5036
5037 Version 0.4 (2012-10-15)
5038 ==========================
5039
5040    * ~2000 changes, numerous bugfixes
5041
5042    * Syntax
5043       * All keywords are now strict and may not be used as identifiers anywhere
5044       * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
5045         'of', 'with', 'to', 'class'.
5046       * Classes are replaced with simpler structs
5047       * Explicit method self types
5048       * `ret` became `return` and `alt` became `match`
5049       * `import` is now `use`; `use is now `extern mod`
5050       * `extern mod { ... }` is now `extern { ... }`
5051       * `use mod` is the recommended way to import modules
5052       * `pub` and `priv` replace deprecated export lists
5053       * The syntax of `match` pattern arms now uses fat arrow (=>)
5054       * `main` no longer accepts an args vector; use `os::args` instead
5055
5056    * Semantics
5057       * Trait implementations are now coherent, ala Haskell typeclasses
5058       * Trait methods may be static
5059       * Argument modes are deprecated
5060       * Borrowed pointers are much more mature and recommended for use
5061       * Strings and vectors in the static region are stored in constant memory
5062       * Typestate was removed
5063       * Resolution rewritten to be more reliable
5064       * Support for 'dual-mode' data structures (freezing and thawing)
5065
5066    * Libraries
5067       * Most binary operators can now be overloaded via the traits in
5068         `core::ops'
5069       * `std::net::url` for representing URLs
5070       * Sendable hash maps in `core::send_map`
5071       * `core::task' gained a (currently unsafe) task-local storage API
5072
5073    * Concurrency
5074       * An efficient new intertask communication primitive called the pipe,
5075         along with a number of higher-level channel types, in `core::pipes`
5076       * `std::arc`, an atomically reference counted, immutable, shared memory
5077         type
5078       * `std::sync`, various exotic synchronization tools based on arcs and pipes
5079       * Futures are now based on pipes and sendable
5080       * More robust linked task failure
5081       * Improved task builder API
5082
5083    * Other
5084       * Improved error reporting
5085       * Preliminary JIT support
5086       * Preliminary work on precise GC
5087       * Extensive architectural improvements to rustc
5088       * Begun a transition away from buggy C++-based reflection (shape) code to
5089         Rust-based (visitor) code
5090       * All hash functions and tables converted to secure, randomized SipHash
5091
5092
5093 Version 0.3  (2012-07-12)
5094 ========================
5095
5096    * ~1900 changes, numerous bugfixes
5097
5098    * New coding conveniences
5099       * Integer-literal suffix inference
5100       * Per-item control over warnings, errors
5101       * #[cfg(windows)] and #[cfg(unix)] attributes
5102       * Documentation comments
5103       * More compact closure syntax
5104       * 'do' expressions for treating higher-order functions as
5105         control structures
5106       * *-patterns (wildcard extended to all constructor fields)
5107
5108    * Semantic cleanup
5109       * Name resolution pass and exhaustiveness checker rewritten
5110       * Region pointers and borrow checking supersede alias
5111         analysis
5112       * Init-ness checking is now provided by a region-based liveness
5113         pass instead of the typestate pass; same for last-use analysis
5114       * Extensive work on region pointers
5115
5116    * Experimental new language features
5117       * Slices and fixed-size, interior-allocated vectors
5118       * #!-comments for lang versioning, shell execution
5119       * Destructors and iface implementation for classes;
5120         type-parameterized classes and class methods
5121       * 'const' type kind for types that can be used to implement
5122         shared-memory concurrency patterns
5123
5124    * Type reflection
5125
5126    * Removal of various obsolete features
5127       * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
5128                  'crust', 'native' (now 'extern'), 'cont' (now 'again')
5129
5130       * Constructs: do-while loops ('do' repurposed), fn binding,
5131                     resources (replaced by destructors)
5132
5133    * Compiler reorganization
5134       * Syntax-layer of compiler split into separate crate
5135       * Clang (from LLVM project) integrated into build
5136       * Typechecker split into sub-modules
5137
5138    * New library code
5139       * New time functions
5140       * Extension methods for many built-in types
5141       * Arc: atomic-refcount read-only / exclusive-use shared cells
5142       * Par: parallel map and search routines
5143       * Extensive work on libuv interface
5144       * Much vector code moved to libraries
5145       * Syntax extensions: #line, #col, #file, #mod, #stringify,
5146         #include, #include_str, #include_bin
5147
5148    * Tool improvements
5149       * Cargo automatically resolves dependencies
5150
5151
5152 Version 0.2  (2012-03-29)
5153 =========================
5154
5155    * >1500 changes, numerous bugfixes
5156
5157    * New docs and doc tooling
5158
5159    * New port: FreeBSD x86_64
5160
5161    * Compilation model enhancements
5162       * Generics now specialized, multiply instantiated
5163       * Functions now inlined across separate crates
5164
5165    * Scheduling, stack and threading fixes
5166       * Noticeably improved message-passing performance
5167       * Explicit schedulers
5168       * Callbacks from C
5169       * Helgrind clean
5170
5171    * Experimental new language features
5172       * Operator overloading
5173       * Region pointers
5174       * Classes
5175
5176    * Various language extensions
5177       * C-callback function types: 'crust fn ...'
5178       * Infinite-loop construct: 'loop { ... }'
5179       * Shorten 'mutable' to 'mut'
5180       * Required mutable-local qualifier: 'let mut ...'
5181       * Basic glob-exporting: 'export foo::*;'
5182       * Alt now exhaustive, 'alt check' for runtime-checked
5183       * Block-function form of 'for' loop, with 'break' and 'ret'.
5184
5185    * New library code
5186       * AST quasi-quote syntax extension
5187       * Revived libuv interface
5188       * New modules: core::{future, iter}, std::arena
5189       * Merged per-platform std::{os*, fs*} to core::{libc, os}
5190       * Extensive cleanup, regularization in libstd, libcore
5191
5192
5193 Version 0.1  (2012-01-20)
5194 ===============================
5195
5196    * Most language features work, including:
5197       * Unique pointers, unique closures, move semantics
5198       * Interface-constrained generics
5199       * Static interface dispatch
5200       * Stack growth
5201       * Multithread task scheduling
5202       * Typestate predicates
5203       * Failure unwinding, destructors
5204       * Pattern matching and destructuring assignment
5205       * Lightweight block-lambda syntax
5206       * Preliminary macro-by-example
5207
5208    * Compiler works with the following configurations:
5209       * Linux: x86 and x86_64 hosts and targets
5210       * macOS: x86 and x86_64 hosts and targets
5211       * Windows: x86 hosts and targets
5212
5213    * Cross compilation / multi-target configuration supported.
5214
5215    * Preliminary API-documentation and package-management tools included.
5216
5217 Known issues:
5218
5219    * Documentation is incomplete.
5220
5221    * Performance is below intended target.
5222
5223    * Standard library APIs are subject to extensive change, reorganization.
5224
5225    * Language-level versioning is not yet operational - future code will
5226      break unexpectedly.