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