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