]> git.lizzy.rs Git - rust.git/blob - RELEASES.md
Only hash dep node indices of deps of anon tasks
[rust.git] / RELEASES.md
1 Version 1.34.1 (2019-04-25)
2 ===========================
3
4 * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821]
5 * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844]
6 * [Fix Clippy panic when checking some macros][clippy/3805]
7
8 [clippy/3821]: https://github.com/rust-lang/rust-clippy/pull/3821
9 [clippy/3844]: https://github.com/rust-lang/rust-clippy/pull/3844
10 [clippy/3805]: https://github.com/rust-lang/rust-clippy/pull/3805
11
12 Version 1.34.0 (2019-04-11)
13 ==========================
14
15 Language
16 --------
17 - [You can now use `#[deprecated = "reason"]`][58166] as a shorthand for
18   `#[deprecated(note = "reason")]`. This was previously allowed by mistake
19   but had no effect.
20 - [You can now accept token streams in `#[attr()]`,`#[attr[]]`, and
21   `#[attr{}]` procedural macros.][57367]
22 - [You can now write `extern crate self as foo;`][57407] to import your
23   crate's root into the extern prelude.
24
25
26 Compiler
27 --------
28 - [You can now target `riscv64imac-unknown-none-elf` and
29   `riscv64gc-unknown-none-elf`.][58406]
30 - [You can now enable linker plugin LTO optimisations with
31   `-C linker-plugin-lto`.][58057] This allows rustc to compile your Rust code
32   into LLVM bitcode allowing LLVM to perform LTO optimisations across C/C++ FFI
33   boundaries.
34 - [You can now target `powerpc64-unknown-freebsd`.][57809]
35
36
37 Libraries
38 ---------
39 - [The trait bounds have been removed on some of `HashMap<K, V, S>`'s and
40   `HashSet<T, S>`'s basic methods.][58370] Most notably you no longer require
41   the `Hash` trait to create an iterator.
42 - [The `Ord` trait bounds have been removed on some of `BinaryHeap<T>`'s basic
43   methods.][58421] Most notably you no longer require the `Ord` trait to create
44   an iterator.
45 - [The methods `overflowing_neg` and `wrapping_neg` are now `const` functions
46   for all numeric types.][58044]
47 - [Indexing a `str` is now generic over all types that
48   implement `SliceIndex<str>`.][57604]
49 - [`str::trim`, `str::trim_matches`, `str::trim_{start, end}`, and
50   `str::trim_{start, end}_matches` are now `#[must_use]`][57106] and will
51   produce a warning if their returning type is unused.
52 - [The methods `checked_pow`, `saturating_pow`, `wrapping_pow`, and
53   `overflowing_pow` are now available for all numeric types.][57873] These are
54   equivalvent to methods such as `wrapping_add` for the `pow` operation.
55
56
57 Stabilized APIs
58 ---------------
59
60 #### std & core
61 * [`Any::type_id`]
62 * [`Error::type_id`]
63 * [`atomic::AtomicI16`]
64 * [`atomic::AtomicI32`]
65 * [`atomic::AtomicI64`]
66 * [`atomic::AtomicI8`]
67 * [`atomic::AtomicU16`]
68 * [`atomic::AtomicU32`]
69 * [`atomic::AtomicU64`]
70 * [`atomic::AtomicU8`]
71 * [`convert::Infallible`]
72 * [`convert::TryFrom`]
73 * [`convert::TryInto`]
74 * [`iter::from_fn`]
75 * [`iter::successors`]
76 * [`num::NonZeroI128`]
77 * [`num::NonZeroI16`]
78 * [`num::NonZeroI32`]
79 * [`num::NonZeroI64`]
80 * [`num::NonZeroI8`]
81 * [`num::NonZeroIsize`]
82 * [`slice::sort_by_cached_key`]
83 * [`str::escape_debug`]
84 * [`str::escape_default`]
85 * [`str::escape_unicode`]
86 * [`str::split_ascii_whitespace`]
87
88 #### std
89 * [`Instant::checked_add`]
90 * [`Instant::checked_sub`]
91 * [`SystemTime::checked_add`]
92 * [`SystemTime::checked_sub`]
93
94 Cargo
95 -----
96 - [You can now use alternative registries to crates.io.][cargo/6654]
97
98 Misc
99 ----
100 - [You can now use the `?` operator in your documentation tests without manually
101   adding `fn main() -> Result<(), _> {}`.][56470]
102
103 Compatibility Notes
104 -------------------
105 - [`Command::before_exec` is now deprecated in favor of the
106   unsafe method `Command::pre_exec`.][58059]
107 - [Use of `ATOMIC_{BOOL, ISIZE, USIZE}_INIT` is now deprecated.][57425] As you
108   can now use `const` functions in `static` variables.
109
110 [58370]: https://github.com/rust-lang/rust/pull/58370/
111 [58406]: https://github.com/rust-lang/rust/pull/58406/
112 [58421]: https://github.com/rust-lang/rust/pull/58421/
113 [58166]: https://github.com/rust-lang/rust/pull/58166/
114 [58044]: https://github.com/rust-lang/rust/pull/58044/
115 [58057]: https://github.com/rust-lang/rust/pull/58057/
116 [58059]: https://github.com/rust-lang/rust/pull/58059/
117 [57809]: https://github.com/rust-lang/rust/pull/57809/
118 [57873]: https://github.com/rust-lang/rust/pull/57873/
119 [57604]: https://github.com/rust-lang/rust/pull/57604/
120 [57367]: https://github.com/rust-lang/rust/pull/57367/
121 [57407]: https://github.com/rust-lang/rust/pull/57407/
122 [57425]: https://github.com/rust-lang/rust/pull/57425/
123 [57106]: https://github.com/rust-lang/rust/pull/57106/
124 [56470]: https://github.com/rust-lang/rust/pull/56470/
125 [cargo/6654]: https://github.com/rust-lang/cargo/pull/6654/
126 [`Any::type_id`]: https://doc.rust-lang.org/std/any/trait.Any.html#tymethod.type_id
127 [`Error::type_id`]: https://doc.rust-lang.org/std/error/trait.Error.html#method.type_id
128 [`atomic::AtomicI16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI16.html
129 [`atomic::AtomicI32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI32.html
130 [`atomic::AtomicI64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI64.html
131 [`atomic::AtomicI8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI8.html
132 [`atomic::AtomicU16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU16.html
133 [`atomic::AtomicU32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU32.html
134 [`atomic::AtomicU64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html
135 [`atomic::AtomicU8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html
136 [`convert::Infallible`]: https://doc.rust-lang.org/std/convert/enum.Infallible.html
137 [`convert::TryFrom`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html
138 [`convert::TryInto`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html
139 [`iter::from_fn`]: https://doc.rust-lang.org/std/iter/fn.from_fn.html
140 [`iter::successors`]: https://doc.rust-lang.org/std/iter/fn.successors.html
141 [`num::NonZeroI128`]: https://doc.rust-lang.org/std/num/struct.NonZeroI128.html
142 [`num::NonZeroI16`]: https://doc.rust-lang.org/std/num/struct.NonZeroI16.html
143 [`num::NonZeroI32`]: https://doc.rust-lang.org/std/num/struct.NonZeroI32.html
144 [`num::NonZeroI64`]: https://doc.rust-lang.org/std/num/struct.NonZeroI64.html
145 [`num::NonZeroI8`]: https://doc.rust-lang.org/std/num/struct.NonZeroI8.html
146 [`num::NonZeroIsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroIsize.html
147 [`slice::sort_by_cached_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key
148 [`str::escape_debug`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_debug
149 [`str::escape_default`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_default
150 [`str::escape_unicode`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_unicode
151 [`str::split_ascii_whitespace`]: https://doc.rust-lang.org/std/primitive.str.html#method.split_ascii_whitespace
152 [`Instant::checked_add`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_add
153 [`Instant::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_sub
154 [`SystemTime::checked_add`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_add
155 [`SystemTime::checked_sub`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_sub
156
157
158 Version 1.33.0 (2019-02-28)
159 ==========================
160
161 Language
162 --------
163 - [You can now use the `cfg(target_vendor)` attribute.][57465] E.g.
164   `#[cfg(target_vendor="apple")] fn main() { println!("Hello Apple!"); }`
165 - [Integer patterns such as in a match expression can now be exhaustive.][56362]
166   E.g. You can have match statement on a `u8` that covers `0..=255` and
167   you would no longer be required to have a `_ => unreachable!()` case.
168 - [You can now have multiple patterns in `if let` and `while let`
169   expressions.][57532] You can do this with the same syntax as a `match`
170   expression. E.g.
171   ```rust
172   enum Creature {
173       Crab(String),
174       Lobster(String),
175       Person(String),
176   }
177
178   fn main() {
179       let state = Creature::Crab("Ferris");
180
181       if let Creature::Crab(name) | Creature::Person(name) = state {
182           println!("This creature's name is: {}", name);
183       }
184   }
185   ```
186 - [You can now have irrefutable `if let` and `while let` patterns.][57535] Using
187   this feature will by default produce a warning as this behaviour can be
188   unintuitive. E.g. `if let _ = 5 {}`
189 - [You can now use `let` bindings, assignments, expression statements,
190   and irrefutable pattern destructuring in const functions.][57175]
191 - [You can now call unsafe const functions.][57067] E.g.
192   ```rust
193   const unsafe fn foo() -> i32 { 5 }
194   const fn bar() -> i32 {
195       unsafe { foo() }
196   }
197   ```
198 - [You can now specify multiple attributes in a `cfg_attr` attribute.][57332]
199   E.g. `#[cfg_attr(all(), must_use, optimize)]`
200 - [You can now specify a specific alignment with the `#[repr(packed)]`
201   attribute.][57049] E.g. `#[repr(packed(2))] struct Foo(i16, i32);` is a struct
202   with an alignment of 2 bytes and a size of 6 bytes.
203 - [You can now import an item from a module as an `_`.][56303] This allows you to
204   import a trait's impls, and not have the name in the namespace. E.g.
205   ```rust
206   use std::io::Read as _;
207
208   // Allowed as there is only one `Read` in the module.
209   pub trait Read {}
210   ```
211 - [You may now use `Rc`, `Arc`, and `Pin` as method receivers][56805].
212
213 Compiler
214 --------
215 - [You can now set a linker flavor for `rustc` with the `-Clinker-flavor`
216   command line argument.][56351]
217 - [The mininum required LLVM version has been bumped to 6.0.][56642]
218 - [Added support for the PowerPC64 architecture on FreeBSD.][57615]
219 - [The `x86_64-fortanix-unknown-sgx` target support has been upgraded to
220   tier 2 support.][57130] Visit the [platform support][platform-support] page for
221   information on Rust's platform support.
222 - [Added support for the `thumbv7neon-linux-androideabi` and
223   `thumbv7neon-unknown-linux-gnueabihf` targets.][56947]
224 - [Added support for the `x86_64-unknown-uefi` target.][56769]
225
226 Libraries
227 ---------
228 - [The methods `overflowing_{add, sub, mul, shl, shr}` are now `const`
229   functions for all numeric types.][57566]
230 - [The methods `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
231   are now `const` functions for all numeric types.][57105]
232 - [The methods `is_positive` and `is_negative` are now `const` functions for
233   all signed numeric types.][57105]
234 - [The `get` method for all `NonZero` types is now `const`.][57167]
235 - [The methods `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
236   `swap_bytes`, `from_be`, `from_le`, `to_be`, `to_le` are now `const` for all
237   numeric types.][57234]
238 - [`Ipv4Addr::new` is now a `const` function][57234]
239
240 Stabilized APIs
241 ---------------
242 - [`unix::FileExt::read_exact_at`]
243 - [`unix::FileExt::write_all_at`]
244 - [`Option::transpose`]
245 - [`Result::transpose`]
246 - [`convert::identity`]
247 - [`pin::Pin`]
248 - [`marker::Unpin`]
249 - [`marker::PhantomPinned`]
250 - [`Vec::resize_with`]
251 - [`VecDeque::resize_with`]
252 - [`Duration::as_millis`]
253 - [`Duration::as_micros`]
254 - [`Duration::as_nanos`]
255
256
257 Cargo
258 -----
259 - [You can now publish crates that require a feature flag to compile with
260   `cargo publish --features` or `cargo publish --all-features`.][cargo/6453]
261 - [Cargo should now rebuild a crate if a file was modified during the initial
262   build.][cargo/6484]
263
264 Compatibility Notes
265 -------------------
266 - The methods `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
267   are now deprecated in the standard library, and their usage will now produce a warning.
268   Please use the `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}`
269   methods instead.
270 - The `Error::cause` method has been deprecated in favor of `Error::source` which supports
271   downcasting.
272 - [Libtest no longer creates a new thread for each test when
273   `--test-threads=1`.  It also runs the tests in deterministic order][56243]
274
275 [55982]: https://github.com/rust-lang/rust/pull/55982/
276 [56243]: https://github.com/rust-lang/rust/pull/56243
277 [56303]: https://github.com/rust-lang/rust/pull/56303/
278 [56351]: https://github.com/rust-lang/rust/pull/56351/
279 [56362]: https://github.com/rust-lang/rust/pull/56362
280 [56642]: https://github.com/rust-lang/rust/pull/56642/
281 [56769]: https://github.com/rust-lang/rust/pull/56769/
282 [56805]: https://github.com/rust-lang/rust/pull/56805
283 [56947]: https://github.com/rust-lang/rust/pull/56947/
284 [57049]: https://github.com/rust-lang/rust/pull/57049/
285 [57067]: https://github.com/rust-lang/rust/pull/57067/
286 [57105]: https://github.com/rust-lang/rust/pull/57105
287 [57130]: https://github.com/rust-lang/rust/pull/57130/
288 [57167]: https://github.com/rust-lang/rust/pull/57167/
289 [57175]: https://github.com/rust-lang/rust/pull/57175/
290 [57234]: https://github.com/rust-lang/rust/pull/57234/
291 [57332]: https://github.com/rust-lang/rust/pull/57332/
292 [57465]: https://github.com/rust-lang/rust/pull/57465/
293 [57532]: https://github.com/rust-lang/rust/pull/57532/
294 [57535]: https://github.com/rust-lang/rust/pull/57535/
295 [57566]: https://github.com/rust-lang/rust/pull/57566/
296 [57615]: https://github.com/rust-lang/rust/pull/57615/
297 [cargo/6453]: https://github.com/rust-lang/cargo/pull/6453/
298 [cargo/6484]: https://github.com/rust-lang/cargo/pull/6484/
299 [`unix::FileExt::read_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
300 [`unix::FileExt::write_all_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
301 [`Option::transpose`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.transpose
302 [`Result::transpose`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
303 [`convert::identity`]: https://doc.rust-lang.org/std/convert/fn.identity.html
304 [`pin::Pin`]: https://doc.rust-lang.org/std/pin/struct.Pin.html
305 [`marker::Unpin`]: https://doc.rust-lang.org/stable/std/marker/trait.Unpin.html
306 [`marker::PhantomPinned`]: https://doc.rust-lang.org/nightly/std/marker/struct.PhantomPinned.html
307 [`Vec::resize_with`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize_with
308 [`VecDeque::resize_with`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.resize_with
309 [`Duration::as_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis
310 [`Duration::as_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_micros
311 [`Duration::as_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_nanos
312 [platform-support]: https://forge.rust-lang.org/platform-support.html
313
314 Version 1.32.0 (2019-01-17)
315 ==========================
316
317 Language
318 --------
319 #### 2018 edition
320 - [You can now use the `?` operator in macro definitions.][56245] The `?`
321   operator allows you to specify zero or one repetitions similar to the `*` and
322   `+` operators.
323 - [Module paths with no leading keyword like `super`, `self`, or `crate`, will
324   now always resolve to the item (`enum`, `struct`, etc.) available in the
325   module if present, before resolving to a external crate or an item the prelude.][56759]
326   E.g.
327   ```rust
328   enum Color { Red, Green, Blue }
329
330   use Color::*;
331   ```
332
333 #### All editions
334 - [You can now match against `PhantomData<T>` types.][55837]
335 - [You can now match against literals in macros with the `literal`
336   specifier.][56072] This will match against a literal of any type.
337   E.g. `1`, `'A'`, `"Hello World"`
338 - [Self can now be used as a constructor and pattern for unit and tuple structs.][56365] E.g.
339   ```rust
340   struct Point(i32, i32);
341
342   impl Point {
343       pub fn new(x: i32, y: i32) -> Self {
344           Self(x, y)
345       }
346
347       pub fn is_origin(&self) -> bool {
348           match self {
349               Self(0, 0) => true,
350               _ => false,
351           }
352       }
353   }
354   ```
355 - [Self can also now be used in type definitions.][56366] E.g.
356   ```rust
357   enum List<T>
358   where
359       Self: PartialOrd<Self> // can write `Self` instead of `List<T>`
360   {
361       Nil,
362       Cons(T, Box<Self>) // likewise here
363   }
364   ```
365 - [You can now mark traits with `#[must_use]`.][55663] This provides a warning if
366   a `impl Trait` or `dyn Trait` is returned and unused in the program.
367
368 Compiler
369 --------
370 - [The default allocator has changed from jemalloc to the default allocator on
371   your system.][55238] The compiler itself on Linux & macOS will still use
372   jemalloc, but programs compiled with it will use the system allocator.
373 - [Added the `aarch64-pc-windows-msvc` target.][55702]
374
375 Libraries
376 ---------
377 - [`PathBuf` now implements `FromStr`.][55148]
378 - [`Box<[T]>` now implements `FromIterator<T>`.][55843]
379 - [The `dbg!` macro has been stabilized.][56395] This macro enables you to
380   easily debug expressions in your rust program. E.g.
381   ```rust
382   let a = 2;
383   let b = dbg!(a * 2) + 1;
384   //      ^-- prints: [src/main.rs:4] a * 2 = 4
385   assert_eq!(b, 5);
386   ```
387
388 The following APIs are now `const` functions and can be used in a
389 `const` context.
390
391 - [`Cell::as_ptr`]
392 - [`UnsafeCell::get`]
393 - [`char::is_ascii`]
394 - [`iter::empty`]
395 - [`ManuallyDrop::new`]
396 - [`ManuallyDrop::into_inner`]
397 - [`RangeInclusive::start`]
398 - [`RangeInclusive::end`]
399 - [`NonNull::as_ptr`]
400 - [`slice::as_ptr`]
401 - [`str::as_ptr`]
402 - [`Duration::as_secs`]
403 - [`Duration::subsec_millis`]
404 - [`Duration::subsec_micros`]
405 - [`Duration::subsec_nanos`]
406 - [`CStr::as_ptr`]
407 - [`Ipv4Addr::is_unspecified`]
408 - [`Ipv6Addr::new`]
409 - [`Ipv6Addr::octets`]
410
411 Stabilized APIs
412 ---------------
413 - [`i8::to_be_bytes`]
414 - [`i8::to_le_bytes`]
415 - [`i8::to_ne_bytes`]
416 - [`i8::from_be_bytes`]
417 - [`i8::from_le_bytes`]
418 - [`i8::from_ne_bytes`]
419 - [`i16::to_be_bytes`]
420 - [`i16::to_le_bytes`]
421 - [`i16::to_ne_bytes`]
422 - [`i16::from_be_bytes`]
423 - [`i16::from_le_bytes`]
424 - [`i16::from_ne_bytes`]
425 - [`i32::to_be_bytes`]
426 - [`i32::to_le_bytes`]
427 - [`i32::to_ne_bytes`]
428 - [`i32::from_be_bytes`]
429 - [`i32::from_le_bytes`]
430 - [`i32::from_ne_bytes`]
431 - [`i64::to_be_bytes`]
432 - [`i64::to_le_bytes`]
433 - [`i64::to_ne_bytes`]
434 - [`i64::from_be_bytes`]
435 - [`i64::from_le_bytes`]
436 - [`i64::from_ne_bytes`]
437 - [`i128::to_be_bytes`]
438 - [`i128::to_le_bytes`]
439 - [`i128::to_ne_bytes`]
440 - [`i128::from_be_bytes`]
441 - [`i128::from_le_bytes`]
442 - [`i128::from_ne_bytes`]
443 - [`isize::to_be_bytes`]
444 - [`isize::to_le_bytes`]
445 - [`isize::to_ne_bytes`]
446 - [`isize::from_be_bytes`]
447 - [`isize::from_le_bytes`]
448 - [`isize::from_ne_bytes`]
449 - [`u8::to_be_bytes`]
450 - [`u8::to_le_bytes`]
451 - [`u8::to_ne_bytes`]
452 - [`u8::from_be_bytes`]
453 - [`u8::from_le_bytes`]
454 - [`u8::from_ne_bytes`]
455 - [`u16::to_be_bytes`]
456 - [`u16::to_le_bytes`]
457 - [`u16::to_ne_bytes`]
458 - [`u16::from_be_bytes`]
459 - [`u16::from_le_bytes`]
460 - [`u16::from_ne_bytes`]
461 - [`u32::to_be_bytes`]
462 - [`u32::to_le_bytes`]
463 - [`u32::to_ne_bytes`]
464 - [`u32::from_be_bytes`]
465 - [`u32::from_le_bytes`]
466 - [`u32::from_ne_bytes`]
467 - [`u64::to_be_bytes`]
468 - [`u64::to_le_bytes`]
469 - [`u64::to_ne_bytes`]
470 - [`u64::from_be_bytes`]
471 - [`u64::from_le_bytes`]
472 - [`u64::from_ne_bytes`]
473 - [`u128::to_be_bytes`]
474 - [`u128::to_le_bytes`]
475 - [`u128::to_ne_bytes`]
476 - [`u128::from_be_bytes`]
477 - [`u128::from_le_bytes`]
478 - [`u128::from_ne_bytes`]
479 - [`usize::to_be_bytes`]
480 - [`usize::to_le_bytes`]
481 - [`usize::to_ne_bytes`]
482 - [`usize::from_be_bytes`]
483 - [`usize::from_le_bytes`]
484 - [`usize::from_ne_bytes`]
485
486 Cargo
487 -----
488 - [You can now run `cargo c` as an alias for `cargo check`.][cargo/6218]
489 - [Usernames are now allowed in alt registry URLs.][cargo/6242]
490
491 Misc
492 ----
493 - [`libproc_macro` has been added to the `rust-src` distribution.][55280]
494
495 Compatibility Notes
496 -------------------
497 - [The argument types for AVX's
498   `_mm256_stream_si256`, `_mm256_stream_pd`, `_mm256_stream_ps`][55610] have
499   been changed from `*const` to `*mut` as the previous implementation
500   was unsound.
501
502
503 [55148]: https://github.com/rust-lang/rust/pull/55148/
504 [55238]: https://github.com/rust-lang/rust/pull/55238/
505 [55280]: https://github.com/rust-lang/rust/pull/55280/
506 [55610]: https://github.com/rust-lang/rust/pull/55610/
507 [55663]: https://github.com/rust-lang/rust/pull/55663/
508 [55702]: https://github.com/rust-lang/rust/pull/55702/
509 [55837]: https://github.com/rust-lang/rust/pull/55837/
510 [55843]: https://github.com/rust-lang/rust/pull/55843/
511 [56072]: https://github.com/rust-lang/rust/pull/56072/
512 [56245]: https://github.com/rust-lang/rust/pull/56245/
513 [56365]: https://github.com/rust-lang/rust/pull/56365/
514 [56366]: https://github.com/rust-lang/rust/pull/56366/
515 [56395]: https://github.com/rust-lang/rust/pull/56395/
516 [56759]: https://github.com/rust-lang/rust/pull/56759/
517 [cargo/6218]: https://github.com/rust-lang/cargo/pull/6218/
518 [cargo/6242]: https://github.com/rust-lang/cargo/pull/6242/
519 [`CStr::as_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.as_ptr
520 [`Cell::as_ptr`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr
521 [`Duration::as_secs`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs
522 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
523 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
524 [`Duration::subsec_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_nanos
525 [`Ipv4Addr::is_unspecified`]: https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified
526 [`Ipv6Addr::new`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.new
527 [`Ipv6Addr::octets`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets
528 [`ManuallyDrop::into_inner`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.into_inner
529 [`ManuallyDrop::new`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.new
530 [`NonNull::as_ptr`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.as_ptr
531 [`RangeInclusive::end`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
532 [`RangeInclusive::start`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
533 [`UnsafeCell::get`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html#method.get
534 [`slice::as_ptr`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
535 [`char::is_ascii`]: https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
536 [`i128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_be_bytes
537 [`i128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_le_bytes
538 [`i128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_ne_bytes
539 [`i128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_be_bytes
540 [`i128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_le_bytes
541 [`i128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_ne_bytes
542 [`i16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
543 [`i16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
544 [`i16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_ne_bytes
545 [`i16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_be_bytes
546 [`i16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_le_bytes
547 [`i16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_ne_bytes
548 [`i32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_be_bytes
549 [`i32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_le_bytes
550 [`i32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_ne_bytes
551 [`i32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_be_bytes
552 [`i32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_le_bytes
553 [`i32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_ne_bytes
554 [`i64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_be_bytes
555 [`i64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_le_bytes
556 [`i64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_ne_bytes
557 [`i64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_be_bytes
558 [`i64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_le_bytes
559 [`i64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_ne_bytes
560 [`i8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_be_bytes
561 [`i8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_le_bytes
562 [`i8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_ne_bytes
563 [`i8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_be_bytes
564 [`i8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_le_bytes
565 [`i8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_ne_bytes
566 [`isize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_be_bytes
567 [`isize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_le_bytes
568 [`isize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_ne_bytes
569 [`isize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_be_bytes
570 [`isize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_le_bytes
571 [`isize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_ne_bytes
572 [`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
573 [`str::as_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_ptr
574 [`u128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_be_bytes
575 [`u128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_le_bytes
576 [`u128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_ne_bytes
577 [`u128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_be_bytes
578 [`u128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_le_bytes
579 [`u128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_ne_bytes
580 [`u16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_be_bytes
581 [`u16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_le_bytes
582 [`u16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_ne_bytes
583 [`u16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_be_bytes
584 [`u16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_le_bytes
585 [`u16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_ne_bytes
586 [`u32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_be_bytes
587 [`u32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_le_bytes
588 [`u32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_ne_bytes
589 [`u32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_be_bytes
590 [`u32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_le_bytes
591 [`u32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_ne_bytes
592 [`u64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_be_bytes
593 [`u64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_le_bytes
594 [`u64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_ne_bytes
595 [`u64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_be_bytes
596 [`u64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_le_bytes
597 [`u64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_ne_bytes
598 [`u8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_be_bytes
599 [`u8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_le_bytes
600 [`u8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_ne_bytes
601 [`u8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_be_bytes
602 [`u8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_le_bytes
603 [`u8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ne_bytes
604 [`usize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_be_bytes
605 [`usize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_le_bytes
606 [`usize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_ne_bytes
607 [`usize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_be_bytes
608 [`usize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_le_bytes
609 [`usize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_ne_bytes
610
611
612 Version 1.31.1 (2018-12-20)
613 ===========================
614
615 - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562]
616 - [Fix broken go-to-definition in RLS][rls/1171]
617 - [Fix infinite loop on hover in RLS][rls/1170]
618
619 [56562]: https://github.com/rust-lang/rust/pull/56562
620 [rls/1171]: https://github.com/rust-lang/rls/issues/1171
621 [rls/1170]: https://github.com/rust-lang/rls/pull/1170
622
623 Version 1.31.0 (2018-12-06)
624 ==========================
625
626 Language
627 --------
628 - 🎉 [This version marks the release of the 2018 edition of Rust.][54057] 🎉
629 - [New lifetime elision rules now allow for eliding lifetimes in functions and
630   impl headers.][54778] E.g. `impl<'a> Reader for BufReader<'a> {}` can now be
631   `impl Reader for BufReader<'_> {}`. Lifetimes are still required to be defined
632   in structs.
633 - [You can now define and use `const` functions.][54835] These are currently
634   a strict minimal subset of the [const fn RFC][RFC-911]. Refer to the
635   [language reference][const-reference] for what exactly is available.
636 - [You can now use tool lints, which allow you to scope lints from external
637   tools using attributes.][54870] E.g. `#[allow(clippy::filter_map)]`.
638 - [`#[no_mangle]` and `#[export_name]` attributes can now be located anywhere in
639   a crate, not just in exported functions.][54451]
640 - [You can now use parentheses in pattern matches.][54497]
641
642 Compiler
643 --------
644 - [Updated musl to 1.1.20][54430]
645
646 Libraries
647 ---------
648 - [You can now convert `num::NonZero*` types to their raw equivalvents using the
649   `From` trait.][54240] E.g. `u8` now implements `From<NonZeroU8>`.
650 - [You can now convert a `&Option<T>` into `Option<&T>` and `&mut Option<T>`
651   into `Option<&mut T>` using the `From` trait.][53218]
652 - [You can now multiply (`*`) a `time::Duration` by a `u32`.][52813]
653
654
655 Stabilized APIs
656 ---------------
657 - [`slice::align_to`]
658 - [`slice::align_to_mut`]
659 - [`slice::chunks_exact`]
660 - [`slice::chunks_exact_mut`]
661 - [`slice::rchunks`]
662 - [`slice::rchunks_mut`]
663 - [`slice::rchunks_exact`]
664 - [`slice::rchunks_exact_mut`]
665 - [`Option::replace`]
666
667 Cargo
668 -----
669 - [Cargo will now download crates in parallel using HTTP/2.][cargo/6005]
670 - [You can now rename packages in your Cargo.toml][cargo/6319] We have a guide
671   on [how to use the `package` key in your dependencies.][cargo-rename-reference]
672
673 [52813]: https://github.com/rust-lang/rust/pull/52813/
674 [53218]: https://github.com/rust-lang/rust/pull/53218/
675 [53555]: https://github.com/rust-lang/rust/issues/53555/
676 [54057]: https://github.com/rust-lang/rust/pull/54057/
677 [54240]: https://github.com/rust-lang/rust/pull/54240/
678 [54430]: https://github.com/rust-lang/rust/pull/54430/
679 [54451]: https://github.com/rust-lang/rust/pull/54451/
680 [54497]: https://github.com/rust-lang/rust/pull/54497/
681 [54778]: https://github.com/rust-lang/rust/pull/54778/
682 [54835]: https://github.com/rust-lang/rust/pull/54835/
683 [54870]: https://github.com/rust-lang/rust/pull/54870/
684 [RFC-911]: https://github.com/rust-lang/rfcs/pull/911
685 [`Option::replace`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.replace
686 [`slice::align_to_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to_mut
687 [`slice::align_to`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to
688 [`slice::chunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact_mut
689 [`slice::chunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact
690 [`slice::rchunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
691 [`slice::rchunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_exact
692 [`slice::rchunks_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
693 [`slice::rchunks`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks
694 [cargo/6005]: https://github.com/rust-lang/cargo/pull/6005/
695 [cargo/6319]: https://github.com/rust-lang/cargo/pull/6319/
696 [cargo-rename-reference]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
697 [const-reference]: https://doc.rust-lang.org/reference/items/functions.html#const-functions
698
699 Version 1.30.1 (2018-11-08)
700 ===========================
701
702 - [Fixed overflow ICE in rustdoc][54199]
703 - [Cap Cargo progress bar width at 60 in MSYS terminals][cargo/6122]
704
705 [54199]: https://github.com/rust-lang/rust/pull/54199
706 [cargo/6122]: https://github.com/rust-lang/cargo/pull/6122
707
708 Version 1.30.0 (2018-10-25)
709 ==========================
710
711 Language
712 --------
713 - [Procedural macros are now available.][52081] These kinds of macros allow for
714   more powerful code generation. There is a [new chapter available][proc-macros]
715   in the Rust Programming Language book that goes further in depth.
716 - [You can now use keywords as identifiers using the raw identifiers
717   syntax (`r#`),][53236] e.g. `let r#for = true;`
718 - [Using anonymous parameters in traits is now deprecated with a warning and
719   will be a hard error in the 2018 edition.][53272]
720 - [You can now use `crate` in paths.][54404] This allows you to refer to the
721   crate root in the path, e.g. `use crate::foo;` refers to `foo` in `src/lib.rs`.
722 - [Using a external crate no longer requires being prefixed with `::`.][54404]
723   Previously, using a external crate in a module without a use statement
724   required `let json = ::serde_json::from_str(foo);` but can now be written
725   as `let json = serde_json::from_str(foo);`.
726 - [You can now apply the `#[used]` attribute to static items to prevent the
727   compiler from optimising them away, even if they appear to be unused,][51363]
728   e.g. `#[used] static FOO: u32 = 1;`
729 - [You can now import and reexport macros from other crates with the `use`
730   syntax.][50911] Macros exported with `#[macro_export]` are now placed into
731   the root module of the crate. If your macro relies on calling other local
732   macros, it is recommended to export with the
733   `#[macro_export(local_inner_macros)]` attribute so users won't have to import
734   those macros.
735 - [You can now catch visibility keywords (e.g. `pub`, `pub(crate)`) in macros
736   using the `vis` specifier.][53370]
737 - [Non-macro attributes now allow all forms of literals, not just
738   strings.][53044] Previously, you would write `#[attr("true")]`, and you can now
739   write `#[attr(true)]`.
740 - [You can now specify a function to handle a panic in the Rust runtime with the
741   `#[panic_handler]` attribute.][51366]
742
743 Compiler
744 --------
745 - [Added the `riscv32imc-unknown-none-elf` target.][53822]
746 - [Added the `aarch64-unknown-netbsd` target][53165]
747
748 Libraries
749 ---------
750 - [`ManuallyDrop` now allows the inner type to be unsized.][53033]
751
752 Stabilized APIs
753 ---------------
754 - [`Ipv4Addr::BROADCAST`]
755 - [`Ipv4Addr::LOCALHOST`]
756 - [`Ipv4Addr::UNSPECIFIED`]
757 - [`Ipv6Addr::LOCALHOST`]
758 - [`Ipv6Addr::UNSPECIFIED`]
759 - [`Iterator::find_map`]
760
761   The following methods are replacement methods for `trim_left`, `trim_right`,
762   `trim_left_matches`, and `trim_right_matches`, which will be deprecated
763   in 1.33.0:
764 - [`str::trim_end_matches`]
765 - [`str::trim_end`]
766 - [`str::trim_start_matches`]
767 - [`str::trim_start`]
768
769 Cargo
770 ----
771 - [`cargo run` doesn't require specifying a package in workspaces.][cargo/5877]
772 - [`cargo doc` now supports `--message-format=json`.][cargo/5878] This is
773   equivalent to calling `rustdoc --error-format=json`.
774 - [Cargo will now provide a progress bar for builds.][cargo/5995]
775
776 Misc
777 ----
778 - [`rustdoc` allows you to specify what edition to treat your code as with the
779   `--edition` option.][54057]
780 - [`rustdoc` now has the `--color` (specify whether to output color) and
781   `--error-format` (specify error format, e.g. `json`) options.][53003]
782 - [We now distribute a `rust-gdbgui` script that invokes `gdbgui` with Rust
783   debug symbols.][53774]
784 - [Attributes from Rust tools such as `rustfmt` or `clippy` are now
785   available,][53459] e.g. `#[rustfmt::skip]` will skip formatting the next item.
786
787 [50911]: https://github.com/rust-lang/rust/pull/50911/
788 [51363]: https://github.com/rust-lang/rust/pull/51363/
789 [51366]: https://github.com/rust-lang/rust/pull/51366/
790 [52081]: https://github.com/rust-lang/rust/pull/52081/
791 [53003]: https://github.com/rust-lang/rust/pull/53003/
792 [53033]: https://github.com/rust-lang/rust/pull/53033/
793 [53044]: https://github.com/rust-lang/rust/pull/53044/
794 [53165]: https://github.com/rust-lang/rust/pull/53165/
795 [53213]: https://github.com/rust-lang/rust/pull/53213/
796 [53236]: https://github.com/rust-lang/rust/pull/53236/
797 [53272]: https://github.com/rust-lang/rust/pull/53272/
798 [53370]: https://github.com/rust-lang/rust/pull/53370/
799 [53459]: https://github.com/rust-lang/rust/pull/53459/
800 [53774]: https://github.com/rust-lang/rust/pull/53774/
801 [53822]: https://github.com/rust-lang/rust/pull/53822/
802 [54057]: https://github.com/rust-lang/rust/pull/54057/
803 [54146]: https://github.com/rust-lang/rust/pull/54146/
804 [54404]: https://github.com/rust-lang/rust/pull/54404/
805 [cargo/5877]: https://github.com/rust-lang/cargo/pull/5877/
806 [cargo/5878]: https://github.com/rust-lang/cargo/pull/5878/
807 [cargo/5995]: https://github.com/rust-lang/cargo/pull/5995/
808 [proc-macros]: https://doc.rust-lang.org/nightly/book/2018-edition/ch19-06-macros.html
809
810 [`Ipv4Addr::BROADCAST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.BROADCAST
811 [`Ipv4Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.LOCALHOST
812 [`Ipv4Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.UNSPECIFIED
813 [`Ipv6Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.LOCALHOST
814 [`Ipv6Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.UNSPECIFIED
815 [`Iterator::find_map`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find_map
816 [`str::trim_end_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end_matches
817 [`str::trim_end`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end
818 [`str::trim_start_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start_matches
819 [`str::trim_start`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start
820
821
822 Version 1.29.2 (2018-10-11)
823 ===========================
824
825 - [Workaround for an aliasing-related LLVM bug, which caused miscompilation.][54639]
826 - The `rls-preview` component on the windows-gnu targets has been restored.
827
828 [54639]: https://github.com/rust-lang/rust/pull/54639
829
830
831 Version 1.29.1 (2018-09-25)
832 ===========================
833
834 Security Notes
835 --------------
836
837 - The standard library's `str::repeat` function contained an out of bounds write
838   caused by an integer overflow. This has been fixed by deterministically
839   panicking when an overflow happens.
840
841   Thank you to Scott McMurray for responsibily disclosing this vulnerability to
842   us.
843
844
845 Version 1.29.0 (2018-09-13)
846 ==========================
847
848 Compiler
849 --------
850 - [Bumped minimum LLVM version to 5.0.][51899]
851 - [Added `powerpc64le-unknown-linux-musl` target.][51619]
852 - [Added `aarch64-unknown-hermit` and `x86_64-unknown-hermit` targets.][52861]
853
854 Libraries
855 ---------
856 - [`Once::call_once` no longer requires `Once` to be `'static`.][52239]
857 - [`BuildHasherDefault` now implements `PartialEq` and `Eq`.][52402]
858 - [`Box<CStr>`, `Box<OsStr>`, and `Box<Path>` now implement `Clone`.][51912]
859 - [Implemented `PartialEq<&str>` for `OsString` and `PartialEq<OsString>`
860   for `&str`.][51178]
861 - [`Cell<T>` now allows `T` to be unsized.][50494]
862 - [`SocketAddr` is now stable on Redox.][52656]
863
864 Stabilized APIs
865 ---------------
866 - [`Arc::downcast`]
867 - [`Iterator::flatten`]
868 - [`Rc::downcast`]
869
870 Cargo
871 -----
872 - [Cargo can silently fix some bad lockfiles.][cargo/5831] You can use
873   `--locked` to disable this behavior.
874 - [`cargo-install` will now allow you to cross compile an install
875   using `--target`.][cargo/5614]
876 - [Added the `cargo-fix` subcommand to automatically move project code from
877   2015 edition to 2018.][cargo/5723]
878 - [`cargo doc` can now optionally document private types using the
879   `--document-private-items` flag.][cargo/5543]
880
881 Misc
882 ----
883 - [`rustdoc` now has the `--cap-lints` option which demotes all lints above
884   the specified level to that level.][52354] For example `--cap-lints warn`
885   will demote `deny` and `forbid` lints to `warn`.
886 - [`rustc` and `rustdoc` will now have the exit code of `1` if compilation
887   fails and `101` if there is a panic.][52197]
888 - [A preview of clippy has been made available through rustup.][51122]
889   You can install the preview with `rustup component add clippy-preview`.
890
891 Compatibility Notes
892 -------------------
893 - [`str::{slice_unchecked, slice_unchecked_mut}` are now deprecated.][51807]
894   Use `str::get_unchecked(begin..end)` instead.
895 - [`std::env::home_dir` is now deprecated for its unintuitive behavior.][51656]
896   Consider using the `home_dir` function from
897   https://crates.io/crates/dirs instead.
898 - [`rustc` will no longer silently ignore invalid data in target spec.][52330]
899 - [`cfg` attributes and `--cfg` command line flags are now more
900   strictly validated.][53893]
901
902 [53893]: https://github.com/rust-lang/rust/pull/53893/
903 [52861]: https://github.com/rust-lang/rust/pull/52861/
904 [52656]: https://github.com/rust-lang/rust/pull/52656/
905 [52239]: https://github.com/rust-lang/rust/pull/52239/
906 [52330]: https://github.com/rust-lang/rust/pull/52330/
907 [52354]: https://github.com/rust-lang/rust/pull/52354/
908 [52402]: https://github.com/rust-lang/rust/pull/52402/
909 [52103]: https://github.com/rust-lang/rust/pull/52103/
910 [52197]: https://github.com/rust-lang/rust/pull/52197/
911 [51807]: https://github.com/rust-lang/rust/pull/51807/
912 [51899]: https://github.com/rust-lang/rust/pull/51899/
913 [51912]: https://github.com/rust-lang/rust/pull/51912/
914 [51511]: https://github.com/rust-lang/rust/pull/51511/
915 [51619]: https://github.com/rust-lang/rust/pull/51619/
916 [51656]: https://github.com/rust-lang/rust/pull/51656/
917 [51178]: https://github.com/rust-lang/rust/pull/51178/
918 [51122]: https://github.com/rust-lang/rust/pull/51122
919 [50494]: https://github.com/rust-lang/rust/pull/50494/
920 [cargo/5543]: https://github.com/rust-lang/cargo/pull/5543
921 [cargo/5614]: https://github.com/rust-lang/cargo/pull/5614/
922 [cargo/5723]: https://github.com/rust-lang/cargo/pull/5723/
923 [cargo/5831]: https://github.com/rust-lang/cargo/pull/5831/
924 [`Arc::downcast`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.downcast
925 [`Iterator::flatten`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flatten
926 [`Rc::downcast`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.downcast
927
928
929 Version 1.28.0 (2018-08-02)
930 ===========================
931
932 Language
933 --------
934 - [The `#[repr(transparent)]` attribute is now stable.][51562] This attribute
935   allows a Rust newtype wrapper (`struct NewType<T>(T);`) to be represented as
936   the inner type across Foreign Function Interface (FFI) boundaries.
937 - [The keywords `pure`, `sizeof`, `alignof`, and `offsetof` have been unreserved
938   and can now be used as identifiers.][51196]
939 - [The `GlobalAlloc` trait and `#[global_allocator]` attribute are now
940   stable.][51241] This will allow users to specify a global allocator for
941   their program.
942 - [Unit test functions marked with the `#[test]` attribute can now return
943   `Result<(), E: Debug>` in addition to `()`.][51298]
944 - [The `lifetime` specifier for `macro_rules!` is now stable.][50385] This
945   allows macros to easily target lifetimes.
946
947 Compiler
948 --------
949 - [The `s` and `z` optimisation levels are now stable.][50265] These optimisations
950   prioritise making smaller binary sizes. `z` is the same as `s` with the
951   exception that it does not vectorise loops, which typically results in an even
952   smaller binary.
953 - [The short error format is now stable.][49546] Specified with
954   `--error-format=short` this option will provide a more compressed output of
955   rust error messages.
956 - [Added a lint warning when you have duplicated `macro_export`s.][50143]
957 - [Reduced the number of allocations in the macro parser.][50855] This can
958   improve compile times of macro heavy crates on average by 5%.
959
960 Libraries
961 ---------
962 - [Implemented `Default` for `&mut str`.][51306]
963 - [Implemented `From<bool>` for all integer and unsigned number types.][50554]
964 - [Implemented `Extend` for `()`.][50234]
965 - [The `Debug` implementation of `time::Duration` should now be more easily
966   human readable.][50364] Previously a `Duration` of one second would printed as
967   `Duration { secs: 1, nanos: 0 }` and will now be printed as `1s`.
968 - [Implemented `From<&String>` for `Cow<str>`, `From<&Vec<T>>` for `Cow<[T]>`,
969   `From<Cow<CStr>>` for `CString`, `From<CString>, From<CStr>, From<&CString>`
970   for `Cow<CStr>`, `From<OsString>, From<OsStr>, From<&OsString>` for
971   `Cow<OsStr>`, `From<&PathBuf>` for `Cow<Path>`, and `From<Cow<Path>>`
972   for `PathBuf`.][50170]
973 - [Implemented `Shl` and `Shr` for `Wrapping<u128>`
974   and `Wrapping<i128>`.][50465]
975 - [`DirEntry::metadata` now uses `fstatat` instead of `lstat` when
976   possible.][51050] This can provide up to a 40% speed increase.
977 - [Improved error messages when using `format!`.][50610]
978
979 Stabilized APIs
980 ---------------
981 - [`Iterator::step_by`]
982 - [`Path::ancestors`]
983 - [`SystemTime::UNIX_EPOCH`]
984 - [`alloc::GlobalAlloc`]
985 - [`alloc::Layout`]
986 - [`alloc::LayoutErr`]
987 - [`alloc::System`]
988 - [`alloc::alloc`]
989 - [`alloc::alloc_zeroed`]
990 - [`alloc::dealloc`]
991 - [`alloc::realloc`]
992 - [`alloc::handle_alloc_error`]
993 - [`btree_map::Entry::or_default`]
994 - [`fmt::Alignment`]
995 - [`hash_map::Entry::or_default`]
996 - [`iter::repeat_with`]
997 - [`num::NonZeroUsize`]
998 - [`num::NonZeroU128`]
999 - [`num::NonZeroU16`]
1000 - [`num::NonZeroU32`]
1001 - [`num::NonZeroU64`]
1002 - [`num::NonZeroU8`]
1003 - [`ops::RangeBounds`]
1004 - [`slice::SliceIndex`]
1005 - [`slice::from_mut`]
1006 - [`slice::from_ref`]
1007 - [`{Any + Send + Sync}::downcast_mut`]
1008 - [`{Any + Send + Sync}::downcast_ref`]
1009 - [`{Any + Send + Sync}::is`]
1010
1011 Cargo
1012 -----
1013 - [Cargo will now no longer allow you to publish crates with build scripts that
1014   modify the `src` directory.][cargo/5584] The `src` directory in a crate should be
1015   considered to be immutable.
1016
1017 Misc
1018 ----
1019 - [The `suggestion_applicability` field in `rustc`'s json output is now
1020   stable.][50486] This will allow dev tools to check whether a code suggestion
1021   would apply to them.
1022
1023 Compatibility Notes
1024 -------------------
1025 - [Rust will consider trait objects with duplicated constraints to be the same
1026   type as without the duplicated constraint.][51276] For example the below code will
1027   now fail to compile.
1028   ```rust
1029   trait Trait {}
1030
1031   impl Trait + Send {
1032       fn test(&self) { println!("one"); } //~ ERROR duplicate definitions with name `test`
1033   }
1034
1035   impl Trait + Send + Send {
1036       fn test(&self) { println!("two"); }
1037   }
1038   ```
1039
1040 [49546]: https://github.com/rust-lang/rust/pull/49546/
1041 [50143]: https://github.com/rust-lang/rust/pull/50143/
1042 [50170]: https://github.com/rust-lang/rust/pull/50170/
1043 [50234]: https://github.com/rust-lang/rust/pull/50234/
1044 [50265]: https://github.com/rust-lang/rust/pull/50265/
1045 [50364]: https://github.com/rust-lang/rust/pull/50364/
1046 [50385]: https://github.com/rust-lang/rust/pull/50385/
1047 [50465]: https://github.com/rust-lang/rust/pull/50465/
1048 [50486]: https://github.com/rust-lang/rust/pull/50486/
1049 [50554]: https://github.com/rust-lang/rust/pull/50554/
1050 [50610]: https://github.com/rust-lang/rust/pull/50610/
1051 [50855]: https://github.com/rust-lang/rust/pull/50855/
1052 [51050]: https://github.com/rust-lang/rust/pull/51050/
1053 [51196]: https://github.com/rust-lang/rust/pull/51196/
1054 [51200]: https://github.com/rust-lang/rust/pull/51200/
1055 [51241]: https://github.com/rust-lang/rust/pull/51241/
1056 [51276]: https://github.com/rust-lang/rust/pull/51276/
1057 [51298]: https://github.com/rust-lang/rust/pull/51298/
1058 [51306]: https://github.com/rust-lang/rust/pull/51306/
1059 [51562]: https://github.com/rust-lang/rust/pull/51562/
1060 [cargo/5584]: https://github.com/rust-lang/cargo/pull/5584/
1061 [`Iterator::step_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by
1062 [`Path::ancestors`]: https://doc.rust-lang.org/std/path/struct.Path.html#method.ancestors
1063 [`SystemTime::UNIX_EPOCH`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#associatedconstant.UNIX_EPOCH
1064 [`alloc::GlobalAlloc`]: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html
1065 [`alloc::Layout`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html
1066 [`alloc::LayoutErr`]: https://doc.rust-lang.org/std/alloc/struct.LayoutErr.html
1067 [`alloc::System`]: https://doc.rust-lang.org/std/alloc/struct.System.html
1068 [`alloc::alloc`]: https://doc.rust-lang.org/std/alloc/fn.alloc.html
1069 [`alloc::alloc_zeroed`]: https://doc.rust-lang.org/std/alloc/fn.alloc_zeroed.html
1070 [`alloc::dealloc`]: https://doc.rust-lang.org/std/alloc/fn.dealloc.html
1071 [`alloc::realloc`]: https://doc.rust-lang.org/std/alloc/fn.realloc.html
1072 [`alloc::handle_alloc_error`]: https://doc.rust-lang.org/std/alloc/fn.handle_alloc_error.html
1073 [`btree_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.or_default
1074 [`fmt::Alignment`]: https://doc.rust-lang.org/std/fmt/enum.Alignment.html
1075 [`hash_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.or_default
1076 [`iter::repeat_with`]: https://doc.rust-lang.org/std/iter/fn.repeat_with.html
1077 [`num::NonZeroUsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroUsize.html
1078 [`num::NonZeroU128`]: https://doc.rust-lang.org/std/num/struct.NonZeroU128.html
1079 [`num::NonZeroU16`]: https://doc.rust-lang.org/std/num/struct.NonZeroU16.html
1080 [`num::NonZeroU32`]: https://doc.rust-lang.org/std/num/struct.NonZeroU32.html
1081 [`num::NonZeroU64`]: https://doc.rust-lang.org/std/num/struct.NonZeroU64.html
1082 [`num::NonZeroU8`]: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
1083 [`ops::RangeBounds`]: https://doc.rust-lang.org/std/ops/trait.RangeBounds.html
1084 [`slice::SliceIndex`]: https://doc.rust-lang.org/std/slice/trait.SliceIndex.html
1085 [`slice::from_mut`]: https://doc.rust-lang.org/std/slice/fn.from_mut.html
1086 [`slice::from_ref`]: https://doc.rust-lang.org/std/slice/fn.from_ref.html
1087 [`{Any + Send + Sync}::downcast_mut`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_mut-2
1088 [`{Any + Send + Sync}::downcast_ref`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_ref-2
1089 [`{Any + Send + Sync}::is`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.is-2
1090
1091 Version 1.27.2 (2018-07-20)
1092 ===========================
1093
1094 Compatibility Notes
1095 -------------------
1096
1097 - The borrow checker was fixed to avoid potential unsoundness when using
1098   match ergonomics: [#52213][52213].
1099
1100 [52213]: https://github.com/rust-lang/rust/issues/52213
1101
1102 Version 1.27.1 (2018-07-10)
1103 ===========================
1104
1105 Security Notes
1106 --------------
1107
1108 - rustdoc would execute plugins in the /tmp/rustdoc/plugins directory
1109   when running, which enabled executing code as some other user on a
1110   given machine. This release fixes that vulnerability; you can read
1111   more about this on the [blog][rustdoc-sec]. The associated CVE is [CVE-2018-1000622].
1112
1113   Thank you to Red Hat for responsibily disclosing this vulnerability to us.
1114
1115 Compatibility Notes
1116 -------------------
1117
1118 - The borrow checker was fixed to avoid an additional potential unsoundness when using
1119   match ergonomics: [#51415][51415], [#49534][49534].
1120
1121 [51415]: https://github.com/rust-lang/rust/issues/51415
1122 [49534]: https://github.com/rust-lang/rust/issues/49534
1123 [rustdoc-sec]: https://blog.rust-lang.org/2018/07/06/security-advisory-for-rustdoc.html
1124 [CVE-2018-1000622]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=%20CVE-2018-1000622
1125
1126 Version 1.27.0 (2018-06-21)
1127 ==========================
1128
1129 Language
1130 --------
1131 - [Removed 'proc' from the reserved keywords list.][49699] This allows `proc` to
1132   be used as an identifier.
1133 - [The dyn syntax is now available.][49968] This syntax is equivalent to the
1134   bare `Trait` syntax, and should make it clearer when being used in tandem with
1135   `impl Trait` because it is equivalent to the following syntax:
1136   `&Trait == &dyn Trait`, `&mut Trait == &mut dyn Trait`, and
1137   `Box<Trait> == Box<dyn Trait>`.
1138 - [Attributes on generic parameters such as types and lifetimes are
1139   now stable.][48851] e.g.
1140   `fn foo<#[lifetime_attr] 'a, #[type_attr] T: 'a>() {}`
1141 - [The `#[must_use]` attribute can now also be used on functions as well as
1142   types.][48925] It provides a lint that by default warns users when the
1143   value returned by a function has not been used.
1144
1145 Compiler
1146 --------
1147 - [Added the `armv5te-unknown-linux-musleabi` target.][50423]
1148
1149 Libraries
1150 ---------
1151 - [SIMD (Single Instruction Multiple Data) on x86/x86_64 is now stable.][49664]
1152   This includes [`arch::x86`] & [`arch::x86_64`] modules which contain
1153   SIMD intrinsics, a new macro called `is_x86_feature_detected!`, the
1154   `#[target_feature(enable="")]` attribute, and adding `target_feature = ""` to
1155   the `cfg` attribute.
1156 - [A lot of methods for `[u8]`, `f32`, and `f64` previously only available in
1157   std are now available in core.][49896]
1158 - [The generic `Rhs` type parameter on `ops::{Shl, ShlAssign, Shr}` now defaults
1159   to `Self`.][49630]
1160 - [`std::str::replace` now has the `#[must_use]` attribute][50177] to clarify
1161   that the operation isn't done in place.
1162 - [`Clone::clone`, `Iterator::collect`, and `ToOwned::to_owned` now have
1163   the `#[must_use]` attribute][49533] to warn about unused potentially
1164   expensive allocations.
1165
1166 Stabilized APIs
1167 ---------------
1168 - [`DoubleEndedIterator::rfind`]
1169 - [`DoubleEndedIterator::rfold`]
1170 - [`DoubleEndedIterator::try_rfold`]
1171 - [`Duration::from_micros`]
1172 - [`Duration::from_nanos`]
1173 - [`Duration::subsec_micros`]
1174 - [`Duration::subsec_millis`]
1175 - [`HashMap::remove_entry`]
1176 - [`Iterator::try_fold`]
1177 - [`Iterator::try_for_each`]
1178 - [`NonNull::cast`]
1179 - [`Option::filter`]
1180 - [`String::replace_range`]
1181 - [`Take::set_limit`]
1182 - [`hint::unreachable_unchecked`]
1183 - [`os::unix::process::parent_id`]
1184 - [`ptr::swap_nonoverlapping`]
1185 - [`slice::rsplit_mut`]
1186 - [`slice::rsplit`]
1187 - [`slice::swap_with_slice`]
1188
1189 Cargo
1190 -----
1191 - [`cargo-metadata` now includes `authors`, `categories`, `keywords`,
1192   `readme`, and `repository` fields.][cargo/5386]
1193 - [`cargo-metadata` now includes a package's `metadata` table.][cargo/5360]
1194 - [Added the `--target-dir` optional argument.][cargo/5393] This allows you to specify
1195   a different directory than `target` for placing compilation artifacts.
1196 - [Cargo will be adding automatic target inference for binaries, benchmarks,
1197   examples, and tests in the Rust 2018 edition.][cargo/5335] If your project specifies
1198   specific targets, e.g. using `[[bin]]`, and have other binaries in locations
1199   where cargo would infer a binary, Cargo will produce a warning. You can
1200   disable this feature ahead of time by setting any of the following to false:
1201   `autobins`, `autobenches`, `autoexamples`, `autotests`.
1202 - [Cargo will now cache compiler information.][cargo/5359] This can be disabled by
1203   setting `CARGO_CACHE_RUSTC_INFO=0` in your environment.
1204
1205 Misc
1206 ----
1207 - [Added “The Rustc book” into the official documentation.][49707]
1208   [“The Rustc book”] documents and teaches how to use the rustc compiler.
1209 - [All books available on `doc.rust-lang.org` are now searchable.][49623]
1210
1211 Compatibility Notes
1212 -------------------
1213 - [Calling a `CharExt` or `StrExt` method directly on core will no longer
1214   work.][49896] e.g. `::core::prelude::v1::StrExt::is_empty("")` will not
1215   compile, `"".is_empty()` will still compile.
1216 - [`Debug` output on `atomic::{AtomicBool, AtomicIsize, AtomicPtr, AtomicUsize}`
1217   will only print the inner type.][48553] E.g.
1218   `print!("{:?}", AtomicBool::new(true))` will print `true`,
1219   not `AtomicBool(true)`.
1220 - [The maximum number for `repr(align(N))` is now 2²⁹.][50378] Previously you
1221   could enter higher numbers but they were not supported by LLVM. Up to 512MB
1222   alignment should cover all use cases.
1223 - The `.description()` method on the `std::error::Error` trait
1224   [has been soft-deprecated][50163]. It is no longer required to implement it.
1225
1226 [48553]: https://github.com/rust-lang/rust/pull/48553/
1227 [48851]: https://github.com/rust-lang/rust/pull/48851/
1228 [48925]: https://github.com/rust-lang/rust/pull/48925/
1229 [49533]: https://github.com/rust-lang/rust/pull/49533/
1230 [49623]: https://github.com/rust-lang/rust/pull/49623/
1231 [49630]: https://github.com/rust-lang/rust/pull/49630/
1232 [49664]: https://github.com/rust-lang/rust/pull/49664/
1233 [49699]: https://github.com/rust-lang/rust/pull/49699/
1234 [49707]: https://github.com/rust-lang/rust/pull/49707/
1235 [49719]: https://github.com/rust-lang/rust/pull/49719/
1236 [49896]: https://github.com/rust-lang/rust/pull/49896/
1237 [49968]: https://github.com/rust-lang/rust/pull/49968/
1238 [50163]: https://github.com/rust-lang/rust/pull/50163
1239 [50177]: https://github.com/rust-lang/rust/pull/50177/
1240 [50378]: https://github.com/rust-lang/rust/pull/50378/
1241 [50398]: https://github.com/rust-lang/rust/pull/50398/
1242 [50423]: https://github.com/rust-lang/rust/pull/50423/
1243 [cargo/5203]: https://github.com/rust-lang/cargo/pull/5203/
1244 [cargo/5335]: https://github.com/rust-lang/cargo/pull/5335/
1245 [cargo/5359]: https://github.com/rust-lang/cargo/pull/5359/
1246 [cargo/5360]: https://github.com/rust-lang/cargo/pull/5360/
1247 [cargo/5386]: https://github.com/rust-lang/cargo/pull/5386/
1248 [cargo/5393]: https://github.com/rust-lang/cargo/pull/5393/
1249 [`DoubleEndedIterator::rfind`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfind
1250 [`DoubleEndedIterator::rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfold
1251 [`DoubleEndedIterator::try_rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
1252 [`Duration::from_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_micros
1253 [`Duration::from_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_nanos
1254 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
1255 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
1256 [`HashMap::remove_entry`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.remove_entry
1257 [`Iterator::try_fold`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_fold
1258 [`Iterator::try_for_each`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
1259 [`NonNull::cast`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.cast
1260 [`Option::filter`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.filter
1261 [`String::replace_range`]: https://doc.rust-lang.org/std/string/struct.String.html#method.replace_range
1262 [`Take::set_limit`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.set_limit
1263 [`hint::unreachable_unchecked`]: https://doc.rust-lang.org/std/hint/fn.unreachable_unchecked.html
1264 [`os::unix::process::parent_id`]: https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html
1265 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
1266 [`ptr::swap_nonoverlapping`]: https://doc.rust-lang.org/std/ptr/fn.swap_nonoverlapping.html
1267 [`slice::rsplit_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit_mut
1268 [`slice::rsplit`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit
1269 [`slice::swap_with_slice`]: https://doc.rust-lang.org/std/primitive.slice.html#method.swap_with_slice
1270 [`arch::x86_64`]: https://doc.rust-lang.org/std/arch/x86_64/index.html
1271 [`arch::x86`]: https://doc.rust-lang.org/std/arch/x86/index.html
1272 [“The Rustc book”]: https://doc.rust-lang.org/rustc
1273
1274
1275 Version 1.26.2 (2018-06-05)
1276 ==========================
1277
1278 Compatibility Notes
1279 -------------------
1280
1281 - [The borrow checker was fixed to avoid unsoundness when using match ergonomics.][51117]
1282
1283 [51117]: https://github.com/rust-lang/rust/issues/51117
1284
1285
1286 Version 1.26.1 (2018-05-29)
1287 ==========================
1288
1289 Tools
1290 -----
1291
1292 - [RLS now works on Windows.][50646]
1293 - [Rustfmt stopped badly formatting text in some cases.][rustfmt/2695]
1294
1295
1296 Compatibility Notes
1297 --------
1298
1299 - [`fn main() -> impl Trait` no longer works for non-Termination
1300   trait.][50656]
1301   This reverts an accidental stabilization.
1302 - [`NaN > NaN` no longer returns true in const-fn contexts.][50812]
1303 - [Prohibit using turbofish for `impl Trait` in method arguments.][50950]
1304
1305 [50646]: https://github.com/rust-lang/rust/issues/50646
1306 [50656]: https://github.com/rust-lang/rust/pull/50656
1307 [50812]: https://github.com/rust-lang/rust/pull/50812
1308 [50950]: https://github.com/rust-lang/rust/issues/50950
1309 [rustfmt/2695]: https://github.com/rust-lang-nursery/rustfmt/issues/2695
1310
1311 Version 1.26.0 (2018-05-10)
1312 ==========================
1313
1314 Language
1315 --------
1316 - [Closures now implement `Copy` and/or `Clone` if all captured variables
1317   implement either or both traits.][49299]
1318 - [The inclusive range syntax e.g. `for x in 0..=10` is now stable.][47813]
1319 - [The `'_` lifetime is now stable. The underscore lifetime can be used anywhere a
1320   lifetime can be elided.][49458]
1321 - [`impl Trait` is now stable allowing you to have abstract types in returns
1322    or in function parameters.][49255] E.g. `fn foo() -> impl Iterator<Item=u8>` or
1323   `fn open(path: impl AsRef<Path>)`.
1324 - [Pattern matching will now automatically apply dereferences.][49394]
1325 - [128-bit integers in the form of `u128` and `i128` are now stable.][49101]
1326 - [`main` can now return `Result<(), E: Debug>`][49162] in addition to `()`.
1327 - [A lot of operations are now available in a const context.][46882] E.g. You
1328   can now index into constant arrays, reference and dereference into constants,
1329   and use tuple struct constructors.
1330 - [Fixed entry slice patterns are now stable.][48516] E.g.
1331   ```rust
1332   let points = [1, 2, 3, 4];
1333   match points {
1334       [1, 2, 3, 4] => println!("All points were sequential."),
1335       _ => println!("Not all points were sequential."),
1336   }
1337   ```
1338
1339
1340 Compiler
1341 --------
1342 - [LLD is now used as the default linker for `wasm32-unknown-unknown`.][48125]
1343 - [Fixed exponential projection complexity on nested types.][48296]
1344   This can provide up to a ~12% reduction in compile times for certain crates.
1345 - [Added the `--remap-path-prefix` option to rustc.][48359] Allowing you
1346   to remap path prefixes outputted by the compiler.
1347 - [Added `powerpc-unknown-netbsd` target.][48281]
1348
1349 Libraries
1350 ---------
1351 - [Implemented `From<u16> for usize` & `From<{u8, i16}> for isize`.][49305]
1352 - [Added hexadecimal formatting for integers with fmt::Debug][48978]
1353   e.g. `assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]")`
1354 - [Implemented `Default, Hash` for `cmp::Reverse`.][48628]
1355 - [Optimized `str::repeat` being 8x faster in large cases.][48657]
1356 - [`ascii::escape_default` is now available in libcore.][48735]
1357 - [Trailing commas are now supported in std and core macros.][48056]
1358 - [Implemented `Copy, Clone` for `cmp::Reverse`][47379]
1359 - [Implemented `Clone` for `char::{ToLowercase, ToUppercase}`.][48629]
1360
1361 Stabilized APIs
1362 ---------------
1363 - [`*const T::add`]
1364 - [`*const T::copy_to_nonoverlapping`]
1365 - [`*const T::copy_to`]
1366 - [`*const T::read_unaligned`]
1367 - [`*const T::read_volatile`]
1368 - [`*const T::read`]
1369 - [`*const T::sub`]
1370 - [`*const T::wrapping_add`]
1371 - [`*const T::wrapping_sub`]
1372 - [`*mut T::add`]
1373 - [`*mut T::copy_to_nonoverlapping`]
1374 - [`*mut T::copy_to`]
1375 - [`*mut T::read_unaligned`]
1376 - [`*mut T::read_volatile`]
1377 - [`*mut T::read`]
1378 - [`*mut T::replace`]
1379 - [`*mut T::sub`]
1380 - [`*mut T::swap`]
1381 - [`*mut T::wrapping_add`]
1382 - [`*mut T::wrapping_sub`]
1383 - [`*mut T::write_bytes`]
1384 - [`*mut T::write_unaligned`]
1385 - [`*mut T::write_volatile`]
1386 - [`*mut T::write`]
1387 - [`Box::leak`]
1388 - [`FromUtf8Error::as_bytes`]
1389 - [`LocalKey::try_with`]
1390 - [`Option::cloned`]
1391 - [`btree_map::Entry::and_modify`]
1392 - [`fs::read_to_string`]
1393 - [`fs::read`]
1394 - [`fs::write`]
1395 - [`hash_map::Entry::and_modify`]
1396 - [`iter::FusedIterator`]
1397 - [`ops::RangeInclusive`]
1398 - [`ops::RangeToInclusive`]
1399 - [`process::id`]
1400 - [`slice::rotate_left`]
1401 - [`slice::rotate_right`]
1402 - [`String::retain`]
1403
1404
1405 Cargo
1406 -----
1407 - [Cargo will now output path to custom commands when `-v` is
1408   passed with `--list`][cargo/5041]
1409 - [The Cargo binary version is now the same as the Rust version][cargo/5083]
1410
1411 Misc
1412 ----
1413 - [The second edition of "The Rust Programming Language" book is now recommended
1414   over the first.][48404]
1415
1416 Compatibility Notes
1417 -------------------
1418
1419 - [aliasing a `Fn` trait as `dyn` no longer works.][48481] E.g. the following
1420   syntax is now invalid.
1421   ```
1422   use std::ops::Fn as dyn;
1423   fn g(_: Box<dyn(std::fmt::Debug)>) {}
1424   ```
1425 - [The result of dereferences are no longer promoted to `'static`.][47408]
1426   e.g.
1427   ```rust
1428   fn main() {
1429       const PAIR: &(i32, i32) = &(0, 1);
1430       let _reversed_pair: &'static _ = &(PAIR.1, PAIR.0); // Doesn't work
1431   }
1432   ```
1433 - [Deprecate `AsciiExt` trait in favor of inherent methods.][49109]
1434 - [`".e0"` will now no longer parse as `0.0` and will instead cause
1435   an error.][48235]
1436 - [Removed hoedown from rustdoc.][48274]
1437 - [Bounds on higher-kinded lifetimes a hard error.][48326]
1438
1439 [46882]: https://github.com/rust-lang/rust/pull/46882
1440 [47379]: https://github.com/rust-lang/rust/pull/47379
1441 [47408]: https://github.com/rust-lang/rust/pull/47408
1442 [47813]: https://github.com/rust-lang/rust/pull/47813
1443 [48056]: https://github.com/rust-lang/rust/pull/48056
1444 [48125]: https://github.com/rust-lang/rust/pull/48125
1445 [48166]: https://github.com/rust-lang/rust/pull/48166
1446 [48235]: https://github.com/rust-lang/rust/pull/48235
1447 [48274]: https://github.com/rust-lang/rust/pull/48274
1448 [48281]: https://github.com/rust-lang/rust/pull/48281
1449 [48296]: https://github.com/rust-lang/rust/pull/48296
1450 [48326]: https://github.com/rust-lang/rust/pull/48326
1451 [48359]: https://github.com/rust-lang/rust/pull/48359
1452 [48404]: https://github.com/rust-lang/rust/pull/48404
1453 [48481]: https://github.com/rust-lang/rust/pull/48481
1454 [48516]: https://github.com/rust-lang/rust/pull/48516
1455 [48628]: https://github.com/rust-lang/rust/pull/48628
1456 [48629]: https://github.com/rust-lang/rust/pull/48629
1457 [48657]: https://github.com/rust-lang/rust/pull/48657
1458 [48735]: https://github.com/rust-lang/rust/pull/48735
1459 [48978]: https://github.com/rust-lang/rust/pull/48978
1460 [49101]: https://github.com/rust-lang/rust/pull/49101
1461 [49109]: https://github.com/rust-lang/rust/pull/49109
1462 [49121]: https://github.com/rust-lang/rust/pull/49121
1463 [49162]: https://github.com/rust-lang/rust/pull/49162
1464 [49184]: https://github.com/rust-lang/rust/pull/49184
1465 [49234]: https://github.com/rust-lang/rust/pull/49234
1466 [49255]: https://github.com/rust-lang/rust/pull/49255
1467 [49299]: https://github.com/rust-lang/rust/pull/49299
1468 [49305]: https://github.com/rust-lang/rust/pull/49305
1469 [49394]: https://github.com/rust-lang/rust/pull/49394
1470 [49458]: https://github.com/rust-lang/rust/pull/49458
1471 [`*const T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add
1472 [`*const T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping
1473 [`*const T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to
1474 [`*const T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned
1475 [`*const T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile
1476 [`*const T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read
1477 [`*const T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub
1478 [`*const T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add
1479 [`*const T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub
1480 [`*mut T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add-1
1481 [`*mut T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping-1
1482 [`*mut T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to-1
1483 [`*mut T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned-1
1484 [`*mut T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile-1
1485 [`*mut T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read-1
1486 [`*mut T::replace`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.replace
1487 [`*mut T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub-1
1488 [`*mut T::swap`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.swap
1489 [`*mut T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add-1
1490 [`*mut T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub-1
1491 [`*mut T::write_bytes`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_bytes
1492 [`*mut T::write_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_unaligned
1493 [`*mut T::write_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_volatile
1494 [`*mut T::write`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write
1495 [`Box::leak`]: https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak
1496 [`FromUtf8Error::as_bytes`]: https://doc.rust-lang.org/std/string/struct.FromUtf8Error.html#method.as_bytes
1497 [`LocalKey::try_with`]: https://doc.rust-lang.org/std/thread/struct.LocalKey.html#method.try_with
1498 [`Option::cloned`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.cloned
1499 [`btree_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.and_modify
1500 [`fs::read_to_string`]: https://doc.rust-lang.org/std/fs/fn.read_to_string.html
1501 [`fs::read`]: https://doc.rust-lang.org/std/fs/fn.read.html
1502 [`fs::write`]: https://doc.rust-lang.org/std/fs/fn.write.html
1503 [`hash_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.and_modify
1504 [`iter::FusedIterator`]: https://doc.rust-lang.org/std/iter/trait.FusedIterator.html
1505 [`ops::RangeInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html
1506 [`ops::RangeToInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html
1507 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
1508 [`slice::rotate_left`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_left
1509 [`slice::rotate_right`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_right
1510 [`String::retain`]: https://doc.rust-lang.org/std/string/struct.String.html#method.retain
1511 [cargo/5041]: https://github.com/rust-lang/cargo/pull/5041
1512 [cargo/5083]: https://github.com/rust-lang/cargo/pull/5083
1513
1514
1515 Version 1.25.0 (2018-03-29)
1516 ==========================
1517
1518 Language
1519 --------
1520 - [The `#[repr(align(x))]` attribute is now stable.][47006] [RFC 1358]
1521 - [You can now use nested groups of imports.][47948]
1522   e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};`
1523 - [You can now have `|` at the start of a match arm.][47947] e.g.
1524 ```rust
1525 enum Foo { A, B, C }
1526
1527 fn main() {
1528     let x = Foo::A;
1529     match x {
1530         | Foo::A
1531         | Foo::B => println!("AB"),
1532         | Foo::C => println!("C"),
1533     }
1534 }
1535 ```
1536
1537 Compiler
1538 --------
1539 - [Upgraded to LLVM 6.][47828]
1540 - [Added `-C lto=val` option.][47521]
1541 - [Added `i586-unknown-linux-musl` target][47282]
1542
1543 Libraries
1544 ---------
1545 - [Impl Send for `process::Command` on Unix.][47760]
1546 - [Impl PartialEq and Eq for `ParseCharError`.][47790]
1547 - [`UnsafeCell::into_inner` is now safe.][47204]
1548 - [Implement libstd for CloudABI.][47268]
1549 - [`Float::{from_bits, to_bits}` is now available in libcore.][46931]
1550 - [Implement `AsRef<Path>` for Component][46985]
1551 - [Implemented `Write` for `Cursor<&mut Vec<u8>>`][46830]
1552 - [Moved `Duration` to libcore.][46666]
1553
1554 Stabilized APIs
1555 ---------------
1556 - [`Location::column`]
1557 - [`ptr::NonNull`]
1558
1559 The following functions can now be used in a constant expression.
1560 eg. `static MINUTE: Duration = Duration::from_secs(60);`
1561 - [`Duration::new`][47300]
1562 - [`Duration::from_secs`][47300]
1563 - [`Duration::from_millis`][47300]
1564
1565 Cargo
1566 -----
1567 - [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
1568 - [`cargo new` now defaults to creating a binary crate, instead of a
1569   library crate.][cargo/5029]
1570
1571 Misc
1572 ----
1573 - [Rust by example is now shipped with new releases][46196]
1574
1575 Compatibility Notes
1576 -------------------
1577 - [Deprecated `net::lookup_host`.][47510]
1578 - [`rustdoc` has switched to pulldown as the default markdown renderer.][47398]
1579 - The borrow checker was sometimes incorrectly permitting overlapping borrows
1580   around indexing operations (see [#47349][47349]). This has been fixed (which also
1581   enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]).
1582 - [Removed deprecated unstable attribute `#[simd]`.][47251]
1583
1584 [33903]: https://github.com/rust-lang/rust/pull/33903
1585 [47947]: https://github.com/rust-lang/rust/pull/47947
1586 [47948]: https://github.com/rust-lang/rust/pull/47948
1587 [47760]: https://github.com/rust-lang/rust/pull/47760
1588 [47790]: https://github.com/rust-lang/rust/pull/47790
1589 [47828]: https://github.com/rust-lang/rust/pull/47828
1590 [47398]: https://github.com/rust-lang/rust/pull/47398
1591 [47510]: https://github.com/rust-lang/rust/pull/47510
1592 [47521]: https://github.com/rust-lang/rust/pull/47521
1593 [47204]: https://github.com/rust-lang/rust/pull/47204
1594 [47251]: https://github.com/rust-lang/rust/pull/47251
1595 [47268]: https://github.com/rust-lang/rust/pull/47268
1596 [47282]: https://github.com/rust-lang/rust/pull/47282
1597 [47300]: https://github.com/rust-lang/rust/pull/47300
1598 [47349]: https://github.com/rust-lang/rust/pull/47349
1599 [46931]: https://github.com/rust-lang/rust/pull/46931
1600 [46985]: https://github.com/rust-lang/rust/pull/46985
1601 [47006]: https://github.com/rust-lang/rust/pull/47006
1602 [46830]: https://github.com/rust-lang/rust/pull/46830
1603 [46095]: https://github.com/rust-lang/rust/pull/46095
1604 [46666]: https://github.com/rust-lang/rust/pull/46666
1605 [46196]: https://github.com/rust-lang/rust/pull/46196
1606 [cargo/5013]: https://github.com/rust-lang/cargo/pull/5013
1607 [cargo/5029]: https://github.com/rust-lang/cargo/pull/5029
1608 [RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358
1609 [`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column
1610 [`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
1611
1612
1613 Version 1.24.1 (2018-03-01)
1614 ==========================
1615
1616  - [Do not abort when unwinding through FFI][48251]
1617  - [Emit UTF-16 files for linker arguments on Windows][48318]
1618  - [Make the error index generator work again][48308]
1619  - [Cargo will warn on Windows 7 if an update is needed][cargo/5069].
1620
1621 [48251]: https://github.com/rust-lang/rust/issues/48251
1622 [48308]: https://github.com/rust-lang/rust/issues/48308
1623 [48318]: https://github.com/rust-lang/rust/issues/48318
1624 [cargo/5069]: https://github.com/rust-lang/cargo/pull/5069
1625
1626
1627 Version 1.24.0 (2018-02-15)
1628 ==========================
1629
1630 Language
1631 --------
1632 - [External `sysv64` ffi is now available.][46528]
1633   eg. `extern "sysv64" fn foo () {}`
1634
1635 Compiler
1636 --------
1637 - [rustc now uses 16 codegen units by default for release builds.][46910]
1638   For the fastest builds, utilize `codegen-units=1`.
1639 - [Added `armv4t-unknown-linux-gnueabi` target.][47018]
1640 - [Add `aarch64-unknown-openbsd` support][46760]
1641
1642 Libraries
1643 ---------
1644 - [`str::find::<char>` now uses memchr.][46735] This should lead to a 10x
1645   improvement in performance in the majority of cases.
1646 - [`OsStr`'s `Debug` implementation is now lossless and consistent
1647   with Windows.][46798]
1648 - [`time::{SystemTime, Instant}` now implement `Hash`.][46828]
1649 - [impl `From<bool>` for `AtomicBool`][46293]
1650 - [impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`][45990]
1651 - [impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`][45990]
1652 - [impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`][45990]
1653 - [float::from_bits now just uses transmute.][46012] This provides
1654   some optimisations from LLVM.
1655 - [Copied `AsciiExt` methods onto `char`][46077]
1656 - [Remove `T: Sized` requirement on `ptr::is_null()`][46094]
1657 - [impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`][45506]
1658 - [Optimised `f32::{min, max}` to generate more efficient x86 assembly][47080]
1659 - [`[u8]::contains` now uses memchr which provides a 3x speed improvement][46713]
1660
1661 Stabilized APIs
1662 ---------------
1663 - [`RefCell::replace`]
1664 - [`RefCell::swap`]
1665 - [`atomic::spin_loop_hint`]
1666
1667 The following functions can now be used in a constant expression.
1668 eg. `let buffer: [u8; size_of::<usize>()];`, `static COUNTER: AtomicUsize = AtomicUsize::new(1);`
1669
1670 - [`AtomicBool::new`][46287]
1671 - [`AtomicUsize::new`][46287]
1672 - [`AtomicIsize::new`][46287]
1673 - [`AtomicPtr::new`][46287]
1674 - [`Cell::new`][46287]
1675 - [`{integer}::min_value`][46287]
1676 - [`{integer}::max_value`][46287]
1677 - [`mem::size_of`][46287]
1678 - [`mem::align_of`][46287]
1679 - [`ptr::null`][46287]
1680 - [`ptr::null_mut`][46287]
1681 - [`RefCell::new`][46287]
1682 - [`UnsafeCell::new`][46287]
1683
1684 Cargo
1685 -----
1686 - [Added a `workspace.default-members` config that
1687   overrides implied `--all` in virtual workspaces.][cargo/4743]
1688 - [Enable incremental by default on development builds.][cargo/4817] Also added
1689   configuration keys to `Cargo.toml` and `.cargo/config` to disable on a
1690   per-project or global basis respectively.
1691
1692 Misc
1693 ----
1694
1695 Compatibility Notes
1696 -------------------
1697 - [Floating point types `Debug` impl now always prints a decimal point.][46831]
1698 - [`Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses][46671] This is
1699   in accordance with IETF RFC 4291 §2.2.
1700 - [Unwinding will no longer go past FFI boundaries, and will instead abort.][46833]
1701 - [`Formatter::flags` method is now deprecated.][46284] The `sign_plus`,
1702   `sign_minus`, `alternate`, and `sign_aware_zero_pad` should be used instead.
1703 - [Leading zeros in tuple struct members is now an error][47084]
1704 - [`column!()` macro is one-based instead of zero-based][46977]
1705 - [`fmt::Arguments` can no longer be shared across threads][45198]
1706 - [Access to `#[repr(packed)]` struct fields is now unsafe][44884]
1707 - [Cargo sets a different working directory for the compiler][cargo/4788]
1708
1709 [44884]: https://github.com/rust-lang/rust/pull/44884
1710 [45198]: https://github.com/rust-lang/rust/pull/45198
1711 [45506]: https://github.com/rust-lang/rust/pull/45506
1712 [45904]: https://github.com/rust-lang/rust/pull/45904
1713 [45990]: https://github.com/rust-lang/rust/pull/45990
1714 [46012]: https://github.com/rust-lang/rust/pull/46012
1715 [46077]: https://github.com/rust-lang/rust/pull/46077
1716 [46094]: https://github.com/rust-lang/rust/pull/46094
1717 [46284]: https://github.com/rust-lang/rust/pull/46284
1718 [46287]: https://github.com/rust-lang/rust/pull/46287
1719 [46293]: https://github.com/rust-lang/rust/pull/46293
1720 [46528]: https://github.com/rust-lang/rust/pull/46528
1721 [46671]: https://github.com/rust-lang/rust/pull/46671
1722 [46713]: https://github.com/rust-lang/rust/pull/46713
1723 [46735]: https://github.com/rust-lang/rust/pull/46735
1724 [46749]: https://github.com/rust-lang/rust/pull/46749
1725 [46760]: https://github.com/rust-lang/rust/pull/46760
1726 [46798]: https://github.com/rust-lang/rust/pull/46798
1727 [46828]: https://github.com/rust-lang/rust/pull/46828
1728 [46831]: https://github.com/rust-lang/rust/pull/46831
1729 [46833]: https://github.com/rust-lang/rust/pull/46833
1730 [46910]: https://github.com/rust-lang/rust/pull/46910
1731 [46977]: https://github.com/rust-lang/rust/pull/46977
1732 [47018]: https://github.com/rust-lang/rust/pull/47018
1733 [47080]: https://github.com/rust-lang/rust/pull/47080
1734 [47084]: https://github.com/rust-lang/rust/pull/47084
1735 [cargo/4743]: https://github.com/rust-lang/cargo/pull/4743
1736 [cargo/4788]: https://github.com/rust-lang/cargo/pull/4788
1737 [cargo/4817]: https://github.com/rust-lang/cargo/pull/4817
1738 [`RefCell::replace`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.replace
1739 [`RefCell::swap`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.swap
1740 [`atomic::spin_loop_hint`]: https://doc.rust-lang.org/std/sync/atomic/fn.spin_loop_hint.html
1741
1742
1743 Version 1.23.0 (2018-01-04)
1744 ==========================
1745
1746 Language
1747 --------
1748 - [Arbitrary `auto` traits are now permitted in trait objects.][45772]
1749 - [rustc now uses subtyping on the left hand side of binary operations.][45435]
1750   Which should fix some confusing errors in some operations.
1751
1752 Compiler
1753 --------
1754 - [Enabled `TrapUnreachable` in LLVM which should mitigate the impact of
1755   undefined behavior.][45920]
1756 - [rustc now suggests renaming import if names clash.][45660]
1757 - [Display errors/warnings correctly when there are zero-width or
1758   wide characters.][45711]
1759 - [rustc now avoids unnecessary copies of arguments that are
1760   simple bindings][45380] This should improve memory usage on average by 5-10%.
1761 - [Updated musl used to build musl rustc to 1.1.17][45393]
1762
1763 Libraries
1764 ---------
1765 - [Allow a trailing comma in `assert_eq/ne` macro][45887]
1766 - [Implement Hash for raw pointers to unsized types][45483]
1767 - [impl `From<*mut T>` for `AtomicPtr<T>`][45610]
1768 - [impl `From<usize/isize>` for `AtomicUsize/AtomicIsize`.][45610]
1769 - [Removed the `T: Sync` requirement for `RwLock<T>: Send`][45267]
1770 - [Removed `T: Sized` requirement for `{<*const T>, <*mut T>}::as_ref`
1771   and `<*mut T>::as_mut`][44932]
1772 - [Optimized `Thread::{park, unpark}` implementation][45524]
1773 - [Improved `SliceExt::binary_search` performance.][45333]
1774 - [impl `FromIterator<()>` for `()`][45379]
1775 - [Copied `AsciiExt` trait methods to primitive types.][44042] Use of `AsciiExt`
1776   is now deprecated.
1777
1778 Stabilized APIs
1779 ---------------
1780
1781 Cargo
1782 -----
1783 - [Cargo now supports uninstallation of multiple packages][cargo/4561]
1784   eg. `cargo uninstall foo bar` uninstalls `foo` and `bar`.
1785 - [Added unit test checking to `cargo check`][cargo/4592]
1786 - [Cargo now lets you install a specific version
1787   using `cargo install --version`][cargo/4637]
1788
1789 Misc
1790 ----
1791 - [Releases now ship with the Cargo book documentation.][45692]
1792 - [rustdoc now prints rendering warnings on every run.][45324]
1793
1794 Compatibility Notes
1795 -------------------
1796 - [Changes have been made to type equality to make it more correct,
1797   in rare cases this could break some code.][45853] [Tracking issue for
1798   further information][45852]
1799 - [`char::escape_debug` now uses Unicode 10 over 9.][45571]
1800 - [Upgraded Android SDK to 27, and NDK to r15c.][45580] This drops support for
1801   Android 9, the minimum supported version is Android 14.
1802 - [Bumped the minimum LLVM to 3.9][45326]
1803
1804 [44042]: https://github.com/rust-lang/rust/pull/44042
1805 [44932]: https://github.com/rust-lang/rust/pull/44932
1806 [45267]: https://github.com/rust-lang/rust/pull/45267
1807 [45324]: https://github.com/rust-lang/rust/pull/45324
1808 [45326]: https://github.com/rust-lang/rust/pull/45326
1809 [45333]: https://github.com/rust-lang/rust/pull/45333
1810 [45379]: https://github.com/rust-lang/rust/pull/45379
1811 [45380]: https://github.com/rust-lang/rust/pull/45380
1812 [45393]: https://github.com/rust-lang/rust/pull/45393
1813 [45435]: https://github.com/rust-lang/rust/pull/45435
1814 [45483]: https://github.com/rust-lang/rust/pull/45483
1815 [45524]: https://github.com/rust-lang/rust/pull/45524
1816 [45571]: https://github.com/rust-lang/rust/pull/45571
1817 [45580]: https://github.com/rust-lang/rust/pull/45580
1818 [45610]: https://github.com/rust-lang/rust/pull/45610
1819 [45660]: https://github.com/rust-lang/rust/pull/45660
1820 [45692]: https://github.com/rust-lang/rust/pull/45692
1821 [45711]: https://github.com/rust-lang/rust/pull/45711
1822 [45772]: https://github.com/rust-lang/rust/pull/45772
1823 [45852]: https://github.com/rust-lang/rust/issues/45852
1824 [45853]: https://github.com/rust-lang/rust/pull/45853
1825 [45887]: https://github.com/rust-lang/rust/pull/45887
1826 [45920]: https://github.com/rust-lang/rust/pull/45920
1827 [cargo/4561]: https://github.com/rust-lang/cargo/pull/4561
1828 [cargo/4592]: https://github.com/rust-lang/cargo/pull/4592
1829 [cargo/4637]: https://github.com/rust-lang/cargo/pull/4637
1830
1831
1832 Version 1.22.1 (2017-11-22)
1833 ==========================
1834
1835 - [Update Cargo to fix an issue with macOS 10.13 "High Sierra"][46183]
1836
1837 [46183]: https://github.com/rust-lang/rust/pull/46183
1838
1839 Version 1.22.0 (2017-11-22)
1840 ==========================
1841
1842 Language
1843 --------
1844 - [`non_snake_case` lint now allows extern no-mangle functions][44966]
1845 - [Now accepts underscores in unicode escapes][43716]
1846 - [`T op= &T` now works for numeric types.][44287] eg. `let mut x = 2; x += &8;`
1847 - [types that impl `Drop` are now allowed in `const` and `static` types][44456]
1848
1849 Compiler
1850 --------
1851 - [rustc now defaults to having 16 codegen units at debug on supported platforms.][45064]
1852 - [rustc will no longer inline in codegen units when compiling for debug][45075]
1853   This should decrease compile times for debug builds.
1854 - [strict memory alignment now enabled on ARMv6][45094]
1855 - [Remove support for the PNaCl target `le32-unknown-nacl`][45041]
1856
1857 Libraries
1858 ---------
1859 - [Allow atomic operations up to 32 bits
1860   on `armv5te_unknown_linux_gnueabi`][44978]
1861 - [`Box<Error>` now impls `From<Cow<str>>`][44466]
1862 - [`std::mem::Discriminant` is now guaranteed to be `Send + Sync`][45095]
1863 - [`fs::copy` now returns the length of the main stream on NTFS.][44895]
1864 - [Properly detect overflow in `Instant += Duration`.][44220]
1865 - [impl `Hasher` for `{&mut Hasher, Box<Hasher>}`][44015]
1866 - [impl `fmt::Debug` for `SplitWhitespace`.][44303]
1867 - [`Option<T>` now impls `Try`][42526] This allows for using `?` with `Option` types.
1868
1869 Stabilized APIs
1870 ---------------
1871
1872 Cargo
1873 -----
1874 - [Cargo will now build multi file examples in subdirectories of the `examples`
1875   folder that have a `main.rs` file.][cargo/4496]
1876 - [Changed `[root]` to `[package]` in `Cargo.lock`][cargo/4571] Packages with
1877   the old format will continue to work and can be updated with `cargo update`.
1878 - [Now supports vendoring git repositories][cargo/3992]
1879
1880 Misc
1881 ----
1882 - [`libbacktrace` is now available on Apple platforms.][44251]
1883 - [Stabilised the `compile_fail` attribute for code fences in doc-comments.][43949]
1884   This now lets you specify that a given code example will fail to compile.
1885
1886 Compatibility Notes
1887 -------------------
1888 - [The minimum Android version that rustc can build for has been bumped
1889   to `4.0` from `2.3`][45656]
1890 - [Allowing `T op= &T` for numeric types has broken some type
1891   inference cases][45480]
1892
1893
1894 [42526]: https://github.com/rust-lang/rust/pull/42526
1895 [43017]: https://github.com/rust-lang/rust/pull/43017
1896 [43716]: https://github.com/rust-lang/rust/pull/43716
1897 [43949]: https://github.com/rust-lang/rust/pull/43949
1898 [44015]: https://github.com/rust-lang/rust/pull/44015
1899 [44220]: https://github.com/rust-lang/rust/pull/44220
1900 [44251]: https://github.com/rust-lang/rust/pull/44251
1901 [44287]: https://github.com/rust-lang/rust/pull/44287
1902 [44303]: https://github.com/rust-lang/rust/pull/44303
1903 [44456]: https://github.com/rust-lang/rust/pull/44456
1904 [44466]: https://github.com/rust-lang/rust/pull/44466
1905 [44895]: https://github.com/rust-lang/rust/pull/44895
1906 [44966]: https://github.com/rust-lang/rust/pull/44966
1907 [44978]: https://github.com/rust-lang/rust/pull/44978
1908 [45041]: https://github.com/rust-lang/rust/pull/45041
1909 [45064]: https://github.com/rust-lang/rust/pull/45064
1910 [45075]: https://github.com/rust-lang/rust/pull/45075
1911 [45094]: https://github.com/rust-lang/rust/pull/45094
1912 [45095]: https://github.com/rust-lang/rust/pull/45095
1913 [45480]: https://github.com/rust-lang/rust/issues/45480
1914 [45656]: https://github.com/rust-lang/rust/pull/45656
1915 [cargo/3992]: https://github.com/rust-lang/cargo/pull/3992
1916 [cargo/4496]: https://github.com/rust-lang/cargo/pull/4496
1917 [cargo/4571]: https://github.com/rust-lang/cargo/pull/4571
1918
1919
1920
1921
1922
1923
1924 Version 1.21.0 (2017-10-12)
1925 ==========================
1926
1927 Language
1928 --------
1929 - [You can now use static references for literals.][43838]
1930   Example:
1931   ```rust
1932   fn main() {
1933       let x: &'static u32 = &0;
1934   }
1935   ```
1936 - [Relaxed path syntax. Optional `::` before `<` is now allowed in all contexts.][43540]
1937   Example:
1938   ```rust
1939   my_macro!(Vec<i32>::new); // Always worked
1940   my_macro!(Vec::<i32>::new); // Now works
1941   ```
1942
1943 Compiler
1944 --------
1945 - [Upgraded jemalloc to 4.5.0][43911]
1946 - [Enabled unwinding panics on Redox][43917]
1947 - [Now runs LLVM in parallel during translation phase.][43506]
1948   This should reduce peak memory usage.
1949
1950 Libraries
1951 ---------
1952 - [Generate builtin impls for `Clone` for all arrays and tuples that
1953   are `T: Clone`][43690]
1954 - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459]
1955 - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From<str>`,
1956   `From<String>`, `From<Box<T>> where T: ?Sized`, and `From<Vec<T>>`.][42565]
1957
1958 Stabilized APIs
1959 ---------------
1960
1961 [`std::mem::discriminant`]
1962
1963 Cargo
1964 -----
1965 - [You can now call `cargo install` with multiple package names][cargo/4216]
1966 - [Cargo commands inside a virtual workspace will now implicitly
1967   pass `--all`][cargo/4335]
1968 - [Added a `[patch]` section to `Cargo.toml` to handle
1969   prepublication dependencies][cargo/4123] [RFC 1969]
1970 - [`include` & `exclude` fields in `Cargo.toml` now accept gitignore
1971   like patterns][cargo/4270]
1972 - [Added the `--all-targets` option][cargo/4400]
1973 - [Using required dependencies as a feature is now deprecated and emits
1974   a warning][cargo/4364]
1975
1976
1977 Misc
1978 ----
1979 - [Cargo docs are moving][43916]
1980   to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo)
1981 - [The rustdoc book is now available][43863]
1982   at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc)
1983 - [Added a preview of RLS has been made available through rustup][44204]
1984   Install with `rustup component add rls-preview`
1985 - [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348]
1986   Previously only showed `std::os::unix`.
1987
1988 Compatibility Notes
1989 -------------------
1990 - [Changes in method matching against higher-ranked types][43880] This may cause
1991   breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880]
1992 - [rustc's JSON error output's byte position start at top of file.][42973]
1993   Was previously relative to the rustc's internal `CodeMap` struct which
1994   required the unstable library `libsyntax` to correctly use.
1995 - [`unused_results` lint no longer ignores booleans][43728]
1996
1997 [42565]: https://github.com/rust-lang/rust/pull/42565
1998 [42973]: https://github.com/rust-lang/rust/pull/42973
1999 [43348]: https://github.com/rust-lang/rust/pull/43348
2000 [43459]: https://github.com/rust-lang/rust/pull/43459
2001 [43506]: https://github.com/rust-lang/rust/pull/43506
2002 [43540]: https://github.com/rust-lang/rust/pull/43540
2003 [43690]: https://github.com/rust-lang/rust/pull/43690
2004 [43728]: https://github.com/rust-lang/rust/pull/43728
2005 [43838]: https://github.com/rust-lang/rust/pull/43838
2006 [43863]: https://github.com/rust-lang/rust/pull/43863
2007 [43880]: https://github.com/rust-lang/rust/pull/43880
2008 [43911]: https://github.com/rust-lang/rust/pull/43911
2009 [43916]: https://github.com/rust-lang/rust/pull/43916
2010 [43917]: https://github.com/rust-lang/rust/pull/43917
2011 [44204]: https://github.com/rust-lang/rust/pull/44204
2012 [cargo/4123]: https://github.com/rust-lang/cargo/pull/4123
2013 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216
2014 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
2015 [cargo/4335]: https://github.com/rust-lang/cargo/pull/4335
2016 [cargo/4364]: https://github.com/rust-lang/cargo/pull/4364
2017 [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400
2018 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969
2019 [info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902
2020 [`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html
2021
2022 Version 1.20.0 (2017-08-31)
2023 ===========================
2024
2025 Language
2026 --------
2027 - [Associated constants are now stabilised.][42809]
2028 - [A lot of macro bugs are now fixed.][42913]
2029
2030 Compiler
2031 --------
2032
2033 - [Struct fields are now properly coerced to the expected field type.][42807]
2034 - [Enabled wasm LLVM backend][42571] WASM can now be built with the
2035   `wasm32-experimental-emscripten` target.
2036 - [Changed some of the error messages to be more helpful.][42033]
2037 - [Add support for RELRO(RELocation Read-Only) for platforms that support
2038   it.][43170]
2039 - [rustc now reports the total number of errors on compilation failure][43015]
2040   previously this was only the number of errors in the pass that failed.
2041 - [Expansion in rustc has been sped up 29x.][42533]
2042 - [added `msp430-none-elf` target.][43099]
2043 - [rustc will now suggest one-argument enum variant to fix type mismatch when
2044   applicable][43178]
2045 - [Fixes backtraces on Redox][43228]
2046 - [rustc now identifies different versions of same crate when absolute paths of
2047   different types match in an error message.][42826]
2048
2049 Libraries
2050 ---------
2051
2052
2053 - [Relaxed Debug constraints on `{HashMap,BTreeMap}::{Keys,Values}`.][42854]
2054 - [Impl `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Debug`, `Hash` for unsized
2055   tuples.][43011]
2056 - [Impl `fmt::{Display, Debug}` for `Ref`, `RefMut`, `MutexGuard`,
2057   `RwLockReadGuard`, `RwLockWriteGuard`][42822]
2058 - [Impl `Clone` for `DefaultHasher`.][42799]
2059 - [Impl `Sync` for `SyncSender`.][42397]
2060 - [Impl `FromStr` for `char`][42271]
2061 - [Fixed how `{f32, f64}::{is_sign_negative, is_sign_positive}` handles
2062   NaN.][42431]
2063 - [allow messages in the `unimplemented!()` macro.][42155]
2064   ie. `unimplemented!("Waiting for 1.21 to be stable")`
2065 - [`pub(restricted)` is now supported in the `thread_local!` macro.][43185]
2066 - [Upgrade to Unicode 10.0.0][42999]
2067 - [Reimplemented `{f32, f64}::{min, max}` in Rust instead of using CMath.][42430]
2068 - [Skip the main thread's manual stack guard on Linux][43072]
2069 - [Iterator::nth for `ops::{Range, RangeFrom}` is now done in O(1) time][43077]
2070 - [`#[repr(align(N))]` attribute max number is now 2^31 - 1.][43097] This was
2071   previously 2^15.
2072 - [`{OsStr, Path}::Display` now avoids allocations where possible][42613]
2073
2074 Stabilized APIs
2075 ---------------
2076
2077 - [`CStr::into_c_string`]
2078 - [`CString::as_c_str`]
2079 - [`CString::into_boxed_c_str`]
2080 - [`Chain::get_mut`]
2081 - [`Chain::get_ref`]
2082 - [`Chain::into_inner`]
2083 - [`Option::get_or_insert_with`]
2084 - [`Option::get_or_insert`]
2085 - [`OsStr::into_os_string`]
2086 - [`OsString::into_boxed_os_str`]
2087 - [`Take::get_mut`]
2088 - [`Take::get_ref`]
2089 - [`Utf8Error::error_len`]
2090 - [`char::EscapeDebug`]
2091 - [`char::escape_debug`]
2092 - [`compile_error!`]
2093 - [`f32::from_bits`]
2094 - [`f32::to_bits`]
2095 - [`f64::from_bits`]
2096 - [`f64::to_bits`]
2097 - [`mem::ManuallyDrop`]
2098 - [`slice::sort_unstable_by_key`]
2099 - [`slice::sort_unstable_by`]
2100 - [`slice::sort_unstable`]
2101 - [`str::from_boxed_utf8_unchecked`]
2102 - [`str::as_bytes_mut`]
2103 - [`str::as_bytes_mut`]
2104 - [`str::from_utf8_mut`]
2105 - [`str::from_utf8_unchecked_mut`]
2106 - [`str::get_mut`]
2107 - [`str::get_unchecked_mut`]
2108 - [`str::get_unchecked`]
2109 - [`str::get`]
2110 - [`str::into_boxed_bytes`]
2111
2112
2113 Cargo
2114 -----
2115 - [Cargo API token location moved from `~/.cargo/config` to
2116   `~/.cargo/credentials`.][cargo/3978]
2117 - [Cargo will now build `main.rs` binaries that are in sub-directories of
2118   `src/bin`.][cargo/4214] ie. Having `src/bin/server/main.rs` and
2119   `src/bin/client/main.rs` generates `target/debug/server` and `target/debug/client`
2120 - [You can now specify version of a binary when installed through
2121   `cargo install` using `--vers`.][cargo/4229]
2122 - [Added `--no-fail-fast` flag to cargo to run all benchmarks regardless of
2123   failure.][cargo/4248]
2124 - [Changed the convention around which file is the crate root.][cargo/4259]
2125 - [The `include`/`exclude` property in `Cargo.toml` now accepts gitignore paths
2126   instead of glob patterns][cargo/4270]. Glob patterns are now deprecated.
2127
2128 Compatibility Notes
2129 -------------------
2130
2131 - [Functions with `'static` in their return types will now not be as usable as
2132   if they were using lifetime parameters instead.][42417]
2133 - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now
2134   takes the sign of NaN into account where previously didn't.][42430]
2135
2136 [42033]: https://github.com/rust-lang/rust/pull/42033
2137 [42155]: https://github.com/rust-lang/rust/pull/42155
2138 [42271]: https://github.com/rust-lang/rust/pull/42271
2139 [42397]: https://github.com/rust-lang/rust/pull/42397
2140 [42417]: https://github.com/rust-lang/rust/pull/42417
2141 [42430]: https://github.com/rust-lang/rust/pull/42430
2142 [42431]: https://github.com/rust-lang/rust/pull/42431
2143 [42533]: https://github.com/rust-lang/rust/pull/42533
2144 [42571]: https://github.com/rust-lang/rust/pull/42571
2145 [42613]: https://github.com/rust-lang/rust/pull/42613
2146 [42799]: https://github.com/rust-lang/rust/pull/42799
2147 [42807]: https://github.com/rust-lang/rust/pull/42807
2148 [42809]: https://github.com/rust-lang/rust/pull/42809
2149 [42822]: https://github.com/rust-lang/rust/pull/42822
2150 [42826]: https://github.com/rust-lang/rust/pull/42826
2151 [42854]: https://github.com/rust-lang/rust/pull/42854
2152 [42913]: https://github.com/rust-lang/rust/pull/42913
2153 [42999]: https://github.com/rust-lang/rust/pull/42999
2154 [43011]: https://github.com/rust-lang/rust/pull/43011
2155 [43015]: https://github.com/rust-lang/rust/pull/43015
2156 [43072]: https://github.com/rust-lang/rust/pull/43072
2157 [43077]: https://github.com/rust-lang/rust/pull/43077
2158 [43097]: https://github.com/rust-lang/rust/pull/43097
2159 [43099]: https://github.com/rust-lang/rust/pull/43099
2160 [43170]: https://github.com/rust-lang/rust/pull/43170
2161 [43178]: https://github.com/rust-lang/rust/pull/43178
2162 [43185]: https://github.com/rust-lang/rust/pull/43185
2163 [43228]: https://github.com/rust-lang/rust/pull/43228
2164 [cargo/3978]: https://github.com/rust-lang/cargo/pull/3978
2165 [cargo/4214]: https://github.com/rust-lang/cargo/pull/4214
2166 [cargo/4229]: https://github.com/rust-lang/cargo/pull/4229
2167 [cargo/4248]: https://github.com/rust-lang/cargo/pull/4248
2168 [cargo/4259]: https://github.com/rust-lang/cargo/pull/4259
2169 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
2170 [`CStr::into_c_string`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.into_c_string
2171 [`CString::as_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.as_c_str
2172 [`CString::into_boxed_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str
2173 [`Chain::get_mut`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_mut
2174 [`Chain::get_ref`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_ref
2175 [`Chain::into_inner`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.into_inner
2176 [`Option::get_or_insert_with`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert_with
2177 [`Option::get_or_insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert
2178 [`OsStr::into_os_string`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.into_os_string
2179 [`OsString::into_boxed_os_str`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.into_boxed_os_str
2180 [`Take::get_mut`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_mut
2181 [`Take::get_ref`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_ref
2182 [`Utf8Error::error_len`]: https://doc.rust-lang.org/std/str/struct.Utf8Error.html#method.error_len
2183 [`char::EscapeDebug`]: https://doc.rust-lang.org/std/char/struct.EscapeDebug.html
2184 [`char::escape_debug`]: https://doc.rust-lang.org/std/primitive.char.html#method.escape_debug
2185 [`compile_error!`]: https://doc.rust-lang.org/std/macro.compile_error.html
2186 [`f32::from_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits
2187 [`f32::to_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_bits
2188 [`f64::from_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_bits
2189 [`f64::to_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_bits
2190 [`mem::ManuallyDrop`]: https://doc.rust-lang.org/std/mem/union.ManuallyDrop.html
2191 [`slice::sort_unstable_by_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by_key
2192 [`slice::sort_unstable_by`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by
2193 [`slice::sort_unstable`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable
2194 [`str::from_boxed_utf8_unchecked`]: https://doc.rust-lang.org/std/str/fn.from_boxed_utf8_unchecked.html
2195 [`str::as_bytes_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_bytes_mut
2196 [`str::from_utf8_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_mut.html
2197 [`str::from_utf8_unchecked_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_unchecked_mut.html
2198 [`str::get_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_mut
2199 [`str::get_unchecked_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked_mut
2200 [`str::get_unchecked`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked
2201 [`str::get`]: https://doc.rust-lang.org/std/primitive.str.html#method.get
2202 [`str::into_boxed_bytes`]: https://doc.rust-lang.org/std/primitive.str.html#method.into_boxed_bytes
2203
2204
2205 Version 1.19.0 (2017-07-20)
2206 ===========================
2207
2208 Language
2209 --------
2210
2211 - [Numeric fields can now be used for creating tuple structs.][41145] [RFC 1506]
2212   For example `struct Point(u32, u32); let x = Point { 0: 7, 1: 0 };`.
2213 - [Macro recursion limit increased to 1024 from 64.][41676]
2214 - [Added lint for detecting unused macros.][41907]
2215 - [`loop` can now return a value with `break`.][42016] [RFC 1624]
2216   For example: `let x = loop { break 7; };`
2217 - [C compatible `union`s are now available.][42068] [RFC 1444] They can only
2218   contain `Copy` types and cannot have a `Drop` implementation.
2219   Example: `union Foo { bar: u8, baz: usize }`
2220 - [Non capturing closures can now be coerced into `fn`s,][42162] [RFC 1558]
2221   Example: `let foo: fn(u8) -> u8 = |v: u8| { v };`
2222
2223 Compiler
2224 --------
2225
2226 - [Add support for bootstrapping the Rust compiler toolchain on Android.][41370]
2227 - [Change `arm-linux-androideabi` to correspond to the `armeabi`
2228   official ABI.][41656] If you wish to continue targeting the `armeabi-v7a` ABI
2229   you should use `--target armv7-linux-androideabi`.
2230 - [Fixed ICE when removing a source file between compilation sessions.][41873]
2231 - [Minor optimisation of string operations.][42037]
2232 - [Compiler error message is now `aborting due to previous error(s)` instead of
2233   `aborting due to N previous errors`][42150] This was previously inaccurate and
2234   would only count certain kinds of errors.
2235 - [The compiler now supports Visual Studio 2017][42225]
2236 - [The compiler is now built against LLVM 4.0.1 by default][42948]
2237 - [Added a lot][42264] of [new error codes][42302]
2238 - [Added `target-feature=+crt-static` option][37406] [RFC 1721] Which allows
2239   libraries with C Run-time Libraries(CRT) to be statically linked.
2240 - [Fixed various ARM codegen bugs][42740]
2241
2242 Libraries
2243 ---------
2244
2245 - [`String` now implements `FromIterator<Cow<'a, str>>` and
2246   `Extend<Cow<'a, str>>`][41449]
2247 - [`Vec` now implements `From<&mut [T]>`][41530]
2248 - [`Box<[u8]>` now implements `From<Box<str>>`][41258]
2249 - [`SplitWhitespace` now implements `Clone`][41659]
2250 - [`[u8]::reverse` is now 5x faster and `[u16]::reverse` is now
2251   1.5x faster][41764]
2252 - [`eprint!` and `eprintln!` macros added to prelude.][41192] Same as the `print!`
2253   macros, but for printing to stderr.
2254
2255 Stabilized APIs
2256 ---------------
2257
2258 - [`OsString::shrink_to_fit`]
2259 - [`cmp::Reverse`]
2260 - [`Command::envs`]
2261 - [`thread::ThreadId`]
2262
2263 Cargo
2264 -----
2265
2266 - [Build scripts can now add environment variables to the environment
2267   the crate is being compiled in.
2268   Example: `println!("cargo:rustc-env=FOO=bar");`][cargo/3929]
2269 - [Subcommands now replace the current process rather than spawning a new
2270   child process][cargo/3970]
2271 - [Workspace members can now accept glob file patterns][cargo/3979]
2272 - [Added `--all` flag to the `cargo bench` subcommand to run benchmarks of all
2273   the members in a given workspace.][cargo/3988]
2274 - [Updated `libssh2-sys` to 0.2.6][cargo/4008]
2275 - [Target directory path is now in the cargo metadata][cargo/4022]
2276 - [Cargo no longer checks out a local working directory for the
2277   crates.io index][cargo/4026] This should provide smaller file size for the
2278   registry, and improve cloning times, especially on Windows machines.
2279 - [Added an `--exclude` option for excluding certain packages when using the
2280   `--all` option][cargo/4031]
2281 - [Cargo will now automatically retry when receiving a 5xx error
2282   from crates.io][cargo/4032]
2283 - [The `--features` option now accepts multiple comma or space
2284   delimited values.][cargo/4084]
2285 - [Added support for custom target specific runners][cargo/3954]
2286
2287 Misc
2288 ----
2289
2290 - [Added `rust-windbg.cmd`][39983] for loading rust `.natvis` files in the
2291   Windows Debugger.
2292 - [Rust will now release XZ compressed packages][rust-installer/57]
2293 - [rustup will now prefer to download rust packages with
2294   XZ compression][rustup/1100] over GZip packages.
2295 - [Added the ability to escape `#` in rust documentation][41785] By adding
2296   additional `#`'s ie. `##` is now `#`
2297
2298 Compatibility Notes
2299 -------------------
2300
2301 - [`MutexGuard<T>` may only be `Sync` if `T` is `Sync`.][41624]
2302 - [`-Z` flags are now no longer allowed to be used on the stable
2303   compiler.][41751] This has been a warning for a year previous to this.
2304 - [As a result of the `-Z` flag change, the `cargo-check` plugin no
2305   longer works][42844]. Users should migrate to the built-in `check`
2306   command, which has been available since 1.16.
2307 - [Ending a float literal with `._` is now a hard error.
2308   Example: `42._` .][41946]
2309 - [Any use of a private `extern crate` outside of its module is now a
2310   hard error.][36886] This was previously a warning.
2311 - [`use ::self::foo;` is now a hard error.][36888] `self` paths are always
2312   relative while the `::` prefix makes a path absolute, but was ignored and the
2313   path was relative regardless.
2314 - [Floating point constants in match patterns is now a hard error][36890]
2315   This was previously a warning.
2316 - [Struct or enum constants that don't derive `PartialEq` & `Eq` used
2317   match patterns is now a hard error][36891] This was previously a warning.
2318 - [Lifetimes named `'_` are no longer allowed.][36892] This was previously
2319   a warning.
2320 - [From the pound escape, lines consisting of multiple `#`s are
2321   now visible][41785]
2322 - [It is an error to re-export private enum variants][42460]. This is
2323   known to break a number of crates that depend on an older version of
2324   mustache.
2325 - [On Windows, if `VCINSTALLDIR` is set incorrectly, `rustc` will try
2326   to use it to find the linker, and the build will fail where it did
2327   not previously][42607]
2328
2329 [36886]: https://github.com/rust-lang/rust/issues/36886
2330 [36888]: https://github.com/rust-lang/rust/issues/36888
2331 [36890]: https://github.com/rust-lang/rust/issues/36890
2332 [36891]: https://github.com/rust-lang/rust/issues/36891
2333 [36892]: https://github.com/rust-lang/rust/issues/36892
2334 [37406]: https://github.com/rust-lang/rust/issues/37406
2335 [39983]: https://github.com/rust-lang/rust/pull/39983
2336 [41145]: https://github.com/rust-lang/rust/pull/41145
2337 [41192]: https://github.com/rust-lang/rust/pull/41192
2338 [41258]: https://github.com/rust-lang/rust/pull/41258
2339 [41370]: https://github.com/rust-lang/rust/pull/41370
2340 [41449]: https://github.com/rust-lang/rust/pull/41449
2341 [41530]: https://github.com/rust-lang/rust/pull/41530
2342 [41624]: https://github.com/rust-lang/rust/pull/41624
2343 [41656]: https://github.com/rust-lang/rust/pull/41656
2344 [41659]: https://github.com/rust-lang/rust/pull/41659
2345 [41676]: https://github.com/rust-lang/rust/pull/41676
2346 [41751]: https://github.com/rust-lang/rust/pull/41751
2347 [41764]: https://github.com/rust-lang/rust/pull/41764
2348 [41785]: https://github.com/rust-lang/rust/pull/41785
2349 [41873]: https://github.com/rust-lang/rust/pull/41873
2350 [41907]: https://github.com/rust-lang/rust/pull/41907
2351 [41946]: https://github.com/rust-lang/rust/pull/41946
2352 [42016]: https://github.com/rust-lang/rust/pull/42016
2353 [42037]: https://github.com/rust-lang/rust/pull/42037
2354 [42068]: https://github.com/rust-lang/rust/pull/42068
2355 [42150]: https://github.com/rust-lang/rust/pull/42150
2356 [42162]: https://github.com/rust-lang/rust/pull/42162
2357 [42225]: https://github.com/rust-lang/rust/pull/42225
2358 [42264]: https://github.com/rust-lang/rust/pull/42264
2359 [42302]: https://github.com/rust-lang/rust/pull/42302
2360 [42460]: https://github.com/rust-lang/rust/issues/42460
2361 [42607]: https://github.com/rust-lang/rust/issues/42607
2362 [42740]: https://github.com/rust-lang/rust/pull/42740
2363 [42844]: https://github.com/rust-lang/rust/issues/42844
2364 [42948]: https://github.com/rust-lang/rust/pull/42948
2365 [RFC 1444]: https://github.com/rust-lang/rfcs/pull/1444
2366 [RFC 1506]: https://github.com/rust-lang/rfcs/pull/1506
2367 [RFC 1558]: https://github.com/rust-lang/rfcs/pull/1558
2368 [RFC 1624]: https://github.com/rust-lang/rfcs/pull/1624
2369 [RFC 1721]: https://github.com/rust-lang/rfcs/pull/1721
2370 [`Command::envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.envs
2371 [`OsString::shrink_to_fit`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.shrink_to_fit
2372 [`cmp::Reverse`]: https://doc.rust-lang.org/std/cmp/struct.Reverse.html
2373 [`thread::ThreadId`]: https://doc.rust-lang.org/std/thread/struct.ThreadId.html
2374 [cargo/3929]: https://github.com/rust-lang/cargo/pull/3929
2375 [cargo/3954]: https://github.com/rust-lang/cargo/pull/3954
2376 [cargo/3970]: https://github.com/rust-lang/cargo/pull/3970
2377 [cargo/3979]: https://github.com/rust-lang/cargo/pull/3979
2378 [cargo/3988]: https://github.com/rust-lang/cargo/pull/3988
2379 [cargo/4008]: https://github.com/rust-lang/cargo/pull/4008
2380 [cargo/4022]: https://github.com/rust-lang/cargo/pull/4022
2381 [cargo/4026]: https://github.com/rust-lang/cargo/pull/4026
2382 [cargo/4031]: https://github.com/rust-lang/cargo/pull/4031
2383 [cargo/4032]: https://github.com/rust-lang/cargo/pull/4032
2384 [cargo/4084]: https://github.com/rust-lang/cargo/pull/4084
2385 [rust-installer/57]: https://github.com/rust-lang/rust-installer/pull/57
2386 [rustup/1100]: https://github.com/rust-lang-nursery/rustup.rs/pull/1100
2387
2388
2389 Version 1.18.0 (2017-06-08)
2390 ===========================
2391
2392 Language
2393 --------
2394
2395 - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to
2396   make the item visible to just that module tree. Also accepts the keyword
2397   `crate` to make something public to the whole crate but not users of the
2398   library. Example: `pub(crate) mod utils;`. [RFC 1422].
2399 - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the
2400   `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665].
2401 - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept
2402   types like `Write + Send`, trailing `+` are now supported in trait objects,
2403   and better error reporting for trait objects starting with `?Sized`.
2404 - [0e+10 is now a valid floating point literal][40589]
2405 - [Now warns if you bind a lifetime parameter to 'static][40734]
2406 - [Tuples, Enum variant fields, and structs with no `repr` attribute or with
2407   `#[repr(Rust)]` are reordered to minimize padding and produce a smaller
2408   representation in some cases.][40377]
2409
2410 Compiler
2411 --------
2412
2413 - [rustc can now emit mir with `--emit mir`][39891]
2414 - [Improved LLVM IR for trivial functions][40367]
2415 - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723]
2416 - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation
2417   opportunities found through profiling
2418 - [Improved backtrace formatting when panicking][38165]
2419
2420 Libraries
2421 ---------
2422
2423 - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the
2424   iterator hasn't been advanced the original `Vec` is reassembled with no actual
2425   iteration or reallocation.
2426 - [Simplified HashMap Bucket interface][40561] provides performance
2427   improvements for iterating and cloning.
2428 - [Specialize Vec::from_elem to use calloc][40409]
2429 - [Fixed Race condition in fs::create_dir_all][39799]
2430 - [No longer caching stdio on Windows][40516]
2431 - [Optimized insertion sort in slice][40807] insertion sort in some cases
2432   2.50%~ faster and in one case now 12.50% faster.
2433 - [Optimized `AtomicBool::fetch_nand`][41143]
2434
2435 Stabilized APIs
2436 ---------------
2437
2438 - [`Child::try_wait`]
2439 - [`HashMap::retain`]
2440 - [`HashSet::retain`]
2441 - [`PeekMut::pop`]
2442 - [`TcpStream::peek`]
2443 - [`UdpSocket::peek`]
2444 - [`UdpSocket::peek_from`]
2445
2446 Cargo
2447 -----
2448
2449 - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust.
2450   You can now create new cargo projects with Pijul using `cargo new --vcs pijul`
2451 - [Now always emits build script warnings for crates that fail to build][cargo/3847]
2452 - [Added Android build support][cargo/3885]
2453 - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs
2454   of a certain type, for example `cargo build --bins` will build all
2455   binaries.
2456 - [Added support for haiku][cargo/3952]
2457
2458 Misc
2459 ----
2460
2461 - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338]
2462 - [Added rust-windbg script for better debugging on Windows][39983]
2463 - [Rust now uses the official cross compiler for NetBSD][40612]
2464 - [rustdoc now accepts `#` at the start of files][40828]
2465 - [Fixed jemalloc support for musl][41168]
2466
2467 Compatibility Notes
2468 -------------------
2469
2470 - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now
2471   always placed after the sign if it exists and before the digits. With the `#`
2472   flag the zeroes are placed after the prefix and before the digits.
2473 - [Due to the struct field optimisation][40377], using `transmute` on structs
2474   that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has
2475   always been undefined behavior, but is now more likely to break in practice.
2476 - [The refactor of trait object type parsing][40043] fixed a bug where `+` was
2477   receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as
2478   `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send`
2479 - [Overlapping inherent `impl`s are now a hard error][40728]
2480 - [`PartialOrd` and `Ord` must agree on the ordering.][41270]
2481 - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output
2482   `out.asm` and `out.ll` instead of only one of the filetypes.
2483 - [ calling a function that returns `Self` will no longer work][41805] when
2484   the size of `Self` cannot be statically determined.
2485 - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805]
2486   this has caused a few regressions namely:
2487
2488   - Changed the link order of local static/dynamic libraries (respecting the
2489     order on given rather than having the compiler reorder).
2490   - Changed how MinGW is linked, native code linked to dynamic libraries
2491     may require manually linking to the gcc support library (for the native
2492     code itself)
2493
2494 [38165]: https://github.com/rust-lang/rust/pull/38165
2495 [39799]: https://github.com/rust-lang/rust/pull/39799
2496 [39891]: https://github.com/rust-lang/rust/pull/39891
2497 [39983]: https://github.com/rust-lang/rust/pull/39983
2498 [40043]: https://github.com/rust-lang/rust/pull/40043
2499 [40241]: https://github.com/rust-lang/rust/pull/40241
2500 [40338]: https://github.com/rust-lang/rust/pull/40338
2501 [40367]: https://github.com/rust-lang/rust/pull/40367
2502 [40377]: https://github.com/rust-lang/rust/pull/40377
2503 [40409]: https://github.com/rust-lang/rust/pull/40409
2504 [40516]: https://github.com/rust-lang/rust/pull/40516
2505 [40556]: https://github.com/rust-lang/rust/pull/40556
2506 [40561]: https://github.com/rust-lang/rust/pull/40561
2507 [40589]: https://github.com/rust-lang/rust/pull/40589
2508 [40612]: https://github.com/rust-lang/rust/pull/40612
2509 [40723]: https://github.com/rust-lang/rust/pull/40723
2510 [40728]: https://github.com/rust-lang/rust/pull/40728
2511 [40731]: https://github.com/rust-lang/rust/pull/40731
2512 [40734]: https://github.com/rust-lang/rust/pull/40734
2513 [40805]: https://github.com/rust-lang/rust/pull/40805
2514 [40807]: https://github.com/rust-lang/rust/pull/40807
2515 [40828]: https://github.com/rust-lang/rust/pull/40828
2516 [40870]: https://github.com/rust-lang/rust/pull/40870
2517 [41085]: https://github.com/rust-lang/rust/pull/41085
2518 [41143]: https://github.com/rust-lang/rust/pull/41143
2519 [41168]: https://github.com/rust-lang/rust/pull/41168
2520 [41270]: https://github.com/rust-lang/rust/issues/41270
2521 [41469]: https://github.com/rust-lang/rust/pull/41469
2522 [41805]: https://github.com/rust-lang/rust/issues/41805
2523 [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md
2524 [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md
2525 [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
2526 [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain
2527 [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain
2528 [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop
2529 [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek
2530 [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from
2531 [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek
2532 [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842
2533 [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847
2534 [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885
2535 [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901
2536 [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952
2537
2538
2539 Version 1.17.0 (2017-04-27)
2540 ===========================
2541
2542 Language
2543 --------
2544
2545 * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
2546 * [Fields of structs may be initialized without duplicating the field/variable
2547   names][39761]. [RFC 1682]
2548 * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
2549 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
2550   there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
2551   coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
2552   `'b`. Soundness fix.
2553 * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
2554 * [Static variables may contain references to other statics][40027]
2555
2556 Compiler
2557 --------
2558
2559 * [Exit quickly on only `--emit dep-info`][40336]
2560 * [Make `-C relocation-model` more correctly determine whether the linker
2561   creates a position-independent executable][40245]
2562 * [Add `-C overflow-checks` to directly control whether integer overflow
2563   panics][40037]
2564 * [The rustc type checker now checks items on demand instead of in a single
2565   in-order pass][40008]. This is mostly an internal refactoring in support of
2566   future work, including incremental type checking, but also resolves [RFC
2567   1647], allowing `Self` to appear in `impl` `where` clauses.
2568 * [Optimize vtable loads][39995]
2569 * [Turn off vectorization for Emscripten targets][39990]
2570 * [Provide suggestions for unknown macros imported with `use`][39953]
2571 * [Fix ICEs in path resolution][39939]
2572 * [Strip exception handling code on Emscripten when `panic=abort`][39193]
2573 * [Add clearer error message using `&str + &str`][39116]
2574
2575 Stabilized APIs
2576 ---------------
2577
2578 * [`Arc::into_raw`]
2579 * [`Arc::from_raw`]
2580 * [`Arc::ptr_eq`]
2581 * [`Rc::into_raw`]
2582 * [`Rc::from_raw`]
2583 * [`Rc::ptr_eq`]
2584 * [`Ordering::then`]
2585 * [`Ordering::then_with`]
2586 * [`BTreeMap::range`]
2587 * [`BTreeMap::range_mut`]
2588 * [`collections::Bound`]
2589 * [`process::abort`]
2590 * [`ptr::read_unaligned`]
2591 * [`ptr::write_unaligned`]
2592 * [`Result::expect_err`]
2593 * [`Cell::swap`]
2594 * [`Cell::replace`]
2595 * [`Cell::into_inner`]
2596 * [`Cell::take`]
2597
2598 Libraries
2599 ---------
2600
2601 * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
2602 * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
2603 * [`String` implements `FromIterator<&char>`][40028]
2604 * `Box` [implements][40009] a number of new conversions:
2605   `From<Box<str>> for String`,
2606   `From<Box<[T]>> for Vec<T>`,
2607   `From<Box<CStr>> for CString`,
2608   `From<Box<OsStr>> for OsString`,
2609   `From<Box<Path>> for PathBuf`,
2610   `Into<Box<str>> for String`,
2611   `Into<Box<[T]>> for Vec<T>`,
2612   `Into<Box<CStr>> for CString`,
2613   `Into<Box<OsStr>> for OsString`,
2614   `Into<Box<Path>> for PathBuf`,
2615   `Default for Box<str>`,
2616   `Default for Box<CStr>`,
2617   `Default for Box<OsStr>`,
2618   `From<&CStr> for Box<CStr>`,
2619   `From<&OsStr> for Box<OsStr>`,
2620   `From<&Path> for Box<Path>`
2621 * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
2622 * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
2623 * [Slightly optimize `slice::sort`][39538]
2624 * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
2625 * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
2626   `Box<str>` implements `From<&str>`][39438]
2627 * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
2628   `From<(I, u16)> where I: Into<IpAddr>`][39372]
2629 * [`format!` estimates the needed capacity before writing a string][39356]
2630 * [Support unprivileged symlink creation in Windows][38921]
2631 * [`PathBuf` implements `Default`][38764]
2632 * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
2633 * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
2634   and poor hash functions.
2635
2636 Cargo
2637 -----
2638
2639 * [Add `cargo check --all`][cargo/3731]
2640 * [Add an option to ignore SSL revocation checking][cargo/3699]
2641 * [Add `cargo run --package`][cargo/3691]
2642 * [Add `required_features`][cargo/3667]
2643 * [Assume `build.rs` is a build script][cargo/3664]
2644 * [Find workspace via `workspace_root` link in containing member][cargo/3562]
2645
2646 Misc
2647 ----
2648
2649 * [Documentation is rendered with mdbook instead of the obsolete, in-tree
2650   `rustbook`][39633]
2651 * [The "Unstable Book" documents nightly-only features][ubook]
2652 * [Improve the style of the sidebar in rustdoc output][40265]
2653 * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
2654 * [Fix MSP430 breakage due to `i128`][40257]
2655 * [Preliminary Solaris/SPARCv9 support][39903]
2656 * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
2657   run without installing the MSVC runtime.
2658 * [`rustdoc --test` includes file names in test names][39788]
2659 * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
2660   `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
2661 * [Initial support for `aarch64-unknown-freebsd`][39491]
2662 * [Initial support for `i686-unknown-netbsd`][39426]
2663 * [This release no longer includes the old makefile build system][39431]. Rust
2664   is built with a custom build system, written in Rust, and with Cargo.
2665 * [Add Debug implementations for libcollection structs][39002]
2666 * [`TypeId` implements `PartialOrd` and `Ord`][38981]
2667 * [`--test-threads=0` produces an error][38945]
2668 * [`rustup` installs documentation by default][40526]
2669 * [The Rust source includes NatVis visualizations][39843]. These can be used by
2670   WinDbg and Visual Studio to improve the debugging experience.
2671
2672 Compatibility Notes
2673 -------------------
2674
2675 * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
2676   workaround, either use MSVC 2015 or run vcvars.bat.
2677 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
2678   disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
2679   `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
2680   fix.
2681 * [`format!` and `Display::to_string` panic if an underlying formatting
2682   implementation returns an error][40117]. Previously the error was silently
2683   ignored. It is incorrect for `write_fmt` to return an error when writing
2684   to a string.
2685 * [In-tree crates are verified to be unstable][39851]. Previously, some minor
2686   crates were marked stable and could be accessed from the stable toolchain.
2687 * [Rust git source no longer includes vendored crates][39728]. Those that need
2688   to build with vendored crates should build from release tarballs.
2689 * [Fix inert attributes from `proc_macro_derives`][39572]
2690 * [During crate resolution, rustc prefers a crate in the sysroot if two crates
2691   are otherwise identical][39518]. Unlikely to be encountered outside the Rust
2692   build system.
2693 * [Fixed bugs around how type inference interacts with dead-code][39485]. The
2694   existing code generally ignores the type of dead-code unless a type-hint is
2695   provided; this can cause surprising inference interactions particularly around
2696   defaulting. The new code uniformly ignores the result type of dead-code.
2697 * [Tuple-struct constructors with private fields are no longer visible][38932]
2698 * [Lifetime parameters that do not appear in the arguments are now considered
2699   early-bound][38897], resolving a soundness bug (#[32330]). The
2700   `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
2701   April of 2016.
2702 * [rustdoc: fix doctests with non-feature crate attributes][38161]
2703 * [Make transmuting from fn item types to pointer-sized types a hard
2704   error][34198]
2705
2706 [27787]: https://github.com/rust-lang/rust/issues/27787
2707 [32330]: https://github.com/rust-lang/rust/issues/32330
2708 [34198]: https://github.com/rust-lang/rust/pull/34198
2709 [38161]: https://github.com/rust-lang/rust/pull/38161
2710 [38368]: https://github.com/rust-lang/rust/pull/38368
2711 [38584]: https://github.com/rust-lang/rust/issues/38584
2712 [38661]: https://github.com/rust-lang/rust/pull/38661
2713 [38764]: https://github.com/rust-lang/rust/pull/38764
2714 [38864]: https://github.com/rust-lang/rust/issues/38864
2715 [38897]: https://github.com/rust-lang/rust/pull/38897
2716 [38921]: https://github.com/rust-lang/rust/pull/38921
2717 [38932]: https://github.com/rust-lang/rust/pull/38932
2718 [38945]: https://github.com/rust-lang/rust/pull/38945
2719 [38981]: https://github.com/rust-lang/rust/pull/38981
2720 [39002]: https://github.com/rust-lang/rust/pull/39002
2721 [39116]: https://github.com/rust-lang/rust/pull/39116
2722 [39193]: https://github.com/rust-lang/rust/pull/39193
2723 [39265]: https://github.com/rust-lang/rust/pull/39265
2724 [39356]: https://github.com/rust-lang/rust/pull/39356
2725 [39372]: https://github.com/rust-lang/rust/pull/39372
2726 [39426]: https://github.com/rust-lang/rust/pull/39426
2727 [39431]: https://github.com/rust-lang/rust/pull/39431
2728 [39438]: https://github.com/rust-lang/rust/pull/39438
2729 [39440]: https://github.com/rust-lang/rust/pull/39440
2730 [39485]: https://github.com/rust-lang/rust/pull/39485
2731 [39491]: https://github.com/rust-lang/rust/pull/39491
2732 [39518]: https://github.com/rust-lang/rust/pull/39518
2733 [39538]: https://github.com/rust-lang/rust/pull/39538
2734 [39572]: https://github.com/rust-lang/rust/pull/39572
2735 [39633]: https://github.com/rust-lang/rust/pull/39633
2736 [39642]: https://github.com/rust-lang/rust/pull/39642
2737 [39728]: https://github.com/rust-lang/rust/pull/39728
2738 [39761]: https://github.com/rust-lang/rust/pull/39761
2739 [39788]: https://github.com/rust-lang/rust/pull/39788
2740 [39793]: https://github.com/rust-lang/rust/pull/39793
2741 [39837]: https://github.com/rust-lang/rust/pull/39837
2742 [39843]: https://github.com/rust-lang/rust/pull/39843
2743 [39851]: https://github.com/rust-lang/rust/pull/39851
2744 [39903]: https://github.com/rust-lang/rust/pull/39903
2745 [39939]: https://github.com/rust-lang/rust/pull/39939
2746 [39953]: https://github.com/rust-lang/rust/pull/39953
2747 [39960]: https://github.com/rust-lang/rust/pull/39960
2748 [39990]: https://github.com/rust-lang/rust/pull/39990
2749 [39995]: https://github.com/rust-lang/rust/pull/39995
2750 [40008]: https://github.com/rust-lang/rust/pull/40008
2751 [40009]: https://github.com/rust-lang/rust/pull/40009
2752 [40027]: https://github.com/rust-lang/rust/pull/40027
2753 [40028]: https://github.com/rust-lang/rust/pull/40028
2754 [40037]: https://github.com/rust-lang/rust/pull/40037
2755 [40117]: https://github.com/rust-lang/rust/pull/40117
2756 [40166]: https://github.com/rust-lang/rust/pull/40166
2757 [40245]: https://github.com/rust-lang/rust/pull/40245
2758 [40257]: https://github.com/rust-lang/rust/pull/40257
2759 [40261]: https://github.com/rust-lang/rust/pull/40261
2760 [40265]: https://github.com/rust-lang/rust/pull/40265
2761 [40319]: https://github.com/rust-lang/rust/pull/40319
2762 [40336]: https://github.com/rust-lang/rust/pull/40336
2763 [40526]: https://github.com/rust-lang/rust/pull/40526
2764 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
2765 [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
2766 [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
2767 [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
2768 [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
2769 [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
2770 [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
2771 [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
2772 [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
2773 [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
2774 [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
2775 [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
2776 [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
2777 [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
2778 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
2779 [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
2780 [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
2781 [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
2782 [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
2783 [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
2784 [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
2785 [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
2786 [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
2787 [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
2788 [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
2789 [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
2790 [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
2791 [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
2792 [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
2793 [mdbook]: https://crates.io/crates/mdbook
2794 [ubook]: https://doc.rust-lang.org/unstable-book/
2795
2796
2797 Version 1.16.0 (2017-03-16)
2798 ===========================
2799
2800 Language
2801 --------
2802
2803 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
2804 * [Uninhabitable enums (those without any variants) no longer permit wildcard
2805   match patterns][38069]
2806 * [Clean up semantics of `self` in an import list][38313]
2807 * [`Self` may appear in `impl` headers][38920]
2808 * [`Self` may appear in struct expressions][39282]
2809
2810 Compiler
2811 --------
2812
2813 * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
2814   a `.rmeta` file containing only crate metadata][38571]. This can be
2815   used by tools like the Rust Language Service to perform
2816   metadata-only builds.
2817 * [Levenshtein based typo suggestions now work in most places, while
2818   previously they worked only for fields and sometimes for local
2819   variables][38927]. Together with the overhaul of "no
2820   resolution"/"unexpected resolution" errors (#[38154]) they result in
2821   large and systematic improvement in resolution diagnostics.
2822 * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
2823   `U`][38670]
2824 * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
2825 * [`rustc` no longer attempts to provide "consider using an explicit
2826   lifetime" suggestions][37057]. They were inaccurate.
2827
2828 Stabilized APIs
2829 ---------------
2830
2831 * [`VecDeque::truncate`]
2832 * [`VecDeque::resize`]
2833 * [`String::insert_str`]
2834 * [`Duration::checked_add`]
2835 * [`Duration::checked_sub`]
2836 * [`Duration::checked_div`]
2837 * [`Duration::checked_mul`]
2838 * [`str::replacen`]
2839 * [`str::repeat`]
2840 * [`SocketAddr::is_ipv4`]
2841 * [`SocketAddr::is_ipv6`]
2842 * [`IpAddr::is_ipv4`]
2843 * [`IpAddr::is_ipv6`]
2844 * [`Vec::dedup_by`]
2845 * [`Vec::dedup_by_key`]
2846 * [`Result::unwrap_or_default`]
2847 * [`<*const T>::wrapping_offset`]
2848 * [`<*mut T>::wrapping_offset`]
2849 * `CommandExt::creation_flags`
2850 * [`File::set_permissions`]
2851 * [`String::split_off`]
2852
2853 Libraries
2854 ---------
2855
2856 * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
2857   their argument by `Borrow` parameter][37761]
2858 * [All public types in std implement `Debug`][38006]
2859 * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
2860 * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
2861 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
2862   Windows][38274]
2863 * [std: Fix partial writes in `LineWriter`][38062]
2864 * [std: Clamp max read/write sizes on Unix][38062]
2865 * [Use more specific panic message for `&str` slicing errors][38066]
2866 * [`TcpListener::set_only_v6` is deprecated][38304]. This
2867   functionality cannot be achieved in std currently.
2868 * [`writeln!`, like `println!`, now accepts a form with no string
2869   or formatting arguments, to just print a newline][38469]
2870 * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
2871 * [Reduce the size of static data in `std_unicode::tables`][38781]
2872 * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
2873   `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
2874   `Display`][38909]
2875 * [`Duration` implements `Sum`][38712]
2876 * [`String` implements `ToSocketAddrs`][39048]
2877
2878 Cargo
2879 -----
2880
2881 * [The `cargo check` command does a type check of a project without
2882   building it][cargo/3296]
2883 * [crates.io will display CI badges from Travis and AppVeyor, if
2884   specified in Cargo.toml][cargo/3546]
2885 * [crates.io will display categories listed in Cargo.toml][cargo/3301]
2886 * [Compilation profiles accept integer values for `debug`, in addition
2887   to `true` and `false`. These are passed to `rustc` as the value to
2888   `-C debuginfo`][cargo/3534]
2889 * [Implement `cargo --version --verbose`][cargo/3604]
2890 * [All builds now output 'dep-info' build dependencies compatible with
2891   make and ninja][cargo/3557]
2892 * [Build all workspace members with `build --all`][cargo/3511]
2893 * [Document all workspace members with `doc --all`][cargo/3515]
2894 * [Path deps outside workspace are not members][cargo/3443]
2895
2896 Misc
2897 ----
2898
2899 * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
2900   the path to the Rust implementation][38589]
2901 * [The `armv7-linux-androideabi` target no longer enables NEON
2902   extensions, per Google's ABI guide][38413]
2903 * [The stock standard library can be compiled for Redox OS][38401]
2904 * [Rust has initial SPARC support][38726]. Tier 3. No builds
2905   available.
2906 * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
2907   builds available.
2908 * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
2909
2910 Compatibility Notes
2911 -------------------
2912
2913 * [Uninhabitable enums (those without any variants) no longer permit wildcard
2914   match patterns][38069]
2915 * In this release, references to uninhabited types can not be
2916   pattern-matched. This was accidentally allowed in 1.15.
2917 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
2918 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
2919   Windows][38274]
2920 * [Clean up semantics of `self` in an import list][38313]
2921 * Reimplemented lifetime elision. This change was almost entirely compatible
2922   with existing code, but it did close a number of small bugs and loopholes,
2923   as well as being more accepting in some other [cases][41105].
2924
2925 [37057]: https://github.com/rust-lang/rust/pull/37057
2926 [37761]: https://github.com/rust-lang/rust/pull/37761
2927 [38006]: https://github.com/rust-lang/rust/pull/38006
2928 [38051]: https://github.com/rust-lang/rust/pull/38051
2929 [38062]: https://github.com/rust-lang/rust/pull/38062
2930 [38062]: https://github.com/rust-lang/rust/pull/38622
2931 [38066]: https://github.com/rust-lang/rust/pull/38066
2932 [38069]: https://github.com/rust-lang/rust/pull/38069
2933 [38131]: https://github.com/rust-lang/rust/pull/38131
2934 [38154]: https://github.com/rust-lang/rust/pull/38154
2935 [38274]: https://github.com/rust-lang/rust/pull/38274
2936 [38304]: https://github.com/rust-lang/rust/pull/38304
2937 [38313]: https://github.com/rust-lang/rust/pull/38313
2938 [38314]: https://github.com/rust-lang/rust/pull/38314
2939 [38327]: https://github.com/rust-lang/rust/pull/38327
2940 [38401]: https://github.com/rust-lang/rust/pull/38401
2941 [38413]: https://github.com/rust-lang/rust/pull/38413
2942 [38469]: https://github.com/rust-lang/rust/pull/38469
2943 [38559]: https://github.com/rust-lang/rust/pull/38559
2944 [38571]: https://github.com/rust-lang/rust/pull/38571
2945 [38580]: https://github.com/rust-lang/rust/pull/38580
2946 [38589]: https://github.com/rust-lang/rust/pull/38589
2947 [38670]: https://github.com/rust-lang/rust/pull/38670
2948 [38712]: https://github.com/rust-lang/rust/pull/38712
2949 [38726]: https://github.com/rust-lang/rust/pull/38726
2950 [38781]: https://github.com/rust-lang/rust/pull/38781
2951 [38798]: https://github.com/rust-lang/rust/pull/38798
2952 [38909]: https://github.com/rust-lang/rust/pull/38909
2953 [38920]: https://github.com/rust-lang/rust/pull/38920
2954 [38927]: https://github.com/rust-lang/rust/pull/38927
2955 [39048]: https://github.com/rust-lang/rust/pull/39048
2956 [39282]: https://github.com/rust-lang/rust/pull/39282
2957 [39379]: https://github.com/rust-lang/rust/pull/39379
2958 [41105]: https://github.com/rust-lang/rust/issues/41105
2959 [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
2960 [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
2961 [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
2962 [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
2963 [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
2964 [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
2965 [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
2966 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
2967 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
2968 [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
2969 [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
2970 [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
2971 [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
2972 [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
2973 [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
2974 [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
2975 [`VecDeque::resize`]:  https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
2976 [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
2977 [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
2978 [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
2979 [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
2980 [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
2981 [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
2982 [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
2983 [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
2984 [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
2985 [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
2986 [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
2987 [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
2988 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
2989
2990
2991 Version 1.15.1 (2017-02-09)
2992 ===========================
2993
2994 * [Fix IntoIter::as_mut_slice's signature][39466]
2995 * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
2996
2997 [39466]: https://github.com/rust-lang/rust/pull/39466
2998 [39523]: https://github.com/rust-lang/rust/pull/39523
2999
3000
3001 Version 1.15.0 (2017-02-02)
3002 ===========================
3003
3004 Language
3005 --------
3006
3007 * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
3008   stable. This allows popular code-generating crates like Serde and Diesel to
3009   work ergonomically. [RFC 1681].
3010 * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
3011   with curly braces][36868]. Part of [RFC 1506].
3012 * [A number of minor changes to name resolution have been activated][37127].
3013   They add up to more consistent semantics, allowing for future evolution of
3014   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
3015   details of what is different. The breaking changes here have been transitioned
3016   through the [`legacy_imports`] lint since 1.14, with no known regressions.
3017 * [In `macro_rules`, `path` fragments can now be parsed as type parameter
3018   bounds][38279]
3019 * [`?Sized` can be used in `where` clauses][37791]
3020 * [There is now a limit on the size of monomorphized types and it can be
3021   modified with the `#![type_size_limit]` crate attribute, similarly to
3022   the `#![recursion_limit]` attribute][37789]
3023
3024 Compiler
3025 --------
3026
3027 * [On Windows, the compiler will apply dllimport attributes when linking to
3028   extern functions][37973]. Additional attributes and flags can control which
3029   library kind is linked and its name. [RFC 1717].
3030 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
3031 * [The `--test` flag works with procedural macro crates][38107]
3032 * [Fix `extern "aapcs" fn` ABI][37814]
3033 * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
3034 * [The `format!` expander recognizes incorrect `printf` and shell-style
3035   formatting directives and suggests the correct format][37613].
3036 * [Only report one error for all unused imports in an import list][37456]
3037
3038 Compiler Performance
3039 --------------------
3040
3041 * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
3042 * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
3043 * [Don't clone in `UnificationTable::probe`][37848]
3044 * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
3045 * [Use small vectors in type walker][37760]
3046 * [Macro expansion performance was improved][37701]
3047 * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
3048 * [Replace FNV with a faster hash function][37229]
3049
3050 Stabilized APIs
3051 ---------------
3052
3053 * [`std::iter::Iterator::min_by`]
3054 * [`std::iter::Iterator::max_by`]
3055 * [`std::os::*::fs::FileExt`]
3056 * [`std::sync::atomic::Atomic*::get_mut`]
3057 * [`std::sync::atomic::Atomic*::into_inner`]
3058 * [`std::vec::IntoIter::as_slice`]
3059 * [`std::vec::IntoIter::as_mut_slice`]
3060 * [`std::sync::mpsc::Receiver::try_iter`]
3061 * [`std::os::unix::process::CommandExt::before_exec`]
3062 * [`std::rc::Rc::strong_count`]
3063 * [`std::rc::Rc::weak_count`]
3064 * [`std::sync::Arc::strong_count`]
3065 * [`std::sync::Arc::weak_count`]
3066 * [`std::char::encode_utf8`]
3067 * [`std::char::encode_utf16`]
3068 * [`std::cell::Ref::clone`]
3069 * [`std::io::Take::into_inner`]
3070
3071 Libraries
3072 ---------
3073
3074 * [The standard sorting algorithm has been rewritten for dramatic performance
3075   improvements][38192]. It is a hybrid merge sort, drawing influences from
3076   Timsort. Previously it was a naive merge sort.
3077 * [`Iterator::nth` no longer has a `Sized` bound][38134]
3078 * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
3079   performance.
3080 * [`chars().count()` is much faster][37888] and so are [`chars().last()`
3081   and `char_indices().last()`][37882]
3082 * [Fix ARM Objective-C ABI in `std::env::args`][38146]
3083 * [Chinese characters display correctly in `fmt::Debug`][37855]
3084 * [Derive `Default` for `Duration`][37699]
3085 * [Support creation of anonymous pipes on WinXP/2k][37677]
3086 * [`mpsc::RecvTimeoutError` implements `Error`][37527]
3087 * [Don't pass overlapped handles to processes][38835]
3088
3089 Cargo
3090 -----
3091
3092 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
3093   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
3094   should instead check the variable at runtime with `std::env`. That the value
3095   was set at build time was a bug, and incorrect when cross-compiling. This
3096   change is known to cause breakage.
3097 * [Add `--all` flag to `cargo test`][cargo/3221]
3098 * [Compile statically against the MSVC CRT][cargo/3363]
3099 * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
3100 * [Link OpenSSL statically on OSX][cargo/3311]
3101 * [Apply new fingerprinting to build dir outputs][cargo/3310]
3102 * [Test for bad path overrides with summaries][cargo/3336]
3103 * [Require `cargo install --vers` to take a semver version][cargo/3338]
3104 * [Fix retrying crate downloads for network errors][cargo/3348]
3105 * [Implement string lookup for `build.rustflags` config key][cargo/3356]
3106 * [Emit more info on --message-format=json][cargo/3319]
3107 * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
3108 * [Don't ignore errors in workspace manifest][cargo/3409]
3109 * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
3110
3111 Tooling
3112 -------
3113
3114 * [Test runners (binaries built with `--test`) now support a `--list` argument
3115   that lists the tests it contains][38185]
3116 * [Test runners now support a `--exact` argument that makes the test filter
3117   match exactly, instead of matching only a substring of the test name][38181]
3118 * [rustdoc supports a `--playground-url` flag][37763]
3119 * [rustdoc provides more details about `#[should_panic]` errors][37749]
3120
3121 Misc
3122 ----
3123
3124 * [The Rust build system is now written in Rust][37817]. The Makefiles may
3125   continue to be used in this release by passing `--disable-rustbuild` to the
3126   configure script, but they will be deleted soon. Note that the new build
3127   system uses a different on-disk layout that will likely affect any scripts
3128   building Rust.
3129 * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
3130   releases.
3131 * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
3132 * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
3133   releases.
3134
3135 Compatibility Notes
3136 -------------------
3137
3138 * [A number of minor changes to name resolution have been activated][37127].
3139   They add up to more consistent semantics, allowing for future evolution of
3140   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
3141   details of what is different. The breaking changes here have been transitioned
3142   through the [`legacy_imports`] lint since 1.14, with no known regressions.
3143 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
3144   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
3145   should instead check the variable at runtime with `std::env`. That the value
3146   was set at build time was a bug, and incorrect when cross-compiling. This
3147   change is known to cause breakage.
3148 * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
3149   types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
3150   1.10 and is now an error by default. It will become a hard error in the near
3151   future.
3152 * [The semantics relating modules to file system directories are changing in
3153   minor ways][37602]. This is captured in the new `legacy_directory_ownership`
3154   lint, which is a warning in this release, and will become a hard error in the
3155   future.
3156 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
3157 * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
3158   the underlying iterator][37834]
3159
3160 ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
3161 [33685]: https://github.com/rust-lang/rust/issues/33685
3162 [36868]: https://github.com/rust-lang/rust/pull/36868
3163 [37127]: https://github.com/rust-lang/rust/pull/37127
3164 [37229]: https://github.com/rust-lang/rust/pull/37229
3165 [37456]: https://github.com/rust-lang/rust/pull/37456
3166 [37527]: https://github.com/rust-lang/rust/pull/37527
3167 [37602]: https://github.com/rust-lang/rust/pull/37602
3168 [37613]: https://github.com/rust-lang/rust/pull/37613
3169 [37615]: https://github.com/rust-lang/rust/pull/37615
3170 [37636]: https://github.com/rust-lang/rust/pull/37636
3171 [37627]: https://github.com/rust-lang/rust/pull/37627
3172 [37642]: https://github.com/rust-lang/rust/pull/37642
3173 [37677]: https://github.com/rust-lang/rust/pull/37677
3174 [37699]: https://github.com/rust-lang/rust/pull/37699
3175 [37701]: https://github.com/rust-lang/rust/pull/37701
3176 [37705]: https://github.com/rust-lang/rust/pull/37705
3177 [37749]: https://github.com/rust-lang/rust/pull/37749
3178 [37760]: https://github.com/rust-lang/rust/pull/37760
3179 [37763]: https://github.com/rust-lang/rust/pull/37763
3180 [37764]: https://github.com/rust-lang/rust/pull/37764
3181 [37789]: https://github.com/rust-lang/rust/pull/37789
3182 [37791]: https://github.com/rust-lang/rust/pull/37791
3183 [37814]: https://github.com/rust-lang/rust/pull/37814
3184 [37817]: https://github.com/rust-lang/rust/pull/37817
3185 [37834]: https://github.com/rust-lang/rust/pull/37834
3186 [37848]: https://github.com/rust-lang/rust/pull/37848
3187 [37855]: https://github.com/rust-lang/rust/pull/37855
3188 [37882]: https://github.com/rust-lang/rust/pull/37882
3189 [37888]: https://github.com/rust-lang/rust/pull/37888
3190 [37973]: https://github.com/rust-lang/rust/pull/37973
3191 [37979]: https://github.com/rust-lang/rust/pull/37979
3192 [38086]: https://github.com/rust-lang/rust/pull/38086
3193 [38107]: https://github.com/rust-lang/rust/pull/38107
3194 [38117]: https://github.com/rust-lang/rust/pull/38117
3195 [38134]: https://github.com/rust-lang/rust/pull/38134
3196 [38146]: https://github.com/rust-lang/rust/pull/38146
3197 [38181]: https://github.com/rust-lang/rust/pull/38181
3198 [38182]: https://github.com/rust-lang/rust/pull/38182
3199 [38185]: https://github.com/rust-lang/rust/pull/38185
3200 [38192]: https://github.com/rust-lang/rust/pull/38192
3201 [38279]: https://github.com/rust-lang/rust/pull/38279
3202 [38835]: https://github.com/rust-lang/rust/pull/38835
3203 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
3204 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
3205 [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
3206 [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
3207 [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
3208 [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
3209 [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
3210 [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
3211 [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
3212 [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
3213 [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
3214 [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
3215 [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
3216 [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
3217 [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
3218 [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
3219 [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
3220 [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
3221 [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
3222 [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
3223 [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
3224 [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
3225 [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
3226 [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
3227 [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
3228 [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
3229 [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
3230 [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
3231 [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
3232 [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
3233 [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
3234 [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
3235 [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
3236 [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
3237 [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
3238 [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
3239 [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
3240 [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
3241
3242
3243 Version 1.14.0 (2016-12-22)
3244 ===========================
3245
3246 Language
3247 --------
3248
3249 * [`..` matches multiple tuple fields in enum variants, structs
3250   and tuples][36843]. [RFC 1492].
3251 * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
3252 * [`use *` and `use ::*` both glob-import from the crate root][37367]
3253 * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
3254   dereferencing][36822]
3255
3256 Compiler
3257 --------
3258
3259 * [Mark enums with non-zero discriminant as non-zero][37224]
3260 * [Lower-case `static mut` names are linted like other
3261   statics and consts][37162]
3262 * [Fix ICE on some macros in const integer positions
3263    (e.g. `[u8; m!()]`)][36819]
3264 * [Improve error message and snippet for "did you mean `x`"][36798]
3265 * [Add a panic-strategy field to the target specification][36794]
3266 * [Include LLVM version in `--version --verbose`][37200]
3267
3268 Compile-time Optimizations
3269 --------------------------
3270
3271 * [Improve macro expansion performance][37569]
3272 * [Shrink `Expr_::ExprInlineAsm`][37445]
3273 * [Replace all uses of SHA-256 with BLAKE2b][37439]
3274 * [Reduce the number of bytes hashed by `IchHasher`][37427]
3275 * [Avoid more allocations when compiling html5ever][37373]
3276 * [Use `SmallVector` in `CombineFields::instantiate`][37322]
3277 * [Avoid some allocations in the macro parser][37318]
3278 * [Use a faster deflate setting][37298]
3279 * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
3280   during interning of slices][37270]
3281 * [Optimize `write_metadata`][37267]
3282 * [Don't process obligation forest cycles when stalled][37231]
3283 * [Avoid many `CrateConfig` clones][37161]
3284 * [Optimize `Substs::super_fold_with`][37108]
3285 * [Optimize `ObligationForest`'s `NodeState` handling][36993]
3286 * [Speed up `plug_leaks`][36917]
3287
3288 Libraries
3289 ---------
3290
3291 * [`println!()`, with no arguments, prints newline][36825].
3292   Previously, an empty string was required to achieve the same.
3293 * [`Wrapping` impls standard binary and unary operators, as well as
3294    the `Sum` and `Product` iterators][37356]
3295 * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
3296   Vec<T>`][37326]
3297 * [Improve `fold` performance for `chain`, `cloned`, `map`, and
3298   `VecDeque` iterators][37315]
3299 * [Improve `SipHasher` performance on small values][37312]
3300 * [Add Iterator trait TrustedLen to enable better FromIterator /
3301   Extend][37306]
3302 * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
3303 * [`ReadDir` implements `Debug`][37221]
3304 * [Implement `RefUnwindSafe` for atomic types][37178]
3305 * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
3306 * [Avoid allocations in `Decoder::read_str`][37064]
3307 * [`io::Error` implements `From<io::ErrorKind>`][37037]
3308 * [Impl `Debug` for raw pointers to unsized data][36880]
3309 * [Don't reuse `HashMap` random seeds][37470]
3310 * [The internal memory layout of `HashMap` is more cache-friendly, for
3311   significant improvements in some operations][36692]
3312 * [`HashMap` uses less memory on 32-bit architectures][36595]
3313 * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
3314
3315 Cargo
3316 -----
3317
3318 * [Expose rustc cfg values to build scripts][cargo/3243]
3319 * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
3320 * [Fix passing --features when testing multiple packages][cargo/3280]
3321 * [Use a single profile set per workspace][cargo/3249]
3322 * [Load `replace` sections from lock files][cargo/3220]
3323 * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
3324
3325 Tooling
3326 -------
3327
3328 * [rustup is the recommended Rust installation method][1.14rustup]
3329 * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
3330   S390x. These are [tier 2] platforms and may have major defects. Follow the
3331   instructions on the website to install, or add the targets to an existing
3332   installation with `rustup target add`. The new target triples are:
3333   - `mips-unknown-linux-gnu`
3334   - `mipsel-unknown-linux-gnu`
3335   - `mips64-unknown-linux-gnuabi64`
3336   - `mips64el-unknown-linux-gnuabi64 `
3337   - `powerpc-unknown-linux-gnu`
3338   - `powerpc64-unknown-linux-gnu`
3339   - `powerpc64le-unknown-linux-gnu`
3340   - `s390x-unknown-linux-gnu `
3341 * This release includes target (std) builds for ARM Linux running MUSL
3342   libc. These are [tier 2] platforms and may have major defects. Add the
3343   following triples to an existing rustup installation with `rustup target add`:
3344   - `arm-unknown-linux-musleabi`
3345   - `arm-unknown-linux-musleabihf`
3346   - `armv7-unknown-linux-musleabihf`
3347 * This release includes [experimental support for WebAssembly][1.14wasm], via
3348   the `wasm32-unknown-emscripten` target. This target is known to have major
3349   defects. Please test, report, and fix.
3350 * rustup no longer installs documentation by default. Run `rustup
3351   component add rust-docs` to install.
3352 * [Fix line stepping in debugger][37310]
3353 * [Enable line number debuginfo in releases][37280]
3354
3355 Misc
3356 ----
3357
3358 * [Disable jemalloc on aarch64/powerpc/mips][37392]
3359 * [Add support for Fuchsia OS][37313]
3360 * [Detect local-rebuild by only MAJOR.MINOR version][37273]
3361
3362 Compatibility Notes
3363 -------------------
3364
3365 * [A number of forward-compatibility lints used by the compiler
3366   to gradually introduce language changes have been converted
3367   to deny by default][36894]:
3368   - ["use of inaccessible extern crate erroneously allowed"][36886]
3369   - ["type parameter default erroneously allowed in invalid location"][36887]
3370   - ["detects super or self keywords at the beginning of global path"][36888]
3371   - ["two overlapping inherent impls define an item with the same name
3372     were erroneously allowed"][36889]
3373   - ["floating-point constants cannot be used in patterns"][36890]
3374   - ["constants of struct or enum type can only be used in a pattern if
3375      the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
3376   - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
3377 * [Prohibit patterns in trait methods without bodies][37378]
3378 * [The atomic `Ordering` enum may not be matched exhaustively][37351]
3379 * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
3380 * [The `$crate` macro variable is accepted in fewer locations][37213]
3381 * [Impls specifying extra region requirements beyond the trait
3382   they implement are rejected][37167]
3383 * [Enums may not be unsized][37111]. Unsized enums are intended to
3384   work but never have. For now they are forbidden.
3385 * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
3386
3387 [tier 2]: https://forge.rust-lang.org/platform-support.html
3388 [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
3389 [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
3390 [36430]: https://github.com/rust-lang/rust/pull/36430
3391 [36595]: https://github.com/rust-lang/rust/pull/36595
3392 [36595]: https://github.com/rust-lang/rust/pull/36595
3393 [36692]: https://github.com/rust-lang/rust/pull/36692
3394 [36767]: https://github.com/rust-lang/rust/pull/36767
3395 [36794]: https://github.com/rust-lang/rust/pull/36794
3396 [36798]: https://github.com/rust-lang/rust/pull/36798
3397 [36819]: https://github.com/rust-lang/rust/pull/36819
3398 [36822]: https://github.com/rust-lang/rust/pull/36822
3399 [36825]: https://github.com/rust-lang/rust/pull/36825
3400 [36843]: https://github.com/rust-lang/rust/pull/36843
3401 [36880]: https://github.com/rust-lang/rust/pull/36880
3402 [36886]: https://github.com/rust-lang/rust/issues/36886
3403 [36887]: https://github.com/rust-lang/rust/issues/36887
3404 [36888]: https://github.com/rust-lang/rust/issues/36888
3405 [36889]: https://github.com/rust-lang/rust/issues/36889
3406 [36890]: https://github.com/rust-lang/rust/issues/36890
3407 [36891]: https://github.com/rust-lang/rust/issues/36891
3408 [36892]: https://github.com/rust-lang/rust/issues/36892
3409 [36894]: https://github.com/rust-lang/rust/pull/36894
3410 [36917]: https://github.com/rust-lang/rust/pull/36917
3411 [36993]: https://github.com/rust-lang/rust/pull/36993
3412 [37037]: https://github.com/rust-lang/rust/pull/37037
3413 [37064]: https://github.com/rust-lang/rust/pull/37064
3414 [37094]: https://github.com/rust-lang/rust/pull/37094
3415 [37108]: https://github.com/rust-lang/rust/pull/37108
3416 [37111]: https://github.com/rust-lang/rust/pull/37111
3417 [37161]: https://github.com/rust-lang/rust/pull/37161
3418 [37162]: https://github.com/rust-lang/rust/pull/37162
3419 [37167]: https://github.com/rust-lang/rust/pull/37167
3420 [37178]: https://github.com/rust-lang/rust/pull/37178
3421 [37200]: https://github.com/rust-lang/rust/pull/37200
3422 [37213]: https://github.com/rust-lang/rust/pull/37213
3423 [37221]: https://github.com/rust-lang/rust/pull/37221
3424 [37224]: https://github.com/rust-lang/rust/pull/37224
3425 [37230]: https://github.com/rust-lang/rust/pull/37230
3426 [37231]: https://github.com/rust-lang/rust/pull/37231
3427 [37247]: https://github.com/rust-lang/rust/pull/37247
3428 [37267]: https://github.com/rust-lang/rust/pull/37267
3429 [37270]: https://github.com/rust-lang/rust/pull/37270
3430 [37273]: https://github.com/rust-lang/rust/pull/37273
3431 [37280]: https://github.com/rust-lang/rust/pull/37280
3432 [37298]: https://github.com/rust-lang/rust/pull/37298
3433 [37306]: https://github.com/rust-lang/rust/pull/37306
3434 [37310]: https://github.com/rust-lang/rust/pull/37310
3435 [37312]: https://github.com/rust-lang/rust/pull/37312
3436 [37313]: https://github.com/rust-lang/rust/pull/37313
3437 [37315]: https://github.com/rust-lang/rust/pull/37315
3438 [37318]: https://github.com/rust-lang/rust/pull/37318
3439 [37322]: https://github.com/rust-lang/rust/pull/37322
3440 [37326]: https://github.com/rust-lang/rust/pull/37326
3441 [37351]: https://github.com/rust-lang/rust/pull/37351
3442 [37356]: https://github.com/rust-lang/rust/pull/37356
3443 [37367]: https://github.com/rust-lang/rust/pull/37367
3444 [37373]: https://github.com/rust-lang/rust/pull/37373
3445 [37378]: https://github.com/rust-lang/rust/pull/37378
3446 [37389]: https://github.com/rust-lang/rust/pull/37389
3447 [37392]: https://github.com/rust-lang/rust/pull/37392
3448 [37427]: https://github.com/rust-lang/rust/pull/37427
3449 [37439]: https://github.com/rust-lang/rust/pull/37439
3450 [37445]: https://github.com/rust-lang/rust/pull/37445
3451 [37470]: https://github.com/rust-lang/rust/pull/37470
3452 [37569]: https://github.com/rust-lang/rust/pull/37569
3453 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
3454 [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
3455 [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
3456 [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
3457 [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
3458 [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
3459 [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
3460
3461
3462 Version 1.13.0 (2016-11-10)
3463 ===========================
3464
3465 Language
3466 --------
3467
3468 * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
3469   errors, like the `try!` macro, described in [RFC 0243].
3470 * [Stabilize macros in type position][36014]. Described in [RFC 873].
3471 * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
3472 * [Fix `#[derive]` for empty tuple structs/variants][35728]
3473 * [Fix lifetime rules for 'if' conditions][36029]
3474 * [Avoid loading and parsing unconfigured non-inline modules][36482]
3475
3476 Compiler
3477 --------
3478
3479 * [Add the `-C link-arg` argument][36574]
3480 * [Remove the old AST-based backend from rustc_trans][35764]
3481 * [Don't enable NEON by default on armv7 Linux][35814]
3482 * [Fix debug line number info for macro expansions][35238]
3483 * [Do not emit "class method" debuginfo for types that are not
3484   DICompositeType][36008]
3485 * [Warn about multiple conflicting #[repr] hints][34623]
3486 * [When sizing DST, don't double-count nested struct prefixes][36351]
3487 * [Default RUST_MIN_STACK to 16MiB for now][36505]
3488 * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
3489 * [Reject macros with empty repetitions to avoid infinite loop][36721]
3490 * [Expand macros without recursing to avoid stack overflows][36214]
3491
3492 Diagnostics
3493 -----------
3494
3495 * [Replace macro backtraces with labeled local uses][35702]
3496 * [Improve error message for misplaced doc comments][33922]
3497 * [Buffer unix and lock windows to prevent message interleaving][35975]
3498 * [Update lifetime errors to specifically note temporaries][36171]
3499 * [Special case a few colors for Windows][36178]
3500 * [Suggest `use self` when such an import resolves][36289]
3501 * [Be more specific when type parameter shadows primitive type][36338]
3502 * Many minor improvements
3503
3504 Compile-time Optimizations
3505 --------------------------
3506
3507 * [Compute and cache HIR hashes at beginning][35854]
3508 * [Don't hash types in loan paths][36004]
3509 * [Cache projections in trans][35761]
3510 * [Optimize the parser's last token handling][36527]
3511 * [Only instantiate #[inline] functions in codegen units referencing
3512   them][36524]. This leads to big improvements in cases where crates export
3513   define many inline functions without using them directly.
3514 * [Lazily allocate TypedArena's first chunk][36592]
3515 * [Don't allocate during default HashSet creation][36734]
3516
3517 Stabilized APIs
3518 ---------------
3519
3520 * [`checked_abs`]
3521 * [`wrapping_abs`]
3522 * [`overflowing_abs`]
3523 * [`RefCell::try_borrow`]
3524 * [`RefCell::try_borrow_mut`]
3525
3526 Libraries
3527 ---------
3528
3529 * [Add `assert_ne!` and `debug_assert_ne!`][35074]
3530 * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
3531   covariant][35354]
3532 * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
3533 * [Implement `Debug` for `std::vec::IntoIter`][35707]
3534 * [`CString`: avoid excessive growth just to 0-terminate][35871]
3535 * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
3536 * [Use arc4rand on FreeBSD][35884]
3537 * [memrchr: Correct aligned offset computation][35969]
3538 * [Improve Demangling of Rust Symbols][36059]
3539 * [Use monotonic time in condition variables][35048]
3540 * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
3541 * [Implement conversion traits for `char`][35755]
3542 * [Fix illegal instruction caused by overflow in channel cloning][36104]
3543 * [Zero first byte of CString on drop][36264]
3544 * [Inherit overflow checks for sum and product][36372]
3545 * [Add missing Eq implementations][36423]
3546 * [Implement `Debug` for `DirEntry`][36631]
3547 * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
3548   `errno`][36754]
3549 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
3550 * [Implement more traits for `std::io::ErrorKind`][35911]
3551 * [Optimize BinaryHeap bounds checking][36072]
3552 * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
3553   `extend_with_element`][36355]
3554 * [Fix overflow checking in unsigned pow()][34942]
3555
3556 Cargo
3557 -----
3558
3559 * This release includes security fixes to both curl and OpenSSL.
3560 * [Fix transitive doctests when panic=abort][cargo/3021]
3561 * [Add --all-features flag to cargo][cargo/3038]
3562 * [Reject path-based dependencies in `cargo package`][cargo/3060]
3563 * [Don't parse the home directory more than once][cargo/3078]
3564 * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
3565 * [Update OpenSSL to 1.0.2j][cargo/3121]
3566 * [Add license and license_file to cargo metadata output][cargo/3110]
3567 * [Make crates-io registry URL optional in config; ignore all changes to
3568   source.crates-io][cargo/3089]
3569 * [Don't download dependencies from other platforms][cargo/3123]
3570 * [Build transitive dev-dependencies when needed][cargo/3125]
3571 * [Add support for per-target rustflags in .cargo/config][cargo/3157]
3572 * [Avoid updating registry when adding existing deps][cargo/3144]
3573 * [Warn about path overrides that won't work][cargo/3136]
3574 * [Use workspaces during `cargo install`][cargo/3146]
3575 * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
3576 * [Add --message-format flag][cargo/3000]
3577 * [Pass target environment for rustdoc][cargo/3205]
3578 * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
3579 * [Update curl and curl-sys][cargo/3241]
3580 * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
3581
3582 Tooling
3583 -------
3584
3585 * [rustdoc: Add the `--sysroot` argument][36586]
3586 * [rustdoc: Fix a couple of issues with the search results][35655]
3587 * [rustdoc: remove the `!` from macro URLs and titles][35234]
3588 * [gdb: Fix pretty-printing special-cased Rust types][35585]
3589 * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
3590
3591 Misc
3592 ----
3593
3594 * [Remove unmaintained style guide][35124]
3595 * [Add s390x support][36369]
3596 * [Initial work at Haiku OS support][36727]
3597 * [Add mips-uclibc targets][35734]
3598 * [Crate-ify compiler-rt into compiler-builtins][35021]
3599 * [Add rustc version info (git hash + date) to dist tarball][36213]
3600 * Many documentation improvements
3601
3602 Compatibility Notes
3603 -------------------
3604
3605 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
3606 * [Deny (by default) transmuting from fn item types to pointer-sized
3607   types][34923]. Continuing the long transition to zero-sized fn items,
3608   per [RFC 401].
3609 * [Fix `#[derive]` for empty tuple structs/variants][35728].
3610   Part of [RFC 1506].
3611 * [Issue deprecation warnings for safe accesses to extern statics][36173]
3612 * [Fix lifetime rules for 'if' conditions][36029].
3613 * [Inherit overflow checks for sum and product][36372].
3614 * [Forbid user-defined macros named "macro_rules"][36730].
3615
3616 [33922]: https://github.com/rust-lang/rust/pull/33922
3617 [34623]: https://github.com/rust-lang/rust/pull/34623
3618 [34923]: https://github.com/rust-lang/rust/pull/34923
3619 [34942]: https://github.com/rust-lang/rust/pull/34942
3620 [34982]: https://github.com/rust-lang/rust/pull/34982
3621 [35021]: https://github.com/rust-lang/rust/pull/35021
3622 [35048]: https://github.com/rust-lang/rust/pull/35048
3623 [35074]: https://github.com/rust-lang/rust/pull/35074
3624 [35124]: https://github.com/rust-lang/rust/pull/35124
3625 [35234]: https://github.com/rust-lang/rust/pull/35234
3626 [35238]: https://github.com/rust-lang/rust/pull/35238
3627 [35354]: https://github.com/rust-lang/rust/pull/35354
3628 [35559]: https://github.com/rust-lang/rust/pull/35559
3629 [35585]: https://github.com/rust-lang/rust/pull/35585
3630 [35627]: https://github.com/rust-lang/rust/pull/35627
3631 [35655]: https://github.com/rust-lang/rust/pull/35655
3632 [35702]: https://github.com/rust-lang/rust/pull/35702
3633 [35707]: https://github.com/rust-lang/rust/pull/35707
3634 [35728]: https://github.com/rust-lang/rust/pull/35728
3635 [35734]: https://github.com/rust-lang/rust/pull/35734
3636 [35755]: https://github.com/rust-lang/rust/pull/35755
3637 [35761]: https://github.com/rust-lang/rust/pull/35761
3638 [35764]: https://github.com/rust-lang/rust/pull/35764
3639 [35814]: https://github.com/rust-lang/rust/pull/35814
3640 [35854]: https://github.com/rust-lang/rust/pull/35854
3641 [35871]: https://github.com/rust-lang/rust/pull/35871
3642 [35884]: https://github.com/rust-lang/rust/pull/35884
3643 [35911]: https://github.com/rust-lang/rust/pull/35911
3644 [35969]: https://github.com/rust-lang/rust/pull/35969
3645 [35975]: https://github.com/rust-lang/rust/pull/35975
3646 [36004]: https://github.com/rust-lang/rust/pull/36004
3647 [36008]: https://github.com/rust-lang/rust/pull/36008
3648 [36014]: https://github.com/rust-lang/rust/pull/36014
3649 [36029]: https://github.com/rust-lang/rust/pull/36029
3650 [36059]: https://github.com/rust-lang/rust/pull/36059
3651 [36072]: https://github.com/rust-lang/rust/pull/36072
3652 [36101]: https://github.com/rust-lang/rust/pull/36101
3653 [36104]: https://github.com/rust-lang/rust/pull/36104
3654 [36171]: https://github.com/rust-lang/rust/pull/36171
3655 [36173]: https://github.com/rust-lang/rust/pull/36173
3656 [36178]: https://github.com/rust-lang/rust/pull/36178
3657 [36213]: https://github.com/rust-lang/rust/pull/36213
3658 [36214]: https://github.com/rust-lang/rust/pull/36214
3659 [36264]: https://github.com/rust-lang/rust/pull/36264
3660 [36266]: https://github.com/rust-lang/rust/pull/36266
3661 [36289]: https://github.com/rust-lang/rust/pull/36289
3662 [36338]: https://github.com/rust-lang/rust/pull/36338
3663 [36351]: https://github.com/rust-lang/rust/pull/36351
3664 [36355]: https://github.com/rust-lang/rust/pull/36355
3665 [36369]: https://github.com/rust-lang/rust/pull/36369
3666 [36372]: https://github.com/rust-lang/rust/pull/36372
3667 [36423]: https://github.com/rust-lang/rust/pull/36423
3668 [36482]: https://github.com/rust-lang/rust/pull/36482
3669 [36505]: https://github.com/rust-lang/rust/pull/36505
3670 [36524]: https://github.com/rust-lang/rust/pull/36524
3671 [36527]: https://github.com/rust-lang/rust/pull/36527
3672 [36551]: https://github.com/rust-lang/rust/pull/36551
3673 [36574]: https://github.com/rust-lang/rust/pull/36574
3674 [36586]: https://github.com/rust-lang/rust/pull/36586
3675 [36592]: https://github.com/rust-lang/rust/pull/36592
3676 [36631]: https://github.com/rust-lang/rust/pull/36631
3677 [36639]: https://github.com/rust-lang/rust/pull/36639
3678 [36721]: https://github.com/rust-lang/rust/pull/36721
3679 [36727]: https://github.com/rust-lang/rust/pull/36727
3680 [36730]: https://github.com/rust-lang/rust/pull/36730
3681 [36734]: https://github.com/rust-lang/rust/pull/36734
3682 [36754]: https://github.com/rust-lang/rust/pull/36754
3683 [36995]: https://github.com/rust-lang/rust/pull/36995
3684 [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
3685 [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
3686 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
3687 [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
3688 [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
3689 [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
3690 [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
3691 [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
3692 [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
3693 [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
3694 [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
3695 [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
3696 [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
3697 [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
3698 [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
3699 [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
3700 [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
3701 [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
3702 [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
3703 [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
3704 [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
3705 [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
3706 [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
3707 [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
3708 [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
3709 [rustup]: https://www.rustup.rs
3710 [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
3711 [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
3712 [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
3713 [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
3714 [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
3715 [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
3716 [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
3717
3718
3719 Version 1.12.1 (2016-10-20)
3720 ===========================
3721
3722 Regression Fixes
3723 ----------------
3724
3725 * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
3726 * [Confusion with double negation and booleans][36856]
3727 * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
3728 * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
3729 * [1.12.0: High memory usage when linking in release mode with debug info][36926]
3730 * [Corrupted memory after updated to 1.12][36936]
3731 * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
3732 * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
3733 * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
3734
3735 [36381]: https://github.com/rust-lang/rust/issues/36381
3736 [36856]: https://github.com/rust-lang/rust/issues/36856
3737 [36875]: https://github.com/rust-lang/rust/issues/36875
3738 [36924]: https://github.com/rust-lang/rust/issues/36924
3739 [36926]: https://github.com/rust-lang/rust/issues/36926
3740 [36936]: https://github.com/rust-lang/rust/issues/36936
3741 [37026]: https://github.com/rust-lang/rust/issues/37026
3742 [37112]: https://github.com/rust-lang/rust/issues/37112
3743 [37153]: https://github.com/rust-lang/rust/issues/37153
3744
3745
3746 Version 1.12.0 (2016-09-29)
3747 ===========================
3748
3749 Highlights
3750 ----------
3751
3752 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
3753   This translation pass is far simpler than the previous AST->LLVM pass, and
3754   creates opportunities to perform new optimizations directly on the MIR. It
3755   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
3756 * [`rustc` presents a new, more readable error format, along with
3757   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
3758   Most common editors supporting Rust have been updated to work with it. It was
3759   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
3760
3761 Compiler
3762 --------
3763
3764 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
3765   This translation pass is far simpler than the previous AST->LLVM pass, and
3766   creates opportunities to perform new optimizations directly on the MIR. It
3767   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
3768 * [Print the Rust target name, not the LLVM target name, with
3769   `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
3770 * [The computation of `TypeId` is correct in some cases where it was previously
3771   producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
3772 * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
3773 * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
3774   `--print relocation-models`, and `--print code-models` print the available
3775   options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
3776   `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
3777 * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
3778   `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
3779   These targets produce statically-linked binaries. There are no binary release
3780   builds yet though.
3781
3782 Diagnostics
3783 -----------
3784
3785 * [`rustc` presents a new, more readable error format, along with
3786   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
3787   Most common editors supporting Rust have been updated to work with it. It was
3788   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
3789 * [In error descriptions, references are now described in plain English,
3790   instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
3791 * [In error type descriptions, unknown numeric types are named `{integer}` or
3792   `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
3793 * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
3794
3795 Language
3796 --------
3797
3798 * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
3799 * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
3800 * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
3801   useful](https://github.com/rust-lang/rust/pull/34908)
3802 * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
3803   inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
3804 * [Semicolons are properly required as statement delimiters inside
3805   `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
3806 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
3807
3808 Stabilized APIs
3809 ---------------
3810
3811 * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
3812 * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
3813 * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
3814 * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
3815 * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
3816 * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
3817 * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
3818 * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
3819 * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
3820 * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
3821   Both on Unix and Windows.
3822 * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
3823 * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
3824 * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
3825 * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
3826 * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
3827 * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
3828 * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
3829 * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
3830
3831 Libraries
3832 ---------
3833
3834 * [The `format!` macro and friends now allow a single argument to be formatted
3835   in multiple styles](https://github.com/rust-lang/rust/pull/33642)
3836 * [The lifetime bounds on `[T]::binary_search_by` and
3837   `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
3838 * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
3839 * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
3840 * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
3841 * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
3842 * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
3843 * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
3844 * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
3845 * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
3846   implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
3847 * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
3848   implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
3849 * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
3850 * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
3851   `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
3852 * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
3853 * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
3854 * [`mpsc::sync_channel` `Receiver`s return any available message before
3855   reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
3856 * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
3857 * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
3858
3859 Cargo
3860 -----
3861
3862 * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
3863 * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
3864 * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
3865 * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
3866 * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
3867 * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
3868 * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
3869 * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
3870 * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
3871 * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
3872 * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
3873 * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
3874 * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
3875 * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
3876 * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
3877 * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
3878
3879 Performance
3880 -----------
3881
3882 * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
3883 * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
3884
3885 Tooling
3886 -------
3887
3888 * [Test binaries now support a `--test-threads` argument to specify the number
3889   of threads used to run tests, and which acts the same as the
3890   `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
3891 * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
3892 * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
3893 * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
3894 * [Rust releases now come with source packages that can be installed by rustup
3895   via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
3896   The resulting source code can be used by tools and IDES, located in the
3897   sysroot under `lib/rustlib/src`.
3898
3899 Misc
3900 ----
3901
3902 * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
3903 * Many minor improvements to the documentation.
3904 * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
3905
3906 Compatibility Notes
3907 -------------------
3908
3909 * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
3910   with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
3911 * [When formatting strings, if "precision" is specified, the "fill",
3912   "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
3913 * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
3914
3915
3916 Version 1.11.0 (2016-08-18)
3917 ===========================
3918
3919 Language
3920 --------
3921
3922 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
3923 * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
3924 * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
3925 * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
3926 * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
3927
3928 Stabilized APIs
3929 ---------------
3930
3931 * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
3932 * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
3933 * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
3934 * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
3935 * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
3936 * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
3937   (in libcore - previously stabilized in libstd)
3938 * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
3939   (in libcore - previously stabilized in libstd)
3940 * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
3941   (in libcore - previously stabilized in libstd)
3942 * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
3943   (in libcore - previously stabilized in libstd)
3944 * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
3945 * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
3946 * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
3947 * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
3948
3949 Libraries
3950 ---------
3951
3952 * [The `thread_local!` macro supports multiple definitions in a single
3953    invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
3954 * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
3955 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
3956   `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
3957 * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
3958 * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
3959 * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
3960 * [The main thread is now called "main" instead of "&lt;main&gt;"](https://github.com/rust-lang/rust/pull/33803)
3961
3962 Cargo
3963 -----
3964
3965 * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
3966 * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
3967 * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
3968 * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
3969 * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
3970   and `-vv` prints warnings for all crates.
3971 * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
3972 * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
3973   This provides room for expansion by arbitrary tools.
3974 * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
3975 * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
3976 * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
3977 * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
3978 * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
3979 * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
3980 * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
3981
3982 Performance
3983 -----------
3984
3985 * [Caching projections speeds up type check dramatically for some
3986   workloads](https://github.com/rust-lang/rust/pull/33816)
3987 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
3988   This hasher is faster, but is believed to provide sufficient
3989   protection from collision attacks.
3990 * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
3991
3992 Rustdoc
3993 -------
3994
3995 * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
3996 * [Fix inlined renamed re-exports in import lists](https://github.com/rust-lang/rust/pull/34479)
3997 * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
3998 * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
3999 * [Fix redirect pages for renamed re-exports](https://github.com/rust-lang/rust/pull/34245)
4000
4001 Tooling
4002 -------
4003
4004 * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
4005 * [When emitting debug info, rustc emits frame pointers for closures,
4006   shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
4007 * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
4008 * Many more errors have been given error codes and extended
4009   explanations
4010 * API documentation continues to be improved, with many new examples
4011
4012 Misc
4013 ----
4014
4015 * [rustc no longer hangs when dependencies recursively re-export
4016   submodules](https://github.com/rust-lang/rust/pull/34542)
4017 * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
4018 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
4019   rewritten](https://github.com/rust-lang/rust/pull/33895)
4020 * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
4021   No targets use this yet, but it works toward AVR support.
4022
4023 Compatibility Notes
4024 -------------------
4025
4026 * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
4027 * [The new follow-set rules that place restrictions on `macro_rules!`
4028   in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
4029   This was an [amendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
4030   and has been a warning since 1.10.
4031 * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
4032   This causes breakage in some corner cases.
4033
4034
4035 Version 1.10.0 (2016-07-07)
4036 ===========================
4037
4038 Language
4039 --------
4040
4041 * [Allow `concat_idents!` in type positions as well as in expression
4042   positions](https://github.com/rust-lang/rust/pull/33735).
4043 * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
4044   [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
4045 * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
4046 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
4047 * [`panic!` can be converted to a runtime abort with the
4048   `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
4049   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
4050 * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
4051   cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
4052   [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md).
4053   Note that Cargo does not yet directly support cdylibs.
4054
4055 Stabilized APIs
4056 ---------------
4057
4058 * `os::windows::fs::OpenOptionsExt::access_mode`
4059 * `os::windows::fs::OpenOptionsExt::share_mode`
4060 * `os::windows::fs::OpenOptionsExt::custom_flags`
4061 * `os::windows::fs::OpenOptionsExt::attributes`
4062 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
4063 * `os::unix::fs::OpenOptionsExt::custom_flags`
4064 * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
4065 * `Default for sync::Weak`
4066 * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
4067 * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
4068 * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
4069 * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
4070 * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
4071 * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
4072 * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
4073 * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
4074 * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
4075 * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
4076 * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
4077 * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
4078 * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
4079 * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
4080 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
4081 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
4082 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
4083 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
4084 * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
4085 * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
4086 * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
4087 * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
4088 * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
4089 * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
4090 * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
4091 * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
4092 * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
4093 * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
4094 * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
4095 * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
4096 * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
4097 * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
4098 * Read/Write/RawFd impls for `UnixStream`
4099 * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
4100 * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
4101 * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
4102 * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
4103 * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
4104 * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
4105 * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
4106 * RawFd impls for `UnixListener`
4107 * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
4108 * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
4109 * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
4110 * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
4111 * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
4112 * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
4113 * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
4114 * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
4115 * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
4116 * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
4117 * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
4118 * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
4119 * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
4120 * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
4121 * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
4122 * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
4123 * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
4124 * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
4125 * RawFd impls for `UnixDatagram`
4126 * `{BTree,Hash}Map::values_mut`
4127 * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/std/primitive.slice.html#method.binary_search_by_key)
4128
4129 Libraries
4130 ---------
4131
4132 * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
4133   The semantics of this minor method are subtle and probably not what
4134   most people want.
4135 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
4136 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
4137   will fall back to `/dev/urandom` temporarily to avoid blocking
4138   during early boot](https://github.com/rust-lang/rust/pull/33086).
4139 * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
4140 * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
4141 * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
4142 * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
4143 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
4144 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
4145   `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
4146
4147 Cargo
4148 -----
4149 * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
4150   This controls the runtime behavior of the `panic!` macro
4151   and can be either "unwind" (the default), or "abort".
4152   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
4153 * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
4154 * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
4155 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
4156   variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
4157 * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
4158 * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
4159 * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
4160   By default they are retried twice, which can be customized with the
4161   `net.retry` value in `.cargo/config`.
4162 * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
4163 * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
4164 * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
4165 * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
4166   Makes it possible to install multiple crates in parallel.
4167 * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
4168 * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
4169 * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
4170 * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
4171 * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
4172 * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
4173
4174 Performance
4175 -----------
4176
4177 * [rustc memory usage was reduced by refactoring the context used for
4178   type checking](https://github.com/rust-lang/rust/pull/33425).
4179 * [Speed up creation of `HashMap`s by caching the random keys used
4180   to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
4181 * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
4182 * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
4183 * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
4184   10x faster than the previous lookup tables.
4185 * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
4186
4187 Usability
4188 ---------
4189
4190 * Many incremental improvements to documentation and rustdoc.
4191 * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
4192 * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
4193 * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
4194 * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
4195 * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
4196 * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
4197 * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
4198
4199 Misc
4200 ----
4201
4202 * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
4203 * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
4204 * [`std` no longer prints backtraces on platforms where the running
4205   module must be loaded with `env::current_exe`, which can't be relied
4206   on](https://github.com/rust-lang/rust/pull/33554).
4207 * This release includes std binaries for the i586-unknown-linux-gnu,
4208   i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
4209   i586 target is for old x86 hardware without SSE2, and the armv7
4210   target is for Android running on modern ARM architectures.
4211 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
4212   Unix platforms](https://github.com/rust-lang/rust/pull/32835).
4213 * [On Unix the runtime aborts by calling `libc::abort` instead of
4214   generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
4215 * [Rust is now bootstrapped from the previous release of Rust,
4216   instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
4217
4218 Compatibility Notes
4219 -------------------
4220
4221 * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
4222 * [`target_env` for Linux ARM targets is just `gnu`, not
4223   `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
4224 * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
4225 * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
4226 * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
4227   Affects how macros are parsed.
4228 * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
4229 * [Feature-gated attributes on macro-generated macro invocations are
4230   now rejected](https://github.com/rust-lang/rust/pull/32791).
4231 * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
4232   This caused some minor changes to type inference.
4233
4234
4235 Version 1.9.0 (2016-05-26)
4236 ==========================
4237
4238 Language
4239 --------
4240
4241 * The `#[deprecated]` attribute when applied to an API will generate
4242   warnings when used. The warnings may be suppressed with
4243   `#[allow(deprecated)]`. [RFC 1270].
4244 * [`fn` item types are zero sized, and each `fn` names a unique
4245   type][1.9fn]. This will break code that transmutes `fn`s, so calling
4246   `transmute` on a `fn` type will generate a warning for a few cycles,
4247   then will be converted to an error.
4248 * [Field and method resolution understand visibility, so private
4249   fields and methods cannot prevent the proper use of public fields
4250   and methods][1.9fv].
4251 * [The parser considers unicode codepoints in the
4252   `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
4253
4254 Stabilized APIs
4255 ---------------
4256
4257 * [`std::panic`]
4258 * [`std::panic::catch_unwind`][] (renamed from `recover`)
4259 * [`std::panic::resume_unwind`][] (renamed from `propagate`)
4260 * [`std::panic::AssertUnwindSafe`][] (renamed from `AssertRecoverSafe`)
4261 * [`std::panic::UnwindSafe`][] (renamed from `RecoverSafe`)
4262 * [`str::is_char_boundary`]
4263 * [`<*const T>::as_ref`]
4264 * [`<*mut T>::as_ref`]
4265 * [`<*mut T>::as_mut`]
4266 * [`AsciiExt::make_ascii_uppercase`]
4267 * [`AsciiExt::make_ascii_lowercase`]
4268 * [`char::decode_utf16`]
4269 * [`char::DecodeUtf16`]
4270 * [`char::DecodeUtf16Error`]
4271 * [`char::DecodeUtf16Error::unpaired_surrogate`]
4272 * [`BTreeSet::take`]
4273 * [`BTreeSet::replace`]
4274 * [`BTreeSet::get`]
4275 * [`HashSet::take`]
4276 * [`HashSet::replace`]
4277 * [`HashSet::get`]
4278 * [`OsString::with_capacity`]
4279 * [`OsString::clear`]
4280 * [`OsString::capacity`]
4281 * [`OsString::reserve`]
4282 * [`OsString::reserve_exact`]
4283 * [`OsStr::is_empty`]
4284 * [`OsStr::len`]
4285 * [`std::os::unix::thread`]
4286 * [`RawPthread`]
4287 * [`JoinHandleExt`]
4288 * [`JoinHandleExt::as_pthread_t`]
4289 * [`JoinHandleExt::into_pthread_t`]
4290 * [`HashSet::hasher`]
4291 * [`HashMap::hasher`]
4292 * [`CommandExt::exec`]
4293 * [`File::try_clone`]
4294 * [`SocketAddr::set_ip`]
4295 * [`SocketAddr::set_port`]
4296 * [`SocketAddrV4::set_ip`]
4297 * [`SocketAddrV4::set_port`]
4298 * [`SocketAddrV6::set_ip`]
4299 * [`SocketAddrV6::set_port`]
4300 * [`SocketAddrV6::set_flowinfo`]
4301 * [`SocketAddrV6::set_scope_id`]
4302 * [`slice::copy_from_slice`]
4303 * [`ptr::read_volatile`]
4304 * [`ptr::write_volatile`]
4305 * [`OpenOptions::create_new`]
4306 * [`TcpStream::set_nodelay`]
4307 * [`TcpStream::nodelay`]
4308 * [`TcpStream::set_ttl`]
4309 * [`TcpStream::ttl`]
4310 * [`TcpStream::set_only_v6`]
4311 * [`TcpStream::only_v6`]
4312 * [`TcpStream::take_error`]
4313 * [`TcpStream::set_nonblocking`]
4314 * [`TcpListener::set_ttl`]
4315 * [`TcpListener::ttl`]
4316 * [`TcpListener::set_only_v6`]
4317 * [`TcpListener::only_v6`]
4318 * [`TcpListener::take_error`]
4319 * [`TcpListener::set_nonblocking`]
4320 * [`UdpSocket::set_broadcast`]
4321 * [`UdpSocket::broadcast`]
4322 * [`UdpSocket::set_multicast_loop_v4`]
4323 * [`UdpSocket::multicast_loop_v4`]
4324 * [`UdpSocket::set_multicast_ttl_v4`]
4325 * [`UdpSocket::multicast_ttl_v4`]
4326 * [`UdpSocket::set_multicast_loop_v6`]
4327 * [`UdpSocket::multicast_loop_v6`]
4328 * [`UdpSocket::set_multicast_ttl_v6`]
4329 * [`UdpSocket::multicast_ttl_v6`]
4330 * [`UdpSocket::set_ttl`]
4331 * [`UdpSocket::ttl`]
4332 * [`UdpSocket::set_only_v6`]
4333 * [`UdpSocket::only_v6`]
4334 * [`UdpSocket::join_multicast_v4`]
4335 * [`UdpSocket::join_multicast_v6`]
4336 * [`UdpSocket::leave_multicast_v4`]
4337 * [`UdpSocket::leave_multicast_v6`]
4338 * [`UdpSocket::take_error`]
4339 * [`UdpSocket::connect`]
4340 * [`UdpSocket::send`]
4341 * [`UdpSocket::recv`]
4342 * [`UdpSocket::set_nonblocking`]
4343
4344 Libraries
4345 ---------
4346
4347 * [`std::sync::Once` is poisoned if its initialization function
4348   fails][1.9o].
4349 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
4350 * [Most types implement `fmt::Debug`][1.9db].
4351 * [The default buffer size used by `BufReader` and `BufWriter` was
4352   reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
4353   used by other languages.
4354 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
4355   `Duration` additionally implements `*=` and `/=`][1.9ta].
4356 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
4357 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
4358 * [`Chain` implements `BufRead`][1.9ch].
4359 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
4360
4361 Cargo
4362 -----
4363
4364 * [Cargo can now run concurrently][1.9cc].
4365 * [Top-level overrides allow specific revisions of crates to be
4366   overridden through the entire crate graph][1.9ct].  This is intended
4367   to make upgrades easier for large projects, by allowing crates to be
4368   forked temporarily until they've been upgraded and republished.
4369 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
4370 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
4371   on the commandline][1.9cf]. `rustc` arguments can also be specified
4372   in the `build.rustflags` configuration key.
4373
4374 Performance
4375 -----------
4376
4377 * [The time complexity of comparing variables for equivalence during type
4378   unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
4379   to major compilation time improvement in some scenarios.
4380 * [`ToString` is specialized for `str`, giving it the same performance
4381   as `to_owned`][1.9ts].
4382 * [Spawning processes with `Command::output` no longer creates extra
4383   threads][1.9sp].
4384 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
4385   for C-like enums][1.9cl].
4386
4387 Misc
4388 ----
4389
4390 * [Passing the `--quiet` flag to a test runner will produce
4391   much-abbreviated output][1.9q].
4392 * The Rust Project now publishes std binaries for the
4393   `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
4394   `i586-pc-windows-msvc` targets.
4395
4396 Compatibility Notes
4397 -------------------
4398
4399 * [`std::sync::Once` is poisoned if its initialization function
4400   fails][1.9o].
4401 * [It is illegal to define methods with the same name in overlapping
4402   inherent `impl` blocks][1.9sn].
4403 * [`fn` item types are zero sized, and each `fn` names a unique
4404   type][1.9fn]. This will break code that transmutes `fn`s, so calling
4405   `transmute` on a `fn` type will generate a warning for a few cycles,
4406   then will be converted to an error.
4407 * [Improvements to const evaluation may trigger new errors when integer
4408   literals are out of range][1.9ce].
4409
4410
4411 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
4412 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
4413 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
4414 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
4415 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
4416 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
4417 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
4418 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
4419 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
4420 [1.9db]: https://github.com/rust-lang/rust/pull/32054
4421 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
4422 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
4423 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
4424 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
4425 [1.9o]: https://github.com/rust-lang/rust/pull/32325
4426 [1.9q]: https://github.com/rust-lang/rust/pull/31887
4427 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
4428 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
4429 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
4430 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
4431 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
4432 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
4433 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
4434 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
4435 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
4436 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
4437 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
4438 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
4439 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
4440 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
4441 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
4442 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
4443 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
4444 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
4445 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
4446 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
4447 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
4448 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
4449 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
4450 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
4451 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
4452 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
4453 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
4454 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
4455 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
4456 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
4457 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
4458 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
4459 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
4460 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
4461 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
4462 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
4463 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
4464 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
4465 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
4466 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
4467 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
4468 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
4469 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
4470 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
4471 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
4472 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
4473 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
4474 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
4475 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
4476 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
4477 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
4478 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
4479 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
4480 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
4481 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
4482 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
4483 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
4484 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
4485 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
4486 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
4487 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
4488 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
4489 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
4490 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
4491 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
4492 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
4493 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
4494 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
4495 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
4496 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
4497 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
4498 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
4499 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
4500 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
4501 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
4502 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
4503 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
4504 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
4505 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
4506 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
4507 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
4508 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
4509 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
4510 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
4511 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
4512 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
4513 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
4514 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
4515 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
4516 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
4517 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
4518 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
4519 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
4520 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
4521
4522
4523 Version 1.8.0 (2016-04-14)
4524 ==========================
4525
4526 Language
4527 --------
4528
4529 * Rust supports overloading of compound assignment statements like
4530   `+=` by implementing the [`AddAssign`], [`SubAssign`],
4531   [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
4532   [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
4533   traits. [RFC 953].
4534 * Empty structs can be defined with braces, as in `struct Foo { }`, in
4535   addition to the non-braced form, `struct Foo;`. [RFC 218].
4536
4537 Libraries
4538 ---------
4539
4540 * Stabilized APIs:
4541   * [`str::encode_utf16`][] (renamed from `utf16_units`)
4542   * [`str::EncodeUtf16`][] (renamed from `Utf16Units`)
4543   * [`Ref::map`]
4544   * [`RefMut::map`]
4545   * [`ptr::drop_in_place`]
4546   * [`time::Instant`]
4547   * [`time::SystemTime`]
4548   * [`Instant::now`]
4549   * [`Instant::duration_since`][] (renamed from `duration_from_earlier`)
4550   * [`Instant::elapsed`]
4551   * [`SystemTime::now`]
4552   * [`SystemTime::duration_since`][] (renamed from `duration_from_earlier`)
4553   * [`SystemTime::elapsed`]
4554   * Various `Add`/`Sub` impls for `Time` and `SystemTime`
4555   * [`SystemTimeError`]
4556   * [`SystemTimeError::duration`]
4557   * Various impls for `SystemTimeError`
4558   * [`UNIX_EPOCH`]
4559   * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
4560     [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
4561     [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
4562 * [The `write!` and `writeln!` macros correctly emit errors if any of
4563   their arguments can't be formatted][1.8w].
4564 * [Various I/O functions support large files on 32-bit Linux][1.8l].
4565 * [The Unix-specific `raw` modules, which contain a number of
4566   redefined C types are deprecated][1.8r], including `os::raw::unix`,
4567   `os::raw::macos`, and `os::raw::linux`. These modules defined types
4568   such as `ino_t` and `dev_t`. The inconsistency of these definitions
4569   across platforms was making it difficult to implement `std`
4570   correctly. Those that need these definitions should use the `libc`
4571   crate. [RFC 1415].
4572 * The Unix-specific `MetadataExt` traits, including
4573   `os::unix::fs::MetadataExt`, which expose values such as inode
4574   numbers [no longer return platform-specific types][1.8r], but
4575   instead return widened integers. [RFC 1415].
4576 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
4577 * [Atomic loads and stores are not volatile][1.8a].
4578 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
4579
4580 Performance
4581 -----------
4582
4583 * [Inlining hash functions lead to a 3% compile-time improvement in
4584   some workloads][1.8h].
4585 * When using jemalloc, its symbols are [unprefixed so that it
4586   overrides the libc malloc implementation][1.8h]. This means that for
4587   rustc, LLVM is now using jemalloc, which results in a 6%
4588   compile-time improvement on a specific workload.
4589 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
4590
4591 Misc
4592 ----
4593
4594 * [32-bit MSVC builds finally implement unwinding][1.8ms].
4595   i686-pc-windows-msvc is now considered a tier-1 platform.
4596 * [The `--print targets` flag prints a list of supported targets][1.8t].
4597 * [The `--print cfg` flag prints the `cfg`s defined for the current
4598   target][1.8cf].
4599 * [`rustc` can be built with an new Cargo-based build system, written
4600   in Rust][1.8b].  It will eventually replace Rust's Makefile-based
4601   build system. To enable it configure with `configure --rustbuild`.
4602 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
4603   variants while also indicating the total number of missing variants
4604   if more than 3][1.8m].
4605 * [Executable stacks are disabled on Linux and BSD][1.8nx].
4606 * The Rust Project now publishes binary releases of the standard
4607   library for a number of tier-2 targets:
4608   `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
4609   `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
4610   `x86_64-rumprun-netbsd`. These can be installed with
4611   tools such as [multirust][1.8mr].
4612
4613 Cargo
4614 -----
4615
4616 * [`cargo init` creates a new Cargo project in the current
4617   directory][1.8ci].  It is otherwise like `cargo new`.
4618 * [Cargo has configuration keys for `-v` and
4619   `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
4620   `[term]` section of `.cargo/config`.
4621 * [Configuration keys that evaluate to strings or integers can be set
4622   via environment variables][1.8ce]. For example the `build.jobs` key
4623   can be set via `CARGO_BUILD_JOBS`. Environment variables take
4624   precedence over config files.
4625 * [Target-specific dependencies support Rust `cfg` syntax for
4626   describing targets][1.8cfg] so that dependencies for multiple
4627   targets can be specified together. [RFC 1361].
4628 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
4629   `RUSTDOC` take precedence over the `build.target-dir`,
4630   `build.rustc`, and `build.rustdoc` configuration values][1.8cv].
4631 * [The child process tree is killed on Windows when Cargo is
4632   killed][1.8ck].
4633 * [The `build.target` configuration value sets the target platform,
4634   like `--target`][1.8ct].
4635
4636 Compatibility Notes
4637 -------------------
4638
4639 * [Unstable compiler flags have been further restricted][1.8u]. Since
4640   1.0 `-Z` flags have been considered unstable, and other flags that
4641   were considered unstable additionally required passing `-Z
4642   unstable-options` to access. Unlike unstable language and library
4643   features though, these options have been accessible on the stable
4644   release channel. Going forward, *new unstable flags will not be
4645   available on the stable release channel*, and old unstable flags
4646   will warn about their usage. In the future, all unstable flags will
4647   be unavailable on the stable release channel.
4648 * [It is no longer possible to `match` on empty enum variants using
4649   the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
4650 * The Unix-specific `MetadataExt` traits, including
4651   `os::unix::fs::MetadataExt`, which expose values such as inode
4652   numbers [no longer return platform-specific types][1.8r], but
4653   instead return widened integers. [RFC 1415].
4654 * [Modules sourced from the filesystem cannot appear within arbitrary
4655   blocks, but only within other modules][1.8mf].
4656 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
4657 * On Unix, [stack overflow triggers a runtime abort instead of a
4658   SIGSEGV][1.8so].
4659 * [`Command::spawn` and its equivalents return an error if any of
4660   its command-line arguments contain interior `NUL`s][1.8n].
4661 * [Tuple and unit enum variants from other crates are in the type
4662   namespace][1.8tn].
4663 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
4664   type instead of `.a` files][1.8st]. Additionally, for the MSVC
4665   toolchain, `rustc` emits import libraries named `foo.dll.lib`
4666   instead of `foo.lib`.
4667
4668
4669 [1.8a]: https://github.com/rust-lang/rust/pull/30962
4670 [1.8b]: https://github.com/rust-lang/rust/pull/31123
4671 [1.8c]: https://github.com/rust-lang/rust/pull/31530
4672 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
4673 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
4674 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
4675 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
4676 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
4677 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
4678 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
4679 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
4680 [1.8cv]: https://github.com/rust-lang/cargo/issues/2365
4681 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
4682 [1.8h]: https://github.com/rust-lang/rust/pull/31460
4683 [1.8l]: https://github.com/rust-lang/rust/pull/31668
4684 [1.8m]: https://github.com/rust-lang/rust/pull/31020
4685 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
4686 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
4687 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
4688 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
4689 [1.8n]: https://github.com/rust-lang/rust/pull/31056
4690 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
4691 [1.8r]: https://github.com/rust-lang/rust/pull/31551
4692 [1.8so]: https://github.com/rust-lang/rust/pull/31333
4693 [1.8st]: https://github.com/rust-lang/rust/pull/29520
4694 [1.8t]: https://github.com/rust-lang/rust/pull/31358
4695 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
4696 [1.8u]: https://github.com/rust-lang/rust/pull/31793
4697 [1.8v]: https://github.com/rust-lang/rust/pull/31757
4698 [1.8w]: https://github.com/rust-lang/rust/pull/31904
4699 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
4700 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
4701 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
4702 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
4703 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
4704 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
4705 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
4706 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
4707 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
4708 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
4709 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
4710 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
4711 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
4712 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
4713 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
4714 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
4715 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
4716 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
4717 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
4718 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
4719 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
4720 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
4721 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
4722 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
4723 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
4724 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
4725 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
4726 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
4727 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
4728 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
4729
4730
4731 Version 1.7.0 (2016-03-03)
4732 ==========================
4733
4734 Libraries
4735 ---------
4736
4737 * Stabilized APIs
4738   * `Path`
4739     * [`Path::strip_prefix`][] (renamed from relative_from)
4740     * [`path::StripPrefixError`][] (new error type returned from strip_prefix)
4741   * `Ipv4Addr`
4742     * [`Ipv4Addr::is_loopback`]
4743     * [`Ipv4Addr::is_private`]
4744     * [`Ipv4Addr::is_link_local`]
4745     * [`Ipv4Addr::is_multicast`]
4746     * [`Ipv4Addr::is_broadcast`]
4747     * [`Ipv4Addr::is_documentation`]
4748   * `Ipv6Addr`
4749     * [`Ipv6Addr::is_unspecified`]
4750     * [`Ipv6Addr::is_loopback`]
4751     * [`Ipv6Addr::is_multicast`]
4752   * `Vec`
4753     * [`Vec::as_slice`]
4754     * [`Vec::as_mut_slice`]
4755   * `String`
4756     * [`String::as_str`]
4757     * [`String::as_mut_str`]
4758   * Slices
4759     * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
4760     be the same length
4761     * `<[T]>::`[`sort_by_key`]
4762   * checked, saturated, and overflowing operations
4763     * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
4764     * [`i32::saturating_mul`]
4765     * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
4766     * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
4767     * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
4768     * [`u32::saturating_mul`]
4769     * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
4770     * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
4771     * and checked, saturated, and overflowing operations for other primitive types
4772   * FFI
4773     * [`ffi::IntoStringError`]
4774     * [`CString::into_string`]
4775     * [`CString::into_bytes`]
4776     * [`CString::into_bytes_with_nul`]
4777     * `From<CString> for Vec<u8>`
4778   * `IntoStringError`
4779     * [`IntoStringError::into_cstring`]
4780     * [`IntoStringError::utf8_error`]
4781     * `Error for IntoStringError`
4782   * Hashing
4783     * [`std::hash::BuildHasher`]
4784     * [`BuildHasher::Hasher`]
4785     * [`BuildHasher::build_hasher`]
4786     * [`std::hash::BuildHasherDefault`]
4787     * [`HashMap::with_hasher`]
4788     * [`HashMap::with_capacity_and_hasher`]
4789     * [`HashSet::with_hasher`]
4790     * [`HashSet::with_capacity_and_hasher`]
4791     * [`std::collections::hash_map::RandomState`]
4792     * [`RandomState::new`]
4793 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
4794   ASCII input][1.7utf8]. This means that creating `String`s and `str`s
4795   from bytes is faster.
4796 * [The performance of `LineWriter` (and thus `io::stdout`) was
4797   improved by using `memchr` to search for newlines][1.7m].
4798 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
4799   `f64` variants were stabilized previously.
4800 * [`BTreeMap` was rewritten to use less memory and improve the performance
4801   of insertion and iteration, the latter by as much as 5x][1.7bm].
4802 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
4803   covariant over their contained type][1.7bt].
4804 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
4805   over their contained type][1.7ll].
4806 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
4807   searching methods.
4808 * [`Any` is implemented for unsized types][1.7a].
4809 * [`Hash` is implemented for `Duration`][1.7h].
4810
4811 Misc
4812 ----
4813
4814 * [When running tests with `--test`, rustdoc will pass `--cfg`
4815   arguments to the compiler][1.7dt].
4816 * [The compiler is built with RPATH information by default][1.7rpa].
4817   This means that it will be possible to run `rustc` when installed in
4818   unusual configurations without configuring the dynamic linker search
4819   path explicitly.
4820 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
4821   any RPATH entries (emitted with `-C rpath`) *not* take precedence
4822   over `LD_LIBRARY_PATH`.
4823
4824 Cargo
4825 -----
4826
4827 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
4828   any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
4829 * [The `rerun-if-changed` build script directive no longer causes the
4830   build script to incorrectly run twice in certain scenarios][1.7rr].
4831
4832 Compatibility Notes
4833 -------------------
4834
4835 * Soundness fixes to the interactions between associated types and
4836   lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
4837   code that violates the new rules. This is a significant change that
4838   is known to break existing code, so it has emitted warnings for the
4839   new error cases since 1.4 to give crate authors time to adapt. The
4840   details of what is changing are subtle; read the RFC for more.
4841 * [Several bugs in the compiler's visibility calculations were
4842   fixed][1.7v]. Since this was found to break significant amounts of
4843   code, the new errors will be emitted as warnings for several release
4844   cycles, under the `private_in_public` lint.
4845 * Defaulted type parameters were accidentally accepted in positions
4846   that were not intended. In this release, [defaulted type parameters
4847   appearing outside of type definitions will generate a
4848   warning][1.7d], which will become an error in future releases.
4849 * [Parsing "." as a float results in an error instead of 0][1.7p].
4850   That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
4851 * [Borrows of closure parameters may not outlive the closure][1.7bc].
4852
4853 [1.7a]: https://github.com/rust-lang/rust/pull/30928
4854 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
4855 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
4856 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
4857 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
4858 [1.7d]: https://github.com/rust-lang/rust/pull/30724
4859 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
4860 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
4861 [1.7f]: https://github.com/rust-lang/rust/pull/30672
4862 [1.7h]: https://github.com/rust-lang/rust/pull/30818
4863 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
4864 [1.7m]: https://github.com/rust-lang/rust/pull/30381
4865 [1.7p]: https://github.com/rust-lang/rust/pull/30681
4866 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
4867 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
4868 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
4869 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
4870 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
4871 [1.7v]: https://github.com/rust-lang/rust/pull/29973
4872 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
4873 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
4874 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
4875 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
4876 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
4877 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
4878 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
4879 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
4880 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
4881 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
4882 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
4883 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
4884 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
4885 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
4886 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
4887 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
4888 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
4889 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
4890 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
4891 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
4892 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
4893 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
4894 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
4895 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
4896 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
4897 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
4898 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
4899 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
4900 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
4901 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
4902 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
4903 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
4904 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
4905 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
4906 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
4907 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
4908 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
4909 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
4910 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
4911 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
4912 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
4913 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
4914 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
4915 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
4916 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
4917 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
4918 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
4919 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
4920 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
4921 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
4922 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
4923 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
4924 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
4925 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
4926 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
4927 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
4928 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
4929 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
4930 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
4931 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
4932
4933
4934 Version 1.6.0 (2016-01-21)
4935 ==========================
4936
4937 Language
4938 --------
4939
4940 * The `#![no_std]` attribute causes a crate to not be linked to the
4941   standard library, but only the [core library][1.6co], as described
4942   in [RFC 1184]. The core library defines common types and traits but
4943   has no platform dependencies whatsoever, and is the basis for Rust
4944   software in environments that cannot support a full port of the
4945   standard library, such as operating systems. Most of the core
4946   library is now stable.
4947
4948 Libraries
4949 ---------
4950
4951 * Stabilized APIs:
4952   [`Read::read_exact`],
4953   [`ErrorKind::UnexpectedEof`][] (renamed from `UnexpectedEOF`),
4954   [`fs::DirBuilder`], [`fs::DirBuilder::new`],
4955   [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
4956   [`os::unix::fs::DirBuilderExt`],
4957   [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
4958   [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
4959   [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
4960   [`collections::hash_map::Drain`],
4961   [`collections::hash_map::HashMap::drain`],
4962   [`collections::hash_set::Drain`],
4963   [`collections::hash_set::HashSet::drain`],
4964   [`collections::binary_heap::Drain`],
4965   [`collections::binary_heap::BinaryHeap::drain`],
4966   [`Vec::extend_from_slice`][] (renamed from `push_all`),
4967   [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
4968   [`RwLock::into_inner`],
4969   [`Iterator::min_by_key`][] (renamed from `min_by`),
4970   [`Iterator::max_by_key`][] (renamed from `max_by`).
4971 * The [core library][1.6co] is stable, as are most of its APIs.
4972 * [The `assert_eq!` macro supports arguments that don't implement
4973   `Sized`][1.6ae], such as arrays. In this way it behaves more like
4974   `assert!`.
4975 * Several timer functions that take duration in milliseconds [are
4976   deprecated in favor of those that take `Duration`][1.6ms]. These
4977   include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
4978   `thread::park_timeout_ms`.
4979 * The algorithm by which `Vec` reserves additional elements was
4980   [tweaked to not allocate excessive space][1.6a] while still growing
4981   exponentially.
4982 * `From` conversions are [implemented from integers to floats][1.6f]
4983   in cases where the conversion is lossless. Thus they are not
4984   implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
4985   or `f64`. They are also not implemented for `isize` and `usize`
4986   because the implementations would be platform-specific. `From` is
4987   also implemented from `f32` to `f64`.
4988 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
4989 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
4990 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
4991 * [`BinaryHeap` was refactored][1.6bh] for modest performance
4992   improvements.
4993 * Sorting slices that are already sorted [is 50% faster in some
4994   cases][1.6s].
4995
4996 Cargo
4997 -----
4998
4999 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
5000 * Cargo build scripts can specify their dependencies by emitting the
5001   [`rerun-if-changed`][1.6rr] key.
5002 * crates.io will reject publication of crates with dependencies that
5003   have a wildcard version constraint. Crates with wildcard
5004   dependencies were seen to cause a variety of problems, as described
5005   in [RFC 1241]. Since 1.5 publication of such crates has emitted a
5006   warning.
5007 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
5008   release folder.  A variety of artifacts that Cargo failed to clean
5009   are now correctly deleted.
5010
5011 Misc
5012 ----
5013
5014 * The `unreachable_code` lint [warns when a function call's argument
5015   diverges][1.6dv].
5016 * The parser indicates [failures that may be caused by
5017   confusingly-similar Unicode characters][1.6uc]
5018 * Certain macro errors [are reported at definition time][1.6m], not
5019   expansion.
5020
5021 Compatibility Notes
5022 -------------------
5023
5024 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
5025   environment variable when locating crates. This was a pre-cargo
5026   feature for integrating with the package manager that was
5027   accidentally never removed.
5028 * [A number of bugs were fixed in the privacy checker][1.6p] that
5029   could cause previously-accepted code to break.
5030 * [Modules and unit/tuple structs may not share the same name][1.6ts].
5031 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
5032   struct pattern syntax (`Foo(..)`) can no longer be used to match
5033   unit structs. This is a warning now, but will become an error in
5034   future releases. Patterns that share the same name as a const are
5035   now an error.
5036 * A bug was fixed that causes [rustc not to apply default type
5037   parameters][1.6xc] when resolving certain method implementations of
5038   traits defined in other crates.
5039
5040 [1.6a]: https://github.com/rust-lang/rust/pull/29454
5041 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
5042 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
5043 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
5044 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
5045 [1.6co]: http://doc.rust-lang.org/core/index.html
5046 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
5047 [1.6f]: https://github.com/rust-lang/rust/pull/29129
5048 [1.6m]: https://github.com/rust-lang/rust/pull/29828
5049 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
5050 [1.6p]: https://github.com/rust-lang/rust/pull/29726
5051 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
5052 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
5053 [1.6s]: https://github.com/rust-lang/rust/pull/29675
5054 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
5055 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
5056 [1.6us]: https://github.com/rust-lang/rust/pull/29383
5057 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
5058 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
5059 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
5060 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
5061 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
5062 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
5063 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
5064 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
5065 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
5066 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
5067 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
5068 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
5069 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
5070 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
5071 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
5072 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
5073 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
5074 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
5075 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
5076 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
5077 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
5078 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
5079 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
5080 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
5081 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
5082 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
5083 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
5084 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
5085 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
5086 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
5087
5088
5089 Version 1.5.0 (2015-12-10)
5090 ==========================
5091
5092 * ~700 changes, numerous bugfixes
5093
5094 Highlights
5095 ----------
5096
5097 * Stabilized APIs:
5098   [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
5099   [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
5100   [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
5101   [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
5102   [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
5103   [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
5104   [`Formatter::sign_minus`], [`Formatter::sign_plus`],
5105   [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
5106   [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
5107   [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
5108   [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
5109   [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
5110   [`Path::read_link`], [`Path::symlink_metadata`],
5111   [`Utf8Error::valid_up_to`], [`Vec::resize`],
5112   [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
5113   [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
5114   [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
5115   [`slice::split_first_mut`], [`slice::split_first`],
5116   [`slice::split_last_mut`], [`slice::split_last`],
5117   [`char::from_u32_unchecked`], [`fs::canonicalize`],
5118   [`str::MatchIndices`], [`str::RMatchIndices`],
5119   [`str::match_indices`], [`str::rmatch_indices`],
5120   [`str::slice_mut_unchecked`], [`string::ParseError`].
5121 * Rust applications hosted on crates.io can be installed locally to
5122   `~/.cargo/bin` with the [`cargo install`] command. Among other
5123   things this makes it easier to augment Cargo with new subcommands:
5124   when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
5125   invoked as `cargo foo`.
5126 * Crates with wildcard (`*`) dependencies will [emit warnings when
5127   published][1.5w]. In 1.6 it will no longer be possible to publish
5128   crates with wildcard dependencies.
5129
5130 Breaking Changes
5131 ----------------
5132
5133 * The rules determining when a particular lifetime must outlive
5134   a particular value (known as '[dropck]') have been [modified
5135   to not rely on parametricity][1.5p].
5136 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
5137   and `Arc`][1.5a]. Because these smart pointer types implement
5138   `Deref`, this causes breakage in cases where the interior type
5139   contains methods of the same name.
5140 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
5141   that they could drop their content. Soundness fix.
5142 * All method invocations are [properly checked][1.5wf1] for
5143   [well-formedness][1.5wf2]. Soundness fix.
5144 * Traits whose supertraits contain `Self` are [not object
5145   safe][1.5o]. Soundness fix.
5146 * Target specifications support a [`no_default_libraries`][1.5nd]
5147   setting that controls whether `-nodefaultlibs` is passed to the
5148   linker, and in turn the `is_like_windows` setting no longer affects
5149   the `-nodefaultlibs` flag.
5150 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
5151 * The `#[inline]` and `#[repr]` attributes [can only appear
5152   in valid locations][1.5at].
5153 * Native libraries linked from the local crate are [passed to
5154   the linker before native libraries from upstream crates][1.5nl].
5155 * Two rarely-used attributes, `#[no_debug]` and
5156   `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
5157 * Negation of unsigned integers, which has been a warning for
5158   several releases, [is now behind a feature gate and will
5159   generate errors][1.5nu].
5160 * The parser accidentally accepted visibility modifiers on
5161   enum variants, a bug [which has been fixed][1.5ev].
5162 * [A bug was fixed that allowed `use` statements to import unstable
5163   features][1.5use].
5164
5165 Language
5166 --------
5167
5168 * When evaluating expressions at compile-time that are not
5169   compile-time constants (const-evaluating expressions in non-const
5170   contexts), incorrect code such as overlong bitshifts and arithmetic
5171   overflow will [generate a warning instead of an error][1.5ce],
5172   delaying the error until runtime. This will allow the
5173   const-evaluator to be expanded in the future backwards-compatibly.
5174 * The `improper_ctypes` lint [no longer warns about using `isize` and
5175   `usize` in FFI][1.5ict].
5176
5177 Libraries
5178 ---------
5179
5180 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
5181   invariant][1.5c].
5182 * `Default` is [implemented for mutable slices][1.5d].
5183 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
5184 * There are now `From` conversions [between floating point
5185   types][1.5f] where the conversions are lossless.
5186 * There are now `From` conversions [between integer types][1.5i] where
5187   the conversions are lossless.
5188 * [`fs::Metadata` implements `Clone`][1.5fs].
5189 * The `parse` method [accepts a leading "+" when parsing
5190   integers][1.5pi].
5191 * [`AsMut` is implemented for `Vec`][1.5am].
5192 * The `clone_from` implementations for `String` and `BinaryHeap` [have
5193   been optimized][1.5cf] and no longer rely on the default impl.
5194 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
5195   `unsafe extern "C"` function types now [implement `Clone`,
5196   `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
5197   `fmt::Debug` for up to 12 arguments][1.5fp].
5198 * [Dropping `Vec`s is much faster in unoptimized builds when the
5199   element types don't implement `Drop`][1.5dv].
5200 * A bug that caused in incorrect behavior when [combining `VecDeque`
5201   with zero-sized types][1.5vdz] was resolved.
5202 * [`PartialOrd` for slices is faster][1.5po].
5203
5204 Miscellaneous
5205 -------------
5206
5207 * [Crate metadata size was reduced by 20%][1.5md].
5208 * [Improvements to code generation reduced the size of libcore by 3.3
5209   MB and rustc's memory usage by 18MB][1.5m].
5210 * [Improvements to deref translation increased performance in
5211   unoptimized builds][1.5dr].
5212 * Various errors in trait resolution [are deduplicated to only be
5213   reported once][1.5te].
5214 * Rust has preliminary [support for rumprun kernels][1.5rr].
5215 * Rust has preliminary [support for NetBSD on amd64][1.5na].
5216
5217 [1.5use]: https://github.com/rust-lang/rust/pull/28364
5218 [1.5po]: https://github.com/rust-lang/rust/pull/28436
5219 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
5220 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
5221 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
5222 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
5223 [1.5md]: https://github.com/rust-lang/rust/pull/28521
5224 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
5225 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
5226 [1.5na]: https://github.com/rust-lang/rust/pull/28543
5227 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
5228 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
5229 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
5230 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
5231 [1.5te]: https://github.com/rust-lang/rust/pull/28645
5232 [1.5at]: https://github.com/rust-lang/rust/pull/28650
5233 [1.5am]: https://github.com/rust-lang/rust/pull/28663
5234 [1.5m]: https://github.com/rust-lang/rust/pull/28778
5235 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
5236 [1.5a]: https://github.com/rust-lang/rust/pull/28811
5237 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
5238 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
5239 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
5240 [1.5i]: https://github.com/rust-lang/rust/pull/28921
5241 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
5242 [1.5f]: https://github.com/rust-lang/rust/pull/29129
5243 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
5244 [1.5s]: https://github.com/rust-lang/rust/pull/29190
5245 [1.5d]: https://github.com/rust-lang/rust/pull/29245
5246 [1.5o]: https://github.com/rust-lang/rust/pull/29259
5247 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
5248 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
5249 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
5250 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
5251 [1.5c]: https://github.com/rust-lang/rust/pull/29110
5252 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
5253 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
5254 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
5255 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
5256 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
5257 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
5258 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
5259 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
5260 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
5261 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
5262 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
5263 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
5264 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
5265 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
5266 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
5267 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
5268 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
5269 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
5270 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
5271 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
5272 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
5273 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
5274 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
5275 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
5276 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
5277 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
5278 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
5279 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
5280 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
5281 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
5282 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
5283 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
5284 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
5285 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
5286 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
5287 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
5288 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
5289 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
5290 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
5291 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
5292 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
5293 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
5294 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
5295 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
5296 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
5297 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
5298 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
5299 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
5300 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
5301 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
5302 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
5303 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
5304 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
5305 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
5306
5307 Version 1.4.0 (2015-10-29)
5308 ==========================
5309
5310 * ~1200 changes, numerous bugfixes
5311
5312 Highlights
5313 ----------
5314
5315 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
5316   GNU) are now supported and recommended for use.
5317
5318 Breaking Changes
5319 ----------------
5320
5321 * [Several changes have been made to fix type soundness and improve
5322   the behavior of associated types][sound]. See [RFC 1214]. Although
5323   we have mostly introduced these changes as warnings this release, to
5324   become errors next release, there are still some scenarios that will
5325   see immediate breakage.
5326 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
5327   line breaks in addition to `\n`][crlf].
5328 * [Loans of `'static` lifetime extend to the end of a function][stat].
5329 * [`str::parse` no longer introduces avoidable rounding error when
5330   parsing floating point numbers. Together with earlier changes to
5331   float formatting/output, "round trips" like f.to_string().parse()
5332   now preserve the value of f exactly. Additionally, leading plus
5333   signs are now accepted][fp3].
5334
5335
5336 Language
5337 --------
5338
5339 * `use` statements that import multiple items [can now rename
5340   them][i], as in `use foo::{bar as kitten, baz as puppy}`.
5341 * [Binops work correctly on fat pointers][binfat].
5342 * `pub extern crate`, which does not behave as expected, [issues a
5343   warning][pec] until a better solution is found.
5344
5345 Libraries
5346 ---------
5347
5348 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
5349   [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
5350   [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
5351   [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
5352   [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
5353   `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
5354   `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
5355   [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
5356   [`String::into_boxed_str`], [`TcpStream::read_timeout`],
5357   [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
5358   [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
5359   [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
5360   [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
5361   [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
5362   [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
5363   [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
5364   [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
5365   [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
5366   [`thread::sleep`].
5367 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
5368   `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
5369   `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
5370   `f64::from_str_radix`.
5371 * [Reverse-searching strings is faster with the 'two-way'
5372   algorithm][s].
5373 * [`std::io::copy` allows `?Sized` arguments][cc].
5374 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
5375   [override `count`, `nth` and `last` with an O(1)
5376   implementation][it].
5377 * [`Default` is implemented for arrays up to `[T; 32]`][d].
5378 * [`IntoRawFd` has been added to the Unix-specific prelude,
5379   `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
5380   prelude][pr].
5381 * [`Extend<String>` and `FromIterator<String` are both implemented for
5382   `String`][es].
5383 * [`IntoIterator` is implemented for references to `Option` and
5384   `Result`][into2].
5385 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
5386   Copy`][ext] as part of [RFC 839]. This will cause type inference
5387   breakage in rare situations.
5388 * [`BinaryHeap` implements `Debug`][bh2].
5389 * [`Borrow` and `BorrowMut` are implemented for fixed-size
5390   arrays][bm].
5391 * [`extern fn`s with the "Rust" and "C" ABIs implement common
5392   traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
5393 * [String comparison is faster][faststr].
5394 * `&mut T` where `T: std::fmt::Write` [also implements
5395   `std::fmt::Write`][mutw].
5396 * [A stable regression in `VecDeque::push_back` and other
5397   capacity-altering methods that caused panics for zero-sized types
5398   was fixed][vd].
5399 * [Function pointers implement traits for up to 12 parameters][fp2].
5400
5401 Miscellaneous
5402 -------------
5403
5404 * The compiler [no longer uses the 'morestack' feature to prevent
5405   stack overflow][mm]. Instead it uses guard pages and stack
5406   probes (though stack probes are not yet implemented on any platform
5407   but Windows).
5408 * [The compiler matches traits faster when projections are involved][p].
5409 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
5410   `usize`][ffi].
5411 * [Cargo now displays useful information about what its doing during
5412   `cargo update`][cu].
5413
5414 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
5415 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
5416 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
5417 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
5418 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
5419 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
5420 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
5421 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
5422 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
5423 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
5424 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
5425 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
5426 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
5427 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
5428 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
5429 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
5430 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
5431 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
5432 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
5433 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
5434 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
5435 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
5436 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
5437 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
5438 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
5439 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
5440 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
5441 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
5442 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
5443 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
5444 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
5445 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
5446 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
5447 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
5448 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
5449 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
5450 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
5451 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
5452 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
5453 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
5454 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
5455 [bh2]: https://github.com/rust-lang/rust/pull/28156
5456 [binfat]: https://github.com/rust-lang/rust/pull/28270
5457 [bm]: https://github.com/rust-lang/rust/pull/28197
5458 [cc]: https://github.com/rust-lang/rust/pull/27531
5459 [crlf]: https://github.com/rust-lang/rust/pull/28034
5460 [cu]: https://github.com/rust-lang/cargo/pull/1931
5461 [d]: https://github.com/rust-lang/rust/pull/27825
5462 [dep]: https://github.com/rust-lang/rust/pull/28339
5463 [es]: https://github.com/rust-lang/rust/pull/27956
5464 [ext]: https://github.com/rust-lang/rust/pull/28094
5465 [faststr]: https://github.com/rust-lang/rust/pull/28338
5466 [ffi]: https://github.com/rust-lang/rust/pull/28779
5467 [fp]: https://github.com/rust-lang/rust/pull/28268
5468 [fp2]: https://github.com/rust-lang/rust/pull/28560
5469 [fp3]: https://github.com/rust-lang/rust/pull/27307
5470 [i]: https://github.com/rust-lang/rust/pull/27451
5471 [into2]: https://github.com/rust-lang/rust/pull/28039
5472 [it]: https://github.com/rust-lang/rust/pull/27652
5473 [mm]: https://github.com/rust-lang/rust/pull/27338
5474 [mutw]: https://github.com/rust-lang/rust/pull/28368
5475 [sound]: https://github.com/rust-lang/rust/pull/27641
5476 [p]: https://github.com/rust-lang/rust/pull/27866
5477 [pec]: https://github.com/rust-lang/rust/pull/28486
5478 [pr]: https://github.com/rust-lang/rust/pull/27896
5479 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
5480 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
5481 [s]: https://github.com/rust-lang/rust/pull/27474
5482 [stab]: https://github.com/rust-lang/rust/pull/28339
5483 [stat]: https://github.com/rust-lang/rust/pull/28321
5484 [vd]: https://github.com/rust-lang/rust/pull/28494
5485
5486 Version 1.3.0 (2015-09-17)
5487 ==============================
5488
5489 * ~900 changes, numerous bugfixes
5490
5491 Highlights
5492 ----------
5493
5494 * The [new object lifetime defaults][nold] have been [turned
5495   on][nold2] after a cycle of warnings about the change. Now types
5496   like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
5497   being interpreted as `&'a Box<Trait+'a>` to `&'a
5498   Box<Trait+'static>`.
5499 * [The Rustonomicon][nom] is a new book in the official documentation
5500   that dives into writing unsafe Rust.
5501 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
5502   timekeeping is employed by other std APIs, as well as out-of-tree
5503   time crates.
5504
5505 Breaking Changes
5506 ----------------
5507
5508 * The [new object lifetime defaults][nold] have been [turned
5509   on][nold2] after a cycle of warnings about the change.
5510 * There is a known [regression][lr] in how object lifetime elision is
5511   interpreted, the proper solution for which is undetermined.
5512 * The `#[prelude_import]` attribute, an internal implementation
5513   detail, was accidentally stabilized previously. [It has been put
5514   behind the `prelude_import` feature gate][pi]. This change is
5515   believed to break no existing code.
5516 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
5517   [more sane for dynamically sized types][dst3]. Code that relied on
5518   the previous behavior is thought to be broken.
5519 * The `dropck` rules, which checks that destructors can't access
5520   destroyed values, [have been updated][dropck] to match the
5521   [RFC][dropckrfc]. This fixes some soundness holes, and as such will
5522   cause some previously-compiling code to no longer build.
5523
5524 Language
5525 --------
5526
5527 * The [new object lifetime defaults][nold] have been [turned
5528   on][nold2] after a cycle of warnings about the change.
5529 * Semicolons may [now follow types and paths in
5530   macros](https://github.com/rust-lang/rust/pull/27000).
5531 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
5532   [more sane for dynamically sized types][dst3]. Code that relied on
5533   the previous behavior is not known to exist, and suspected to be
5534   broken.
5535 * `'static` variables [may now be recursive][st].
5536 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
5537   implementations correctly.
5538 * The `dropck` rules, which checks that destructors can't access
5539   destroyed values, [have been updated][dropck] to match the
5540   [RFC][dropckrfc].
5541
5542 Libraries
5543 ---------
5544
5545 * The [`Duration`] API, [has been stabilized][ds], as well as the
5546   `std::time` module, which presently contains only `Duration`.
5547 * `Box<str>` and `Box<[T]>` both implement `Clone`.
5548 * The owned C string, [`CString`], implements [`Borrow`] and the
5549   borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
5550   these allow C strings to be borrowed and cloned in generic code.
5551 * [`CStr`] implements [`Debug`].
5552 * [`AtomicPtr`] implements [`Debug`].
5553 * [`Error`] trait objects [can be downcast to their concrete types][e]
5554   in many common configurations, using the [`is`], [`downcast`],
5555   [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
5556   [`Any`] trait.
5557 * Searching for substrings now [employs the two-way algorithm][search]
5558   instead of doing a naive search. This gives major speedups to a
5559   number of methods, including [`contains`][sc], [`find`][sf],
5560   [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
5561   [`ends_with`][sew] are also faster.
5562 * The performance of `PartialEq` for slices is [much faster][ps].
5563 * The [`Hash`] trait offers the default method, [`hash_slice`], which
5564   is overridden and optimized by the implementations for scalars.
5565 * The [`Hasher`] trait now has a number of specialized `write_*`
5566   methods for primitive types, for efficiency.
5567 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
5568   methods for accessing the 'inner error', if any: [`get_ref`][iegr],
5569   [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
5570   of [`std::error::Error::cause`][iec] also delegates to the inner
5571   error.
5572 * [`process::Child`][pc] gained the [`id`] method, which returns a
5573   `u32` representing the platform-specific process identifier.
5574 * The [`connect`] method on slices is deprecated, replaced by the new
5575   [`join`] method (note that both of these are on the *unstable*
5576   [`SliceConcatExt`] trait, but through the magic of the prelude are
5577   available to stable code anyway).
5578 * The [`Div`] operator is implemented for [`Wrapping`] types.
5579 * [`DerefMut` is implemented for `String`][dms].
5580 * Performance of SipHash (the default hasher for `HashMap`) is
5581   [better for long data][sh].
5582 * [`AtomicPtr`] implements [`Send`].
5583 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
5584   are now [specialized to use uninitialized buffers for increased
5585   performance][rte].
5586 * Lifetime parameters of foreign functions [are now resolved
5587   properly][f].
5588
5589 Misc
5590 ----
5591
5592 * Rust can now, with some coercion, [produce programs that run on
5593   Windows XP][xp], though XP is not considered a supported platform.
5594 * Porting Rust on Windows from the GNU toolchain to MSVC continues
5595   ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
5596   recommended for use in 1.3, though should be fully-functional
5597   in the [64-bit 1.4 beta][b14].
5598 * On Fedora-based systems installation will [properly configure the
5599   dynamic linker][fl].
5600 * The compiler gained many new extended error descriptions, which can
5601   be accessed with the `--explain` flag.
5602 * The `dropck` pass, which checks that destructors can't access
5603   destroyed values, [has been rewritten][dropck]. This fixes some
5604   soundness holes, and as such will cause some previously-compiling
5605   code to no longer build.
5606 * `rustc` now uses [LLVM to write archive files where possible][ar].
5607   Eventually this will eliminate the compiler's dependency on the ar
5608   utility.
5609 * Rust has [preliminary support for i686 FreeBSD][fb] (it has long
5610   supported FreeBSD on x86_64).
5611 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
5612   [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
5613   more strict.
5614 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
5615   will kill the process instead of leaking][nlp].
5616
5617 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
5618 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
5619 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
5620 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
5621 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
5622 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
5623 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
5624 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
5625 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
5626 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
5627 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
5628 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
5629 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
5630 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
5631 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
5632 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
5633 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
5634 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
5635 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
5636 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
5637 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
5638 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
5639 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
5640 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
5641 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
5642 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
5643 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
5644 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
5645 [ar]: https://github.com/rust-lang/rust/pull/26926
5646 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
5647 [dms]: https://github.com/rust-lang/rust/pull/26241
5648 [dropck]: https://github.com/rust-lang/rust/pull/27261
5649 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
5650 [ds]: https://github.com/rust-lang/rust/pull/26818
5651 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
5652 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
5653 [dst3]: https://github.com/rust-lang/rust/pull/27351
5654 [e]: https://github.com/rust-lang/rust/pull/24793
5655 [f]: https://github.com/rust-lang/rust/pull/26588
5656 [fb]: https://github.com/rust-lang/rust/pull/26959
5657 [fl]: https://github.com/rust-lang/rust-installer/pull/41
5658 [hs]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
5659 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
5660 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
5661 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
5662 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
5663 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
5664 [lic]: https://github.com/rust-lang/rust/pull/26583
5665 [lnu]: https://github.com/rust-lang/rust/pull/27026
5666 [lr]: https://github.com/rust-lang/rust/issues/27248
5667 [lum]: https://github.com/rust-lang/rust/pull/26378
5668 [lur]: https://github.com/rust-lang/rust/pull/26783
5669 [nlp]: https://github.com/rust-lang/rust/pull/27176
5670 [nold2]: https://github.com/rust-lang/rust/pull/27045
5671 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
5672 [nom]: http://doc.rust-lang.org/nightly/nomicon/
5673 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
5674 [pi]: https://github.com/rust-lang/rust/pull/26699
5675 [ps]: https://github.com/rust-lang/rust/pull/26884
5676 [rte]: https://github.com/rust-lang/rust/pull/26950
5677 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
5678 [search]: https://github.com/rust-lang/rust/pull/26327
5679 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
5680 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
5681 [sh]: https://github.com/rust-lang/rust/pull/27280
5682 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
5683 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
5684 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
5685 [st]: https://github.com/rust-lang/rust/pull/26630
5686 [win1]: https://github.com/rust-lang/rust/pull/26569
5687 [win2]: https://github.com/rust-lang/rust/pull/26741
5688 [win3]: https://github.com/rust-lang/rust/pull/26741
5689 [win4]: https://github.com/rust-lang/rust/pull/27210
5690 [xp]: https://github.com/rust-lang/rust/pull/26569
5691
5692 Version 1.2.0 (2015-08-07)
5693 ==========================
5694
5695 * ~1200 changes, numerous bugfixes
5696
5697 Highlights
5698 ----------
5699
5700 * [Dynamically-sized-type coercions][dst] allow smart pointer types
5701   like `Rc` to contain types without a fixed size, arrays and trait
5702   objects, finally enabling use of `Rc<[T]>` and completing the
5703   implementation of DST.
5704 * [Parallel codegen][parcodegen] is now working again, which can
5705   substantially speed up large builds in debug mode; It also gets
5706   another ~33% speedup when bootstrapping on a 4 core machine (using 8
5707   jobs). It's not enabled by default, but will be "in the near
5708   future". It can be activated with the `-C codegen-units=N` flag to
5709   `rustc`.
5710 * This is the first release with [experimental support for linking
5711   with the MSVC linker and lib C on Windows (instead of using the GNU
5712   variants via MinGW)][win]. It is yet recommended only for the most
5713   intrepid Rustaceans.
5714 * Benchmark compilations are showing a 30% improvement in
5715   bootstrapping over 1.1.
5716
5717 Breaking Changes
5718 ----------------
5719
5720 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
5721   unicode case mapping, which is a previously-planned change in
5722   behavior and considered a bugfix.
5723 * [`mem::align_of`] now specifies [the *minimum alignment* for
5724   T][align], which is usually the alignment programs are interested
5725   in, and the same value reported by clang's
5726   `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
5727   break real code.
5728 * [The `#[packed]` attribute is no longer silently accepted by the
5729   compiler][packed]. This attribute did nothing and code that
5730   mentioned it likely did not work as intended.
5731 * Associated type defaults are [now behind the
5732   `associated_type_defaults` feature gate][ad]. In 1.1 associated type
5733   defaults *did not work*, but could be mentioned syntactically. As
5734   such this breakage has minimal impact.
5735
5736 Language
5737 --------
5738
5739 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
5740   matching against dereferenceable values.
5741
5742 Libraries
5743 ---------
5744
5745 * The [`Extend`] trait, which grows a collection from an iterator, is
5746   implemented over iterators of references, for `String`, `Vec`,
5747   `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
5748   `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
5749 * The [`iter::once`] function returns an iterator that yields a single
5750   element, and [`iter::empty`] returns an iterator that yields no
5751   elements.
5752 * The [`matches`] and [`rmatches`] methods on `str` return iterators
5753   over substring matches.
5754 * [`Cell`] and [`RefCell`] both implement `Eq`.
5755 * A number of methods for wrapping arithmetic are added to the
5756   integral types, [`wrapping_div`], [`wrapping_rem`],
5757   [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
5758   addition to the existing [`wrapping_add`], [`wrapping_sub`], and
5759   [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
5760   type.. It is illegal for the default arithmetic operations in Rust
5761   to overflow; the desire to wrap must be explicit.
5762 * The `{:#?}` formatting specifier [displays the alternate,
5763   pretty-printed][debugfmt] form of the `Debug` formatter. This
5764   feature was actually introduced prior to 1.0 with little
5765   fanfare.
5766 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
5767   for writing data to formatted strings, similar to [`io::Write`].
5768 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
5769   [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
5770   are used by code generators to emit implementations of [`Debug`].
5771 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
5772   methods that convert case, following Unicode case mapping.
5773 * It is now easier to handle poisoned locks. The [`PoisonError`]
5774   type, returned by failing lock operations, exposes `into_inner`,
5775   `get_ref`, and `get_mut`, which all give access to the inner lock
5776   guard, and allow the poisoned lock to continue to operate. The
5777   `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
5778   poisoned lock without attempting to take the lock.
5779 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
5780   [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
5781   On Windows the `FromRawHandle` trait is implemented for `Stdio`,
5782   and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
5783   `ChildStderr`.
5784 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
5785   malformed input.
5786
5787 Misc
5788 ----
5789
5790 * `rustc` employs smarter heuristics for guessing at [typos].
5791 * `rustc` emits more efficient code for [no-op conversions between
5792   unsafe pointers][nop].
5793 * Fat pointers are now [passed in pairs of immediate arguments][fat],
5794   resulting in faster compile times and smaller code.
5795
5796 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
5797 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
5798 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
5799 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
5800 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
5801 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
5802 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
5803 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
5804 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
5805 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
5806 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
5807 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
5808 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
5809 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
5810 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
5811 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
5812 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
5813 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
5814 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
5815 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
5816 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
5817 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
5818 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
5819 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
5820 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
5821 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
5822 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
5823 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
5824 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
5825 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
5826 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
5827 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
5828 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
5829 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
5830 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
5831 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
5832 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
5833 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
5834 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
5835 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
5836 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
5837 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
5838 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
5839 [align]: https://github.com/rust-lang/rust/pull/25646
5840 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
5841 [typos]: https://github.com/rust-lang/rust/pull/26087
5842 [nop]: https://github.com/rust-lang/rust/pull/26336
5843 [fat]: https://github.com/rust-lang/rust/pull/26411
5844 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
5845 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
5846 [packed]: https://github.com/rust-lang/rust/pull/25541
5847 [ad]: https://github.com/rust-lang/rust/pull/27382
5848 [win]: https://github.com/rust-lang/rust/pull/25350
5849
5850 Version 1.1.0 (2015-06-25)
5851 =========================
5852
5853 * ~850 changes, numerous bugfixes
5854
5855 Highlights
5856 ----------
5857
5858 * The [`std::fs` module has been expanded][fs] to expand the set of
5859   functionality exposed:
5860   * `DirEntry` now supports optimizations like `file_type` and `metadata` which
5861     don't incur a syscall on some platforms.
5862   * A `symlink_metadata` function has been added.
5863   * The `fs::Metadata` structure now lowers to its OS counterpart, providing
5864     access to all underlying information.
5865 * The compiler now contains extended explanations of many errors. When an error
5866   with an explanation occurs the compiler suggests using the `--explain` flag
5867   to read the explanation. Error explanations are also [available online][err-index].
5868 * Thanks to multiple [improvements][sk] to [type checking][pre], as
5869   well as other work, the time to bootstrap the compiler decreased by
5870   32%.
5871
5872 Libraries
5873 ---------
5874
5875 * The [`str::split_whitespace`] method splits a string on unicode
5876   whitespace boundaries.
5877 * On both Windows and Unix, new extension traits provide conversion of
5878   I/O types to and from the underlying system handles. On Unix, these
5879   traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
5880   and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
5881   `TcpListener`, and `UpdSocket`. Further implementations for
5882   `std::process` will be stabilized later.
5883 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
5884   Windows, symlinks can be created with
5885   `std::os::windows::symlink_dir` and
5886   `std::os::windows::symlink_file`.
5887 * The `mpsc::Receiver` type can now be converted into an iterator with
5888   `into_iter` on the [`IntoIterator`] trait.
5889 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
5890   implementation of the [`From`] trait.
5891 * The `Debug` implementation for `RangeFull` [creates output that is
5892   more consistent with other implementations][rf].
5893 * [`Debug` is implemented for `File`][file].
5894 * The `Default` implementation for `Arc` [no longer requires `Sync +
5895   Send`][arc].
5896 * [The `Iterator` methods `count`, `nth`, and `last` have been
5897   overridden for slices to have O(1) performance instead of O(n)][si].
5898 * Incorrect handling of paths on Windows has been improved in both the
5899   compiler and the standard library.
5900 * [`AtomicPtr` gained a `Default` implementation][ap].
5901 * In accordance with Rust's policy on arithmetic overflow `abs` now
5902   [panics on overflow when debug assertions are enabled][abs].
5903 * The [`Cloned`] iterator, which was accidentally left unstable for
5904   1.0 [has been stabilized][c].
5905 * The [`Incoming`] iterator, which iterates over incoming TCP
5906   connections, and which was accidentally unnamable in 1.0, [is now
5907   properly exported][inc].
5908 * [`BinaryHeap`] no longer corrupts itself [when functions called by
5909   `sift_up` or `sift_down` panic][bh].
5910 * The [`split_off`] method of `LinkedList` [no longer corrupts
5911   the list in certain scenarios][ll].
5912
5913 Misc
5914 ----
5915
5916 * Type checking performance [has improved notably][sk] with
5917   [multiple improvements][pre].
5918 * The compiler [suggests code changes][ch] for more errors.
5919 * rustc and it's build system have experimental support for [building
5920   toolchains against MUSL][m] instead of glibc on Linux.
5921 * The compiler defines the `target_env` cfg value, which is used for
5922   distinguishing toolchains that are otherwise for the same
5923   platform. Presently this is set to `gnu` for common GNU Linux
5924   targets and for MinGW targets, and `musl` for MUSL Linux targets.
5925 * The [`cargo rustc`][crc] command invokes a build with custom flags
5926   to rustc.
5927 * [Android executables are always position independent][pie].
5928 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
5929   with `Drop`][drop].
5930
5931 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
5932 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
5933 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
5934 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
5935 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
5936 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
5937 [rf]: https://github.com/rust-lang/rust/pull/24491
5938 [err-index]: https://doc.rust-lang.org/error-index.html
5939 [sk]: https://github.com/rust-lang/rust/pull/24615
5940 [pre]: https://github.com/rust-lang/rust/pull/25323
5941 [file]: https://github.com/rust-lang/rust/pull/24598
5942 [ch]: https://github.com/rust-lang/rust/pull/24683
5943 [arc]: https://github.com/rust-lang/rust/pull/24695
5944 [si]: https://github.com/rust-lang/rust/pull/24701
5945 [ap]: https://github.com/rust-lang/rust/pull/24834
5946 [m]: https://github.com/rust-lang/rust/pull/24777
5947 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
5948 [crc]: https://github.com/rust-lang/cargo/pull/1568
5949 [pie]: https://github.com/rust-lang/rust/pull/24953
5950 [abs]: https://github.com/rust-lang/rust/pull/25441
5951 [c]: https://github.com/rust-lang/rust/pull/25496
5952 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
5953 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
5954 [inc]: https://github.com/rust-lang/rust/pull/25522
5955 [bh]: https://github.com/rust-lang/rust/pull/25856
5956 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
5957 [ll]: https://github.com/rust-lang/rust/pull/26022
5958 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
5959 [drop]: https://github.com/rust-lang/rust/pull/24935
5960
5961 Version 1.0.0 (2015-05-15)
5962 ========================
5963
5964 * ~1500 changes, numerous bugfixes
5965
5966 Highlights
5967 ----------
5968
5969 * The vast majority of the standard library is now `#[stable]`. It is
5970   no longer possible to use unstable features with a stable build of
5971   the compiler.
5972 * Many popular crates on [crates.io] now work on the stable release
5973   channel.
5974 * Arithmetic on basic integer types now [checks for overflow in debug
5975   builds][overflow].
5976
5977 Language
5978 --------
5979
5980 * Several [restrictions have been added to trait coherence][coh] in
5981   order to make it easier for upstream authors to change traits
5982   without breaking downstream code.
5983 * Digits of binary and octal literals are [lexed more eagerly][lex] to
5984   improve error messages and macro behavior. For example, `0b1234` is
5985   now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
5986 * Trait bounds [are always invariant][inv], eliminating the need for
5987   the `PhantomFn` and `MarkerTrait` lang items, which have been
5988   removed.
5989 * ["-" is no longer a valid character in crate names][cr], the `extern crate
5990   "foo" as bar` syntax has been replaced with `extern crate foo as
5991   bar`, and Cargo now automatically translates "-" in *package* names
5992   to underscore for the crate name.
5993 * [Lifetime shadowing is an error][lt].
5994 * [`Send` no longer implies `'static`][send-rfc].
5995 * [UFCS now supports trait-less associated paths][moar-ufcs] like
5996   `MyType::default()`.
5997 * Primitive types [now have inherent methods][prim-inherent],
5998   obviating the need for extension traits like `SliceExt`.
5999 * Methods with `Self: Sized` in their `where` clause are [considered
6000   object-safe][self-sized], allowing many extension traits like
6001   `IteratorExt` to be merged into the traits they extended.
6002 * You can now [refer to associated types][assoc-where] whose
6003   corresponding trait bounds appear only in a `where` clause.
6004 * The final bits of [OIBIT landed][oibit-final], meaning that traits
6005   like `Send` and `Sync` are now library-defined.
6006 * A [Reflect trait][reflect] was introduced, which means that
6007   downcasting via the `Any` trait is effectively limited to concrete
6008   types. This helps retain the potentially-important "parametricity"
6009   property: generic code cannot behave differently for different type
6010   arguments except in minor ways.
6011 * The `unsafe_destructor` feature is now deprecated in favor of the
6012   [new `dropck`][dropck]. This change is a major reduction in unsafe
6013   code.
6014
6015 Libraries
6016 ---------
6017
6018 * The `thread_local` module [has been renamed to `std::thread`][th].
6019 * The methods of `IteratorExt` [have been moved to the `Iterator`
6020   trait itself][ie].
6021 * Several traits that implement Rust's conventions for type
6022   conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
6023   [centralized in the `std::convert` module][con].
6024 * The `FromError` trait [was removed in favor of `From`][fe].
6025 * The basic sleep function [has moved to
6026   `std::thread::sleep_ms`][slp].
6027 * The `splitn` function now takes an `n` parameter that represents the
6028   number of items yielded by the returned iterator [instead of the
6029   number of 'splits'][spl].
6030 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
6031 * [Derived implementations of `PartialOrd` now order enums according
6032   to their explicitly-assigned discriminants][po].
6033 * [Methods for searching strings are generic over `Pattern`s][pat],
6034   implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
6035   some others.
6036 * [In method resolution, object methods are resolved before inherent
6037   methods][meth].
6038 * [`String::from_str` has been deprecated in favor of the `From` impl,
6039   `String::from`][sf].
6040 * [`io::Error` implements `Sync`][ios].
6041 * [The `words` method on `&str` has been replaced with
6042   `split_whitespace`][sw], to avoid answering the tricky question, 'what is
6043   a word?'
6044 * The new path and IO modules are complete and `#[stable]`. This
6045   was the major library focus for this cycle.
6046 * The path API was [revised][path-normalize] to normalize `.`,
6047   adjusting the tradeoffs in favor of the most common usage.
6048 * A large number of remaining APIs in `std` were also stabilized
6049   during this cycle; about 75% of the non-deprecated API surface
6050   is now stable.
6051 * The new [string pattern API][string-pattern] landed, which makes
6052   the string slice API much more internally consistent and flexible.
6053 * A new set of [generic conversion traits][conversion] replaced
6054   many existing ad hoc traits.
6055 * Generic numeric traits were [completely removed][num-traits]. This
6056   was made possible thanks to inherent methods for primitive types,
6057   and the removal gives maximal flexibility for designing a numeric
6058   hierarchy in the future.
6059 * The `Fn` traits are now related via [inheritance][fn-inherit]
6060   and provide ergonomic [blanket implementations][fn-blanket].
6061 * The `Index` and `IndexMut` traits were changed to
6062   [take the index by value][index-value], enabling code like
6063   `hash_map["string"]` to work.
6064 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
6065   `Copy` data is known to be `Clone` as well.
6066
6067 Misc
6068 ----
6069
6070 * Many errors now have extended explanations that can be accessed with
6071   the `--explain` flag to `rustc`.
6072 * Many new examples have been added to the standard library
6073   documentation.
6074 * rustdoc has received a number of improvements focused on completion
6075   and polish.
6076 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
6077 * Much headway was made on ecosystem-wide CI, making it possible
6078   to [compare builds for breakage][ci-compare].
6079
6080
6081 [crates.io]: http://crates.io
6082 [clo]: https://github.com/rust-lang/rust/pull/24034
6083 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
6084 [con]: https://github.com/rust-lang/rust/pull/23875
6085 [cr]: https://github.com/rust-lang/rust/pull/23419
6086 [fe]: https://github.com/rust-lang/rust/pull/23879
6087 [ie]: https://github.com/rust-lang/rust/pull/23300
6088 [inv]: https://github.com/rust-lang/rust/pull/23938
6089 [ios]: https://github.com/rust-lang/rust/pull/24133
6090 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
6091 [lt]: https://github.com/rust-lang/rust/pull/24057
6092 [meth]: https://github.com/rust-lang/rust/pull/24056
6093 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
6094 [po]: https://github.com/rust-lang/rust/pull/24270
6095 [sf]: https://github.com/rust-lang/rust/pull/24517
6096 [slp]: https://github.com/rust-lang/rust/pull/23949
6097 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
6098 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
6099 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
6100 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
6101 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
6102 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
6103 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
6104 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
6105 [self-sized]: https://github.com/rust-lang/rust/pull/22301
6106 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
6107 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
6108 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
6109 [reflect]: https://github.com/rust-lang/rust/pull/23712
6110 [conversion]: https://github.com/rust-lang/rfcs/pull/529
6111 [num-traits]: https://github.com/rust-lang/rust/pull/23549
6112 [index-value]: https://github.com/rust-lang/rust/pull/23601
6113 [dropck]: https://github.com/rust-lang/rfcs/pull/769
6114 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
6115 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
6116 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
6117 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
6118 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
6119
6120
6121 Version 1.0.0-alpha.2 (2015-02-20)
6122 =====================================
6123
6124 * ~1300 changes, numerous bugfixes
6125
6126 * Highlights
6127
6128     * The various I/O modules were [overhauled][io-rfc] to reduce
6129       unnecessary abstractions and provide better interoperation with
6130       the underlying platform. The old `io` module remains temporarily
6131       at `std::old_io`.
6132     * The standard library now [participates in feature gating][feat],
6133       so use of unstable libraries now requires a `#![feature(...)]`
6134       attribute. The impact of this change is [described on the
6135       forum][feat-forum]. [RFC][feat-rfc].
6136
6137 * Language
6138
6139     * `for` loops [now operate on the `IntoIterator` trait][into],
6140       which eliminates the need to call `.iter()`, etc. to iterate
6141       over collections. There are some new subtleties to remember
6142       though regarding what sort of iterators various types yield, in
6143       particular that `for foo in bar { }` yields values from a move
6144       iterator, destroying the original collection. [RFC][into-rfc].
6145     * Objects now have [default lifetime bounds][obj], so you don't
6146       have to write `Box<Trait+'static>` when you don't care about
6147       storing references. [RFC][obj-rfc].
6148     * In types that implement `Drop`, [lifetimes must outlive the
6149       value][drop]. This will soon make it possible to safely
6150       implement `Drop` for types where `#[unsafe_destructor]` is now
6151       required. Read the [gorgeous RFC][drop-rfc] for details.
6152     * The fully qualified <T as Trait>::X syntax lets you set the Self
6153       type for a trait method or associated type. [RFC][ufcs-rfc].
6154     * References to types that implement `Deref<U>` now [automatically
6155       coerce to references][deref] to the dereferenced type `U`,
6156       e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
6157       should eliminate many unsightly uses of `&*`, as when converting
6158       from references to vectors into references to
6159       slices. [RFC][deref-rfc].
6160     * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
6161       `|:|`) is obsolete and closure kind is inferred from context.
6162     * [`Self` is a keyword][Self].
6163
6164 * Libraries
6165
6166     * The `Show` and `String` formatting traits [have been
6167       renamed][fmt] to `Debug` and `Display` to more clearly reflect
6168       their related purposes. Automatically getting a string
6169       conversion to use with `format!("{:?}", something_to_debug)` is
6170       now written `#[derive(Debug)]`.
6171     * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
6172       OsStr}`, provide strings in platform-specific encodings for easier
6173       interop with system APIs. [RFC][osstr-rfc].
6174     * The `boxed::into_raw` and `Box::from_raw` functions [convert
6175       between `Box<T>` and `*mut T`][boxraw], a common pattern for
6176       creating raw pointers.
6177
6178 * Tooling
6179
6180     * Certain long error messages of the form 'expected foo found bar'
6181       are now [split neatly across multiple
6182       lines][multiline]. Examples in the PR.
6183     * On Unix Rust can be [uninstalled][un] by running
6184       `/usr/local/lib/rustlib/uninstall.sh`.
6185     * The `#[rustc_on_unimplemented]` attribute, requiring the
6186       'on_unimplemented' feature, lets rustc [display custom error
6187       messages when a trait is expected to be implemented for a type
6188       but is not][onun].
6189
6190 * Misc
6191
6192     * Rust is tested against a [LALR grammar][lalr], which parses
6193       almost all the Rust files that rustc does.
6194
6195 [boxraw]: https://github.com/rust-lang/rust/pull/21318
6196 [close]: https://github.com/rust-lang/rust/pull/21843
6197 [deref]: https://github.com/rust-lang/rust/pull/21351
6198 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
6199 [drop]: https://github.com/rust-lang/rust/pull/21972
6200 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
6201 [feat]: https://github.com/rust-lang/rust/pull/21248
6202 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
6203 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
6204 [fmt]: https://github.com/rust-lang/rust/pull/21457
6205 [into]: https://github.com/rust-lang/rust/pull/20790
6206 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
6207 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
6208 [lalr]: https://github.com/rust-lang/rust/pull/21452
6209 [multiline]: https://github.com/rust-lang/rust/pull/19870
6210 [obj]: https://github.com/rust-lang/rust/pull/22230
6211 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
6212 [onun]: https://github.com/rust-lang/rust/pull/20889
6213 [osstr]: https://github.com/rust-lang/rust/pull/21488
6214 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
6215 [Self]: https://github.com/rust-lang/rust/pull/22158
6216 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
6217 [un]: https://github.com/rust-lang/rust/pull/22256
6218
6219
6220 Version 1.0.0-alpha (2015-01-09)
6221 ==================================
6222
6223   * ~2400 changes, numerous bugfixes
6224
6225   * Highlights
6226
6227     * The language itself is considered feature complete for 1.0,
6228       though there will be many usability improvements and bugfixes
6229       before the final release.
6230     * Nearly 50% of the public API surface of the standard library has
6231       been declared 'stable'. Those interfaces are unlikely to change
6232       before 1.0.
6233     * The long-running debate over integer types has been
6234       [settled][ints]: Rust will ship with types named `isize` and
6235       `usize`, rather than `int` and `uint`, for pointer-sized
6236       integers. Guidelines will be rolled out during the alpha cycle.
6237     * Most crates that are not `std` have been moved out of the Rust
6238       distribution into the Cargo ecosystem so they can evolve
6239       separately and don't need to be stabilized as quickly, including
6240       'time', 'getopts', 'num', 'regex', and 'term'.
6241     * Documentation continues to be expanded with more API coverage, more
6242       examples, and more in-depth explanations. The guides have been
6243       consolidated into [The Rust Programming Language][trpl].
6244     * "[Rust By Example][rbe]" is now maintained by the Rust team.
6245     * All official Rust binary installers now come with [Cargo], the
6246       Rust package manager.
6247
6248 * Language
6249
6250     * Closures have been [completely redesigned][unboxed] to be
6251       implemented in terms of traits, can now be used as generic type
6252       bounds and thus monomorphized and inlined, or via an opaque
6253       pointer (boxed) as in the old system. The new system is often
6254       referred to as 'unboxed' closures.
6255     * Traits now support [associated types][assoc], allowing families
6256       of related types to be defined together and used generically in
6257       powerful ways.
6258     * Enum variants are [namespaced by their type names][enum].
6259     * [`where` clauses][where] provide a more versatile and attractive
6260       syntax for specifying generic bounds, though the previous syntax
6261       remains valid.
6262     * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
6263       numeric types.
6264     * Rust [no longer has a runtime][rt] of any description, and only
6265       supports OS threads, not green threads.
6266     * At long last, Rust has been overhauled for 'dynamically-sized
6267       types' ([DST]), which integrates 'fat pointers' (object types,
6268       arrays, and `str`) more deeply into the type system, making it
6269       more consistent.
6270     * Rust now has a general [range syntax][range], `i..j`, `i..`, and
6271       `..j` that produce range types and which, when combined with the
6272       `Index` operator and multidispatch, leads to a convenient slice
6273       notation, `[i..j]`.
6274     * The new range syntax revealed an ambiguity in the fixed-length
6275       array syntax, so now fixed length arrays [are written `[T;
6276       N]`][arrays].
6277     * The `Copy` trait is no longer implemented automatically. Unsafe
6278       pointers no longer implement `Sync` and `Send` so types
6279       containing them don't automatically either. `Sync` and `Send`
6280       are now 'unsafe traits' so one can "forcibly" implement them via
6281       `unsafe impl` if a type confirms to the requirements for them
6282       even though the internals do not (e.g. structs containing unsafe
6283       pointers like `Arc`). These changes are intended to prevent some
6284       footguns and are collectively known as [opt-in built-in
6285       traits][oibit] (though `Sync` and `Send` will soon become pure
6286       library types unknown to the compiler).
6287     * Operator traits now take their operands [by value][ops], and
6288       comparison traits can use multidispatch to compare one type
6289       against multiple other types, allowing e.g. `String` to be
6290       compared with `&str`.
6291     * `if let` and `while let` are no longer feature-gated.
6292     * Rust has adopted a more [uniform syntax for escaping unicode
6293       characters][unicode].
6294     * `macro_rules!` [has been declared stable][mac]. Though it is a
6295       flawed system it is sufficiently popular that it must be usable
6296       for 1.0. Effort has gone into [future-proofing][mac-future] it
6297       in ways that will allow other macro systems to be developed in
6298       parallel, and won't otherwise impact the evolution of the
6299       language.
6300     * The prelude has been [pared back significantly][prelude] such
6301       that it is the minimum necessary to support the most pervasive
6302       code patterns, and through [generalized where clauses][where]
6303       many of the prelude extension traits have been consolidated.
6304     * Rust's rudimentary reflection [has been removed][refl], as it
6305       incurred too much code generation for little benefit.
6306     * [Struct variants][structvars] are no longer feature-gated.
6307     * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
6308       known as 'higher-ranked trait bounds', this crucially allows
6309       unboxed closures to work.
6310     * Macros invocations surrounded by parens or square brackets and
6311       not terminated by a semicolon are [parsed as
6312       expressions][macros], which makes expressions like `vec![1i32,
6313       2, 3].len()` work as expected.
6314     * Trait objects now implement their traits automatically, and
6315       traits that can be coerced to objects now must be [object
6316       safe][objsafe].
6317     * Automatically deriving traits is now done with `#[derive(...)]`
6318       not `#[deriving(...)]` for [consistency with other naming
6319       conventions][derive].
6320     * Importing the containing module or enum at the same time as
6321       items or variants they contain is [now done with `self` instead
6322       of `mod`][self], as in use `foo::{self, bar}`
6323     * Glob imports are no longer feature-gated.
6324     * The `box` operator and `box` patterns have been feature-gated
6325       pending a redesign. For now unique boxes should be allocated
6326       like other containers, with `Box::new`.
6327
6328 * Libraries
6329
6330     * A [series][coll1] of [efforts][coll2] to establish
6331       [conventions][coll3] for collections types has resulted in API
6332       improvements throughout the standard library.
6333     * New [APIs for error handling][err] provide ergonomic interop
6334       between error types, and [new conventions][err-conv] describe
6335       more clearly the recommended error handling strategies in Rust.
6336     * The `fail!` macro has been renamed to [`panic!`][panic] so that
6337       it is easier to discuss failure in the context of error handling
6338       without making clarifications as to whether you are referring to
6339       the 'fail' macro or failure more generally.
6340     * On Linux, `OsRng` prefers the new, more reliable `getrandom`
6341       syscall when available.
6342     * The 'serialize' crate has been renamed 'rustc-serialize' and
6343       moved out of the distribution to Cargo. Although it is widely
6344       used now, it is expected to be superseded in the near future.
6345     * The `Show` formatter, typically implemented with
6346       `#[derive(Show)]` is [now requested with the `{:?}`
6347       specifier][show] and is intended for use by all types, for uses
6348       such as `println!` debugging. The new `String` formatter must be
6349       implemented by hand, uses the `{}` specifier, and is intended
6350       for full-fidelity conversions of things that can logically be
6351       represented as strings.
6352
6353 * Tooling
6354
6355     * [Flexible target specification][flex] allows rustc's code
6356       generation to be configured to support otherwise-unsupported
6357       platforms.
6358     * Rust comes with rust-gdb and rust-lldb scripts that launch their
6359       respective debuggers with Rust-appropriate pretty-printing.
6360     * The Windows installation of Rust is distributed with the
6361       MinGW components currently required to link binaries on that
6362       platform.
6363
6364 * Misc
6365
6366     * Nullable enum optimizations have been extended to more types so
6367       that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
6368       space than the inner types themselves.
6369     * Work has begun on supporting AArch64.
6370
6371 [Cargo]: https://crates.io
6372 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
6373 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
6374 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
6375 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
6376 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
6377 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
6378 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
6379 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
6380 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
6381 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
6382 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
6383 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
6384 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
6385 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
6386 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
6387 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
6388 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
6389 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
6390 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
6391 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
6392 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
6393 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
6394 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
6395 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
6396 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
6397 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
6398 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
6399 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
6400 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
6401 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
6402 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
6403 [trpl]: https://doc.rust-lang.org/book/index.html
6404 [rbe]: http://rustbyexample.com/
6405
6406
6407 Version 0.12.0 (2014-10-09)
6408 =============================
6409
6410   * ~1900 changes, numerous bugfixes
6411
6412   * Highlights
6413
6414     * The introductory documentation (now called The Rust Guide) has
6415       been completely rewritten, as have a number of supplementary
6416       guides.
6417     * Rust's package manager, Cargo, continues to improve and is
6418       sometimes considered to be quite awesome.
6419     * Many API's in `std` have been reviewed and updated for
6420       consistency with the in-development Rust coding
6421       guidelines. The standard library documentation tracks
6422       stabilization progress.
6423     * Minor libraries have been moved out-of-tree to the rust-lang org
6424       on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
6425       be installed with Cargo.
6426     * Lifetime elision allows lifetime annotations to be left off of
6427       function declarations in many common scenarios.
6428     * Rust now works on 64-bit Windows.
6429
6430   * Language
6431     * Indexing can be overloaded with the `Index` and `IndexMut`
6432       traits.
6433     * The `if let` construct takes a branch only if the `let` pattern
6434       matches, currently behind the 'if_let' feature gate.
6435     * 'where clauses', a more flexible syntax for specifying trait
6436       bounds that is more aesthetic, have been added for traits and
6437       free functions. Where clauses will in the future make it
6438       possible to constrain associated types, which would be
6439       impossible with the existing syntax.
6440     * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
6441       the 'slicing_syntax' feature gate, and can be overloaded with
6442       the `Slice` or `SliceMut` traits.
6443     * The syntax for matching of sub-slices has been changed to use a
6444       postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
6445       consistency with other uses of `..` and to future-proof
6446       potential additional uses of the syntax.
6447     * The syntax for matching inclusive ranges in patterns has changed
6448       from `0..3` to `0...4` to be consistent with the exclusive range
6449       syntax for slicing.
6450     * Matching of sub-slices in non-tail positions (e.g.  `[a.., b,
6451       c]`) has been put behind the 'advanced_slice_patterns' feature
6452       gate and may be removed in the future.
6453     * Components of tuples and tuple structs can be extracted using
6454       the `value.0` syntax, currently behind the `tuple_indexing`
6455       feature gate.
6456     * The `#[crate_id]` attribute is no longer supported; versioning
6457       is handled by the package manager.
6458     * Renaming crate imports are now written `extern crate foo as bar`
6459       instead of `extern crate bar = foo`.
6460     * Renaming use statements are now written `use foo as bar` instead
6461       of `use bar = foo`.
6462     * `let` and `match` bindings and argument names in macros are now
6463       hygienic.
6464     * The new, more efficient, closure types ('unboxed closures') have
6465       been added under a feature gate, 'unboxed_closures'. These will
6466       soon replace the existing closure types, once higher-ranked
6467       trait lifetimes are added to the language.
6468     * `move` has been added as a keyword, for indicating closures
6469       that capture by value.
6470     * Mutation and assignment is no longer allowed in pattern guards.
6471     * Generic structs and enums can now have trait bounds.
6472     * The `Share` trait is now called `Sync` to free up the term
6473       'shared' to refer to 'shared reference' (the default reference
6474       type.
6475     * Dynamically-sized types have been mostly implemented,
6476       unifying the behavior of fat-pointer types with the rest of the
6477       type system.
6478     * As part of dynamically-sized types, the `Sized` trait has been
6479       introduced, which qualifying types implement by default, and
6480       which type parameters expect by default. To specify that a type
6481       parameter does not need to be sized, write `<Sized? T>`. Most
6482       types are `Sized`, notable exceptions being unsized arrays
6483       (`[T]`) and trait types.
6484     * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
6485     * Lifetime bounds can now be applied to type parameters and object
6486       types.
6487     * The old, reference counted GC type, `Gc<T>` which was once
6488       denoted by the `@` sigil, has finally been removed. GC will be
6489       revisited in the future.
6490
6491   * Libraries
6492     * Library documentation has been improved for a number of modules.
6493     * Bit-vectors, collections::bitv has been modernized.
6494     * The url crate is deprecated in favor of
6495       http://github.com/servo/rust-url, which can be installed with
6496       Cargo.
6497     * Most I/O stream types can be cloned and subsequently closed from
6498       a different thread.
6499     * A `std::time::Duration` type has been added for use in I/O
6500       methods that rely on timers, as well as in the 'time' crate's
6501       `Timespec` arithmetic.
6502     * The runtime I/O abstraction layer that enabled the green thread
6503       scheduler to do non-thread-blocking I/O has been removed, along
6504       with the libuv-based implementation employed by the green thread
6505       scheduler. This will greatly simplify the future I/O work.
6506     * `collections::btree` has been rewritten to have a more
6507       idiomatic and efficient design.
6508
6509   * Tooling
6510     * rustdoc output now indicates the stability levels of API's.
6511     * The `--crate-name` flag can specify the name of the crate
6512       being compiled, like `#[crate_name]`.
6513     * The `-C metadata` specifies additional metadata to hash into
6514       symbol names, and `-C extra-filename` specifies additional
6515       information to put into the output filename, for use by the
6516       package manager for versioning.
6517     * debug info generation has continued to improve and should be
6518       more reliable under both gdb and lldb.
6519     * rustc has experimental support for compiling in parallel
6520       using the `-C codegen-units` flag.
6521     * rustc no longer encodes rpath information into binaries by
6522       default.
6523
6524   * Misc
6525     * Stack usage has been optimized with LLVM lifetime annotations.
6526     * Official Rust binaries on Linux are more compatible with older
6527       kernels and distributions, built on CentOS 5.10.
6528
6529
6530 Version 0.11.0 (2014-07-02)
6531 ==========================
6532
6533   * ~1700 changes, numerous bugfixes
6534
6535   * Language
6536     * ~[T] has been removed from the language. This type is superseded by
6537       the Vec<T> type.
6538     * ~str has been removed from the language. This type is superseded by
6539       the String type.
6540     * ~T has been removed from the language. This type is superseded by the
6541       Box<T> type.
6542     * @T has been removed from the language. This type is superseded by the
6543       standard library's std::gc::Gc<T> type.
6544     * Struct fields are now all private by default.
6545     * Vector indices and shift amounts are both required to be a `uint`
6546       instead of any integral type.
6547     * Byte character, byte string, and raw byte string literals are now all
6548       supported by prefixing the normal literal with a `b`.
6549     * Multiple ABIs are no longer allowed in an ABI string
6550     * The syntax for lifetimes on closures/procedures has been tweaked
6551       slightly: `<'a>|A, B|: 'b + K -> T`
6552     * Floating point modulus has been removed from the language; however it
6553       is still provided by a library implementation.
6554     * Private enum variants are now disallowed.
6555     * The `priv` keyword has been removed from the language.
6556     * A closure can no longer be invoked through a &-pointer.
6557     * The `use foo, bar, baz;` syntax has been removed from the language.
6558     * The transmute intrinsic no longer works on type parameters.
6559     * Statics now allow blocks/items in their definition.
6560     * Trait bounds are separated from objects with + instead of : now.
6561     * Objects can no longer be read while they are mutably borrowed.
6562     * The address of a static is now marked as insignificant unless the
6563       #[inline(never)] attribute is placed it.
6564     * The #[unsafe_destructor] attribute is now behind a feature gate.
6565     * Struct literals are no longer allowed in ambiguous positions such as
6566       if, while, match, and for..in.
6567     * Declaration of lang items and intrinsics are now feature-gated by
6568       default.
6569     * Integral literals no longer default to `int`, and floating point
6570       literals no longer default to `f64`. Literals must be suffixed with an
6571       appropriate type if inference cannot determine the type of the
6572       literal.
6573     * The Box<T> type is no longer implicitly borrowed to &mut T.
6574     * Procedures are now required to not capture borrowed references.
6575
6576   * Libraries
6577     * The standard library is now a "facade" over a number of underlying
6578       libraries. This means that development on the standard library should
6579       be speedier due to smaller crates, as well as a clearer line between
6580       all dependencies.
6581     * A new library, libcore, lives under the standard library's facade
6582       which is Rust's "0-assumption" library, suitable for embedded and
6583       kernel development for example.
6584     * A regex crate has been added to the standard distribution. This crate
6585       includes statically compiled regular expressions.
6586     * The unwrap/unwrap_err methods on Result require a Show bound for
6587       better error messages.
6588     * The return types of the std::comm primitives have been centralized
6589       around the Result type.
6590     * A number of I/O primitives have gained the ability to time out their
6591       operations.
6592     * A number of I/O primitives have gained the ability to close their
6593       reading/writing halves to cancel pending operations.
6594     * Reverse iterator methods have been removed in favor of `rev()` on
6595       their forward-iteration counterparts.
6596     * A bitflags! macro has been added to enable easy interop with C and
6597       management of bit flags.
6598     * A debug_assert! macro is now provided which is disabled when
6599       `--cfg ndebug` is passed to the compiler.
6600     * A graphviz crate has been added for creating .dot files.
6601     * The std::cast module has been migrated into std::mem.
6602     * The std::local_data api has been migrated from freestanding functions
6603       to being based on methods.
6604     * The Pod trait has been renamed to Copy.
6605     * jemalloc has been added as the default allocator for types.
6606     * The API for allocating memory has been changed to use proper alignment
6607       and sized deallocation
6608     * Connecting a TcpStream or binding a TcpListener is now based on a
6609       string address and a u16 port. This allows connecting to a hostname as
6610       opposed to an IP.
6611     * The Reader trait now contains a core method, read_at_least(), which
6612       correctly handles many repeated 0-length reads.
6613     * The process-spawning API is now centered around a builder-style
6614       Command struct.
6615     * The :? printing qualifier has been moved from the standard library to
6616       an external libdebug crate.
6617     * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
6618       have been renamed to Eq/Ord.
6619     * The select/plural methods have been removed from format!. The escapes
6620       for { and } have also changed from \{ and \} to {{ and }},
6621       respectively.
6622     * The TaskBuilder API has been re-worked to be a true builder, and
6623       extension traits for spawning native/green tasks have been added.
6624
6625   * Tooling
6626     * All breaking changes to the language or libraries now have their
6627       commit message annotated with `[breaking-change]` to allow for easy
6628       discovery of breaking changes.
6629     * The compiler will now try to suggest how to annotate lifetimes if a
6630       lifetime-related error occurs.
6631     * Debug info continues to be improved greatly with general bug fixes and
6632       better support for situations like link time optimization (LTO).
6633     * Usage of syntax extensions when cross-compiling has been fixed.
6634     * Functionality equivalent to GCC & Clang's -ffunction-sections,
6635       -fdata-sections and --gc-sections has been enabled by default
6636     * The compiler is now stricter about where it will load module files
6637       from when a module is declared via `mod foo;`.
6638     * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
6639       Syntax extensions are now discovered via a "plugin registrar" type
6640       which will be extended in the future to other various plugins.
6641     * Lints have been restructured to allow for dynamically loadable lints.
6642     * A number of rustdoc improvements:
6643       * The HTML output has been visually redesigned.
6644       * Markdown is now powered by hoedown instead of sundown.
6645       * Searching heuristics have been greatly improved.
6646       * The search index has been reduced in size by a great amount.
6647       * Cross-crate documentation via `pub use` has been greatly improved.
6648       * Primitive types are now hyperlinked and documented.
6649     * Documentation has been moved from static.rust-lang.org/doc to
6650       doc.rust-lang.org
6651     * A new sandbox, play.rust-lang.org, is available for running and
6652       sharing rust code examples on-line.
6653     * Unused attributes are now more robustly warned about.
6654     * The dead_code lint now warns about unused struct fields.
6655     * Cross-compiling to iOS is now supported.
6656     * Cross-compiling to mipsel is now supported.
6657     * Stability attributes are now inherited by default and no longer apply
6658       to intra-crate usage, only inter-crate usage.
6659     * Error message related to non-exhaustive match expressions have been
6660       greatly improved.
6661
6662
6663 Version 0.10 (2014-04-03)
6664 =========================
6665
6666   * ~1500 changes, numerous bugfixes
6667
6668   * Language
6669     * A new RFC process is now in place for modifying the language.
6670     * Patterns with `@`-pointers have been removed from the language.
6671     * Patterns with unique vectors (`~[T]`) have been removed from the
6672       language.
6673     * Patterns with unique strings (`~str`) have been removed from the
6674       language.
6675     * `@str` has been removed from the language.
6676     * `@[T]` has been removed from the language.
6677     * `@self` has been removed from the language.
6678     * `@Trait` has been removed from the language.
6679     * Headers on `~` allocations which contain `@` boxes inside the type for
6680       reference counting have been removed.
6681     * The semantics around the lifetimes of temporary expressions have changed,
6682       see #3511 and #11585 for more information.
6683     * Cross-crate syntax extensions are now possible, but feature gated. See
6684       #11151 for more information. This includes both `macro_rules!` macros as
6685       well as syntax extensions such as `format!`.
6686     * New lint modes have been added, and older ones have been turned on to be
6687       warn-by-default.
6688       * Unnecessary parentheses
6689       * Uppercase statics
6690       * Camel Case types
6691       * Uppercase variables
6692       * Publicly visible private types
6693       * `#[deriving]` with raw pointers
6694     * Unsafe functions can no longer be coerced to closures.
6695     * Various obscure macros such as `log_syntax!` are now behind feature gates.
6696     * The `#[simd]` attribute is now behind a feature gate.
6697     * Visibility is no longer allowed on `extern crate` statements, and
6698       unnecessary visibility (`priv`) is no longer allowed on `use` statements.
6699     * Trailing commas are now allowed in argument lists and tuple patterns.
6700     * The `do` keyword has been removed, it is now a reserved keyword.
6701     * Default type parameters have been implemented, but are feature gated.
6702     * Borrowed variables through captures in closures are now considered soundly.
6703     * `extern mod` is now `extern crate`
6704     * The `Freeze` trait has been removed.
6705     * The `Share` trait has been added for types that can be shared among
6706       threads.
6707     * Labels in macros are now hygienic.
6708     * Expression/statement macro invocations can be delimited with `{}` now.
6709     * Treatment of types allowed in `static mut` locations has been tweaked.
6710     * The `*` and `.` operators are now overloadable through the `Deref` and
6711       `DerefMut` traits.
6712     * `~Trait` and `proc` no longer have `Send` bounds by default.
6713     * Partial type hints are now supported with the `_` type marker.
6714     * An `Unsafe` type was introduced for interior mutability. It is now
6715       considered undefined to transmute from `&T` to `&mut T` without using the
6716       `Unsafe` type.
6717     * The #[linkage] attribute was implemented for extern statics/functions.
6718     * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
6719     * `Pod` was renamed to `Copy`.
6720
6721   * Libraries
6722     * The `libextra` library has been removed. It has now been decomposed into
6723       component libraries with smaller and more focused nuggets of
6724       functionality. The full list of libraries can be found on the
6725       documentation index page.
6726     * std: `std::condition` has been removed. All I/O errors are now propagated
6727       through the `Result` type. In order to assist with error handling, a
6728       `try!` macro for unwrapping errors with an early return and a lint for
6729       unused results has been added. See #12039 for more information.
6730     * std: The `vec` module has been renamed to `slice`.
6731     * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
6732       This will become the only growable vector in the future.
6733     * std: `std::io` now has more public re-exports. Types such as `BufferedReader`
6734       are now found at `std::io::BufferedReader` instead of
6735       `std::io::buffered::BufferedReader`.
6736     * std: `print` and `println` are no longer in the prelude, the `print!` and
6737       `println!` macros are intended to be used instead.
6738     * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
6739       attempts to statically prevent cycles.
6740     * std: The standard distribution is adopting the policy of pushing failure
6741       to the user rather than failing in libraries. Many functions (such as
6742       `slice::last()`) now return `Option<T>` instead of `T` + failing.
6743     * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
6744       deriving mode: `#[deriving(Show)]`.
6745     * std: `ToStr` is now implemented for all types implementing `Show`.
6746     * std: The formatting trait methods now take `&self` instead of `&T`
6747     * std: The `invert()` method on iterators has been renamed to `rev()`
6748     * std: `std::num` has seen a reduction in the genericity of its traits,
6749       consolidating functionality into a few core traits.
6750     * std: Backtraces are now printed on task failure if the environment
6751       variable `RUST_BACKTRACE` is present.
6752     * std: Naming conventions for iterators have been standardized. More details
6753       can be found on the wiki's style guide.
6754     * std: `eof()` has been removed from the `Reader` trait. Specific types may
6755       still implement the function.
6756     * std: Networking types are now cloneable to allow simultaneous reads/writes.
6757     * std: `assert_approx_eq!` has been removed
6758     * std: The `e` and `E` formatting specifiers for floats have been added to
6759       print them in exponential notation.
6760     * std: The `Times` trait has been removed
6761     * std: Indications of variance and opting out of builtin bounds is done
6762       through marker types in `std::kinds::marker` now
6763     * std: `hash` has been rewritten, `IterBytes` has been removed, and
6764       `#[deriving(Hash)]` is now possible.
6765     * std: `SharedChan` has been removed, `Sender` is now cloneable.
6766     * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
6767     * std: `Chan::new` is now `channel()`.
6768     * std: A new synchronous channel type has been implemented.
6769     * std: A `select!` macro is now provided for selecting over `Receiver`s.
6770     * std: `hashmap` and `trie` have been moved to `libcollections`
6771     * std: `run` has been rolled into `io::process`
6772     * std: `assert_eq!` now uses `{}` instead of `{:?}`
6773     * std: The equality and comparison traits have seen some reorganization.
6774     * std: `rand` has moved to `librand`.
6775     * std: `to_{lower,upper}case` has been implemented for `char`.
6776     * std: Logging has been moved to `liblog`.
6777     * collections: `HashMap` has been rewritten for higher performance and less
6778       memory usage.
6779     * native: The default runtime is now `libnative`. If `libgreen` is desired,
6780       it can be booted manually. The runtime guide has more information and
6781       examples.
6782     * native: All I/O functionality except signals has been implemented.
6783     * green: Task spawning with `libgreen` has been optimized with stack caching
6784       and various trimming of code.
6785     * green: Tasks spawned by `libgreen` now have an unmapped guard page.
6786     * sync: The `extra::sync` module has been updated to modern rust (and moved
6787       to the `sync` library), tweaking and improving various interfaces while
6788       dropping redundant functionality.
6789     * sync: A new `Barrier` type has been added to the `sync` library.
6790     * sync: An efficient mutex for native and green tasks has been implemented.
6791     * serialize: The `base64` module has seen some improvement. It treats
6792       newlines better, has non-string error values, and has seen general
6793       cleanup.
6794     * fourcc: A `fourcc!` macro was introduced
6795     * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
6796       hexadecimal literal.
6797
6798   * Tooling
6799     * `rustpkg` has been deprecated and removed from the main repository. Its
6800       replacement, `cargo`, is under development.
6801     * Nightly builds of rust are now available
6802     * The memory usage of rustc has been improved many times throughout this
6803       release cycle.
6804     * The build process supports disabling rpath support for the rustc binary
6805       itself.
6806     * Code generation has improved in some cases, giving more information to the
6807       LLVM optimization passes to enable more extensive optimizations.
6808     * Debuginfo compatibility with lldb on OSX has been restored.
6809     * The master branch is now gated on an android bot, making building for
6810       android much more reliable.
6811     * Output flags have been centralized into one `--emit` flag.
6812     * Crate type flags have been centralized into one `--crate-type` flag.
6813     * Codegen flags have been consolidated behind a `-C` flag.
6814     * Linking against outdated crates now has improved error messages.
6815     * Error messages with lifetimes will often suggest how to annotate the
6816       function to fix the error.
6817     * Many more types are documented in the standard library, and new guides
6818       were written.
6819     * Many `rustdoc` improvements:
6820       * code blocks are syntax highlighted.
6821       * render standalone markdown files.
6822       * the --test flag tests all code blocks by default.
6823       * exported macros are displayed.
6824       * re-exported types have their documentation inlined at the location of the
6825         first re-export.
6826       * search works across crates that have been rendered to the same output
6827         directory.
6828
6829
6830 Version 0.9 (2014-01-09)
6831 ==========================
6832
6833    * ~1800 changes, numerous bugfixes
6834
6835    * Language
6836       * The `float` type has been removed. Use `f32` or `f64` instead.
6837       * A new facility for enabling experimental features (feature gating) has
6838         been added, using the crate-level `#[feature(foo)]` attribute.
6839       * Managed boxes (@) are now behind a feature gate
6840         (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
6841         standard library's `Gc` or `Rc` types instead.
6842       * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
6843       * Jumping back to the top of a loop is now done with `continue` instead of
6844         `loop`.
6845       * Strings can no longer be mutated through index assignment.
6846       * Raw strings can be created via the basic `r"foo"` syntax or with matched
6847         hash delimiters, as in `r###"foo"###`.
6848       * `~fn` is now written `proc (args) -> retval { ... }` and may only be
6849         called once.
6850       * The `&fn` type is now written `|args| -> ret` to match the literal form.
6851       * `@fn`s have been removed.
6852       * `do` only works with procs in order to make it obvious what the cost
6853         of `do` is.
6854       * Single-element tuple-like structs can no longer be dereferenced to
6855         obtain the inner value. A more comprehensive solution for overloading
6856         the dereference operator will be provided in the future.
6857       * The `#[link(...)]` attribute has been replaced with
6858         `#[crate_id = "name#vers"]`.
6859       * Empty `impl`s must be terminated with empty braces and may not be
6860         terminated with a semicolon.
6861       * Keywords are no longer allowed as lifetime names; the `self` lifetime
6862         no longer has any special meaning.
6863       * The old `fmt!` string formatting macro has been removed.
6864       * `printf!` and `printfln!` (old-style formatting) removed in favor of
6865         `print!` and `println!`.
6866       * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
6867       * The `extern mod foo (name = "bar")` syntax has been removed. Use
6868         `extern mod foo = "bar"` instead.
6869       * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
6870       * Macros can have attributes.
6871       * Macros can expand to items with attributes.
6872       * Macros can expand to multiple items.
6873       * The `asm!` macro is feature-gated (`#[feature(asm)]`).
6874       * Comments may be nested.
6875       * Values automatically coerce to trait objects they implement, without
6876         an explicit `as`.
6877       * Enum discriminants are no longer an entire word but as small as needed to
6878         contain all the variants. The `repr` attribute can be used to override
6879         the discriminant size, as in `#[repr(int)]` for integer-sized, and
6880         `#[repr(C)]` to match C enums.
6881       * Non-string literals are not allowed in attributes (they never worked).
6882       * The FFI now supports variadic functions.
6883       * Octal numeric literals, as in `0o7777`.
6884       * The `concat!` syntax extension performs compile-time string concatenation.
6885       * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
6886         removed as Rust no longer uses segmented stacks.
6887       * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
6888       * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
6889         not `*`; ignoring remaining fields of a struct is also done with `..`,
6890         not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
6891       * `rustc` supports the "win64" calling convention via `extern "win64"`.
6892       * `rustc` supports the "system" calling convention, which defaults to the
6893         preferred convention for the target platform, "stdcall" on 32-bit Windows,
6894         "C" elsewhere.
6895       * The `type_overflow` lint (default: warn) checks literals for overflow.
6896       * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
6897       * The `attribute_usage` lint (default: warn) warns about unknown
6898         attributes.
6899       * The `unknown_features` lint (default: warn) warns about unknown
6900         feature gates.
6901       * The `dead_code` lint (default: warn) checks for dead code.
6902       * Rust libraries can be linked statically to one another
6903       * `#[link_args]` is behind the `link_args` feature gate.
6904       * Native libraries are now linked with `#[link(name = "foo")]`
6905       * Native libraries can be statically linked to a rust crate
6906         (`#[link(name = "foo", kind = "static")]`).
6907       * Native OS X frameworks are now officially supported
6908         (`#[link(name = "foo", kind = "framework")]`).
6909       * The `#[thread_local]` attribute creates thread-local (not task-local)
6910         variables. Currently behind the `thread_local` feature gate.
6911       * The `return` keyword may be used in closures.
6912       * Types that can be copied via a memcpy implement the `Pod` kind.
6913       * The `cfg` attribute can now be used on struct fields and enum variants.
6914
6915    * Libraries
6916       * std: The `option` and `result` API's have been overhauled to make them
6917         simpler, more consistent, and more composable.
6918       * std: The entire `std::io` module has been replaced with one that is
6919         more comprehensive and that properly interfaces with the underlying
6920         scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
6921         implemented.
6922       * std: `io::util` contains a number of useful implementations of
6923         `Reader` and `Writer`, including `NullReader`, `NullWriter`,
6924         `ZeroReader`, `TeeReader`.
6925       * std: The reference counted pointer type `extra::rc` moved into std.
6926       * std: The `Gc` type in the `gc` module will replace `@` (it is currently
6927         just a wrapper around it).
6928       * std: The `Either` type has been removed.
6929       * std: `fmt::Default` can be implemented for any type to provide default
6930         formatting to the `format!` macro, as in `format!("{}", myfoo)`.
6931       * std: The `rand` API continues to be tweaked.
6932       * std: The `rust_begin_unwind` function, useful for inserting breakpoints
6933         on failure in gdb, is now named `rust_fail`.
6934       * std: The `each_key` and `each_value` methods on `HashMap` have been
6935         replaced by the `keys` and `values` iterators.
6936       * std: Functions dealing with type size and alignment have moved from the
6937         `sys` module to the `mem` module.
6938       * std: The `path` module was written and API changed.
6939       * std: `str::from_utf8` has been changed to cast instead of allocate.
6940       * std: `starts_with` and `ends_with` methods added to vectors via the
6941         `ImmutableEqVector` trait, which is in the prelude.
6942       * std: Vectors can be indexed with the `get_opt` method, which returns `None`
6943         if the index is out of bounds.
6944       * std: Task failure no longer propagates between tasks, as the model was
6945         complex, expensive, and incompatible with thread-based tasks.
6946       * std: The `Any` type can be used for dynamic typing.
6947       * std: `~Any` can be passed to the `fail!` macro and retrieved via
6948         `task::try`.
6949       * std: Methods that produce iterators generally do not have an `_iter`
6950         suffix now.
6951       * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
6952         roots (mutable fields, etc.). Use instead of e.g. `@mut`.
6953       * std: `util::ignore` renamed to `prelude::drop`.
6954       * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
6955         trait.
6956       * std: `vec::raw` has seen a lot of cleanup and API changes.
6957       * std: The standard library no longer includes any C++ code, and very
6958         minimal C, eliminating the dependency on libstdc++.
6959       * std: Runtime scheduling and I/O functionality has been factored out into
6960         extensible interfaces and is now implemented by two different crates:
6961         libnative, for native threading and I/O; and libgreen, for green threading
6962         and I/O. This paves the way for using the standard library in more limited
6963         embedded environments.
6964       * std: The `comm` module has been rewritten to be much faster, have a
6965         simpler, more consistent API, and to work for both native and green
6966         threading.
6967       * std: All libuv dependencies have been moved into the rustuv crate.
6968       * native: New implementations of runtime scheduling on top of OS threads.
6969       * native: New native implementations of TCP, UDP, file I/O, process spawning,
6970         and other I/O.
6971       * green: The green thread scheduler and message passing types are almost
6972         entirely lock-free.
6973       * extra: The `flatpipes` module had bitrotted and was removed.
6974       * extra: All crypto functions have been removed and Rust now has a policy of
6975         not reimplementing crypto in the standard library. In the future crypto
6976         will be provided by external crates with bindings to established libraries.
6977       * extra: `c_vec` has been modernized.
6978       * extra: The `sort` module has been removed. Use the `sort` method on
6979         mutable slices.
6980
6981    * Tooling
6982       * The `rust` and `rusti` commands have been removed, due to lack of
6983         maintenance.
6984       * `rustdoc` was completely rewritten.
6985       * `rustdoc` can test code examples in documentation.
6986       * `rustpkg` can test packages with the argument, 'test'.
6987       * `rustpkg` supports arbitrary dependencies, including C libraries.
6988       * `rustc`'s support for generating debug info is improved again.
6989       * `rustc` has better error reporting for unbalanced delimiters.
6990       * `rustc`'s JIT support was removed due to bitrot.
6991       * Executables and static libraries can be built with LTO (-Z lto)
6992       * `rustc` adds a `--dep-info` flag for communicating dependencies to
6993         build tools.
6994
6995
6996 Version 0.8 (2013-09-26)
6997 ============================
6998
6999    * ~2200 changes, numerous bugfixes
7000
7001    * Language
7002       * The `for` loop syntax has changed to work with the `Iterator` trait.
7003       * At long last, unwinding works on Windows.
7004       * Default methods are ready for use.
7005       * Many trait inheritance bugs fixed.
7006       * Owned and borrowed trait objects work more reliably.
7007       * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
7008       * rustc can omit emission of code for the `debug!` macro if it is passed
7009         `--cfg ndebug`
7010       * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
7011         for foo.rs, then foo/mod.rs, and will generate an error when both are
7012         present.
7013       * Strings no longer contain trailing nulls. The new `std::c_str` module
7014         provides new mechanisms for converting to C strings.
7015       * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
7016       * The FFI has been overhauled such that foreign functions are called directly,
7017         instead of through a stack-switching wrapper.
7018       * Calling a foreign function must be done through a Rust function with the
7019         `#[fixed_stack_segment]` attribute.
7020       * The `externfn!` macro can be used to declare both a foreign function and
7021         a `#[fixed_stack_segment]` wrapper at once.
7022       * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
7023       * `unsafe` is no longer allowed on extern fns - they are all unsafe.
7024       * `priv` is disallowed everywhere except for struct fields and enum variants.
7025       * `&T` (besides `&'static T`) is no longer allowed in `@T`.
7026       * `ref` bindings in irrefutable patterns work correctly now.
7027       * `char` is now prevented from containing invalid code points.
7028       * Casting to `bool` is no longer allowed.
7029       * `\0` is now accepted as an escape in chars and strings.
7030       * `yield` is a reserved keyword.
7031       * `typeof` is a reserved keyword.
7032       * Crates may be imported by URL with `extern mod foo = "url";`.
7033       * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
7034       * Static vectors can be initialized with repeating elements,
7035         e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
7036       * Static structs can be initialized with functional record update,
7037         e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
7038       * `cfg!` can be used to conditionally execute code based on the crate
7039         configuration, similarly to `#[cfg(...)]`.
7040       * The `unnecessary_qualification` lint detects unneeded module
7041         prefixes (default: allow).
7042       * Arithmetic operations have been implemented on the SIMD types in
7043         `std::unstable::simd`.
7044       * Exchange allocation headers were removed, reducing memory usage.
7045       * `format!` implements a completely new, extensible, and higher-performance
7046         string formatting system. It will replace `fmt!`.
7047       * `print!` and `println!` write formatted strings (using the `format!`
7048         extension) to stdout.
7049       * `write!` and `writeln!` write formatted strings (using the `format!`
7050         extension) to the new Writers in `std::rt::io`.
7051       * The library section in which a function or static is placed may
7052         be specified with `#[link_section = "..."]`.
7053       * The `proto!` syntax extension for defining bounded message protocols
7054         was removed.
7055       * `macro_rules!` is hygienic for `let` declarations.
7056       * The `#[export_name]` attribute specifies the name of a symbol.
7057       * `unreachable!` can be used to indicate unreachable code, and fails
7058         if executed.
7059
7060    * Libraries
7061       * std: Transitioned to the new runtime, written in Rust.
7062       * std: Added an experimental I/O library, `rt::io`, based on the new
7063         runtime.
7064       * std: A new generic `range` function was added to the prelude, replacing
7065         `uint::range` and friends.
7066       * std: `range_rev` no longer exists. Since range is an iterator it can be
7067         reversed with `range(lo, hi).invert()`.
7068       * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
7069         renamed to `unwrap_or`.
7070       * std: The `iterator` module was renamed to `iter`.
7071       * std: Integral types now support the `checked_add`, `checked_sub`, and
7072         `checked_mul` operations for detecting overflow.
7073       * std: Many methods in `str`, `vec`, `option, `result` were renamed for
7074         consistency.
7075       * std: Methods are standardizing on conventions for casting methods:
7076         `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
7077         and cheap casts.
7078       * std: The `CString` type in `c_str` provides new ways to convert to and
7079         from C strings.
7080       * std: `DoubleEndedIterator` can yield elements in two directions.
7081       * std: The `mut_split` method on vectors partitions an `&mut [T]` into
7082         two splices.
7083       * std: `str::from_bytes` renamed to `str::from_utf8`.
7084       * std: `pop_opt` and `shift_opt` methods added to vectors.
7085       * std: The task-local data interface no longer uses @, and keys are
7086         no longer function pointers.
7087       * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
7088       * std: Added `SharedPort` to `comm`.
7089       * std: `Eq` has a default method for `ne`; only `eq` is required
7090         in implementations.
7091       * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
7092         is required in implementations.
7093       * std: `is_utf8` performance is improved, impacting many string functions.
7094       * std: `os::MemoryMap` provides cross-platform mmap.
7095       * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
7096         are not 'in-bounds' are considered undefined.
7097       * std: Many freestanding functions in `vec` removed in favor of methods.
7098       * std: Many freestanding functions on scalar types removed in favor of
7099         methods.
7100       * std: Many options to task builders were removed since they don't make
7101         sense in the new scheduler design.
7102       * std: More containers implement `FromIterator` so can be created by the
7103         `collect` method.
7104       * std: More complete atomic types in `unstable::atomics`.
7105       * std: `comm::PortSet` removed.
7106       * std: Mutating methods in the `Set` and `Map` traits have been moved into
7107         the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
7108         `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
7109         default implementations.
7110       * std: Various `from_str` functions were removed in favor of a generic
7111         `from_str` which is available in the prelude.
7112       * std: `util::unreachable` removed in favor of the `unreachable!` macro.
7113       * extra: `dlist`, the doubly-linked list was modernized.
7114       * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
7115       * extra: Added `glob` module, replacing `std::os::glob`.
7116       * extra: `rope` was removed.
7117       * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
7118       * extra: `net`, and `timer` were removed. The experimental replacements
7119         are `std::rt::io::net` and `std::rt::io::timer`.
7120       * extra: Iterators implemented for `SmallIntMap`.
7121       * extra: Iterators implemented for `Bitv` and `BitvSet`.
7122       * extra: `SmallIntSet` removed. Use `BitvSet`.
7123       * extra: Performance of JSON parsing greatly improved.
7124       * extra: `semver` updated to SemVer 2.0.0.
7125       * extra: `term` handles more terminals correctly.
7126       * extra: `dbg` module removed.
7127       * extra: `par` module removed.
7128       * extra: `future` was cleaned up, with some method renames.
7129       * extra: Most free functions in `getopts` were converted to methods.
7130
7131    * Other
7132       * rustc's debug info generation (`-Z debug-info`) is greatly improved.
7133       * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
7134         similarly to gcc's `--march` flag.
7135       * rustc's performance compiling small crates is much better.
7136       * rustpkg has received many improvements.
7137       * rustpkg supports git tags as package IDs.
7138       * rustpkg builds into target-specific directories so it can be used for
7139         cross-compiling.
7140       * The number of concurrent test tasks is controlled by the environment
7141         variable RUST_TEST_TASKS.
7142       * The test harness can now report metrics for benchmarks.
7143       * All tools have man pages.
7144       * Programs compiled with `--test` now support the `-h` and `--help` flags.
7145       * The runtime uses jemalloc for allocations.
7146       * Segmented stacks are temporarily disabled as part of the transition to
7147         the new runtime. Stack overflows are possible!
7148       * A new documentation backend, rustdoc_ng, is available for use. It is
7149         still invoked through the normal `rustdoc` command.
7150
7151
7152 Version 0.7 (2013-07-03)
7153 =======================
7154
7155    * ~2000 changes, numerous bugfixes
7156
7157    * Language
7158       * `impl`s no longer accept a visibility qualifier. Put them on methods
7159         instead.
7160       * The borrow checker has been rewritten with flow-sensitivity, fixing
7161         many bugs and inconveniences.
7162       * The `self` parameter no longer implicitly means `&'self self`,
7163         and can be explicitly marked with a lifetime.
7164       * Overloadable compound operators (`+=`, etc.) have been temporarily
7165         removed due to bugs.
7166       * The `for` loop protocol now requires `for`-iterators to return `bool`
7167         so they compose better.
7168       * The `Durable` trait is replaced with the `'static` bounds.
7169       * Trait default methods work more often.
7170       * Structs with the `#[packed]` attribute have byte alignment and
7171         no padding between fields.
7172       * Type parameters bound by `Copy` must now be copied explicitly with
7173         the `copy` keyword.
7174       * It is now illegal to move out of a dereferenced unsafe pointer.
7175       * `Option<~T>` is now represented as a nullable pointer.
7176       * `@mut` does dynamic borrow checks correctly.
7177       * The `main` function is only detected at the topmost level of the crate.
7178         The `#[main]` attribute is still valid anywhere.
7179       * Struct fields may no longer be mutable. Use inherited mutability.
7180       * The `#[no_send]` attribute makes a type that would otherwise be
7181         `Send`, not.
7182       * The `#[no_freeze]` attribute makes a type that would otherwise be
7183         `Freeze`, not.
7184       * Unbounded recursion will abort the process after reaching the limit
7185         specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
7186       * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
7187         are never implicitly copyable.
7188       * `#[static_assert]` makes compile-time assertions about static bools.
7189       * At long last, 'argument modes' no longer exist.
7190       * The rarely used `use mod` statement no longer exists.
7191
7192    * Syntax extensions
7193       * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
7194         argument list.
7195       * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
7196         `Rand`, `Zero` and `ToStr` can all be automatically derived with
7197         `#[deriving(...)]`.
7198       * The `bytes!` macro returns a vector of bytes for string, u8, char,
7199         and unsuffixed integer literals.
7200
7201    * Libraries
7202       * The `core` crate was renamed to `std`.
7203       * The `std` crate was renamed to `extra`.
7204       * More and improved documentation.
7205       * std: `iterator` module for external iterator objects.
7206       * Many old-style (internal, higher-order function) iterators replaced by
7207         implementations of `Iterator`.
7208       * std: Many old internal vector and string iterators,
7209         incl. `any`, `all`. removed.
7210       * std: The `finalize` method of `Drop` renamed to `drop`.
7211       * std: The `drop` method now takes `&mut self` instead of `&self`.
7212       * std: The prelude no longer re-exports any modules, only types and traits.
7213       * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
7214         `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
7215       * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
7216         `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
7217       * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
7218         `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
7219       * std: Many types implement `Clone`.
7220       * std: `path` type renamed to `Path`.
7221       * std: `mut` module and `Mut` type removed.
7222       * std: Many standalone functions removed in favor of methods and iterators
7223         in `vec`, `str`. In the future methods will also work as functions.
7224       * std: `reinterpret_cast` removed. Use `transmute`.
7225       * std: ascii string handling in `std::ascii`.
7226       * std: `Rand` is implemented for ~/@.
7227       * std: `run` module for spawning processes overhauled.
7228       * std: Various atomic types added to `unstable::atomic`.
7229       * std: Various types implement `Zero`.
7230       * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
7231       * std: Borrowed pointer functions moved from `ptr` to `borrow`.
7232       * std: Added `os::mkdir_recursive`.
7233       * std: Added `os::glob` function performs filesystems globs.
7234       * std: `FuzzyEq` renamed to `ApproxEq`.
7235       * std: `Map` now defines `pop` and `swap` methods.
7236       * std: `Cell` constructors converted to static methods.
7237       * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
7238       * extra: `flate` module moved from `std` to `extra`.
7239       * extra: `fileinput` module for iterating over a series of files.
7240       * extra: `Complex` number type and `complex` module.
7241       * extra: `Rational` number type and `rational` module.
7242       * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
7243       * extra: `term` uses terminfo now, is more correct.
7244       * extra: `arc` functions converted to methods.
7245       * extra: Implementation of fixed output size variations of SHA-2.
7246
7247    * Tooling
7248       * `unused_variable`  lint mode for unused variables (default: warn).
7249       * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
7250         (default: warn).
7251       * `unused_mut` lint mode for identifying unused `mut` qualifiers
7252         (default: warn).
7253       * `dead_assignment` lint mode for unread variables (default: warn).
7254       * `unnecessary_allocation` lint mode detects some heap allocations that are
7255         immediately borrowed so could be written without allocating (default: warn).
7256       * `missing_doc` lint mode (default: allow).
7257       * `unreachable_code` lint mode (default: warn).
7258       * The `rusti` command has been rewritten and a number of bugs addressed.
7259       * rustc outputs in color on more terminals.
7260       * rustc accepts a `--link-args` flag to pass arguments to the linker.
7261       * rustc accepts a `-Z print-link-args` flag for debugging linkage.
7262       * Compiling with `-g` will make the binary record information about
7263         dynamic borrowcheck failures for debugging.
7264       * rustdoc has a nicer stylesheet.
7265       * Various improvements to rustdoc.
7266       * Improvements to rustpkg (see the detailed release notes).
7267
7268
7269 Version 0.6 (2013-04-03)
7270 ========================
7271
7272    * ~2100 changes, numerous bugfixes
7273
7274    * Syntax changes
7275       * The self type parameter in traits is now spelled `Self`
7276       * The `self` parameter in trait and impl methods must now be explicitly
7277         named (for example: `fn f(&self) { }`). Implicit self is deprecated.
7278       * Static methods no longer require the `static` keyword and instead
7279         are distinguished by the lack of a `self` parameter
7280       * Replaced the `Durable` trait with the `'static` lifetime
7281       * The old closure type syntax with the trailing sigil has been
7282         removed in favor of the more consistent leading sigil
7283       * `super` is a keyword, and may be prefixed to paths
7284       * Trait bounds are separated with `+` instead of whitespace
7285       * Traits are implemented with `impl Trait for Type`
7286         instead of `impl Type: Trait`
7287       * Lifetime syntax is now `&'l foo` instead of `&l/foo`
7288       * The `export` keyword has finally been removed
7289       * The `move` keyword has been removed (see "Semantic changes")
7290       * The interior mutability qualifier on vectors, `[mut T]`, has been
7291         removed. Use `&mut [T]`, etc.
7292       * `mut` is no longer valid in `~mut T`. Use inherited mutability
7293       * `fail` is no longer a keyword. Use `fail!()`
7294       * `assert` is no longer a keyword. Use `assert!()`
7295       * `log` is no longer a keyword. use `debug!`, etc.
7296       * 1-tuples may be represented as `(T,)`
7297       * Struct fields may no longer be `mut`. Use inherited mutability,
7298         `@mut T`, `core::mut` or `core::cell`
7299       * `extern mod { ... }` is no longer valid syntax for foreign
7300         function modules. Use extern blocks: `extern { ... }`
7301       * Newtype enums removed. Use tuple-structs.
7302       * Trait implementations no longer support visibility modifiers
7303       * Pattern matching over vectors improved and expanded
7304       * `const` renamed to `static` to correspond to lifetime name,
7305         and make room for future `static mut` unsafe mutable globals.
7306       * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
7307       * `Clone` implementations can be automatically generated with
7308         `#[deriving(Clone)]`
7309       * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
7310         instead of `foo as Bar`.
7311       * Fixed length vector types are now written as `[int, .. 3]`
7312         instead of `[int * 3]`.
7313       * Fixed length vector types can express the length as a constant
7314         expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
7315
7316    * Semantic changes
7317       * Types with owned pointers or custom destructors move by default,
7318         eliminating the `move` keyword
7319       * All foreign functions are considered unsafe
7320       * &mut is now unaliasable
7321       * Writes to borrowed @mut pointers are prevented dynamically
7322       * () has size 0
7323       * The name of the main function can be customized using #[main]
7324       * The default type of an inferred closure is &fn instead of @fn
7325       * `use` statements may no longer be "chained" - they cannot import
7326         identifiers imported by previous `use` statements
7327       * `use` statements are crate relative, importing from the "top"
7328         of the crate by default. Paths may be prefixed with `super::`
7329         or `self::` to change the search behavior.
7330       * Method visibility is inherited from the implementation declaration
7331       * Structural records have been removed
7332       * Many more types can be used in static items, including enums
7333         'static-lifetime pointers and vectors
7334       * Pattern matching over vectors improved and expanded
7335       * Typechecking of closure types has been overhauled to
7336         improve inference and eliminate unsoundness
7337       * Macros leave scope at the end of modules, unless that module is
7338         tagged with #[macro_escape]
7339
7340    * Libraries
7341       * Added big integers to `std::bigint`
7342       * Removed `core::oldcomm` module
7343       * Added pipe-based `core::comm` module
7344       * Numeric traits have been reorganized under `core::num`
7345       * `vec::slice` finally returns a slice
7346       * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
7347       * Containers reorganized around traits in `core::container`
7348       * `core::dvec` removed, `~[T]` is a drop-in replacement
7349       * `core::send_map` renamed to `core::hashmap`
7350       * `std::map` removed; replaced with `core::hashmap`
7351       * `std::treemap` reimplemented as an owned balanced tree
7352       * `std::deque` and `std::smallintmap` reimplemented as owned containers
7353       * `core::trie` added as a fast ordered map for integer keys
7354       * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
7355       * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
7356         overload the comparison operators, whereas `TotalOrd` is used
7357         by certain container types
7358
7359    * Other
7360       * Replaced the 'cargo' package manager with 'rustpkg'
7361       * Added all-purpose 'rust' tool
7362       * `rustc --test` now supports benchmarks with the `#[bench]` attribute
7363       * rustc now *attempts* to offer spelling suggestions
7364       * Improved support for ARM and Android
7365       * Preliminary MIPS backend
7366       * Improved foreign function ABI implementation for x86, x86_64
7367       * Various memory usage improvements
7368       * Rust code may be embedded in foreign code under limited circumstances
7369       * Inline assembler supported by new asm!() syntax extension.
7370
7371
7372 Version 0.5 (2012-12-21)
7373 ===========================
7374
7375    * ~900 changes, numerous bugfixes
7376
7377    * Syntax changes
7378       * Removed `<-` move operator
7379       * Completed the transition from the `#fmt` extension syntax to `fmt!`
7380       * Removed old fixed length vector syntax - `[T]/N`
7381       * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
7382       * Macros may now expand to items and statements
7383       * `a.b()` is always parsed as a method call, never as a field projection
7384       * `Eq` and `IterBytes` implementations can be automatically generated
7385         with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
7386       * Removed the special crate language for `.rc` files
7387       * Function arguments may consist of any irrefutable pattern
7388
7389    * Semantic changes
7390       * `&` and `~` pointers may point to objects
7391       * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
7392       * Enum variants may be structs
7393       * Destructors can be added to all nominal types with the Drop trait
7394       * Structs and nullary enum variants may be constants
7395       * Values that cannot be implicitly copied are now automatically moved
7396         without writing `move` explicitly
7397       * `&T` may now be coerced to `*T`
7398       * Coercions happen in `let` statements as well as function calls
7399       * `use` statements now take crate-relative paths
7400       * The module and type namespaces have been merged so that static
7401         method names can be resolved under the trait in which they are
7402         declared
7403
7404    * Improved support for language features
7405       * Trait inheritance works in many scenarios
7406       * More support for explicit self arguments in methods - `self`, `&self`
7407         `@self`, and `~self` all generally work as expected
7408       * Static methods work in more situations
7409       * Experimental: Traits may declare default methods for the implementations
7410         to use
7411
7412    * Libraries
7413       * New condition handling system in `core::condition`
7414       * Timsort added to `std::sort`
7415       * New priority queue, `std::priority_queue`
7416       * Pipes for serializable types, `std::flatpipes'
7417       * Serialization overhauled to be trait-based
7418       * Expanded `getopts` definitions
7419       * Moved futures to `std`
7420       * More functions are pure now
7421       * `core::comm` renamed to `oldcomm`. Still deprecated
7422       * `rustdoc` and `cargo` are libraries now
7423
7424    * Misc
7425       * Added a preliminary REPL, `rusti`
7426       * License changed from MIT to dual MIT/APL2
7427
7428
7429 Version 0.4 (2012-10-15)
7430 ==========================
7431
7432    * ~2000 changes, numerous bugfixes
7433
7434    * Syntax
7435       * All keywords are now strict and may not be used as identifiers anywhere
7436       * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
7437         'of', 'with', 'to', 'class'.
7438       * Classes are replaced with simpler structs
7439       * Explicit method self types
7440       * `ret` became `return` and `alt` became `match`
7441       * `import` is now `use`; `use is now `extern mod`
7442       * `extern mod { ... }` is now `extern { ... }`
7443       * `use mod` is the recommended way to import modules
7444       * `pub` and `priv` replace deprecated export lists
7445       * The syntax of `match` pattern arms now uses fat arrow (=>)
7446       * `main` no longer accepts an args vector; use `os::args` instead
7447
7448    * Semantics
7449       * Trait implementations are now coherent, ala Haskell typeclasses
7450       * Trait methods may be static
7451       * Argument modes are deprecated
7452       * Borrowed pointers are much more mature and recommended for use
7453       * Strings and vectors in the static region are stored in constant memory
7454       * Typestate was removed
7455       * Resolution rewritten to be more reliable
7456       * Support for 'dual-mode' data structures (freezing and thawing)
7457
7458    * Libraries
7459       * Most binary operators can now be overloaded via the traits in
7460         `core::ops'
7461       * `std::net::url` for representing URLs
7462       * Sendable hash maps in `core::send_map`
7463       * `core::task' gained a (currently unsafe) task-local storage API
7464
7465    * Concurrency
7466       * An efficient new intertask communication primitive called the pipe,
7467         along with a number of higher-level channel types, in `core::pipes`
7468       * `std::arc`, an atomically reference counted, immutable, shared memory
7469         type
7470       * `std::sync`, various exotic synchronization tools based on arcs and pipes
7471       * Futures are now based on pipes and sendable
7472       * More robust linked task failure
7473       * Improved task builder API
7474
7475    * Other
7476       * Improved error reporting
7477       * Preliminary JIT support
7478       * Preliminary work on precise GC
7479       * Extensive architectural improvements to rustc
7480       * Begun a transition away from buggy C++-based reflection (shape) code to
7481         Rust-based (visitor) code
7482       * All hash functions and tables converted to secure, randomized SipHash
7483
7484
7485 Version 0.3  (2012-07-12)
7486 ========================
7487
7488    * ~1900 changes, numerous bugfixes
7489
7490    * New coding conveniences
7491       * Integer-literal suffix inference
7492       * Per-item control over warnings, errors
7493       * #[cfg(windows)] and #[cfg(unix)] attributes
7494       * Documentation comments
7495       * More compact closure syntax
7496       * 'do' expressions for treating higher-order functions as
7497         control structures
7498       * *-patterns (wildcard extended to all constructor fields)
7499
7500    * Semantic cleanup
7501       * Name resolution pass and exhaustiveness checker rewritten
7502       * Region pointers and borrow checking supersede alias
7503         analysis
7504       * Init-ness checking is now provided by a region-based liveness
7505         pass instead of the typestate pass; same for last-use analysis
7506       * Extensive work on region pointers
7507
7508    * Experimental new language features
7509       * Slices and fixed-size, interior-allocated vectors
7510       * #!-comments for lang versioning, shell execution
7511       * Destructors and iface implementation for classes;
7512         type-parameterized classes and class methods
7513       * 'const' type kind for types that can be used to implement
7514         shared-memory concurrency patterns
7515
7516    * Type reflection
7517
7518    * Removal of various obsolete features
7519       * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
7520                  'crust', 'native' (now 'extern'), 'cont' (now 'again')
7521
7522       * Constructs: do-while loops ('do' repurposed), fn binding,
7523                     resources (replaced by destructors)
7524
7525    * Compiler reorganization
7526       * Syntax-layer of compiler split into separate crate
7527       * Clang (from LLVM project) integrated into build
7528       * Typechecker split into sub-modules
7529
7530    * New library code
7531       * New time functions
7532       * Extension methods for many built-in types
7533       * Arc: atomic-refcount read-only / exclusive-use shared cells
7534       * Par: parallel map and search routines
7535       * Extensive work on libuv interface
7536       * Much vector code moved to libraries
7537       * Syntax extensions: #line, #col, #file, #mod, #stringify,
7538         #include, #include_str, #include_bin
7539
7540    * Tool improvements
7541       * Cargo automatically resolves dependencies
7542
7543
7544 Version 0.2  (2012-03-29)
7545 =========================
7546
7547    * >1500 changes, numerous bugfixes
7548
7549    * New docs and doc tooling
7550
7551    * New port: FreeBSD x86_64
7552
7553    * Compilation model enhancements
7554       * Generics now specialized, multiply instantiated
7555       * Functions now inlined across separate crates
7556
7557    * Scheduling, stack and threading fixes
7558       * Noticeably improved message-passing performance
7559       * Explicit schedulers
7560       * Callbacks from C
7561       * Helgrind clean
7562
7563    * Experimental new language features
7564       * Operator overloading
7565       * Region pointers
7566       * Classes
7567
7568    * Various language extensions
7569       * C-callback function types: 'crust fn ...'
7570       * Infinite-loop construct: 'loop { ... }'
7571       * Shorten 'mutable' to 'mut'
7572       * Required mutable-local qualifier: 'let mut ...'
7573       * Basic glob-exporting: 'export foo::*;'
7574       * Alt now exhaustive, 'alt check' for runtime-checked
7575       * Block-function form of 'for' loop, with 'break' and 'ret'.
7576
7577    * New library code
7578       * AST quasi-quote syntax extension
7579       * Revived libuv interface
7580       * New modules: core::{future, iter}, std::arena
7581       * Merged per-platform std::{os*, fs*} to core::{libc, os}
7582       * Extensive cleanup, regularization in libstd, libcore
7583
7584
7585 Version 0.1  (2012-01-20)
7586 ===============================
7587
7588    * Most language features work, including:
7589       * Unique pointers, unique closures, move semantics
7590       * Interface-constrained generics
7591       * Static interface dispatch
7592       * Stack growth
7593       * Multithread task scheduling
7594       * Typestate predicates
7595       * Failure unwinding, destructors
7596       * Pattern matching and destructuring assignment
7597       * Lightweight block-lambda syntax
7598       * Preliminary macro-by-example
7599
7600    * Compiler works with the following configurations:
7601       * Linux: x86 and x86_64 hosts and targets
7602       * macOS: x86 and x86_64 hosts and targets
7603       * Windows: x86 hosts and targets
7604
7605    * Cross compilation / multi-target configuration supported.
7606
7607    * Preliminary API-documentation and package-management tools included.
7608
7609 Known issues:
7610
7611    * Documentation is incomplete.
7612
7613    * Performance is below intended target.
7614
7615    * Standard library APIs are subject to extensive change, reorganization.
7616
7617    * Language-level versioning is not yet operational - future code will
7618      break unexpectedly.