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