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