]> git.lizzy.rs Git - rust.git/blob - RELEASES.md
Rollup merge of #88325 - jyn514:noalias, r=XAMPPRocky
[rust.git] / RELEASES.md
1 Version 1.55.0 (2021-09-09)
2 ============================
3
4 Language
5 --------
6 - [You can now write open "from" range patterns (`X..`), which will start at `X` and
7   will end at the maximum value of the integer.][83918]
8 - [You can now explicitly import the prelude of different editions
9   through `std::prelude` (e.g. `use std::prelude::rust_2021::*;`).][86294]
10
11 Compiler
12 --------
13 - [Added tier 3\* support for `powerpc-unknown-freebsd`.][87370]
14 - [Added tier 3 support for `powerpc64le-unknown-freebsd`.][83572]
15
16 \* Refer to Rust's [platform support page][platform-support-doc] for more
17    information on Rust's tiered platform support.
18
19 Libraries
20 ---------
21
22 - [Updated std's float parsing to use the Eisel-Lemire algorithm.][86761]
23   These improvements should in general provide faster string parsing of floats,
24   no longer reject certain valid floating point values, and reduce
25   the produced code size for non-stripped artifacts.
26 - [`string::Drain` now implements `AsRef<str>` and `AsRef<[u8]>`.][86858]
27 - [`collections::{BinaryHeap, BTreeSet, HashSet, LinkedList, VecDeque}` now
28   implement `From<[T; N]>`.][84111]
29 - [`collections::{BTreeMap, HashMap}` now implement `From<[(K, V); N]>`.][84111]
30   This allows you to write the following;
31   ```rust
32   let highscores = std::collections::HashMap::from([
33       ("Alice", 9000u32),
34       ("Bob", 7250),
35       ("Charlie", 5500),
36   ]);
37   ```
38
39 Stabilised APIs
40 ---------------
41
42 - [`Bound::cloned`]
43 - [`Drain::as_str`]
44 - [`IntoInnerError::into_error`]
45 - [`IntoInnerError::into_parts`]
46 - [`MaybeUninit::assume_init_mut`]
47 - [`MaybeUninit::assume_init_ref`]
48 - [`MaybeUninit::write`]
49 - [`array::map`]
50 - [`ops::ControlFlow`]
51 - [`x86::_bittest`]
52 - [`x86::_bittestandcomplement`]
53 - [`x86::_bittestandreset`]
54 - [`x86::_bittestandset`]
55 - [`x86_64::_bittest64`]
56 - [`x86_64::_bittestandcomplement64`]
57 - [`x86_64::_bittestandreset64`]
58 - [`x86_64::_bittestandset64`]
59
60 The following previously stable functions are now `const`.
61
62 - [`str::from_utf8_unchecked`]
63 - [`mem::transmute`]
64
65
66 Cargo
67 -----
68 - [Cargo will now deduplicate compiler diagnostics to the terminal when invoking
69   rustc in parallel such as when using `cargo test`.][cargo/9675]
70 - [The package definition in `cargo metadata` now includes the `"default_run"`
71   field from the manifest.][cargo/9550]
72 - [Added `cargo d` as an alias for `cargo doc`.][cargo/9680]
73 - [Added `{lib}` as formatting option for `cargo tree` to print the "lib_name" of packages.][cargo/9663]
74
75 Rustdoc
76 -------
77 - [Added "Go to item on exact match" search option.][85876]
78 - [The "Implementors" section on traits no longer shows redundant
79   method definitions.][85970]
80 - [Trait implementations are toggled open by default.][86260] This should make the
81   implementations more searchable by tools like `CTRL+F` in your browser.
82 - [Intra-doc links should now correctly resolve associated items (e.g. methods)
83   through type aliases.][86334]
84 - [Traits which are marked with `#[doc(hidden)]` will no longer appear in the
85   "Trait Implementations" section.][86513]
86
87
88 Compatibility Notes
89 -------------------
90 - [std functions that return an `io::Error` will no longer use the
91   `ErrorKind::Other` variant.][85746] This is to better reflect that these
92   kinds of errors could be categorised [into newer more specific `ErrorKind`
93   variants][79965], and that they do not represent a user error.
94 - [Using environment variable names with `process::Command` on Windows now
95   behaves as expected.][85270] Previously using envionment variables with
96   `Command` would cause them to be ASCII-uppercased.
97 - [Rustdoc will now warn on using rustdoc lints that aren't prefixed
98   with `rustdoc::`][86849]
99
100 [86849]: https://github.com/rust-lang/rust/pull/86849
101 [86513]: https://github.com/rust-lang/rust/pull/86513
102 [86334]: https://github.com/rust-lang/rust/pull/86334
103 [86260]: https://github.com/rust-lang/rust/pull/86260
104 [85970]: https://github.com/rust-lang/rust/pull/85970
105 [85876]: https://github.com/rust-lang/rust/pull/85876
106 [83572]: https://github.com/rust-lang/rust/pull/83572
107 [86294]: https://github.com/rust-lang/rust/pull/86294
108 [86858]: https://github.com/rust-lang/rust/pull/86858
109 [86761]: https://github.com/rust-lang/rust/pull/86761
110 [85769]: https://github.com/rust-lang/rust/pull/85769
111 [85746]: https://github.com/rust-lang/rust/pull/85746
112 [85305]: https://github.com/rust-lang/rust/pull/85305
113 [85270]: https://github.com/rust-lang/rust/pull/85270
114 [84111]: https://github.com/rust-lang/rust/pull/84111
115 [83918]: https://github.com/rust-lang/rust/pull/83918
116 [79965]: https://github.com/rust-lang/rust/pull/79965
117 [87370]: https://github.com/rust-lang/rust/pull/87370
118 [87298]: https://github.com/rust-lang/rust/pull/87298
119 [cargo/9675]: https://github.com/rust-lang/cargo/pull/9675
120 [cargo/9550]: https://github.com/rust-lang/cargo/pull/9550
121 [cargo/9680]: https://github.com/rust-lang/cargo/pull/9680
122 [`array::map`]: https://doc.rust-lang.org/stable/std/primitive.array.html#method.map
123 [`Bound::cloned`]: https://doc.rust-lang.org/stable/std/ops/enum.Bound.html#method.cloned
124 [`Drain::as_str`]: https://doc.rust-lang.org/stable/std/string/struct.Drain.html#method.as_str
125 [`IntoInnerError::into_error`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_error
126 [`IntoInnerError::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_parts
127 [`MaybeUninit::assume_init_mut`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_mut
128 [`MaybeUninit::assume_init_ref`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
129 [`MaybeUninit::write`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.write
130 [`Seek::rewind`]: https://doc.rust-lang.org/stable/std/io/trait.Seek.html#method.rewind
131 [`mem::transmute`]: https://doc.rust-lang.org/stable/std/mem/fn.transmute.html
132 [`ops::ControlFlow`]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html
133 [`str::from_utf8_unchecked`]: https://doc.rust-lang.org/stable/std/str/fn.from_utf8_unchecked.html
134 [`x86::_bittest`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittest.html
135 [`x86::_bittestandcomplement`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandcomplement.html
136 [`x86::_bittestandreset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandreset.html
137 [`x86::_bittestandset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandset.html
138 [`x86_64::_bittest64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittest64.html
139 [`x86_64::_bittestandcomplement64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandcomplement64.html
140 [`x86_64::_bittestandreset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandreset64.html
141 [`x86_64::_bittestandset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandset64.html
142
143
144 Version 1.54.0 (2021-07-29)
145 ============================
146
147 Language
148 -----------------------
149
150 - [You can now use macros for values in some built-in attributes.][83366]
151   This primarily allows you to call macros within the `#[doc]` attribute. For
152   example, to include external documentation in your crate, you can now write
153   the following:
154   ```rust
155   #![doc = include_str!("README.md")]
156   ```
157
158 - [You can now cast between unsized slice types (and types which contain
159   unsized slices) in `const fn`.][85078]
160 - [You can now use multiple generic lifetimes with `impl Trait` where the
161    lifetimes don't explicitly outlive another.][84701] In code this means
162    that you can now have `impl Trait<'a, 'b>` where as before you could
163    only have `impl Trait<'a, 'b> where 'b: 'a`.
164
165 Compiler
166 -----------------------
167
168 - [Rustc will now search for custom JSON targets in
169   `/lib/rustlib/<target-triple>/target.json` where `/` is the "sysroot"
170   directory.][83800] You can find your sysroot directory by running
171   `rustc --print sysroot`.
172 - [Added `wasm` as a `target_family` for WebAssembly platforms.][84072]
173 - [You can now use `#[target_feature]` on safe functions when targeting
174   WebAssembly platforms.][84988]
175 - [Improved debugger output for enums on Windows MSVC platforms.][85292]
176 - [Added tier 3\* support for `bpfel-unknown-none`
177    and `bpfeb-unknown-none`.][79608]
178 - [`-Zmutable-noalias=yes`][82834] is enabled by default when using LLVM 12 or above.
179
180 \* Refer to Rust's [platform support page][platform-support-doc] for more
181    information on Rust's tiered platform support.
182
183 Libraries
184 -----------------------
185
186 - [`panic::panic_any` will now `#[track_caller]`.][85745]
187 - [Added `OutOfMemory` as a variant of `io::ErrorKind`.][84744]
188 - [ `proc_macro::Literal` now implements `FromStr`.][84717]
189 - [The implementations of vendor intrinsics in core::arch have been
190    significantly refactored.][83278] The main user-visible changes are
191    a 50% reduction in the size of libcore.rlib and stricter validation
192    of constant operands passed to intrinsics. The latter is technically
193    a breaking change, but allows Rust to more closely match the C vendor
194    intrinsics API.
195
196 Stabilized APIs
197 ---------------
198
199 - [`BTreeMap::into_keys`]
200 - [`BTreeMap::into_values`]
201 - [`HashMap::into_keys`]
202 - [`HashMap::into_values`]
203 - [`arch::wasm32`]
204 - [`VecDeque::binary_search`]
205 - [`VecDeque::binary_search_by`]
206 - [`VecDeque::binary_search_by_key`]
207 - [`VecDeque::partition_point`]
208
209 Cargo
210 -----
211
212 - [Added the `--prune <spec>` option to `cargo-tree` to remove a package from
213   the dependency graph.][cargo/9520]
214 - [Added the `--depth` option to `cargo-tree` to print only to a certain depth
215   in the tree ][cargo/9499]
216 - [Added the `no-proc-macro` value to `cargo-tree --edges` to hide procedural
217   macro dependencies.][cargo/9488]
218 - [A new environment variable named `CARGO_TARGET_TMPDIR` is available.][cargo/9375]
219   This variable points to a directory that integration tests and benches
220   can use as a "scratchpad" for testing filesystem operations.
221
222 Compatibility Notes
223 -------------------
224 - [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
225 - [Previously unsound code is no longer permitted where different constructors in branches
226   could require different lifetimes.][85574]
227 - As previously mentioned the [`std::arch` instrinsics now uses stricter const checking][83278]
228   than before and may reject some previously accepted code.
229 - [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
230    when compiled with `codegen-units = 1`.][86063]
231
232 [85574]: https://github.com/rust-lang/rust/issues/85574
233 [86831]: https://github.com/rust-lang/rust/issues/86831
234 [86063]: https://github.com/rust-lang/rust/issues/86063
235 [86831]: https://github.com/rust-lang/rust/issues/86831
236 [79608]: https://github.com/rust-lang/rust/pull/79608
237 [84988]: https://github.com/rust-lang/rust/pull/84988
238 [84701]: https://github.com/rust-lang/rust/pull/84701
239 [84072]: https://github.com/rust-lang/rust/pull/84072
240 [85745]: https://github.com/rust-lang/rust/pull/85745
241 [84744]: https://github.com/rust-lang/rust/pull/84744
242 [85078]: https://github.com/rust-lang/rust/pull/85078
243 [84717]: https://github.com/rust-lang/rust/pull/84717
244 [83800]: https://github.com/rust-lang/rust/pull/83800
245 [83366]: https://github.com/rust-lang/rust/pull/83366
246 [83278]: https://github.com/rust-lang/rust/pull/83278
247 [85292]: https://github.com/rust-lang/rust/pull/85292
248 [82834]: https://github.com/rust-lang/rust/pull/82834
249 [cargo/9520]: https://github.com/rust-lang/cargo/pull/9520
250 [cargo/9499]: https://github.com/rust-lang/cargo/pull/9499
251 [cargo/9488]: https://github.com/rust-lang/cargo/pull/9488
252 [cargo/9375]: https://github.com/rust-lang/cargo/pull/9375
253 [`BTreeMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_keys
254 [`BTreeMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_values
255 [`HashMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_keys
256 [`HashMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_values
257 [`arch::wasm32`]: https://doc.rust-lang.org/core/arch/wasm32/index.html
258 [`VecDeque::binary_search`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search
259 [`VecDeque::binary_search_by`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by
260
261 [`VecDeque::binary_search_by_key`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by_key
262
263 [`VecDeque::partition_point`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.partition_point
264
265 Version 1.53.0 (2021-06-17)
266 ============================
267
268 Language
269 -----------------------
270 - [You can now use unicode for identifiers.][83799] This allows multilingual
271   identifiers but still doesn't allow glyphs that are not considered characters
272   such as `◆` or `🦀`. More specifically you can now use any identifier that
273   matches the UAX #31 "Unicode Identifier and Pattern Syntax" standard. This
274   is the same standard as languages like Python, however Rust uses NFC
275   normalization which may be different from other languages.
276 - [You can now specify "or patterns" inside pattern matches.][79278]
277   Previously you could only use `|` (OR) on complete patterns. E.g.
278   ```rust
279   let x = Some(2u8);
280   // Before
281   matches!(x, Some(1) | Some(2));
282   // Now
283   matches!(x, Some(1 | 2));
284   ```
285 - [Added the `:pat_param` `macro_rules!` matcher.][83386] This matcher
286   has the same semantics as the `:pat` matcher. This is to allow `:pat`
287   to change semantics to being a pattern fragment in a future edition.
288
289 Compiler
290 -----------------------
291 - [Updated the minimum external LLVM version to LLVM 10.][83387]
292 - [Added Tier 3\* support for the `wasm64-unknown-unknown` target.][80525]
293 - [Improved debuginfo for closures and async functions on Windows MSVC.][83941]
294
295 \* Refer to Rust's [platform support page][platform-support-doc] for more
296 information on Rust's tiered platform support.
297
298 Libraries
299 -----------------------
300 - [Abort messages will now forward to `android_set_abort_message` on
301   Android platforms when available.][81469]
302 - [`slice::IterMut<'_, T>` now implements `AsRef<[T]>`][82771]
303 - [Arrays of any length now implement `IntoIterator`.][84147]
304   Currently calling `.into_iter()` as a method on an array will
305   return `impl Iterator<Item=&T>`, but this may change in a
306   future edition to change `Item` to `T`. Calling `IntoIterator::into_iter`
307   directly on arrays will provide `impl Iterator<Item=T>` as expected.
308 - [`leading_zeros`, and `trailing_zeros` are now available on all
309   `NonZero` integer types.][84082]
310 - [`{f32, f64}::from_str` now parse and print special values
311   (`NaN`, `-0`) according to IEEE 754.][78618]
312 - [You can now index into slices using `(Bound<usize>, Bound<usize>)`.][77704]
313 - [Add the `BITS` associated constant to all numeric types.][82565]
314
315 Stabilised APIs
316 ---------------
317 - [`AtomicBool::fetch_update`]
318 - [`AtomicPtr::fetch_update`]
319 - [`BTreeMap::retain`]
320 - [`BTreeSet::retain`]
321 - [`BufReader::seek_relative`]
322 - [`DebugStruct::non_exhaustive`]
323 - [`Duration::MAX`]
324 - [`Duration::ZERO`]
325 - [`Duration::is_zero`]
326 - [`Duration::saturating_add`]
327 - [`Duration::saturating_mul`]
328 - [`Duration::saturating_sub`]
329 - [`ErrorKind::Unsupported`]
330 - [`Option::insert`]
331 - [`Ordering::is_eq`]
332 - [`Ordering::is_ge`]
333 - [`Ordering::is_gt`]
334 - [`Ordering::is_le`]
335 - [`Ordering::is_lt`]
336 - [`Ordering::is_ne`]
337 - [`OsStr::is_ascii`]
338 - [`OsStr::make_ascii_lowercase`]
339 - [`OsStr::make_ascii_uppercase`]
340 - [`OsStr::to_ascii_lowercase`]
341 - [`OsStr::to_ascii_uppercase`]
342 - [`Peekable::peek_mut`]
343 - [`Rc::decrement_strong_count`]
344 - [`Rc::increment_strong_count`]
345 - [`Vec::extend_from_within`]
346 - [`array::from_mut`]
347 - [`array::from_ref`]
348 - [`cmp::max_by_key`]
349 - [`cmp::max_by`]
350 - [`cmp::min_by_key`]
351 - [`cmp::min_by`]
352 - [`f32::is_subnormal`]
353 - [`f64::is_subnormal`]
354
355 Cargo
356 -----------------------
357 - [Cargo now supports git repositories where the default `HEAD` branch is not
358   "master".][cargo/9392] This also includes a switch to the version 3 `Cargo.lock` format
359   which can handle default branches correctly.
360 - [macOS targets now default to `unpacked` split-debuginfo.][cargo/9298]
361 - [The `authors` field is no longer included in `Cargo.toml` for new
362   projects.][cargo/9282]
363
364 Rustdoc
365 -----------------------
366 - [Added the `rustdoc::bare_urls` lint that warns when you have URLs
367   without hyperlinks.][81764]
368
369 Compatibility Notes
370 -------------------
371 - [Implement token-based handling of attributes during expansion][82608]
372 - [`Ipv4::from_str` will now reject octal format IP addresses in addition
373   to rejecting hexadecimal IP addresses.][83652] The octal format can lead
374   to confusion and potential security vulnerabilities and [is no
375   longer recommended][ietf6943].
376 - [The added `BITS` constant may conflict with external definitions.][85667]
377   In particular, this was known to be a problem in the `lexical-core` crate,
378   but they have published fixes for semantic versions 0.4 through 0.7. To
379   update this dependency alone, use `cargo update -p lexical-core`.
380 - Incremental compilation remains off by default, unless one uses the `RUSTC_FORCE_INCREMENTAL=1` environment variable added in 1.52.1.
381
382 Internal Only
383 -------------
384 These changes provide no direct user facing benefits, but represent significant
385 improvements to the internals and overall performance of rustc and
386 related tools.
387
388 - [Rework the `std::sys::windows::alloc` implementation.][83065]
389 - [rustdoc: Don't enter an infer_ctxt in get_blanket_impls for impls that aren't blanket impls.][82864]
390 - [rustdoc: Only look at blanket impls in `get_blanket_impls`][83681]
391 - [Rework rustdoc const type][82873]
392
393 [85667]: https://github.com/rust-lang/rust/pull/85667
394 [83386]: https://github.com/rust-lang/rust/pull/83386
395 [82771]: https://github.com/rust-lang/rust/pull/82771
396 [84147]: https://github.com/rust-lang/rust/pull/84147
397 [84082]: https://github.com/rust-lang/rust/pull/84082
398 [83799]: https://github.com/rust-lang/rust/pull/83799
399 [83681]: https://github.com/rust-lang/rust/pull/83681
400 [83652]: https://github.com/rust-lang/rust/pull/83652
401 [83387]: https://github.com/rust-lang/rust/pull/83387
402 [82873]: https://github.com/rust-lang/rust/pull/82873
403 [82864]: https://github.com/rust-lang/rust/pull/82864
404 [82608]: https://github.com/rust-lang/rust/pull/82608
405 [82565]: https://github.com/rust-lang/rust/pull/82565
406 [80525]: https://github.com/rust-lang/rust/pull/80525
407 [79278]: https://github.com/rust-lang/rust/pull/79278
408 [78618]: https://github.com/rust-lang/rust/pull/78618
409 [77704]: https://github.com/rust-lang/rust/pull/77704
410 [83941]: https://github.com/rust-lang/rust/pull/83941
411 [83065]: https://github.com/rust-lang/rust/pull/83065
412 [81764]: https://github.com/rust-lang/rust/pull/81764
413 [81469]: https://github.com/rust-lang/rust/pull/81469
414 [cargo/9298]: https://github.com/rust-lang/cargo/pull/9298
415 [cargo/9282]: https://github.com/rust-lang/cargo/pull/9282
416 [cargo/9392]: https://github.com/rust-lang/cargo/pull/9392
417 [`AtomicBool::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicBool.html#method.fetch_update
418 [`AtomicPtr::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html#method.fetch_update
419 [`BTreeMap::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.retain
420 [`BTreeSet::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.retain
421 [`BufReader::seek_relative`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.seek_relative
422 [`DebugStruct::non_exhaustive`]: https://doc.rust-lang.org/std/fmt/struct.DebugStruct.html#method.finish_non_exhaustive
423 [`Duration::MAX`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.MAX
424 [`Duration::ZERO`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.ZERO
425 [`Duration::is_zero`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.is_zero
426 [`Duration::saturating_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_add
427 [`Duration::saturating_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_mul
428 [`Duration::saturating_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_sub
429 [`ErrorKind::Unsupported`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.Unsupported
430 [`Option::insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.insert
431 [`Ordering::is_eq`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_eq
432 [`Ordering::is_ge`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ge
433 [`Ordering::is_gt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_gt
434 [`Ordering::is_le`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_le
435 [`Ordering::is_lt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_lt
436 [`Ordering::is_ne`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ne
437 [`OsStr::eq_ignore_ascii_case`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.eq_ignore_ascii_case
438 [`OsStr::is_ascii`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.is_ascii
439 [`OsStr::make_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_lowercase
440 [`OsStr::make_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_uppercase
441 [`OsStr::to_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_lowercase
442 [`OsStr::to_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_uppercase
443 [`Peekable::peek_mut`]: https://doc.rust-lang.org/std/iter/struct.Peekable.html#method.peek_mut
444 [`Rc::decrement_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
445 [`Rc::increment_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
446 [`Vec::extend_from_within`]: https://doc.rust-lang.org/beta/std/vec/struct.Vec.html#method.extend_from_within
447 [`array::from_mut`]: https://doc.rust-lang.org/beta/std/array/fn.from_mut.html
448 [`array::from_ref`]: https://doc.rust-lang.org/beta/std/array/fn.from_ref.html
449 [`cmp::max_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by_key.html
450 [`cmp::max_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by.html
451 [`cmp::min_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by_key.html
452 [`cmp::min_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by.html
453 [`f32::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
454 [`f64::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
455 [ietf6943]: https://datatracker.ietf.org/doc/html/rfc6943#section-3.1.1
456
457
458 Version 1.52.1 (2021-05-10)
459 ============================
460
461 This release disables incremental compilation, unless the user has explicitly
462 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
463
464 This is due to the widespread, and frequently occuring, breakage encountered by
465 Rust users due to newly enabled incremental verification in 1.52.0. Notably,
466 Rust users **should** upgrade to 1.52.0 or 1.52.1: the bugs that are detected by
467 newly added incremental verification are still present in past stable versions,
468 and are not yet fixed on any channel. These bugs can lead to miscompilation of
469 Rust binaries.
470
471 These problems only affect incremental builds, so release builds with Cargo
472 should not be affected unless the user has explicitly opted into incremental.
473 Debug and check builds are affected.
474
475 See [84970] for more details.
476
477 [84970]: https://github.com/rust-lang/rust/issues/84970
478
479 Version 1.52.0 (2021-05-06)
480 ============================
481
482 Language
483 --------
484 - [Added the `unsafe_op_in_unsafe_fn` lint, which checks whether the unsafe code
485   in an `unsafe fn` is wrapped in a `unsafe` block.][79208] This lint
486   is allowed by default, and may become a warning or hard error in a
487   future edition.
488 - [You can now cast mutable references to arrays to a pointer of the same type as
489   the element.][81479]
490
491 Compiler
492 --------
493 - [Upgraded the default LLVM to LLVM 12.][81451]
494
495 Added tier 3\* support for the following targets.
496
497 - [`s390x-unknown-linux-musl`][82166]
498 - [`riscv32gc-unknown-linux-musl` & `riscv64gc-unknown-linux-musl`][82202]
499 - [`powerpc-unknown-openbsd`][82733]
500
501 \* Refer to Rust's [platform support page][platform-support-doc] for more
502 information on Rust's tiered platform support.
503
504 Libraries
505 ---------
506 - [`OsString` now implements `Extend` and `FromIterator`.][82121]
507 - [`cmp::Reverse` now has `#[repr(transparent)]` representation.][81879]
508 - [`Arc<impl Error>` now implements `error::Error`.][80553]
509 - [All integer division and remainder operations are now `const`.][80962]
510
511 Stabilised APIs
512 -------------
513 - [`Arguments::as_str`]
514 - [`char::MAX`]
515 - [`char::REPLACEMENT_CHARACTER`]
516 - [`char::UNICODE_VERSION`]
517 - [`char::decode_utf16`]
518 - [`char::from_digit`]
519 - [`char::from_u32_unchecked`]
520 - [`char::from_u32`]
521 - [`slice::partition_point`]
522 - [`str::rsplit_once`]
523 - [`str::split_once`]
524
525 The following previously stable APIs are now `const`.
526
527 - [`char::len_utf8`]
528 - [`char::len_utf16`]
529 - [`char::to_ascii_uppercase`]
530 - [`char::to_ascii_lowercase`]
531 - [`char::eq_ignore_ascii_case`]
532 - [`u8::to_ascii_uppercase`]
533 - [`u8::to_ascii_lowercase`]
534 - [`u8::eq_ignore_ascii_case`]
535
536 Rustdoc
537 -------
538 - [Rustdoc lints are now treated as a tool lint, meaning that
539   lints are now prefixed with `rustdoc::` (e.g. `#[warn(rustdoc::broken_intra_doc_links)]`).][80527]
540   Using the old style is still allowed, and will become a warning in
541   a future release.
542 - [Rustdoc now supports argument files.][82261]
543 - [Rustdoc now generates smart punctuation for documentation.][79423]
544 - [You can now use "task lists" in Rustdoc Markdown.][81766] E.g.
545   ```markdown
546   - [x] Complete
547   - [ ] Todo
548   ```
549
550 Misc
551 ----
552 - [You can now pass multiple filters to tests.][81356] E.g.
553   `cargo test -- foo bar` will run all tests that match `foo` and `bar`.
554 - [Rustup now distributes PDB symbols for the `std` library on Windows,
555   allowing you to see `std` symbols when debugging.][82218]
556
557 Internal Only
558 -------------
559 These changes provide no direct user facing benefits, but represent significant
560 improvements to the internals and overall performance of rustc and
561 related tools.
562
563 - [Check the result cache before the DepGraph when ensuring queries][81855]
564 - [Try fast_reject::simplify_type in coherence before doing full check][81744]
565 - [Only store a LocalDefId in some HIR nodes][81611]
566 - [Store HIR attributes in a side table][79519]
567
568 Compatibility Notes
569 -------------------
570 - [Cargo build scripts are now forbidden from setting `RUSTC_BOOTSTRAP`.][cargo/9181]
571 - [Removed support for the `x86_64-rumprun-netbsd` target.][82594]
572 - [Deprecated the `x86_64-sun-solaris` target in favor of `x86_64-pc-solaris`.][82216]
573 - [Rustdoc now only accepts `,`, ` `, and `\t` as delimiters for specifying
574   languages in code blocks.][78429]
575 - [Rustc now catches more cases of `pub_use_of_private_extern_crate`][80763]
576 - [Changes in how proc macros handle whitespace may lead to panics when used
577   with older `proc-macro-hack` versions. A `cargo update` should be sufficient to fix this in all cases.][84136]
578 - [Turn `#[derive]` into a regular macro attribute][79078]
579
580 [84136]: https://github.com/rust-lang/rust/issues/84136
581 [80763]: https://github.com/rust-lang/rust/pull/80763
582 [82166]: https://github.com/rust-lang/rust/pull/82166
583 [82121]: https://github.com/rust-lang/rust/pull/82121
584 [81879]: https://github.com/rust-lang/rust/pull/81879
585 [82261]: https://github.com/rust-lang/rust/pull/82261
586 [82218]: https://github.com/rust-lang/rust/pull/82218
587 [82216]: https://github.com/rust-lang/rust/pull/82216
588 [82202]: https://github.com/rust-lang/rust/pull/82202
589 [81855]: https://github.com/rust-lang/rust/pull/81855
590 [81766]: https://github.com/rust-lang/rust/pull/81766
591 [81744]: https://github.com/rust-lang/rust/pull/81744
592 [81611]: https://github.com/rust-lang/rust/pull/81611
593 [81479]: https://github.com/rust-lang/rust/pull/81479
594 [81451]: https://github.com/rust-lang/rust/pull/81451
595 [81356]: https://github.com/rust-lang/rust/pull/81356
596 [80962]: https://github.com/rust-lang/rust/pull/80962
597 [80553]: https://github.com/rust-lang/rust/pull/80553
598 [80527]: https://github.com/rust-lang/rust/pull/80527
599 [79519]: https://github.com/rust-lang/rust/pull/79519
600 [79423]: https://github.com/rust-lang/rust/pull/79423
601 [79208]: https://github.com/rust-lang/rust/pull/79208
602 [78429]: https://github.com/rust-lang/rust/pull/78429
603 [82733]: https://github.com/rust-lang/rust/pull/82733
604 [82594]: https://github.com/rust-lang/rust/pull/82594
605 [79078]: https://github.com/rust-lang/rust/pull/79078
606 [cargo/9181]: https://github.com/rust-lang/cargo/pull/9181
607 [`char::MAX`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.MAX
608 [`char::REPLACEMENT_CHARACTER`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.REPLACEMENT_CHARACTER
609 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.UNICODE_VERSION
610 [`char::decode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.decode_utf16
611 [`char::from_u32`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32
612 [`char::from_u32_unchecked`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32_unchecked
613 [`char::from_digit`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_digit
614 [`Peekable::next_if`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if
615 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_eq
616 [`Arguments::as_str`]: https://doc.rust-lang.org/stable/std/fmt/struct.Arguments.html#method.as_str
617 [`str::split_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_once
618 [`str::rsplit_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.rsplit_once
619 [`slice::partition_point`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.partition_point
620 [`char::len_utf8`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf8
621 [`char::len_utf16`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf16
622 [`char::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_uppercase
623 [`char::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_lowercase
624 [`char::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.eq_ignore_ascii_case
625 [`u8::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_uppercase
626 [`u8::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_lowercase
627 [`u8::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.eq_ignore_ascii_case
628
629 Version 1.51.0 (2021-03-25)
630 ============================
631
632 Language
633 --------
634 - [You can now parameterize items such as functions, traits, and `struct`s by constant
635   values in addition to by types and lifetimes.][79135] Also known as "const generics"
636   E.g. you can now write the following. Note: Only values of primitive integers,
637   `bool`, or `char` types are currently permitted.
638   ```rust
639   struct GenericArray<T, const LENGTH: usize> {
640       inner: [T; LENGTH]
641   }
642
643   impl<T, const LENGTH: usize> GenericArray<T, LENGTH> {
644       const fn last(&self) -> Option<&T> {
645           if LENGTH == 0 {
646               None
647           } else {
648               Some(&self.inner[LENGTH - 1])
649           }
650       }
651   }
652   ```
653
654
655 Compiler
656 --------
657
658 - [Added the `-Csplit-debuginfo` codegen option for macOS platforms.][79570]
659   This option controls whether debug information is split across multiple files
660   or packed into a single file. **Note** This option is unstable on other platforms.
661 - [Added tier 3\* support for `aarch64_be-unknown-linux-gnu`,
662   `aarch64-unknown-linux-gnu_ilp32`, and `aarch64_be-unknown-linux-gnu_ilp32` targets.][81455]
663 - [Added tier 3 support for `i386-unknown-linux-gnu` and `i486-unknown-linux-gnu` targets.][80662]
664 - [The `target-cpu=native` option will now detect individual features of CPUs.][80749]
665
666 \* Refer to Rust's [platform support page][platform-support-doc] for more
667 information on Rust's tiered platform support.
668
669 Libraries
670 ---------
671
672 - [`Box::downcast` is now also implemented for any `dyn Any + Send + Sync` object.][80945]
673 - [`str` now implements `AsMut<str>`.][80279]
674 - [`u64` and `u128` now implement `From<char>`.][79502]
675 - [`Error` is now implemented for `&T` where `T` implements `Error`.][75180]
676 - [`Poll::{map_ok, map_err}` are now implemented for `Poll<Option<Result<T, E>>>`.][80968]
677 - [`unsigned_abs` is now implemented for all signed integer types.][80959]
678 - [`io::Empty` now implements `io::Seek`.][78044]
679 - [`rc::Weak<T>` and `sync::Weak<T>`'s methods such as `as_ptr` are now implemented for
680   `T: ?Sized` types.][80764]
681 - [`Div` and `Rem` by their `NonZero` variant is now implemented for all unsigned integers.][79134]
682
683
684 Stabilized APIs
685 ---------------
686
687 - [`Arc::decrement_strong_count`]
688 - [`Arc::increment_strong_count`]
689 - [`Once::call_once_force`]
690 - [`Peekable::next_if_eq`]
691 - [`Peekable::next_if`]
692 - [`Seek::stream_position`]
693 - [`array::IntoIter`]
694 - [`panic::panic_any`]
695 - [`ptr::addr_of!`]
696 - [`ptr::addr_of_mut!`]
697 - [`slice::fill_with`]
698 - [`slice::split_inclusive_mut`]
699 - [`slice::split_inclusive`]
700 - [`slice::strip_prefix`]
701 - [`slice::strip_suffix`]
702 - [`str::split_inclusive`]
703 - [`sync::OnceState`]
704 - [`task::Wake`]
705 - [`VecDeque::range`]
706 - [`VecDeque::range_mut`]
707
708 Cargo
709 -----
710 - [Added the `split-debuginfo` profile option to control the -Csplit-debuginfo
711   codegen option.][cargo/9112]
712 - [Added the `resolver` field to `Cargo.toml` to enable the new feature resolver
713   and CLI option behavior.][cargo/8997] Version 2 of the feature resolver will try
714   to avoid unifying features of dependencies where that unification could be unwanted.
715   Such as using the same dependency with a `std` feature in a build scripts and
716   proc-macros, while using the `no-std` feature in the final binary. See the
717   [Cargo book documentation][feature-resolver@2.0] for more information on the feature.
718
719 Rustdoc
720 -------
721
722 - [Rustdoc will now include documentation for methods available from _nested_ `Deref` traits.][80653]
723 - [You can now provide a `--default-theme` flag which sets the default theme to use for
724   documentation.][79642]
725
726 Various improvements to intra-doc links:
727
728 - [You can link to non-path primitives such as `slice`.][80181]
729 - [You can link to associated items.][74489]
730 - [You can now include generic parameters when linking to items, like `Vec<T>`.][76934]
731
732 Misc
733 ----
734 - [You can now pass `--include-ignored` to tests (e.g. with
735   `cargo test -- --include-ignored`) to include testing tests marked `#[ignore]`.][80053]
736
737 Compatibility Notes
738 -------------------
739
740 - [WASI platforms no longer use the `wasm-bindgen` ABI, and instead use the wasm32 ABI.][79998]
741 - [`rustc` no longer promotes division, modulo and indexing operations to `const` that
742   could fail.][80579]
743 - [The minimum version of glibc for the following platforms has been bumped to version 2.31
744   for the distributed artifacts.][81521]
745     - `armv5te-unknown-linux-gnueabi`
746     - `sparc64-unknown-linux-gnu`
747     - `thumbv7neon-unknown-linux-gnueabihf`
748     - `armv7-unknown-linux-gnueabi`
749     - `x86_64-unknown-linux-gnux32`
750 - [`atomic::spin_loop_hint` has been deprecated.][80966] It's recommended to use `hint::spin_loop` instead.
751
752 Internal Only
753 -------------
754
755 - [Consistently avoid constructing optimized MIR when not doing codegen][80718]
756
757 [79135]: https://github.com/rust-lang/rust/pull/79135
758 [74489]: https://github.com/rust-lang/rust/pull/74489
759 [76934]: https://github.com/rust-lang/rust/pull/76934
760 [79570]: https://github.com/rust-lang/rust/pull/79570
761 [80181]: https://github.com/rust-lang/rust/pull/80181
762 [79642]: https://github.com/rust-lang/rust/pull/79642
763 [80945]: https://github.com/rust-lang/rust/pull/80945
764 [80279]: https://github.com/rust-lang/rust/pull/80279
765 [80053]: https://github.com/rust-lang/rust/pull/80053
766 [79502]: https://github.com/rust-lang/rust/pull/79502
767 [75180]: https://github.com/rust-lang/rust/pull/75180
768 [79135]: https://github.com/rust-lang/rust/pull/79135
769 [81521]: https://github.com/rust-lang/rust/pull/81521
770 [80968]: https://github.com/rust-lang/rust/pull/80968
771 [80959]: https://github.com/rust-lang/rust/pull/80959
772 [80718]: https://github.com/rust-lang/rust/pull/80718
773 [80653]: https://github.com/rust-lang/rust/pull/80653
774 [80579]: https://github.com/rust-lang/rust/pull/80579
775 [79998]: https://github.com/rust-lang/rust/pull/79998
776 [78044]: https://github.com/rust-lang/rust/pull/78044
777 [81455]: https://github.com/rust-lang/rust/pull/81455
778 [80764]: https://github.com/rust-lang/rust/pull/80764
779 [80749]: https://github.com/rust-lang/rust/pull/80749
780 [80662]: https://github.com/rust-lang/rust/pull/80662
781 [79134]: https://github.com/rust-lang/rust/pull/79134
782 [80966]: https://github.com/rust-lang/rust/pull/80966
783 [cargo/8997]: https://github.com/rust-lang/cargo/pull/8997
784 [cargo/9112]: https://github.com/rust-lang/cargo/pull/9112
785 [feature-resolver@2.0]: https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
786 [`Once::call_once_force`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.call_once_force
787 [`sync::OnceState`]: https://doc.rust-lang.org/stable/std/sync/struct.OnceState.html
788 [`panic::panic_any`]: https://doc.rust-lang.org/stable/std/panic/fn.panic_any.html
789 [`slice::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
790 [`slice::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
791 [`Arc::increment_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.increment_strong_count
792 [`Arc::decrement_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.decrement_strong_count
793 [`slice::fill_with`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.fill_with
794 [`ptr::addr_of!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of.html
795 [`ptr::addr_of_mut!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of_mut.html
796 [`array::IntoIter`]: https://doc.rust-lang.org/nightly/std/array/struct.IntoIter.html
797 [`slice::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive
798 [`slice::split_inclusive_mut`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive_mut
799 [`str::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_inclusive
800 [`task::Wake`]: https://doc.rust-lang.org/nightly/std/task/trait.Wake.html
801 [`Seek::stream_position`]: https://doc.rust-lang.org/nightly/std/io/trait.Seek.html#method.stream_position
802 [`Peekable::next_if`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if
803 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if_eq
804 [`VecDeque::range`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range
805 [`VecDeque::range_mut`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range_mut
806
807 Version 1.50.0 (2021-02-11)
808 ============================
809
810 Language
811 -----------------------
812 - [You can now use `const` values for `x` in `[x; N]` array expressions.][79270]
813   This has been technically possible since 1.38.0, as it was unintentionally stabilized.
814 - [Assignments to `ManuallyDrop<T>` union fields are now considered safe.][78068]
815
816 Compiler
817 -----------------------
818 - [Added tier 3\* support for the `armv5te-unknown-linux-uclibceabi` target.][78142]
819 - [Added tier 3 support for the `aarch64-apple-ios-macabi` target.][77484]
820 - [The `x86_64-unknown-freebsd` is now built with the full toolset.][79484]
821 - [Dropped support for all cloudabi targets.][78439]
822
823 \* Refer to Rust's [platform support page][platform-support-doc] for more
824 information on Rust's tiered platform support.
825
826 Libraries
827 -----------------------
828
829 - [`proc_macro::Punct` now implements `PartialEq<char>`.][78636]
830 - [`ops::{Index, IndexMut}` are now implemented for fixed sized arrays of any length.][74989]
831 - [On Unix platforms, the `std::fs::File` type now has a "niche" of `-1`.][74699]
832   This value cannot be a valid file descriptor, and now means `Option<File>` takes
833   up the same amount of space as `File`.
834
835 Stabilized APIs
836 ---------------
837
838 - [`bool::then`]
839 - [`btree_map::Entry::or_insert_with_key`]
840 - [`f32::clamp`]
841 - [`f64::clamp`]
842 - [`hash_map::Entry::or_insert_with_key`]
843 - [`Ord::clamp`]
844 - [`RefCell::take`]
845 - [`slice::fill`]
846 - [`UnsafeCell::get_mut`]
847
848 The following previously stable methods are now `const`.
849
850 - [`IpAddr::is_ipv4`]
851 - [`IpAddr::is_ipv6`]
852 - [`IpAddr::is_unspecified`]
853 - [`IpAddr::is_loopback`]
854 - [`IpAddr::is_multicast`]
855 - [`Ipv4Addr::octets`]
856 - [`Ipv4Addr::is_loopback`]
857 - [`Ipv4Addr::is_private`]
858 - [`Ipv4Addr::is_link_local`]
859 - [`Ipv4Addr::is_multicast`]
860 - [`Ipv4Addr::is_broadcast`]
861 - [`Ipv4Addr::is_documentation`]
862 - [`Ipv4Addr::to_ipv6_compatible`]
863 - [`Ipv4Addr::to_ipv6_mapped`]
864 - [`Ipv6Addr::segments`]
865 - [`Ipv6Addr::is_unspecified`]
866 - [`Ipv6Addr::is_loopback`]
867 - [`Ipv6Addr::is_multicast`]
868 - [`Ipv6Addr::to_ipv4`]
869 - [`Layout::size`]
870 - [`Layout::align`]
871 - [`Layout::from_size_align`]
872 - `pow` for all integer types.
873 - `checked_pow` for all integer types.
874 - `saturating_pow` for all integer types.
875 - `wrapping_pow` for all integer types.
876 - `next_power_of_two` for all unsigned integer types.
877 - `checked_next_power_of_two` for all unsigned integer types.
878
879 Cargo
880 -----------------------
881
882 - [Added the `[build.rustc-workspace-wrapper]` option.][cargo/8976]
883   This option sets a wrapper to execute instead of `rustc`, for workspace members only.
884 - [`cargo:rerun-if-changed` will now, if provided a directory, scan the entire
885   contents of that directory for changes.][cargo/8973]
886 - [Added the `--workspace` flag to the `cargo update` command.][cargo/8725]
887
888 Misc
889 ----
890
891 - [The search results tab and the help button are focusable with keyboard in rustdoc.][79896]
892 - [Running tests will now print the total time taken to execute.][75752]
893
894 Compatibility Notes
895 -------------------
896
897 - [The `compare_and_swap` method on atomics has been deprecated.][79261] It's
898   recommended to use the `compare_exchange` and `compare_exchange_weak` methods instead.
899 - [Changes in how `TokenStream`s are checked have fixed some cases where you could write
900   unhygenic `macro_rules!` macros.][79472]
901 - [`#![test]` as an inner attribute is now considered unstable like other inner macro
902   attributes, and reports an error by default through the `soft_unstable` lint.][79003]
903 - [Overriding a `forbid` lint at the same level that it was set is now a hard error.][78864]
904 - [You can no longer intercept `panic!` calls by supplying your own macro.][78343] It's
905   recommended to use the `#[panic_handler]` attribute to provide your own implementation.
906 - [Semi-colons after item statements (e.g. `struct Foo {};`) now produce a warning.][78296]
907
908 [74989]: https://github.com/rust-lang/rust/pull/74989
909 [79261]: https://github.com/rust-lang/rust/pull/79261
910 [79896]: https://github.com/rust-lang/rust/pull/79896
911 [79484]: https://github.com/rust-lang/rust/pull/79484
912 [79472]: https://github.com/rust-lang/rust/pull/79472
913 [79270]: https://github.com/rust-lang/rust/pull/79270
914 [79003]: https://github.com/rust-lang/rust/pull/79003
915 [78864]: https://github.com/rust-lang/rust/pull/78864
916 [78636]: https://github.com/rust-lang/rust/pull/78636
917 [78439]: https://github.com/rust-lang/rust/pull/78439
918 [78343]: https://github.com/rust-lang/rust/pull/78343
919 [78296]: https://github.com/rust-lang/rust/pull/78296
920 [78068]: https://github.com/rust-lang/rust/pull/78068
921 [75752]: https://github.com/rust-lang/rust/pull/75752
922 [74699]: https://github.com/rust-lang/rust/pull/74699
923 [78142]: https://github.com/rust-lang/rust/pull/78142
924 [77484]: https://github.com/rust-lang/rust/pull/77484
925 [cargo/8976]: https://github.com/rust-lang/cargo/pull/8976
926 [cargo/8973]: https://github.com/rust-lang/cargo/pull/8973
927 [cargo/8725]: https://github.com/rust-lang/cargo/pull/8725
928 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv4
929 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv6
930 [`IpAddr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_unspecified
931 [`IpAddr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_loopback
932 [`IpAddr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_multicast
933 [`Ipv4Addr::octets`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.octets
934 [`Ipv4Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_loopback
935 [`Ipv4Addr::is_private`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_private
936 [`Ipv4Addr::is_link_local`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_link_local
937 [`Ipv4Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_multicast
938 [`Ipv4Addr::is_broadcast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_broadcast
939 [`Ipv4Addr::is_documentation`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_documentation
940 [`Ipv4Addr::to_ipv6_compatible`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_compatible
941 [`Ipv4Addr::to_ipv6_mapped`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_mapped
942 [`Ipv6Addr::segments`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.segments
943 [`Ipv6Addr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_unspecified
944 [`Ipv6Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_loopback
945 [`Ipv6Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_multicast
946 [`Ipv6Addr::to_ipv4`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.to_ipv4
947 [`Layout::align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.align
948 [`Layout::from_size_align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.from_size_align
949 [`Layout::size`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.size
950 [`Ord::clamp`]: https://doc.rust-lang.org/stable/std/cmp/trait.Ord.html#method.clamp
951 [`RefCell::take`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.take
952 [`UnsafeCell::get_mut`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.get_mut
953 [`bool::then`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then
954 [`btree_map::Entry::or_insert_with_key`]: https://doc.rust-lang.org/stable/std/collections/btree_map/enum.Entry.html#method.or_insert_with_key
955 [`f32::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.clamp
956 [`f64::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.clamp
957 [`hash_map::Entry::or_insert_with_key`]: https://doc.rust-lang.org/stable/std/collections/hash_map/enum.Entry.html#method.or_insert_with_key
958 [`slice::fill`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.fill
959
960
961 Version 1.49.0 (2020-12-31)
962 ============================
963
964 Language
965 -----------------------
966
967 - [Unions can now implement `Drop`, and you can now have a field in a union
968   with `ManuallyDrop<T>`.][77547]
969 - [You can now cast uninhabited enums to integers.][76199]
970 - [You can now bind by reference and by move in patterns.][76119] This
971   allows you to selectively borrow individual components of a type. E.g.
972   ```rust
973   #[derive(Debug)]
974   struct Person {
975       name: String,
976       age: u8,
977   }
978
979   let person = Person {
980       name: String::from("Alice"),
981       age: 20,
982   };
983
984   // `name` is moved out of person, but `age` is referenced.
985   let Person { name, ref age } = person;
986   println!("{} {}", name, age);
987   ```
988
989 Compiler
990 -----------------------
991
992 - [Added tier 1\* support for `aarch64-unknown-linux-gnu`.][78228]
993 - [Added tier 2 support for `aarch64-apple-darwin`.][75991]
994 - [Added tier 2 support for `aarch64-pc-windows-msvc`.][75914]
995 - [Added tier 3 support for `mipsel-unknown-none`.][78676]
996 - [Raised the minimum supported LLVM version to LLVM 9.][78848]
997 - [Output from threads spawned in tests is now captured.][78227]
998 - [Change os and vendor values to "none" and "unknown" for some targets][78951]
999
1000 \* Refer to Rust's [platform support page][platform-support-doc] for more
1001 information on Rust's tiered platform support.
1002
1003 Libraries
1004 -----------------------
1005
1006 - [`RangeInclusive` now checks for exhaustion when calling `contains` and indexing.][78109]
1007 - [`ToString::to_string` now no longer shrinks the internal buffer in the default implementation.][77997]
1008
1009 Stabilized APIs
1010 ---------------
1011
1012 - [`slice::select_nth_unstable`]
1013 - [`slice::select_nth_unstable_by`]
1014 - [`slice::select_nth_unstable_by_key`]
1015
1016 The following previously stable methods are now `const`.
1017
1018 - [`Poll::is_ready`]
1019 - [`Poll::is_pending`]
1020
1021 Cargo
1022 -----------------------
1023 - [Building a crate with `cargo-package` should now be independently reproducible.][cargo/8864]
1024 - [`cargo-tree` now marks proc-macro crates.][cargo/8765]
1025 - [Added `CARGO_PRIMARY_PACKAGE` build-time environment variable.][cargo/8758] This
1026   variable will be set if the crate being built is one the user selected to build, either
1027   with `-p` or through defaults.
1028 - [You can now use glob patterns when specifying packages & targets.][cargo/8752]
1029
1030
1031 Compatibility Notes
1032 -------------------
1033
1034 - [Demoted `i686-unknown-freebsd` from host tier 2 to target tier 2 support.][78746]
1035 - [Macros that end with a semi-colon are now treated as statements even if they expand to nothing.][78376]
1036 - [Rustc will now check for the validity of some built-in attributes on enum variants.][77015]
1037   Previously such invalid or unused attributes could be ignored.
1038 - Leading whitespace is stripped more uniformly in documentation comments, which may change behavior. You
1039   read [this post about the changes][rustdoc-ws-post] for more details.
1040 - [Trait bounds are no longer inferred for associated types.][79904]
1041
1042 Internal Only
1043 -------------
1044 These changes provide no direct user facing benefits, but represent significant
1045 improvements to the internals and overall performance of rustc and
1046 related tools.
1047
1048 - [rustc's internal crates are now compiled using the `initial-exec` Thread
1049   Local Storage model.][78201]
1050 - [Calculate visibilities once in resolve.][78077]
1051 - [Added `system` to the `llvm-libunwind` bootstrap config option.][77703]
1052 - [Added `--color` for configuring terminal color support to bootstrap.][79004]
1053
1054
1055 [75991]: https://github.com/rust-lang/rust/pull/75991
1056 [78951]: https://github.com/rust-lang/rust/pull/78951
1057 [78848]: https://github.com/rust-lang/rust/pull/78848
1058 [78746]: https://github.com/rust-lang/rust/pull/78746
1059 [78376]: https://github.com/rust-lang/rust/pull/78376
1060 [78228]: https://github.com/rust-lang/rust/pull/78228
1061 [78227]: https://github.com/rust-lang/rust/pull/78227
1062 [78201]: https://github.com/rust-lang/rust/pull/78201
1063 [78109]: https://github.com/rust-lang/rust/pull/78109
1064 [78077]: https://github.com/rust-lang/rust/pull/78077
1065 [77997]: https://github.com/rust-lang/rust/pull/77997
1066 [77703]: https://github.com/rust-lang/rust/pull/77703
1067 [77547]: https://github.com/rust-lang/rust/pull/77547
1068 [77015]: https://github.com/rust-lang/rust/pull/77015
1069 [76199]: https://github.com/rust-lang/rust/pull/76199
1070 [76119]: https://github.com/rust-lang/rust/pull/76119
1071 [75914]: https://github.com/rust-lang/rust/pull/75914
1072 [79004]: https://github.com/rust-lang/rust/pull/79004
1073 [78676]: https://github.com/rust-lang/rust/pull/78676
1074 [79904]: https://github.com/rust-lang/rust/issues/79904
1075 [cargo/8864]: https://github.com/rust-lang/cargo/pull/8864
1076 [cargo/8765]: https://github.com/rust-lang/cargo/pull/8765
1077 [cargo/8758]: https://github.com/rust-lang/cargo/pull/8758
1078 [cargo/8752]: https://github.com/rust-lang/cargo/pull/8752
1079 [`slice::select_nth_unstable`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable
1080 [`slice::select_nth_unstable_by`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by
1081 [`slice::select_nth_unstable_by_key`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by_key
1082 [`hint::spin_loop`]: https://doc.rust-lang.org/stable/std/hint/fn.spin_loop.html
1083 [`Poll::is_ready`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_ready
1084 [`Poll::is_pending`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_pending
1085 [rustdoc-ws-post]: https://blog.guillaume-gomez.fr/articles/2020-11-11+New+doc+comment+handling+in+rustdoc
1086
1087 Version 1.48.0 (2020-11-19)
1088 ==========================
1089
1090 Language
1091 --------
1092
1093 - [The `unsafe` keyword is now syntactically permitted on modules.][75857] This
1094   is still rejected *semantically*, but can now be parsed by procedural macros.
1095
1096 Compiler
1097 --------
1098 - [Stabilised the `-C link-self-contained=<yes|no>` compiler flag.][76158] This tells
1099   `rustc` whether to link its own C runtime and libraries or to rely on a external
1100   linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.)
1101 - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386]
1102   Note: If you're using cargo you must explicitly pass the `--target` flag.
1103 - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420]
1104
1105 \* Refer to Rust's [platform support page][platform-support-doc] for more
1106 information on Rust's tiered platform support.
1107
1108 Libraries
1109 ---------
1110 - [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`,
1111   and `&Stderr`.][76275]
1112 - [All arrays of any length now implement `TryFrom<Vec<T>>`.][76310]
1113 - [The `matches!` macro now supports having a trailing comma.][74880]
1114 - [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194]
1115 - [The `RefCell::{replace, replace_with, clone}` methods now all use `#[track_caller]`.][77055]
1116
1117 Stabilized APIs
1118 ---------------
1119 - [`slice::as_ptr_range`]
1120 - [`slice::as_mut_ptr_range`]
1121 - [`VecDeque::make_contiguous`]
1122 - [`future::pending`]
1123 - [`future::ready`]
1124
1125 The following previously stable methods are now `const fn`'s:
1126
1127 - [`Option::is_some`]
1128 - [`Option::is_none`]
1129 - [`Option::as_ref`]
1130 - [`Result::is_ok`]
1131 - [`Result::is_err`]
1132 - [`Result::as_ref`]
1133 - [`Ordering::reverse`]
1134 - [`Ordering::then`]
1135
1136 Cargo
1137 -----
1138
1139 Rustdoc
1140 -------
1141 - [You can now link to items in `rustdoc` using the intra-doc link
1142   syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate
1143   a link to `std::future`'s documentation. See ["Linking to items by
1144   name"][intradoc-links] for more information.
1145 - [You can now specify `#[doc(alias = "<alias>")]` on items to add search aliases
1146   when searching through `rustdoc`'s UI.][75740]
1147
1148 Compatibility Notes
1149 -------------------
1150 - [Promotion of references to `'static` lifetime inside `const fn` now follows the
1151   same rules as inside a `fn` body.][75502] In particular, `&foo()` will not be
1152   promoted to `'static` lifetime any more inside `const fn`s.
1153 - [Associated type bindings on trait objects are now verified to meet the bounds
1154   declared on the trait when checking that they implement the trait.][27675]
1155 - [When trait bounds on associated types or opaque types are ambiguous, the
1156   compiler no longer makes an arbitrary choice on which bound to use.][54121]
1157 - [Fixed recursive nonterminals not being expanded in macros during
1158   pretty-print/reparse check.][77153] This may cause errors if your macro wasn't
1159   correctly handling recursive nonterminal tokens.
1160 - [`&mut` references to non zero-sized types are no longer promoted.][75585]
1161 - [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]`
1162   in places where they have no effect.][73461]
1163 - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in
1164   `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166]
1165 - [`mem::uninitialized` will now panic if any inner types inside a struct or enum
1166   disallow zero-initialization.][71274]
1167 - [`#[target_feature]` will now error if used in a place where it has no effect.][78143]
1168 - [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212]
1169   Note: This behaviour is not guaranteed and is still considered undefined behaviour,
1170   see the [`catch_unwind`] documentation for further information.
1171
1172
1173
1174 Internal Only
1175 -------------
1176 These changes provide no direct user facing benefits, but represent significant
1177 improvements to the internals and overall performance of rustc and
1178 related tools.
1179
1180 - [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
1181   You can continue building with `make` by setting `ninja=false` in
1182   your `config.toml`.
1183 - [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
1184 - [Made `ensure_sufficient_stack()` non-generic][76680]
1185
1186 [78143]: https://github.com/rust-lang/rust/issues/78143
1187 [76680]: https://github.com/rust-lang/rust/pull/76680/
1188 [76030]: https://github.com/rust-lang/rust/pull/76030/
1189 [70212]: https://github.com/rust-lang/rust/pull/70212/
1190 [27675]: https://github.com/rust-lang/rust/issues/27675/
1191 [54121]: https://github.com/rust-lang/rust/issues/54121/
1192 [71274]: https://github.com/rust-lang/rust/pull/71274/
1193 [77386]: https://github.com/rust-lang/rust/pull/77386/
1194 [77153]: https://github.com/rust-lang/rust/pull/77153/
1195 [77055]: https://github.com/rust-lang/rust/pull/77055/
1196 [76275]: https://github.com/rust-lang/rust/pull/76275/
1197 [76310]: https://github.com/rust-lang/rust/pull/76310/
1198 [76420]: https://github.com/rust-lang/rust/pull/76420/
1199 [76158]: https://github.com/rust-lang/rust/pull/76158/
1200 [75857]: https://github.com/rust-lang/rust/pull/75857/
1201 [75585]: https://github.com/rust-lang/rust/pull/75585/
1202 [75740]: https://github.com/rust-lang/rust/pull/75740/
1203 [75502]: https://github.com/rust-lang/rust/pull/75502/
1204 [74880]: https://github.com/rust-lang/rust/pull/74880/
1205 [74922]: https://github.com/rust-lang/rust/pull/74922/
1206 [74430]: https://github.com/rust-lang/rust/pull/74430/
1207 [74194]: https://github.com/rust-lang/rust/pull/74194/
1208 [73461]: https://github.com/rust-lang/rust/pull/73461/
1209 [73166]: https://github.com/rust-lang/rust/pull/73166/
1210 [intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
1211 [`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
1212 [`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some
1213 [`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none
1214 [`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref
1215 [`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok
1216 [`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err
1217 [`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref
1218 [`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse
1219 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
1220 [`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range
1221 [`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range
1222 [`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous
1223 [`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html
1224 [`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html
1225
1226
1227 Version 1.47.0 (2020-10-08)
1228 ==========================
1229
1230 Language
1231 --------
1232 - [Closures will now warn when not used.][74869]
1233
1234 Compiler
1235 --------
1236 - [Stabilized the `-C control-flow-guard` codegen option][73893], which enables
1237   [Control Flow Guard][1.47.0-cfg] for Windows platforms, and is ignored on other
1238   platforms.
1239 - [Upgraded to LLVM 11.][73526]
1240 - [Added tier 3\* support for the `thumbv4t-none-eabi` target.][74419]
1241 - [Upgrade the FreeBSD toolchain to version 11.4][75204]
1242 - [`RUST_BACKTRACE`'s output is now more compact.][75048]
1243
1244 \* Refer to Rust's [platform support page][platform-support-doc] for more
1245 information on Rust's tiered platform support.
1246
1247 Libraries
1248 ---------
1249 - [`CStr` now implements `Index<RangeFrom<usize>>`.][74021]
1250 - [Traits in `std`/`core` are now implemented for arrays of any length, not just
1251   those of length less than 33.][74060]
1252 - [`ops::RangeFull` and `ops::Range` now implement Default.][73197]
1253 - [`panic::Location` now implements `Copy`, `Clone`, `Eq`, `Hash`, `Ord`,
1254   `PartialEq`, and `PartialOrd`.][73583]
1255
1256 Stabilized APIs
1257 ---------------
1258 - [`Ident::new_raw`]
1259 - [`Range::is_empty`]
1260 - [`RangeInclusive::is_empty`]
1261 - [`Result::as_deref`]
1262 - [`Result::as_deref_mut`]
1263 - [`Vec::leak`]
1264 - [`pointer::offset_from`]
1265 - [`f32::TAU`]
1266 - [`f64::TAU`]
1267
1268 The following previously stable APIs have now been made const.
1269
1270 - [The `new` method for all `NonZero` integers.][73858]
1271 - [The `checked_add`,`checked_sub`,`checked_mul`,`checked_neg`, `checked_shl`,
1272   `checked_shr`, `saturating_add`, `saturating_sub`, and `saturating_mul`
1273   methods for all integers.][73858]
1274 - [The `checked_abs`, `saturating_abs`, `saturating_neg`, and `signum`  for all
1275   signed integers.][73858]
1276 - [The `is_ascii_alphabetic`, `is_ascii_uppercase`, `is_ascii_lowercase`,
1277   `is_ascii_alphanumeric`, `is_ascii_digit`, `is_ascii_hexdigit`,
1278   `is_ascii_punctuation`, `is_ascii_graphic`, `is_ascii_whitespace`, and
1279   `is_ascii_control` methods for `char` and `u8`.][73858]
1280
1281 Cargo
1282 -----
1283 - [`build-dependencies` are now built with opt-level 0 by default.][cargo/8500]
1284   You can override this by setting the following in your `Cargo.toml`.
1285   ```toml
1286   [profile.release.build-override]
1287   opt-level = 3
1288   ```
1289 - [`cargo-help` will now display man pages for commands rather just the
1290   `--help` text.][cargo/8456]
1291 - [`cargo-metadata` now emits a `test` field indicating if a target has
1292   tests enabled.][cargo/8478]
1293 - [`workspace.default-members` now respects `workspace.exclude`.][cargo/8485]
1294 - [`cargo-publish` will now use an alternative registry by default if it's the
1295   only registry specified in `package.publish`.][cargo/8571]
1296
1297 Misc
1298 ----
1299 - [Added a help button beside Rustdoc's searchbar that explains rustdoc's
1300   type based search.][75366]
1301 - [Added the Ayu theme to rustdoc.][71237]
1302
1303 Compatibility Notes
1304 -------------------
1305 - [Bumped the minimum supported Emscripten version to 1.39.20.][75716]
1306 - [Fixed a regression parsing `{} && false` in tail expressions.][74650]
1307 - [Added changes to how proc-macros are expanded in `macro_rules!` that should
1308   help to preserve more span information.][73084] These changes may cause
1309   compiliation errors if your macro was unhygenic or didn't correctly handle
1310   `Delimiter::None`.
1311 - [Moved support for the CloudABI target to tier 3.][75568]
1312 - [`linux-gnu` targets now require minimum kernel 2.6.32 and glibc 2.11.][74163]
1313 - [Added the `rustc-docs` component.][75560] This allows you to install
1314   and read the documentation for the compiler internal APIs. (Currently only
1315   available for `x86_64-unknown-linux-gnu`.)
1316
1317 Internal Only
1318 --------
1319
1320 - [Improved default settings for bootstrapping in `x.py`.][73964] You can read details about this change in the ["Changes to `x.py` defaults"](https://blog.rust-lang.org/inside-rust/2020/08/30/changes-to-x-py-defaults.html) post on the Inside Rust blog.
1321
1322 [1.47.0-cfg]: https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard
1323 [75048]: https://github.com/rust-lang/rust/pull/75048/
1324 [74163]: https://github.com/rust-lang/rust/pull/74163/
1325 [71237]: https://github.com/rust-lang/rust/pull/71237/
1326 [74869]: https://github.com/rust-lang/rust/pull/74869/
1327 [73858]: https://github.com/rust-lang/rust/pull/73858/
1328 [75716]: https://github.com/rust-lang/rust/pull/75716/
1329 [75908]: https://github.com/rust-lang/rust/pull/75908/
1330 [75516]: https://github.com/rust-lang/rust/pull/75516/
1331 [75560]: https://github.com/rust-lang/rust/pull/75560/
1332 [75568]: https://github.com/rust-lang/rust/pull/75568/
1333 [75366]: https://github.com/rust-lang/rust/pull/75366/
1334 [75204]: https://github.com/rust-lang/rust/pull/75204/
1335 [74650]: https://github.com/rust-lang/rust/pull/74650/
1336 [74419]: https://github.com/rust-lang/rust/pull/74419/
1337 [73964]: https://github.com/rust-lang/rust/pull/73964/
1338 [74021]: https://github.com/rust-lang/rust/pull/74021/
1339 [74060]: https://github.com/rust-lang/rust/pull/74060/
1340 [73893]: https://github.com/rust-lang/rust/pull/73893/
1341 [73526]: https://github.com/rust-lang/rust/pull/73526/
1342 [73583]: https://github.com/rust-lang/rust/pull/73583/
1343 [73084]: https://github.com/rust-lang/rust/pull/73084/
1344 [73197]: https://github.com/rust-lang/rust/pull/73197/
1345 [72488]: https://github.com/rust-lang/rust/pull/72488/
1346 [cargo/8456]: https://github.com/rust-lang/cargo/pull/8456/
1347 [cargo/8478]: https://github.com/rust-lang/cargo/pull/8478/
1348 [cargo/8485]: https://github.com/rust-lang/cargo/pull/8485/
1349 [cargo/8500]: https://github.com/rust-lang/cargo/pull/8500/
1350 [cargo/8571]: https://github.com/rust-lang/cargo/pull/8571/
1351 [`Ident::new_raw`]:  https://doc.rust-lang.org/nightly/proc_macro/struct.Ident.html#method.new_raw
1352 [`Range::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.Range.html#method.is_empty
1353 [`RangeInclusive::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html#method.is_empty
1354 [`Result::as_deref_mut`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref_mut
1355 [`Result::as_deref`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref
1356 [`TypeId::of`]: https://doc.rust-lang.org/nightly/std/any/struct.TypeId.html#method.of
1357 [`Vec::leak`]: https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.leak
1358 [`f32::TAU`]: https://doc.rust-lang.org/nightly/std/f32/consts/constant.TAU.html
1359 [`f64::TAU`]: https://doc.rust-lang.org/nightly/std/f64/consts/constant.TAU.html
1360 [`pointer::offset_from`]: https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset_from
1361
1362
1363 Version 1.46.0 (2020-08-27)
1364 ==========================
1365
1366 Language
1367 --------
1368 - [`if`, `match`, and `loop` expressions can now be used in const functions.][72437]
1369 - [Additionally you are now also able to coerce and cast to slices (`&[T]`) in
1370   const functions.][73862]
1371 - [The `#[track_caller]` attribute can now be added to functions to use the
1372   function's caller's location information for panic messages.][72445]
1373 - [Recursively indexing into tuples no longer needs parentheses.][71322] E.g.
1374   `x.0.0` over `(x.0).0`.
1375 - [`mem::transmute` can now be used in statics and constants.][72920] **Note**
1376   You currently can't use `mem::transmute` in constant functions.
1377
1378 Compiler
1379 --------
1380 - [You can now use the `cdylib` target on Apple iOS and tvOS platforms.][73516]
1381 - [Enabled static "Position Independent Executables" by default
1382   for `x86_64-unknown-linux-musl`.][70740]
1383
1384 Libraries
1385 ---------
1386 - [`mem::forget` is now a `const fn`.][73887]
1387 - [`String` now implements `From<char>`.][73466]
1388 - [The `leading_ones`, and `trailing_ones` methods have been stabilised for all
1389   integer types.][73032]
1390 - [`vec::IntoIter<T>` now implements `AsRef<[T]>`.][72583]
1391 - [All non-zero integer types (`NonZeroU8`) now implement `TryFrom` for their
1392   zero-able equivalent (e.g. `TryFrom<u8>`).][72717]
1393 - [`&[T]` and `&mut [T]` now implement `PartialEq<Vec<T>>`.][71660]
1394 - [`(String, u16)` now implements `ToSocketAddrs`.][73007]
1395 - [`vec::Drain<'_, T>` now implements `AsRef<[T]>`.][72584]
1396
1397 Stabilized APIs
1398 ---------------
1399 - [`Option::zip`]
1400 - [`vec::Drain::as_slice`]
1401
1402 Cargo
1403 -----
1404 Added a number of new environment variables that are now available when
1405 compiling your crate.
1406
1407 - [`CARGO_BIN_NAME` and `CARGO_CRATE_NAME`][cargo/8270] Providing the name of
1408   the specific binary being compiled and the name of the crate.
1409 - [`CARGO_PKG_LICENSE`][cargo/8325] The license from the manifest of the package.
1410 - [`CARGO_PKG_LICENSE_FILE`][cargo/8387] The path to the license file.
1411
1412 Compatibility Notes
1413 -------------------
1414 - [The target configuration option `abi_blacklist` has been renamed
1415   to `unsupported_abis`.][74150] The old name will still continue to work.
1416 - [Rustc will now warn if you cast a C-like enum that implements `Drop`.][72331]
1417   This was previously accepted but will become a hard error in a future release.
1418 - [Rustc will fail to compile if you have a struct with
1419   `#[repr(i128)]` or `#[repr(u128)]`.][74109] This representation is currently only
1420   allowed on `enum`s.
1421 - [Tokens passed to `macro_rules!` are now always captured.][73293] This helps
1422   ensure that spans have the correct information, and may cause breakage if you
1423   were relying on receiving spans with dummy information.
1424 - [The InnoSetup installer for Windows is no longer available.][72569] This was
1425   a legacy installer that was replaced by a MSI installer a few years ago but
1426   was still being built.
1427 - [`{f32, f64}::asinh` now returns the correct values for negative numbers.][72486]
1428 - [Rustc will no longer accept overlapping trait implementations that only
1429   differ in how the lifetime was bound.][72493]
1430 - [Rustc now correctly relates the lifetime of an existential associated
1431   type.][71896] This fixes some edge cases where `rustc` would erroneously allow
1432   you to pass a shorter lifetime than expected.
1433 - [Rustc now dynamically links to `libz` (also called `zlib`) on Linux.][74420]
1434   The library will need to be installed for `rustc` to work, even though we
1435   expect it to be already available on most systems.
1436 - [Tests annotated with `#[should_panic]` are broken on ARMv7 while running
1437   under QEMU.][74820]
1438 - [Pretty printing of some tokens in procedural macros changed.][75453] The
1439   exact output returned by rustc's pretty printing is an unstable
1440   implementation detail: we recommend any macro relying on it to switch to a
1441   more robust parsing system.
1442
1443 [75453]: https://github.com/rust-lang/rust/issues/75453/
1444 [74820]: https://github.com/rust-lang/rust/issues/74820/
1445 [74420]: https://github.com/rust-lang/rust/issues/74420/
1446 [74109]: https://github.com/rust-lang/rust/pull/74109/
1447 [74150]: https://github.com/rust-lang/rust/pull/74150/
1448 [73862]: https://github.com/rust-lang/rust/pull/73862/
1449 [73887]: https://github.com/rust-lang/rust/pull/73887/
1450 [73466]: https://github.com/rust-lang/rust/pull/73466/
1451 [73516]: https://github.com/rust-lang/rust/pull/73516/
1452 [73293]: https://github.com/rust-lang/rust/pull/73293/
1453 [73007]: https://github.com/rust-lang/rust/pull/73007/
1454 [73032]: https://github.com/rust-lang/rust/pull/73032/
1455 [72920]: https://github.com/rust-lang/rust/pull/72920/
1456 [72569]: https://github.com/rust-lang/rust/pull/72569/
1457 [72583]: https://github.com/rust-lang/rust/pull/72583/
1458 [72584]: https://github.com/rust-lang/rust/pull/72584/
1459 [72717]: https://github.com/rust-lang/rust/pull/72717/
1460 [72437]: https://github.com/rust-lang/rust/pull/72437/
1461 [72445]: https://github.com/rust-lang/rust/pull/72445/
1462 [72486]: https://github.com/rust-lang/rust/pull/72486/
1463 [72493]: https://github.com/rust-lang/rust/pull/72493/
1464 [72331]: https://github.com/rust-lang/rust/pull/72331/
1465 [71896]: https://github.com/rust-lang/rust/pull/71896/
1466 [71660]: https://github.com/rust-lang/rust/pull/71660/
1467 [71322]: https://github.com/rust-lang/rust/pull/71322/
1468 [70740]: https://github.com/rust-lang/rust/pull/70740/
1469 [cargo/8270]: https://github.com/rust-lang/cargo/pull/8270/
1470 [cargo/8325]: https://github.com/rust-lang/cargo/pull/8325/
1471 [cargo/8387]: https://github.com/rust-lang/cargo/pull/8387/
1472 [`Option::zip`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.zip
1473 [`vec::Drain::as_slice`]: https://doc.rust-lang.org/stable/std/vec/struct.Drain.html#method.as_slice
1474
1475
1476 Version 1.45.2 (2020-08-03)
1477 ==========================
1478
1479 * [Fix bindings in tuple struct patterns][74954]
1480 * [Fix track_caller integration with trait objects][74784]
1481
1482 [74954]: https://github.com/rust-lang/rust/issues/74954
1483 [74784]: https://github.com/rust-lang/rust/issues/74784
1484
1485
1486 Version 1.45.1 (2020-07-30)
1487 ==========================
1488
1489 * [Fix const propagation with references.][73613]
1490 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
1491 * [Avoid spurious implicit region bound.][74509]
1492 * [Install clippy on x.py install][74457]
1493
1494 [73613]: https://github.com/rust-lang/rust/pull/73613
1495 [73078]: https://github.com/rust-lang/rust/issues/73078
1496 [74509]: https://github.com/rust-lang/rust/pull/74509
1497 [74457]: https://github.com/rust-lang/rust/pull/74457
1498
1499
1500 Version 1.45.0 (2020-07-16)
1501 ==========================
1502
1503 Language
1504 --------
1505 - [Out of range float to int conversions using `as` has been defined as a saturating
1506   conversion.][71269] This was previously undefined behaviour, but you can use the
1507    `{f64, f32}::to_int_unchecked` methods to continue using the current behaviour, which
1508    may be desirable in rare performance sensitive situations.
1509 - [`mem::Discriminant<T>` now uses `T`'s discriminant type instead of always
1510   using `u64`.][70705]
1511 - [Function like procedural macros can now be used in expression, pattern, and  statement
1512   positions.][68717] This means you can now use a function-like procedural macro
1513   anywhere you can use a declarative (`macro_rules!`) macro.
1514
1515 Compiler
1516 --------
1517 - [You can now override individual target features through the `target-feature`
1518   flag.][72094] E.g. `-C target-feature=+avx2 -C target-feature=+fma` is now
1519   equivalent to `-C target-feature=+avx2,+fma`.
1520 - [Added the `force-unwind-tables` flag.][69984] This option allows
1521   rustc to always generate unwind tables regardless of panic strategy.
1522 - [Added the `embed-bitcode` flag.][71716] This codegen flag allows rustc
1523   to include LLVM bitcode into generated `rlib`s (this is on by default).
1524 - [Added the `tiny` value to the `code-model` codegen flag.][72397]
1525 - [Added tier 3 support\* for the `mipsel-sony-psp` target.][72062]
1526 - [Added tier 3 support for the `thumbv7a-uwp-windows-msvc` target.][72133]
1527 - [Upgraded to LLVM 10.][67759]
1528
1529 \* Refer to Rust's [platform support page][platform-support-doc] for more
1530 information on Rust's tiered platform support.
1531
1532
1533 Libraries
1534 ---------
1535 - [`net::{SocketAddr, SocketAddrV4, SocketAddrV6}` now implements `PartialOrd`
1536   and `Ord`.][72239]
1537 - [`proc_macro::TokenStream` now implements `Default`.][72234]
1538 - [You can now use `char` with
1539   `ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeTo}` to iterate over
1540   a range of codepoints.][72413] E.g.
1541   you can now write the following;
1542   ```rust
1543   for ch in 'a'..='z' {
1544       print!("{}", ch);
1545   }
1546   println!();
1547   // Prints "abcdefghijklmnopqrstuvwxyz"
1548   ```
1549 - [`OsString` now implements `FromStr`.][71662]
1550 - [The `saturating_neg` method has been added to all signed integer primitive
1551   types, and the `saturating_abs` method has been added for all integer
1552   primitive types.][71886]
1553 - [`Arc<T>`, `Rc<T>` now implement  `From<Cow<'_, T>>`, and `Box` now
1554   implements `From<Cow>` when `T` is `[T: Copy]`, `str`, `CStr`, `OsStr`,
1555   or `Path`.][71447]
1556 - [`Box<[T]>` now implements `From<[T; N]>`.][71095]
1557 - [`BitOr` and `BitOrAssign` are implemented for all `NonZero`
1558   integer types.][69813]
1559 - [The `fetch_min`, and `fetch_max` methods have been added to all atomic
1560   integer types.][72324]
1561 - [The `fetch_update` method has been added to all atomic integer types.][71843]
1562
1563 Stabilized APIs
1564 ---------------
1565 - [`Arc::as_ptr`]
1566 - [`BTreeMap::remove_entry`]
1567 - [`Rc::as_ptr`]
1568 - [`rc::Weak::as_ptr`]
1569 - [`rc::Weak::from_raw`]
1570 - [`rc::Weak::into_raw`]
1571 - [`str::strip_prefix`]
1572 - [`str::strip_suffix`]
1573 - [`sync::Weak::as_ptr`]
1574 - [`sync::Weak::from_raw`]
1575 - [`sync::Weak::into_raw`]
1576 - [`char::UNICODE_VERSION`]
1577 - [`Span::resolved_at`]
1578 - [`Span::located_at`]
1579 - [`Span::mixed_site`]
1580 - [`unix::process::CommandExt::arg0`]
1581
1582 Cargo
1583 -----
1584
1585 - [Cargo uses the `embed-bitcode` flag to optimize disk usage and build
1586   time.][cargo/8066]
1587
1588 Misc
1589 ----
1590 - [Rustdoc now supports strikethrough text in Markdown.][71928] E.g.
1591   `~~outdated information~~` becomes "~~outdated information~~".
1592 - [Added an emoji to Rustdoc's deprecated API message.][72014]
1593
1594 Compatibility Notes
1595 -------------------
1596 - [Trying to self initialize a static value (that is creating a value using
1597   itself) is unsound and now causes a compile error.][71140]
1598 - [`{f32, f64}::powi` now returns a slightly different value on Windows.][73420]
1599   This is due to changes in LLVM's intrinsics which `{f32, f64}::powi` uses.
1600 - [Rustdoc's CLI's extra error exit codes have been removed.][71900] These were
1601   previously undocumented and not intended for public use. Rustdoc still provides
1602   a non-zero exit code on errors.
1603 - [Rustc's `lto` flag is incompatible with the new `embed-bitcode=no`.][71848]
1604   This may cause issues if LTO is enabled through `RUSTFLAGS` or `cargo rustc`
1605   flags while cargo is adding `embed-bitcode` itself. The recommended way to
1606   control LTO is with Cargo profiles, either in `Cargo.toml` or `.cargo/config`,
1607   or by setting `CARGO_PROFILE_<name>_LTO` in the environment.
1608
1609 Internals Only
1610 --------------
1611 - [Make clippy a git subtree instead of a git submodule][70655]
1612 - [Unify the undo log of all snapshot types][69464]
1613
1614 [71848]: https://github.com/rust-lang/rust/issues/71848/
1615 [73420]: https://github.com/rust-lang/rust/issues/73420/
1616 [72324]: https://github.com/rust-lang/rust/pull/72324/
1617 [71843]: https://github.com/rust-lang/rust/pull/71843/
1618 [71886]: https://github.com/rust-lang/rust/pull/71886/
1619 [72234]: https://github.com/rust-lang/rust/pull/72234/
1620 [72239]: https://github.com/rust-lang/rust/pull/72239/
1621 [72397]: https://github.com/rust-lang/rust/pull/72397/
1622 [72413]: https://github.com/rust-lang/rust/pull/72413/
1623 [72014]: https://github.com/rust-lang/rust/pull/72014/
1624 [72062]: https://github.com/rust-lang/rust/pull/72062/
1625 [72094]: https://github.com/rust-lang/rust/pull/72094/
1626 [72133]: https://github.com/rust-lang/rust/pull/72133/
1627 [67759]: https://github.com/rust-lang/rust/pull/67759/
1628 [71900]: https://github.com/rust-lang/rust/pull/71900/
1629 [71928]: https://github.com/rust-lang/rust/pull/71928/
1630 [71662]: https://github.com/rust-lang/rust/pull/71662/
1631 [71716]: https://github.com/rust-lang/rust/pull/71716/
1632 [71447]: https://github.com/rust-lang/rust/pull/71447/
1633 [71269]: https://github.com/rust-lang/rust/pull/71269/
1634 [71095]: https://github.com/rust-lang/rust/pull/71095/
1635 [71140]: https://github.com/rust-lang/rust/pull/71140/
1636 [70655]: https://github.com/rust-lang/rust/pull/70655/
1637 [70705]: https://github.com/rust-lang/rust/pull/70705/
1638 [69984]: https://github.com/rust-lang/rust/pull/69984/
1639 [69813]: https://github.com/rust-lang/rust/pull/69813/
1640 [69464]: https://github.com/rust-lang/rust/pull/69464/
1641 [68717]: https://github.com/rust-lang/rust/pull/68717/
1642 [cargo/8066]: https://github.com/rust-lang/cargo/pull/8066
1643 [`Arc::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.as_ptr
1644 [`BTreeMap::remove_entry`]: https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.remove_entry
1645 [`Rc::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.as_ptr
1646 [`rc::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.as_ptr
1647 [`rc::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.from_raw
1648 [`rc::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.into_raw
1649 [`sync::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.as_ptr
1650 [`sync::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.from_raw
1651 [`sync::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.into_raw
1652 [`str::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_prefix
1653 [`str::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_suffix
1654 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/stable/std/char/constant.UNICODE_VERSION.html
1655 [`Span::resolved_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.resolved_at
1656 [`Span::located_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.located_at
1657 [`Span::mixed_site`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.mixed_site
1658 [`unix::process::CommandExt::arg0`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.arg0
1659
1660
1661 Version 1.44.1 (2020-06-18)
1662 ===========================
1663
1664 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
1665 * [Don't hash executable filenames on apple platforms, fixing backtraces.][cargo/8329]
1666 * [Fix crashes when finding backtrace on macOS.][71397]
1667 * [Clippy applies lint levels into different files.][clippy/5356]
1668
1669 [71397]: https://github.com/rust-lang/rust/issues/71397
1670 [73078]: https://github.com/rust-lang/rust/issues/73078
1671 [cargo/8329]: https://github.com/rust-lang/cargo/pull/8329
1672 [clippy/5356]: https://github.com/rust-lang/rust-clippy/issues/5356
1673
1674
1675 Version 1.44.0 (2020-06-04)
1676 ==========================
1677
1678 Language
1679 --------
1680 - [You can now use `async/.await` with `#[no_std]` enabled.][69033]
1681 - [Added the `unused_braces` lint.][70081]
1682
1683 **Syntax-only changes**
1684
1685 - [Expansion-driven outline module parsing][69838]
1686 ```rust
1687 #[cfg(FALSE)]
1688 mod foo {
1689     mod bar {
1690         mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
1691     }
1692 }
1693 ```
1694
1695 These are still rejected semantically, so you will likely receive an error but
1696 these changes can be seen and parsed by macros and conditional compilation.
1697
1698 Compiler
1699 --------
1700 - [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
1701   Additionally when in incremental mode rustc defaults to 256 codegen units.
1702 - [Refactored `catch_unwind` to have zero-cost, unless unwinding is enabled and
1703   a panic is thrown.][67502]
1704 - [Added tier 3\* support for the `aarch64-unknown-none` and
1705   `aarch64-unknown-none-softfloat` targets.][68334]
1706 - [Added tier 3 support for `arm64-apple-tvos` and
1707   `x86_64-apple-tvos` targets.][68191]
1708
1709
1710 Libraries
1711 ---------
1712 - [Special cased `vec![]` to map directly to `Vec::new()`.][70632] This allows
1713   `vec![]` to be able to be used in `const` contexts.
1714 - [`convert::Infallible` now implements `Hash`.][70281]
1715 - [`OsString` now implements `DerefMut` and `IndexMut` returning
1716   a `&mut OsStr`.][70048]
1717 - [Unicode 13 is now supported.][69929]
1718 - [`String` now implements `From<&mut str>`.][69661]
1719 - [`IoSlice` now implements `Copy`.][69403]
1720 - [`Vec<T>` now implements `From<[T; N]>`.][68692] Where `N` is at most 32.
1721 - [`proc_macro::LexError` now implements `fmt::Display` and `Error`.][68899]
1722 - [`from_le_bytes`, `to_le_bytes`, `from_be_bytes`, `to_be_bytes`,
1723   `from_ne_bytes`, and `to_ne_bytes` methods are now `const` for all
1724   integer types.][69373]
1725
1726 Stabilized APIs
1727 ---------------
1728 - [`PathBuf::with_capacity`]
1729 - [`PathBuf::capacity`]
1730 - [`PathBuf::clear`]
1731 - [`PathBuf::reserve`]
1732 - [`PathBuf::reserve_exact`]
1733 - [`PathBuf::shrink_to_fit`]
1734 - [`f32::to_int_unchecked`]
1735 - [`f64::to_int_unchecked`]
1736 - [`Layout::align_to`]
1737 - [`Layout::pad_to_align`]
1738 - [`Layout::array`]
1739 - [`Layout::extend`]
1740
1741 Cargo
1742 -----
1743 - [Added the `cargo tree` command which will print a tree graph of
1744   your dependencies.][cargo/8062] E.g.
1745   ```
1746     mdbook v0.3.2 (/Users/src/rust/mdbook)
1747   ├── ammonia v3.0.0
1748   │   ├── html5ever v0.24.0
1749   │   │   ├── log v0.4.8
1750   │   │   │   └── cfg-if v0.1.9
1751   │   │   ├── mac v0.1.1
1752   │   │   └── markup5ever v0.9.0
1753   │   │       ├── log v0.4.8 (*)
1754   │   │       ├── phf v0.7.24
1755   │   │       │   └── phf_shared v0.7.24
1756   │   │       │       ├── siphasher v0.2.3
1757   │   │       │       └── unicase v1.4.2
1758   │   │       │           [build-dependencies]
1759   │   │       │           └── version_check v0.1.5
1760   ...
1761   ```
1762   You can also display dependencies on multiple versions of the same crate with
1763   `cargo tree -d` (short for `cargo tree --duplicates`).
1764
1765 Misc
1766 ----
1767 - [Rustdoc now allows you to specify `--crate-version` to have rustdoc include
1768   the version in the sidebar.][69494]
1769
1770 Compatibility Notes
1771 -------------------
1772 - [Rustc now correctly generates static libraries on Windows GNU targets with
1773   the `.a` extension, rather than the previous `.lib`.][70937]
1774 - [Removed the `-C no_integrated_as` flag from rustc.][70345]
1775 - [The `file_name` property in JSON output of macro errors now points the actual
1776   source file rather than the previous format of `<NAME macros>`.][70969]
1777   **Note:** this may not point to a file that actually exists on the user's system.
1778 - [The minimum required external LLVM version has been bumped to LLVM 8.][71147]
1779 - [`mem::{zeroed, uninitialised}` will now panic when used with types that do
1780   not allow zero initialization such as `NonZeroU8`.][66059] This was
1781   previously a warning.
1782 - [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
1783   operator has been defined as a saturating operation.][71269] This was previously
1784   undefined behaviour, but you can use the `{f64, f32}::to_int_unchecked` methods to
1785   continue using the current behaviour, which may be desirable in rare performance
1786   sensitive situations.
1787
1788 Internal Only
1789 -------------
1790 These changes provide no direct user facing benefits, but represent significant
1791 improvements to the internals and overall performance of rustc and
1792 related tools.
1793
1794 - [dep_graph Avoid allocating a set on when the number reads are small.][69778]
1795 - [Replace big JS dict with JSON parsing.][71250]
1796
1797 [69373]: https://github.com/rust-lang/rust/pull/69373/
1798 [66059]: https://github.com/rust-lang/rust/pull/66059/
1799 [68191]: https://github.com/rust-lang/rust/pull/68191/
1800 [68899]: https://github.com/rust-lang/rust/pull/68899/
1801 [71147]: https://github.com/rust-lang/rust/pull/71147/
1802 [71250]: https://github.com/rust-lang/rust/pull/71250/
1803 [70937]: https://github.com/rust-lang/rust/pull/70937/
1804 [70969]: https://github.com/rust-lang/rust/pull/70969/
1805 [70632]: https://github.com/rust-lang/rust/pull/70632/
1806 [70281]: https://github.com/rust-lang/rust/pull/70281/
1807 [70345]: https://github.com/rust-lang/rust/pull/70345/
1808 [70048]: https://github.com/rust-lang/rust/pull/70048/
1809 [70081]: https://github.com/rust-lang/rust/pull/70081/
1810 [70156]: https://github.com/rust-lang/rust/pull/70156/
1811 [71269]: https://github.com/rust-lang/rust/pull/71269/
1812 [69838]: https://github.com/rust-lang/rust/pull/69838/
1813 [69929]: https://github.com/rust-lang/rust/pull/69929/
1814 [69661]: https://github.com/rust-lang/rust/pull/69661/
1815 [69778]: https://github.com/rust-lang/rust/pull/69778/
1816 [69494]: https://github.com/rust-lang/rust/pull/69494/
1817 [69403]: https://github.com/rust-lang/rust/pull/69403/
1818 [69033]: https://github.com/rust-lang/rust/pull/69033/
1819 [68692]: https://github.com/rust-lang/rust/pull/68692/
1820 [68334]: https://github.com/rust-lang/rust/pull/68334/
1821 [67502]: https://github.com/rust-lang/rust/pull/67502/
1822 [cargo/8062]: https://github.com/rust-lang/cargo/pull/8062/
1823 [`PathBuf::with_capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.with_capacity
1824 [`PathBuf::capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.capacity
1825 [`PathBuf::clear`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.clear
1826 [`PathBuf::reserve`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve
1827 [`PathBuf::reserve_exact`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve_exact
1828 [`PathBuf::shrink_to_fit`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.shrink_to_fit
1829 [`f32::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_int_unchecked
1830 [`f64::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_int_unchecked
1831 [`Layout::align_to`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.align_to
1832 [`Layout::pad_to_align`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.pad_to_align
1833 [`Layout::array`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.array
1834 [`Layout::extend`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.extend
1835
1836
1837 Version 1.43.1 (2020-05-07)
1838 ===========================
1839
1840 * [Updated openssl-src to 1.1.1g for CVE-2020-1967.][71430]
1841 * [Fixed the stabilization of AVX-512 features.][71473]
1842 * [Fixed `cargo package --list` not working with unpublished dependencies.][cargo/8151]
1843
1844 [71430]: https://github.com/rust-lang/rust/pull/71430
1845 [71473]: https://github.com/rust-lang/rust/issues/71473
1846 [cargo/8151]: https://github.com/rust-lang/cargo/issues/8151
1847
1848
1849 Version 1.43.0 (2020-04-23)
1850 ==========================
1851
1852 Language
1853 --------
1854 - [Fixed using binary operations with `&{number}` (e.g. `&1.0`) not having
1855   the type inferred correctly.][68129]
1856 - [Attributes such as `#[cfg()]` can now be used on `if` expressions.][69201]
1857
1858 **Syntax only changes**
1859 - [Allow `type Foo: Ord` syntactically.][69361]
1860 - [Fuse associated and extern items up to defaultness.][69194]
1861 - [Syntactically allow `self` in all `fn` contexts.][68764]
1862 - [Merge `fn` syntax + cleanup item parsing.][68728]
1863 - [`item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks.][69366]
1864   For example, you may now write:
1865   ```rust
1866   macro_rules! mac_trait {
1867       ($i:item) => {
1868           trait T { $i }
1869       }
1870   }
1871   mac_trait! {
1872       fn foo() {}
1873   }
1874   ```
1875
1876 These are still rejected *semantically*, so you will likely receive an error but
1877 these changes can be seen and parsed by macros and
1878 conditional compilation.
1879
1880
1881 Compiler
1882 --------
1883 - [You can now pass multiple lint flags to rustc to override the previous
1884   flags.][67885] For example; `rustc -D unused -A unused-variables` denies
1885   everything in the `unused` lint group except `unused-variables` which
1886   is explicitly allowed. However, passing `rustc -A unused-variables -D unused` denies
1887   everything in the `unused` lint group **including** `unused-variables` since
1888   the allow flag is specified before the deny flag (and therefore overridden).
1889 - [rustc will now prefer your system MinGW libraries over its bundled libraries
1890   if they are available on `windows-gnu`.][67429]
1891 - [rustc now buffers errors/warnings printed in JSON.][69227]
1892
1893 Libraries
1894 ---------
1895 - [`Arc<[T; N]>`, `Box<[T; N]>`, and `Rc<[T; N]>`, now implement
1896   `TryFrom<Arc<[T]>>`,`TryFrom<Box<[T]>>`, and `TryFrom<Rc<[T]>>`
1897   respectively.][69538] **Note** These conversions are only available when `N`
1898   is `0..=32`.
1899 - [You can now use associated constants on floats and integers directly, rather
1900   than having to import the module.][68952] e.g. You can now write `u32::MAX` or
1901   `f32::NAN` with no imports.
1902 - [`u8::is_ascii` is now `const`.][68984]
1903 - [`String` now implements `AsMut<str>`.][68742]
1904 - [Added the `primitive` module to `std` and `core`.][67637] This module
1905   reexports Rust's primitive types. This is mainly useful in macros
1906   where you want avoid these types being shadowed.
1907 - [Relaxed some of the trait bounds on `HashMap` and `HashSet`.][67642]
1908 - [`string::FromUtf8Error` now implements `Clone + Eq`.][68738]
1909
1910 Stabilized APIs
1911 ---------------
1912 - [`Once::is_completed`]
1913 - [`f32::LOG10_2`]
1914 - [`f32::LOG2_10`]
1915 - [`f64::LOG10_2`]
1916 - [`f64::LOG2_10`]
1917 - [`iter::once_with`]
1918
1919 Cargo
1920 -----
1921 - [You can now set config `[profile]`s in your `.cargo/config`, or through
1922   your environment.][cargo/7823]
1923 - [Cargo will now set `CARGO_BIN_EXE_<name>` pointing to a binary's
1924   executable path when running integration tests or benchmarks.][cargo/7697]
1925   `<name>` is the name of your binary as-is e.g. If you wanted the executable
1926   path for a binary named `my-program`you would use `env!("CARGO_BIN_EXE_my-program")`.
1927
1928 Misc
1929 ----
1930 - [Certain checks in the `const_err` lint were deemed unrelated to const
1931   evaluation][69185], and have been moved to the `unconditional_panic` and
1932   `arithmetic_overflow` lints.
1933
1934 Compatibility Notes
1935 -------------------
1936
1937 - [Having trailing syntax in the `assert!` macro is now a hard error.][69548] This
1938   has been a warning since 1.36.0.
1939 - [Fixed `Self` not having the correctly inferred type.][69340] This incorrectly
1940   led to some instances being accepted, and now correctly emits a hard error.
1941
1942 [69340]: https://github.com/rust-lang/rust/pull/69340
1943
1944 Internal Only
1945 -------------
1946 These changes provide no direct user facing benefits, but represent significant
1947 improvements to the internals and overall performance of `rustc` and
1948 related tools.
1949
1950 - [All components are now built with `opt-level=3` instead of `2`.][67878]
1951 - [Improved how rustc generates drop code.][67332]
1952 - [Improved performance from `#[inline]`-ing certain hot functions.][69256]
1953 - [traits: preallocate 2 Vecs of known initial size][69022]
1954 - [Avoid exponential behaviour when relating types][68772]
1955 - [Skip `Drop` terminators for enum variants without drop glue][68943]
1956 - [Improve performance of coherence checks][68966]
1957 - [Deduplicate types in the generator witness][68672]
1958 - [Invert control in struct_lint_level.][68725]
1959
1960 [67332]: https://github.com/rust-lang/rust/pull/67332/
1961 [67429]: https://github.com/rust-lang/rust/pull/67429/
1962 [67637]: https://github.com/rust-lang/rust/pull/67637/
1963 [67642]: https://github.com/rust-lang/rust/pull/67642/
1964 [67878]: https://github.com/rust-lang/rust/pull/67878/
1965 [67885]: https://github.com/rust-lang/rust/pull/67885/
1966 [68129]: https://github.com/rust-lang/rust/pull/68129/
1967 [68672]: https://github.com/rust-lang/rust/pull/68672/
1968 [68725]: https://github.com/rust-lang/rust/pull/68725/
1969 [68728]: https://github.com/rust-lang/rust/pull/68728/
1970 [68738]: https://github.com/rust-lang/rust/pull/68738/
1971 [68742]: https://github.com/rust-lang/rust/pull/68742/
1972 [68764]: https://github.com/rust-lang/rust/pull/68764/
1973 [68772]: https://github.com/rust-lang/rust/pull/68772/
1974 [68943]: https://github.com/rust-lang/rust/pull/68943/
1975 [68952]: https://github.com/rust-lang/rust/pull/68952/
1976 [68966]: https://github.com/rust-lang/rust/pull/68966/
1977 [68984]: https://github.com/rust-lang/rust/pull/68984/
1978 [69022]: https://github.com/rust-lang/rust/pull/69022/
1979 [69185]: https://github.com/rust-lang/rust/pull/69185/
1980 [69194]: https://github.com/rust-lang/rust/pull/69194/
1981 [69201]: https://github.com/rust-lang/rust/pull/69201/
1982 [69227]: https://github.com/rust-lang/rust/pull/69227/
1983 [69548]: https://github.com/rust-lang/rust/pull/69548/
1984 [69256]: https://github.com/rust-lang/rust/pull/69256/
1985 [69361]: https://github.com/rust-lang/rust/pull/69361/
1986 [69366]: https://github.com/rust-lang/rust/pull/69366/
1987 [69538]: https://github.com/rust-lang/rust/pull/69538/
1988 [cargo/7823]: https://github.com/rust-lang/cargo/pull/7823
1989 [cargo/7697]: https://github.com/rust-lang/cargo/pull/7697
1990 [`Once::is_completed`]: https://doc.rust-lang.org/std/sync/struct.Once.html#method.is_completed
1991 [`f32::LOG10_2`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG10_2.html
1992 [`f32::LOG2_10`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG2_10.html
1993 [`f64::LOG10_2`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG10_2.html
1994 [`f64::LOG2_10`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG2_10.html
1995 [`iter::once_with`]: https://doc.rust-lang.org/std/iter/fn.once_with.html
1996
1997
1998 Version 1.42.0 (2020-03-12)
1999 ==========================
2000
2001 Language
2002 --------
2003 - [You can now use the slice pattern syntax with subslices.][67712] e.g.
2004   ```rust
2005   fn foo(words: &[&str]) {
2006       match words {
2007           ["Hello", "World", "!", ..] => println!("Hello World!"),
2008           ["Foo", "Bar", ..] => println!("Baz"),
2009           rest => println!("{:?}", rest),
2010       }
2011   }
2012   ```
2013 - [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning
2014   that you can create an enum that has the exact layout and ABI of the type
2015   it contains.
2016 - [You can now use outer attribute procedural macros on inline modules.][64273]
2017 - [There are some *syntax-only* changes:][67131]
2018    - `default` is syntactically allowed before items in `trait` definitions.
2019    - Items in `impl`s (i.e. `const`s, `type`s, and `fn`s) may syntactically
2020      leave out their bodies in favor of `;`.
2021    - Bounds on associated types in `impl`s are now syntactically allowed
2022      (e.g. `type Foo: Ord;`).
2023    - `...` (the C-variadic type) may occur syntactically directly as the type of
2024       any function parameter.
2025
2026   These are still rejected *semantically*, so you will likely receive an error
2027   but these changes can be seen and parsed by procedural macros and
2028   conditional compilation.
2029
2030 Compiler
2031 --------
2032 - [Added tier 2\* support for `armv7a-none-eabi`.][68253]
2033 - [Added tier 2 support for `riscv64gc-unknown-linux-gnu`.][68339]
2034 - [`Option::{expect,unwrap}` and
2035    `Result::{expect, expect_err, unwrap, unwrap_err}` now produce panic messages
2036    pointing to the location where they were called, rather than
2037    `core`'s internals. ][67887]
2038
2039 \* Refer to Rust's [platform support page][platform-support-doc] for more
2040 information on Rust's tiered platform support.
2041
2042 Libraries
2043 ---------
2044 - [`iter::Empty<T>` now implements `Send` and `Sync` for any `T`.][68348]
2045 - [`Pin::{map_unchecked, map_unchecked_mut}` no longer require the return type
2046    to implement `Sized`.][67935]
2047 - [`io::Cursor` now derives `PartialEq` and `Eq`.][67233]
2048 - [`Layout::new` is now `const`.][66254]
2049 - [Added Standard Library support for `riscv64gc-unknown-linux-gnu`.][66899]
2050
2051
2052 Stabilized APIs
2053 ---------------
2054 - [`CondVar::wait_while`]
2055 - [`CondVar::wait_timeout_while`]
2056 - [`DebugMap::key`]
2057 - [`DebugMap::value`]
2058 - [`ManuallyDrop::take`]
2059 - [`matches!`]
2060 - [`ptr::slice_from_raw_parts_mut`]
2061 - [`ptr::slice_from_raw_parts`]
2062
2063 Cargo
2064 -----
2065 - [You no longer need to include `extern crate proc_macro;` to be able to
2066   `use proc_macro;` in the `2018` edition.][cargo/7700]
2067
2068 Compatibility Notes
2069 -------------------
2070 - [`Error::description` has been deprecated, and its use will now produce a
2071   warning.][66919] It's recommended to use `Display`/`to_string` instead.
2072
2073 [68253]: https://github.com/rust-lang/rust/pull/68253/
2074 [68348]: https://github.com/rust-lang/rust/pull/68348/
2075 [67935]: https://github.com/rust-lang/rust/pull/67935/
2076 [68339]: https://github.com/rust-lang/rust/pull/68339/
2077 [68122]: https://github.com/rust-lang/rust/pull/68122/
2078 [64273]: https://github.com/rust-lang/rust/pull/64273/
2079 [67712]: https://github.com/rust-lang/rust/pull/67712/
2080 [67887]: https://github.com/rust-lang/rust/pull/67887/
2081 [67131]: https://github.com/rust-lang/rust/pull/67131/
2082 [67233]: https://github.com/rust-lang/rust/pull/67233/
2083 [66899]: https://github.com/rust-lang/rust/pull/66899/
2084 [66919]: https://github.com/rust-lang/rust/pull/66919/
2085 [66254]: https://github.com/rust-lang/rust/pull/66254/
2086 [cargo/7700]: https://github.com/rust-lang/cargo/pull/7700
2087 [`DebugMap::key`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.key
2088 [`DebugMap::value`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.value
2089 [`ManuallyDrop::take`]: https://doc.rust-lang.org/stable/std/mem/struct.ManuallyDrop.html#method.take
2090 [`matches!`]: https://doc.rust-lang.org/stable/std/macro.matches.html
2091 [`ptr::slice_from_raw_parts_mut`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts_mut.html
2092 [`ptr::slice_from_raw_parts`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts.html
2093 [`CondVar::wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while
2094 [`CondVar::wait_timeout_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_timeout_while
2095
2096
2097 Version 1.41.1 (2020-02-27)
2098 ===========================
2099
2100 * [Always check types of static items][69145]
2101 * [Always check lifetime bounds of `Copy` impls][69145]
2102 * [Fix miscompilation in callers of `Layout::repeat`][69225]
2103
2104 [69225]: https://github.com/rust-lang/rust/issues/69225
2105 [69145]: https://github.com/rust-lang/rust/pull/69145
2106
2107
2108 Version 1.41.0 (2020-01-30)
2109 ===========================
2110
2111 Language
2112 --------
2113
2114 - [You can now pass type parameters to foreign items when implementing
2115   traits.][65879] E.g. You can now write `impl<T> From<Foo> for Vec<T> {}`.
2116 - [You can now arbitrarily nest receiver types in the `self` position.][64325] E.g. you can
2117   now write `fn foo(self: Box<Box<Self>>) {}`. Previously only `Self`, `&Self`,
2118   `&mut Self`, `Arc<Self>`, `Rc<Self>`, and `Box<Self>` were allowed.
2119 - [You can now use any valid identifier in a `format_args` macro.][66847]
2120   Previously identifiers starting with an underscore were not allowed.
2121 - [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
2122   enum variants.][66183] These are still rejected semantically, but
2123   can be seen and parsed by procedural macros and conditional compilation.
2124
2125 Compiler
2126 --------
2127
2128 - [Rustc will now warn if you have unused loop `'label`s.][66325]
2129 - [Removed support for the `i686-unknown-dragonfly` target.][67255]
2130 - [Added tier 3 support\* for the `riscv64gc-unknown-linux-gnu` target.][66661]
2131 - [You can now pass an arguments file passing the `@path` syntax
2132   to rustc.][66172] Note that the format differs somewhat from what is
2133   found in other tooling; please see [the documentation][argfile-docs] for
2134   more information.
2135 - [You can now provide `--extern` flag without a path, indicating that it is
2136   available from the search path or specified with an `-L` flag.][64882]
2137
2138 \* Refer to Rust's [platform support page][platform-support-doc] for more
2139 information on Rust's tiered platform support.
2140
2141 [argfile-docs]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#path-load-command-line-flags-from-a-path
2142
2143 Libraries
2144 ---------
2145
2146 - [The `core::panic` module is now stable.][66771] It was already stable
2147   through `std`.
2148 - [`NonZero*` numerics now implement `From<NonZero*>` if it's a smaller integer
2149   width.][66277] E.g. `NonZeroU16` now implements `From<NonZeroU8>`.
2150 - [`MaybeUninit<T>` now implements `fmt::Debug`.][65013]
2151
2152 Stabilized APIs
2153 ---------------
2154
2155 - [`Result::map_or`]
2156 - [`Result::map_or_else`]
2157 - [`std::rc::Weak::weak_count`]
2158 - [`std::rc::Weak::strong_count`]
2159 - [`std::sync::Weak::weak_count`]
2160 - [`std::sync::Weak::strong_count`]
2161
2162 Cargo
2163 -----
2164
2165 - [Cargo will now document all the private items for binary crates
2166   by default.][cargo/7593]
2167 - [`cargo-install` will now reinstall the package if it detects that it is out
2168   of date.][cargo/7560]
2169 - [Cargo.lock now uses a more git friendly format that should help to reduce
2170   merge conflicts.][cargo/7579]
2171 - [You can now override specific dependencies's build settings][cargo/7591] E.g.
2172   `[profile.dev.package.image] opt-level = 2` sets the `image` crate's
2173   optimisation level to `2` for debug builds. You can also use
2174   `[profile.<profile>.build-override]` to override build scripts and
2175   their dependencies.
2176
2177 Misc
2178 ----
2179
2180 - [You can now specify `edition` in documentation code blocks to compile the block
2181   for that edition.][66238] E.g. `edition2018` tells rustdoc that the code sample
2182   should be compiled the 2018 edition of Rust.
2183 - [You can now provide custom themes to rustdoc with `--theme`, and check the
2184   current theme with `--check-theme`.][54733]
2185 - [You can use `#[cfg(doc)]` to compile an item when building documentation.][61351]
2186
2187 Compatibility Notes
2188 -------------------
2189
2190 - [As previously announced 1.41.0 will be the last tier 1 release for 32-bit
2191   Apple targets.][apple-32bit-drop] This means that the source code is still
2192   available to build, but the targets are no longer being tested and release
2193   binaries for those platforms will no longer be distributed by the Rust project.
2194   Please refer to the linked blog post for more information.
2195
2196 [54733]: https://github.com/rust-lang/rust/pull/54733/
2197 [61351]: https://github.com/rust-lang/rust/pull/61351/
2198 [67255]: https://github.com/rust-lang/rust/pull/67255/
2199 [66661]: https://github.com/rust-lang/rust/pull/66661/
2200 [66771]: https://github.com/rust-lang/rust/pull/66771/
2201 [66847]: https://github.com/rust-lang/rust/pull/66847/
2202 [66238]: https://github.com/rust-lang/rust/pull/66238/
2203 [66277]: https://github.com/rust-lang/rust/pull/66277/
2204 [66325]: https://github.com/rust-lang/rust/pull/66325/
2205 [66172]: https://github.com/rust-lang/rust/pull/66172/
2206 [66183]: https://github.com/rust-lang/rust/pull/66183/
2207 [65879]: https://github.com/rust-lang/rust/pull/65879/
2208 [65013]: https://github.com/rust-lang/rust/pull/65013/
2209 [64882]: https://github.com/rust-lang/rust/pull/64882/
2210 [64325]: https://github.com/rust-lang/rust/pull/64325/
2211 [cargo/7560]: https://github.com/rust-lang/cargo/pull/7560/
2212 [cargo/7579]: https://github.com/rust-lang/cargo/pull/7579/
2213 [cargo/7591]: https://github.com/rust-lang/cargo/pull/7591/
2214 [cargo/7593]: https://github.com/rust-lang/cargo/pull/7593/
2215 [`Result::map_or_else`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or_else
2216 [`Result::map_or`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or
2217 [`std::rc::Weak::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.weak_count
2218 [`std::rc::Weak::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.strong_count
2219 [`std::sync::Weak::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.weak_count
2220 [`std::sync::Weak::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.strong_count
2221 [apple-32bit-drop]: https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html
2222
2223 Version 1.40.0 (2019-12-19)
2224 ===========================
2225
2226 Language
2227 --------
2228 - [You can now use tuple `struct`s and tuple `enum` variant's constructors in
2229   `const` contexts.][65188] e.g.
2230
2231   ```rust
2232   pub struct Point(i32, i32);
2233
2234   const ORIGIN: Point = {
2235       let constructor = Point;
2236
2237       constructor(0, 0)
2238   };
2239   ```
2240
2241 - [You can now mark `struct`s, `enum`s, and `enum` variants with the `#[non_exhaustive]` attribute to
2242   indicate that there may be variants or fields added in the future.][64639]
2243   For example this requires adding a wild-card branch (`_ => {}`) to any match
2244   statements on a non-exhaustive `enum`. [(RFC 2008)]
2245 - [You can now use function-like procedural macros in `extern` blocks and in
2246   type positions.][63931] e.g. `type Generated = macro!();`
2247 - [Function-like and attribute procedural macros can now emit
2248   `macro_rules!` items, so you can now have your macros generate macros.][64035]
2249 - [The `meta` pattern matcher in `macro_rules!` now correctly matches the modern
2250   attribute syntax.][63674] For example `(#[$m:meta])` now matches `#[attr]`,
2251   `#[attr{tokens}]`, `#[attr[tokens]]`, and `#[attr(tokens)]`.
2252
2253 Compiler
2254 --------
2255 - [Added tier 3 support\* for the
2256   `thumbv7neon-unknown-linux-musleabihf` target.][66103]
2257 - [Added tier 3 support for the
2258   `aarch64-unknown-none-softfloat` target.][64589]
2259 - [Added tier 3 support for the `mips64-unknown-linux-muslabi64`, and
2260   `mips64el-unknown-linux-muslabi64` targets.][65843]
2261
2262 \* Refer to Rust's [platform support page][platform-support-doc] for more
2263   information on Rust's tiered platform support.
2264
2265 Libraries
2266 ---------
2267 - [The `is_power_of_two` method on unsigned numeric types is now a `const` function.][65092]
2268
2269 Stabilized APIs
2270 ---------------
2271 - [`BTreeMap::get_key_value`]
2272 - [`HashMap::get_key_value`]
2273 - [`Option::as_deref_mut`]
2274 - [`Option::as_deref`]
2275 - [`Option::flatten`]
2276 - [`UdpSocket::peer_addr`]
2277 - [`f32::to_be_bytes`]
2278 - [`f32::to_le_bytes`]
2279 - [`f32::to_ne_bytes`]
2280 - [`f64::to_be_bytes`]
2281 - [`f64::to_le_bytes`]
2282 - [`f64::to_ne_bytes`]
2283 - [`f32::from_be_bytes`]
2284 - [`f32::from_le_bytes`]
2285 - [`f32::from_ne_bytes`]
2286 - [`f64::from_be_bytes`]
2287 - [`f64::from_le_bytes`]
2288 - [`f64::from_ne_bytes`]
2289 - [`mem::take`]
2290 - [`slice::repeat`]
2291 - [`todo!`]
2292
2293 Cargo
2294 -----
2295 - [Cargo will now always display warnings, rather than only on
2296   fresh builds.][cargo/7450]
2297 - [Feature flags (except `--all-features`) passed to a virtual workspace will
2298   now produce an error.][cargo/7507] Previously these flags were ignored.
2299 - [You can now publish `dev-dependencies` without including
2300   a `version`.][cargo/7333]
2301
2302 Misc
2303 ----
2304 - [You can now specify the `#[cfg(doctest)]` attribute to include an item only
2305   when running documentation tests with `rustdoc`.][63803]
2306
2307 Compatibility Notes
2308 -------------------
2309 - [As previously announced, any previous NLL warnings in the 2015 edition are
2310   now hard errors.][64221]
2311 - [The `include!` macro will now warn if it failed to include the
2312   entire file.][64284] The `include!` macro unintentionally only includes the
2313   first _expression_ in a file, and this can be unintuitive. This will become
2314   either a hard error in a future release, or the behavior may be fixed to include all expressions as expected.
2315 - [Using `#[inline]` on function prototypes and consts now emits a warning under
2316   `unused_attribute` lint.][65294] Using `#[inline]` anywhere else inside traits
2317   or `extern` blocks now correctly emits a hard error.
2318
2319 [65294]: https://github.com/rust-lang/rust/pull/65294/
2320 [66103]: https://github.com/rust-lang/rust/pull/66103/
2321 [65843]: https://github.com/rust-lang/rust/pull/65843/
2322 [65188]: https://github.com/rust-lang/rust/pull/65188/
2323 [65092]: https://github.com/rust-lang/rust/pull/65092/
2324 [64589]: https://github.com/rust-lang/rust/pull/64589/
2325 [64639]: https://github.com/rust-lang/rust/pull/64639/
2326 [64221]: https://github.com/rust-lang/rust/pull/64221/
2327 [64284]: https://github.com/rust-lang/rust/pull/64284/
2328 [63931]: https://github.com/rust-lang/rust/pull/63931/
2329 [64035]: https://github.com/rust-lang/rust/pull/64035/
2330 [63674]: https://github.com/rust-lang/rust/pull/63674/
2331 [63803]: https://github.com/rust-lang/rust/pull/63803/
2332 [cargo/7450]: https://github.com/rust-lang/cargo/pull/7450/
2333 [cargo/7507]: https://github.com/rust-lang/cargo/pull/7507/
2334 [cargo/7525]: https://github.com/rust-lang/cargo/pull/7525/
2335 [cargo/7333]: https://github.com/rust-lang/cargo/pull/7333/
2336 [(rfc 2008)]: https://rust-lang.github.io/rfcs/2008-non-exhaustive.html
2337 [`f32::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_be_bytes
2338 [`f32::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_le_bytes
2339 [`f32::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_ne_bytes
2340 [`f64::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_be_bytes
2341 [`f64::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_le_bytes
2342 [`f64::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_ne_bytes
2343 [`f32::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_be_bytes
2344 [`f32::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_le_bytes
2345 [`f32::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_ne_bytes
2346 [`f64::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_be_bytes
2347 [`f64::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_le_bytes
2348 [`f64::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_ne_bytes
2349 [`option::flatten`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.flatten
2350 [`option::as_deref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref
2351 [`option::as_deref_mut`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref_mut
2352 [`hashmap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.get_key_value
2353 [`btreemap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.get_key_value
2354 [`slice::repeat`]: https://doc.rust-lang.org/std/primitive.slice.html#method.repeat
2355 [`mem::take`]: https://doc.rust-lang.org/std/mem/fn.take.html
2356 [`udpsocket::peer_addr`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peer_addr
2357 [`todo!`]: https://doc.rust-lang.org/std/macro.todo.html
2358
2359
2360 Version 1.39.0 (2019-11-07)
2361 ===========================
2362
2363 Language
2364 --------
2365 - [You can now create `async` functions and blocks with `async fn`, `async move {}`, and
2366   `async {}` respectively, and you can now call `.await` on async expressions.][63209]
2367 - [You can now use certain attributes on function, closure, and function pointer
2368   parameters.][64010] These attributes include `cfg`, `cfg_attr`, `allow`, `warn`,
2369   `deny`, `forbid` as well as inert helper attributes used by procedural macro
2370   attributes applied to items. e.g.
2371   ```rust
2372   fn len(
2373       #[cfg(windows)] slice: &[u16],
2374       #[cfg(not(windows))] slice: &[u8],
2375   ) -> usize {
2376       slice.len()
2377   }
2378   ```
2379 - [You can now take shared references to bind-by-move patterns in the `if` guards
2380   of `match` arms.][63118] e.g.
2381   ```rust
2382   fn main() {
2383       let array: Box<[u8; 4]> = Box::new([1, 2, 3, 4]);
2384
2385       match array {
2386           nums
2387   //      ---- `nums` is bound by move.
2388               if nums.iter().sum::<u8>() == 10
2389   //                 ^------ `.iter()` implicitly takes a reference to `nums`.
2390           => {
2391               drop(nums);
2392   //          ----------- Legal as `nums` was bound by move and so we have ownership.
2393           }
2394           _ => unreachable!(),
2395       }
2396   }
2397   ```
2398
2399
2400
2401 Compiler
2402 --------
2403 - [Added tier 3\* support for the `i686-unknown-uefi` target.][64334]
2404 - [Added tier 3 support for the `sparc64-unknown-openbsd` target.][63595]
2405 - [rustc will now trim code snippets in diagnostics to fit in your terminal.][63402]
2406   **Note** Cargo currently doesn't use this feature. Refer to
2407   [cargo#7315][cargo/7315] to track this feature's progress.
2408 - [You can now pass `--show-output` argument to test binaries to print the
2409   output of successful tests.][62600]
2410
2411
2412 \* Refer to Rust's [platform support page][platform-support-doc] for more
2413 information on Rust's tiered platform support.
2414
2415 Libraries
2416 ---------
2417 - [`Vec::new` and `String::new` are now `const` functions.][64028]
2418 - [`LinkedList::new` is now a `const` function.][63684]
2419 - [`str::len`, `[T]::len` and `str::as_bytes` are now `const` functions.][63770]
2420 - [The `abs`, `wrapping_abs`, and `overflowing_abs` numeric functions are
2421   now `const`.][63786]
2422
2423 Stabilized APIs
2424 ---------------
2425 - [`Pin::into_inner`]
2426 - [`Instant::checked_duration_since`]
2427 - [`Instant::saturating_duration_since`]
2428
2429 Cargo
2430 -----
2431 - [You can now publish git dependencies if supplied with a `version`.][cargo/7237]
2432 - [The `--all` flag has been renamed to `--workspace`.][cargo/7241] Using
2433   `--all` is now deprecated.
2434
2435 Misc
2436 ----
2437 - [You can now pass `-Clinker` to rustdoc to control the linker used
2438   for compiling doctests.][63834]
2439
2440 Compatibility Notes
2441 -------------------
2442 - [Code that was previously accepted by the old borrow checker, but rejected by
2443   the NLL borrow checker is now a hard error in Rust 2018.][63565] This was
2444   previously a warning, and will also become a hard error in the Rust 2015
2445   edition in the 1.40.0 release.
2446 - [`rustdoc` now requires `rustc` to be installed and in the same directory to
2447   run tests.][63827] This should improve performance when running a large
2448   amount of doctests.
2449 - [The `try!` macro will now issue a deprecation warning.][62672] It is
2450   recommended to use the `?` operator instead.
2451 - [`asinh(-0.0)` now correctly returns `-0.0`.][63698] Previously this
2452   returned `0.0`.
2453
2454 [62600]: https://github.com/rust-lang/rust/pull/62600/
2455 [62672]: https://github.com/rust-lang/rust/pull/62672/
2456 [63118]: https://github.com/rust-lang/rust/pull/63118/
2457 [63209]: https://github.com/rust-lang/rust/pull/63209/
2458 [63402]: https://github.com/rust-lang/rust/pull/63402/
2459 [63565]: https://github.com/rust-lang/rust/pull/63565/
2460 [63595]: https://github.com/rust-lang/rust/pull/63595/
2461 [63684]: https://github.com/rust-lang/rust/pull/63684/
2462 [63698]: https://github.com/rust-lang/rust/pull/63698/
2463 [63770]: https://github.com/rust-lang/rust/pull/63770/
2464 [63786]: https://github.com/rust-lang/rust/pull/63786/
2465 [63827]: https://github.com/rust-lang/rust/pull/63827/
2466 [63834]: https://github.com/rust-lang/rust/pull/63834/
2467 [63927]: https://github.com/rust-lang/rust/pull/63927/
2468 [63933]: https://github.com/rust-lang/rust/pull/63933/
2469 [63934]: https://github.com/rust-lang/rust/pull/63934/
2470 [63938]: https://github.com/rust-lang/rust/pull/63938/
2471 [63940]: https://github.com/rust-lang/rust/pull/63940/
2472 [63941]: https://github.com/rust-lang/rust/pull/63941/
2473 [63945]: https://github.com/rust-lang/rust/pull/63945/
2474 [64010]: https://github.com/rust-lang/rust/pull/64010/
2475 [64028]: https://github.com/rust-lang/rust/pull/64028/
2476 [64334]: https://github.com/rust-lang/rust/pull/64334/
2477 [cargo/7237]: https://github.com/rust-lang/cargo/pull/7237/
2478 [cargo/7241]: https://github.com/rust-lang/cargo/pull/7241/
2479 [cargo/7315]: https://github.com/rust-lang/cargo/pull/7315/
2480 [`Pin::into_inner`]: https://doc.rust-lang.org/std/pin/struct.Pin.html#method.into_inner
2481 [`Instant::checked_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_duration_since
2482 [`Instant::saturating_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.saturating_duration_since
2483
2484 Version 1.38.0 (2019-09-26)
2485 ==========================
2486
2487 Language
2488 --------
2489 - [The `#[global_allocator]` attribute can now be used in submodules.][62735]
2490 - [The `#[deprecated]` attribute can now be used on macros.][62042]
2491
2492 Compiler
2493 --------
2494 - [Added pipelined compilation support to `rustc`.][62766] This will
2495   improve compilation times in some cases. For further information please refer
2496   to the [_"Evaluating pipelined rustc compilation"_][pipeline-internals] thread.
2497 - [Added tier 3\* support for the `aarch64-uwp-windows-msvc`, `i686-uwp-windows-gnu`,
2498   `i686-uwp-windows-msvc`, `x86_64-uwp-windows-gnu`, and
2499   `x86_64-uwp-windows-msvc` targets.][60260]
2500 - [Added tier 3 support for the `armv7-unknown-linux-gnueabi` and
2501   `armv7-unknown-linux-musleabi` targets.][63107]
2502 - [Added tier 3 support for the `hexagon-unknown-linux-musl` target.][62814]
2503 - [Added tier 3 support for the `riscv32i-unknown-none-elf` target.][62784]
2504 - [Upgraded to LLVM 9.][62592]
2505
2506 \* Refer to Rust's [platform support page][platform-support-doc] for more
2507 information on Rust's tiered platform support.
2508
2509 Libraries
2510 ---------
2511 - [`ascii::EscapeDefault` now implements `Clone` and `Display`.][63421]
2512 - [Derive macros for prelude traits (e.g. `Clone`, `Debug`, `Hash`) are now
2513   available at the same path as the trait.][63056] (e.g. The `Clone` derive macro
2514   is available at `std::clone::Clone`). This also makes all built-in macros
2515   available in `std`/`core` root. e.g. `std::include_bytes!`.
2516 - [`str::Chars` now implements `Debug`.][63000]
2517 - [`slice::{concat, connect, join}` now accepts `&[T]` in addition to `&T`.][62528]
2518 - [`*const T` and `*mut T` now implement `marker::Unpin`.][62583]
2519 - [`Arc<[T]>` and `Rc<[T]>` now implement `FromIterator<T>`.][61953]
2520 - [Added euclidean remainder and division operations (`div_euclid`,
2521   `rem_euclid`) to all numeric primitives.][61884] Additionally `checked`,
2522   `overflowing`, and `wrapping` versions are available for all
2523   integer primitives.
2524 - [`thread::AccessError` now implements `Clone`, `Copy`, `Eq`, `Error`, and
2525   `PartialEq`.][61491]
2526 - [`iter::{StepBy, Peekable, Take}` now implement `DoubleEndedIterator`.][61457]
2527
2528 Stabilized APIs
2529 ---------------
2530 - [`<*const T>::cast`]
2531 - [`<*mut T>::cast`]
2532 - [`Duration::as_secs_f32`]
2533 - [`Duration::as_secs_f64`]
2534 - [`Duration::div_f32`]
2535 - [`Duration::div_f64`]
2536 - [`Duration::from_secs_f32`]
2537 - [`Duration::from_secs_f64`]
2538 - [`Duration::mul_f32`]
2539 - [`Duration::mul_f64`]
2540 - [`any::type_name`]
2541
2542 Cargo
2543 -----
2544 - [Added pipelined compilation support to `cargo`.][cargo/7143]
2545 - [You can now pass the `--features` option multiple times to enable
2546   multiple features.][cargo/7084]
2547
2548 Rustdoc
2549 -------
2550
2551 - [Documentation on `pub use` statements is prepended to the documentation of the re-exported item][63048]
2552
2553 Misc
2554 ----
2555 - [`rustc` will now warn about some incorrect uses of
2556   `mem::{uninitialized, zeroed}` that are known to cause undefined behaviour.][63346]
2557
2558 Compatibility Notes
2559 -------------------
2560 - The [`x86_64-unknown-uefi` platform can not be built][62785] with rustc
2561   1.38.0.
2562 - The [`armv7-unknown-linux-gnueabihf` platform is known to have
2563   issues][62896] with certain crates such as libc.
2564
2565 [60260]: https://github.com/rust-lang/rust/pull/60260/
2566 [61457]: https://github.com/rust-lang/rust/pull/61457/
2567 [61491]: https://github.com/rust-lang/rust/pull/61491/
2568 [61884]: https://github.com/rust-lang/rust/pull/61884/
2569 [61953]: https://github.com/rust-lang/rust/pull/61953/
2570 [62042]: https://github.com/rust-lang/rust/pull/62042/
2571 [62528]: https://github.com/rust-lang/rust/pull/62528/
2572 [62583]: https://github.com/rust-lang/rust/pull/62583/
2573 [62735]: https://github.com/rust-lang/rust/pull/62735/
2574 [62766]: https://github.com/rust-lang/rust/pull/62766/
2575 [62784]: https://github.com/rust-lang/rust/pull/62784/
2576 [62592]: https://github.com/rust-lang/rust/pull/62592/
2577 [62785]: https://github.com/rust-lang/rust/issues/62785/
2578 [62814]: https://github.com/rust-lang/rust/pull/62814/
2579 [62896]: https://github.com/rust-lang/rust/issues/62896/
2580 [63000]: https://github.com/rust-lang/rust/pull/63000/
2581 [63056]: https://github.com/rust-lang/rust/pull/63056/
2582 [63107]: https://github.com/rust-lang/rust/pull/63107/
2583 [63346]: https://github.com/rust-lang/rust/pull/63346/
2584 [63421]: https://github.com/rust-lang/rust/pull/63421/
2585 [cargo/7084]: https://github.com/rust-lang/cargo/pull/7084/
2586 [cargo/7143]: https://github.com/rust-lang/cargo/pull/7143/
2587 [63048]: https://github.com/rust-lang/rust/pull/63048
2588 [`<*const T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
2589 [`<*mut T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
2590 [`Duration::as_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f32
2591 [`Duration::as_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f64
2592 [`Duration::div_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f32
2593 [`Duration::div_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f64
2594 [`Duration::from_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f32
2595 [`Duration::from_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f64
2596 [`Duration::mul_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f32
2597 [`Duration::mul_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f64
2598 [`any::type_name`]: https://doc.rust-lang.org/std/any/fn.type_name.html
2599 [platform-support-doc]: https://doc.rust-lang.org/nightly/rustc/platform-support.html
2600 [pipeline-internals]: https://internals.rust-lang.org/t/evaluating-pipelined-rustc-compilation/10199
2601
2602 Version 1.37.0 (2019-08-15)
2603 ==========================
2604
2605 Language
2606 --------
2607 - `#[must_use]` will now warn if the type is contained in a [tuple][61100],
2608   [`Box`][62228], or an [array][62235] and unused.
2609 - [You can now use the `cfg` and `cfg_attr` attributes on
2610   generic parameters.][61547]
2611 - [You can now use enum variants through type alias.][61682] e.g. You can
2612   write the following:
2613   ```rust
2614   type MyOption = Option<u8>;
2615
2616   fn increment_or_zero(x: MyOption) -> u8 {
2617       match x {
2618           MyOption::Some(y) => y + 1,
2619           MyOption::None => 0,
2620       }
2621   }
2622   ```
2623 - [You can now use `_` as an identifier for consts.][61347] e.g. You can write
2624   `const _: u32 = 5;`.
2625 - [You can now use `#[repr(align(X)]` on enums.][61229]
2626 - [The  `?` Kleene macro operator is now available in the
2627   2015 edition.][60932]
2628
2629 Compiler
2630 --------
2631 - [You can now enable Profile-Guided Optimization with the `-C profile-generate`
2632   and `-C profile-use` flags.][61268] For more information on how to use profile
2633   guided optimization, please refer to the [rustc book][rustc-book-pgo].
2634 - [The `rust-lldb` wrapper script should now work again.][61827]
2635
2636 Libraries
2637 ---------
2638 - [`mem::MaybeUninit<T>` is now ABI-compatible with `T`.][61802]
2639
2640 Stabilized APIs
2641 ---------------
2642 - [`BufReader::buffer`]
2643 - [`BufWriter::buffer`]
2644 - [`Cell::from_mut`]
2645 - [`Cell<[T]>::as_slice_of_cells`][`Cell<slice>::as_slice_of_cells`]
2646 - [`DoubleEndedIterator::nth_back`]
2647 - [`Option::xor`]
2648 - [`Wrapping::reverse_bits`]
2649 - [`i128::reverse_bits`]
2650 - [`i16::reverse_bits`]
2651 - [`i32::reverse_bits`]
2652 - [`i64::reverse_bits`]
2653 - [`i8::reverse_bits`]
2654 - [`isize::reverse_bits`]
2655 - [`slice::copy_within`]
2656 - [`u128::reverse_bits`]
2657 - [`u16::reverse_bits`]
2658 - [`u32::reverse_bits`]
2659 - [`u64::reverse_bits`]
2660 - [`u8::reverse_bits`]
2661 - [`usize::reverse_bits`]
2662
2663 Cargo
2664 -----
2665 - [`Cargo.lock` files are now included by default when publishing executable crates
2666   with executables.][cargo/7026]
2667 - [You can now specify `default-run="foo"` in `[package]` to specify the
2668   default executable to use for `cargo run`.][cargo/7056]
2669
2670 Misc
2671 ----
2672
2673 Compatibility Notes
2674 -------------------
2675 - [Using `...` for inclusive range patterns will now warn by default.][61342]
2676   Please transition your code to using the `..=` syntax for inclusive
2677   ranges instead.
2678 - [Using a trait object without the `dyn` will now warn by default.][61203]
2679   Please transition your code to use `dyn Trait` for trait objects instead.
2680
2681 [62228]: https://github.com/rust-lang/rust/pull/62228/
2682 [62235]: https://github.com/rust-lang/rust/pull/62235/
2683 [61802]: https://github.com/rust-lang/rust/pull/61802/
2684 [61827]: https://github.com/rust-lang/rust/pull/61827/
2685 [61547]: https://github.com/rust-lang/rust/pull/61547/
2686 [61682]: https://github.com/rust-lang/rust/pull/61682/
2687 [61268]: https://github.com/rust-lang/rust/pull/61268/
2688 [61342]: https://github.com/rust-lang/rust/pull/61342/
2689 [61347]: https://github.com/rust-lang/rust/pull/61347/
2690 [61100]: https://github.com/rust-lang/rust/pull/61100/
2691 [61203]: https://github.com/rust-lang/rust/pull/61203/
2692 [61229]: https://github.com/rust-lang/rust/pull/61229/
2693 [60932]: https://github.com/rust-lang/rust/pull/60932/
2694 [cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/
2695 [cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/
2696 [`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer
2697 [`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer
2698 [`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut
2699 [`Cell<slice>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells
2700 [`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back
2701 [`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor
2702 [`RefCell::try_borrow_unguarded`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_unguarded
2703 [`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits
2704 [`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits
2705 [`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits
2706 [`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits
2707 [`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits
2708 [`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits
2709 [`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits
2710 [`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within
2711 [`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits
2712 [`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits
2713 [`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits
2714 [`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits
2715 [`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits
2716 [`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits
2717 [rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html
2718
2719
2720 Version 1.36.0 (2019-07-04)
2721 ==========================
2722
2723 Language
2724 --------
2725 - [Non-Lexical Lifetimes are now enabled on the 2015 edition.][59114]
2726 - [The order of traits in trait objects no longer affects the semantics of that
2727   object.][59445] e.g. `dyn Send + fmt::Debug` is now equivalent to
2728   `dyn fmt::Debug + Send`, where this was previously not the case.
2729
2730 Libraries
2731 ---------
2732 - [`HashMap`'s implementation has been replaced with `hashbrown::HashMap` implementation.][58623]
2733 - [`TryFromSliceError` now implements `From<Infallible>`.][60318]
2734 - [`mem::needs_drop` is now available as a const fn.][60364]
2735 - [`alloc::Layout::from_size_align_unchecked` is now available as a const fn.][60370]
2736 - [`String` now implements `BorrowMut<str>`.][60404]
2737 - [`io::Cursor` now implements `Default`.][60234]
2738 - [Both `NonNull::{dangling, cast}` are now const fns.][60244]
2739 - [The `alloc` crate is now stable.][59675] `alloc` allows you to use a subset
2740   of `std` (e.g. `Vec`, `Box`, `Arc`) in `#![no_std]` environments if the
2741   environment has access to heap memory allocation.
2742 - [`String` now implements `From<&String>`.][59825]
2743 - [You can now pass multiple arguments to the `dbg!` macro.][59826] `dbg!` will
2744   return a tuple of each argument when there is multiple arguments.
2745 - [`Result::{is_err, is_ok}` are now `#[must_use]` and will produce a warning if
2746   not used.][59648]
2747
2748 Stabilized APIs
2749 ---------------
2750 - [`VecDeque::rotate_left`]
2751 - [`VecDeque::rotate_right`]
2752 - [`Iterator::copied`]
2753 - [`io::IoSlice`]
2754 - [`io::IoSliceMut`]
2755 - [`Read::read_vectored`]
2756 - [`Write::write_vectored`]
2757 - [`str::as_mut_ptr`]
2758 - [`mem::MaybeUninit`]
2759 - [`pointer::align_offset`]
2760 - [`future::Future`]
2761 - [`task::Context`]
2762 - [`task::RawWaker`]
2763 - [`task::RawWakerVTable`]
2764 - [`task::Waker`]
2765 - [`task::Poll`]
2766
2767 Cargo
2768 -----
2769 - [Cargo will now produce an error if you attempt to use the name of a required dependency as a feature.][cargo/6860]
2770 - [You can now pass the `--offline` flag to run cargo without accessing the network.][cargo/6934]
2771
2772 You can find further change's in [Cargo's 1.36.0 release notes][cargo-1-36-0].
2773
2774 Clippy
2775 ------
2776 There have been numerous additions and fixes to clippy, see [Clippy's 1.36.0 release notes][clippy-1-36-0] for more details.
2777
2778 Misc
2779 ----
2780
2781 Compatibility Notes
2782 -------------------
2783 - With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no
2784   longer recommended, and will be deprecated in 1.39.0.
2785
2786 [60318]: https://github.com/rust-lang/rust/pull/60318/
2787 [60364]: https://github.com/rust-lang/rust/pull/60364/
2788 [60370]: https://github.com/rust-lang/rust/pull/60370/
2789 [60404]: https://github.com/rust-lang/rust/pull/60404/
2790 [60234]: https://github.com/rust-lang/rust/pull/60234/
2791 [60244]: https://github.com/rust-lang/rust/pull/60244/
2792 [58623]: https://github.com/rust-lang/rust/pull/58623/
2793 [59648]: https://github.com/rust-lang/rust/pull/59648/
2794 [59675]: https://github.com/rust-lang/rust/pull/59675/
2795 [59825]: https://github.com/rust-lang/rust/pull/59825/
2796 [59826]: https://github.com/rust-lang/rust/pull/59826/
2797 [59445]: https://github.com/rust-lang/rust/pull/59445/
2798 [59114]: https://github.com/rust-lang/rust/pull/59114/
2799 [cargo/6860]: https://github.com/rust-lang/cargo/pull/6860/
2800 [cargo/6934]: https://github.com/rust-lang/cargo/pull/6934/
2801 [`VecDeque::rotate_left`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_left
2802 [`VecDeque::rotate_right`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_right
2803 [`Iterator::copied`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#tymethod.copied
2804 [`io::IoSlice`]: https://doc.rust-lang.org/std/io/struct.IoSlice.html
2805 [`io::IoSliceMut`]: https://doc.rust-lang.org/std/io/struct.IoSliceMut.html
2806 [`Read::read_vectored`]: https://doc.rust-lang.org/std/io/trait.Read.html#method.read_vectored
2807 [`Write::write_vectored`]: https://doc.rust-lang.org/std/io/trait.Write.html#method.write_vectored
2808 [`str::as_mut_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_mut_ptr
2809 [`mem::MaybeUninit`]: https://doc.rust-lang.org/std/mem/union.MaybeUninit.html
2810 [`pointer::align_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.align_offset
2811 [`future::Future`]: https://doc.rust-lang.org/std/future/trait.Future.html
2812 [`task::Context`]: https://doc.rust-lang.org/beta/std/task/struct.Context.html
2813 [`task::RawWaker`]: https://doc.rust-lang.org/beta/std/task/struct.RawWaker.html
2814 [`task::RawWakerVTable`]: https://doc.rust-lang.org/beta/std/task/struct.RawWakerVTable.html
2815 [`task::Waker`]: https://doc.rust-lang.org/beta/std/task/struct.Waker.html
2816 [`task::Poll`]: https://doc.rust-lang.org/beta/std/task/enum.Poll.html
2817 [clippy-1-36-0]: https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-136
2818 [cargo-1-36-0]: https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-136-2019-07-04
2819
2820
2821 Version 1.35.0 (2019-05-23)
2822 ==========================
2823
2824 Language
2825 --------
2826 - [`FnOnce`, `FnMut`, and the `Fn` traits are now implemented for `Box<FnOnce>`,
2827   `Box<FnMut>`, and `Box<Fn>` respectively.][59500]
2828 - [You can now coerce closures into unsafe function pointers.][59580] e.g.
2829   ```rust
2830   unsafe fn call_unsafe(func: unsafe fn()) {
2831       func()
2832   }
2833
2834   pub fn main() {
2835       unsafe { call_unsafe(|| {}); }
2836   }
2837   ```
2838
2839
2840 Compiler
2841 --------
2842 - [Added the `armv6-unknown-freebsd-gnueabihf` and
2843   `armv7-unknown-freebsd-gnueabihf` targets.][58080]
2844 - [Added the `wasm32-unknown-wasi` target.][59464]
2845
2846
2847 Libraries
2848 ---------
2849 - [`Thread` will now show its ID in `Debug` output.][59460]
2850 - [`StdinLock`, `StdoutLock`, and `StderrLock` now implement `AsRawFd`.][59512]
2851 - [`alloc::System` now implements `Default`.][59451]
2852 - [Expanded `Debug` output (`{:#?}`) for structs now has a trailing comma on the
2853   last field.][59076]
2854 - [`char::{ToLowercase, ToUppercase}` now
2855   implement `ExactSizeIterator`.][58778]
2856 - [All `NonZero` numeric types now implement `FromStr`.][58717]
2857 - [Removed the `Read` trait bounds
2858   on the `BufReader::{get_ref, get_mut, into_inner}` methods.][58423]
2859 - [You can now call the `dbg!` macro without any parameters to print the file
2860   and line where it is called.][57847]
2861 - [In place ASCII case conversions are now up to 4× faster.][59283]
2862   e.g. `str::make_ascii_lowercase`
2863 - [`hash_map::{OccupiedEntry, VacantEntry}` now implement `Sync`
2864   and `Send`.][58369]
2865
2866 Stabilized APIs
2867 ---------------
2868 - [`f32::copysign`]
2869 - [`f64::copysign`]
2870 - [`RefCell::replace_with`]
2871 - [`RefCell::map_split`]
2872 - [`ptr::hash`]
2873 - [`Range::contains`]
2874 - [`RangeFrom::contains`]
2875 - [`RangeTo::contains`]
2876 - [`RangeInclusive::contains`]
2877 - [`RangeToInclusive::contains`]
2878 - [`Option::copied`]
2879
2880 Cargo
2881 -----
2882 - [You can now set `cargo:rustc-cdylib-link-arg` at build time to pass custom
2883   linker arguments when building a `cdylib`.][cargo/6298] Its usage is highly
2884   platform specific.
2885
2886 Misc
2887 ----
2888 - [The Rust toolchain is now available natively for musl based distros.][58575]
2889
2890 [59460]: https://github.com/rust-lang/rust/pull/59460/
2891 [59464]: https://github.com/rust-lang/rust/pull/59464/
2892 [59500]: https://github.com/rust-lang/rust/pull/59500/
2893 [59512]: https://github.com/rust-lang/rust/pull/59512/
2894 [59580]: https://github.com/rust-lang/rust/pull/59580/
2895 [59283]: https://github.com/rust-lang/rust/pull/59283/
2896 [59451]: https://github.com/rust-lang/rust/pull/59451/
2897 [59076]: https://github.com/rust-lang/rust/pull/59076/
2898 [58778]: https://github.com/rust-lang/rust/pull/58778/
2899 [58717]: https://github.com/rust-lang/rust/pull/58717/
2900 [58369]: https://github.com/rust-lang/rust/pull/58369/
2901 [58423]: https://github.com/rust-lang/rust/pull/58423/
2902 [58080]: https://github.com/rust-lang/rust/pull/58080/
2903 [57847]: https://github.com/rust-lang/rust/pull/57847/
2904 [58575]: https://github.com/rust-lang/rust/pull/58575
2905 [cargo/6298]: https://github.com/rust-lang/cargo/pull/6298/
2906 [`f32::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.copysign
2907 [`f64::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.copysign
2908 [`RefCell::replace_with`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.replace_with
2909 [`RefCell::map_split`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.map_split
2910 [`ptr::hash`]: https://doc.rust-lang.org/stable/std/ptr/fn.hash.html
2911 [`Range::contains`]: https://doc.rust-lang.org/std/ops/struct.Range.html#method.contains
2912 [`RangeFrom::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeFrom.html#method.contains
2913 [`RangeTo::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeTo.html#method.contains
2914 [`RangeInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.contains
2915 [`RangeToInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html#method.contains
2916 [`Option::copied`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.copied
2917
2918 Version 1.34.2 (2019-05-14)
2919 ===========================
2920
2921 * [Destabilize the `Error::type_id` function due to a security
2922    vulnerability][60785] ([CVE-2019-12083])
2923
2924 [60785]: https://github.com/rust-lang/rust/pull/60785
2925 [CVE-2019-12083]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12083
2926
2927 Version 1.34.1 (2019-04-25)
2928 ===========================
2929
2930 * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821]
2931 * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844]
2932 * [Fix Clippy panic when checking some macros][clippy/3805]
2933
2934 [clippy/3821]: https://github.com/rust-lang/rust-clippy/pull/3821
2935 [clippy/3844]: https://github.com/rust-lang/rust-clippy/pull/3844
2936 [clippy/3805]: https://github.com/rust-lang/rust-clippy/pull/3805
2937
2938 Version 1.34.0 (2019-04-11)
2939 ==========================
2940
2941 Language
2942 --------
2943 - [You can now use `#[deprecated = "reason"]`][58166] as a shorthand for
2944   `#[deprecated(note = "reason")]`. This was previously allowed by mistake
2945   but had no effect.
2946 - [You can now accept token streams in `#[attr()]`,`#[attr[]]`, and
2947   `#[attr{}]` procedural macros.][57367]
2948 - [You can now write `extern crate self as foo;`][57407] to import your
2949   crate's root into the extern prelude.
2950
2951
2952 Compiler
2953 --------
2954 - [You can now target `riscv64imac-unknown-none-elf` and
2955   `riscv64gc-unknown-none-elf`.][58406]
2956 - [You can now enable linker plugin LTO optimisations with
2957   `-C linker-plugin-lto`.][58057] This allows rustc to compile your Rust code
2958   into LLVM bitcode allowing LLVM to perform LTO optimisations across C/C++ FFI
2959   boundaries.
2960 - [You can now target `powerpc64-unknown-freebsd`.][57809]
2961
2962
2963 Libraries
2964 ---------
2965 - [The trait bounds have been removed on some of `HashMap<K, V, S>`'s and
2966   `HashSet<T, S>`'s basic methods.][58370] Most notably you no longer require
2967   the `Hash` trait to create an iterator.
2968 - [The `Ord` trait bounds have been removed on some of `BinaryHeap<T>`'s basic
2969   methods.][58421] Most notably you no longer require the `Ord` trait to create
2970   an iterator.
2971 - [The methods `overflowing_neg` and `wrapping_neg` are now `const` functions
2972   for all numeric types.][58044]
2973 - [Indexing a `str` is now generic over all types that
2974   implement `SliceIndex<str>`.][57604]
2975 - [`str::trim`, `str::trim_matches`, `str::trim_{start, end}`, and
2976   `str::trim_{start, end}_matches` are now `#[must_use]`][57106] and will
2977   produce a warning if their returning type is unused.
2978 - [The methods `checked_pow`, `saturating_pow`, `wrapping_pow`, and
2979   `overflowing_pow` are now available for all numeric types.][57873] These are
2980   equivalent to methods such as `wrapping_add` for the `pow` operation.
2981
2982
2983 Stabilized APIs
2984 ---------------
2985
2986 #### std & core
2987 * [`Any::type_id`]
2988 * [`Error::type_id`]
2989 * [`atomic::AtomicI16`]
2990 * [`atomic::AtomicI32`]
2991 * [`atomic::AtomicI64`]
2992 * [`atomic::AtomicI8`]
2993 * [`atomic::AtomicU16`]
2994 * [`atomic::AtomicU32`]
2995 * [`atomic::AtomicU64`]
2996 * [`atomic::AtomicU8`]
2997 * [`convert::Infallible`]
2998 * [`convert::TryFrom`]
2999 * [`convert::TryInto`]
3000 * [`iter::from_fn`]
3001 * [`iter::successors`]
3002 * [`num::NonZeroI128`]
3003 * [`num::NonZeroI16`]
3004 * [`num::NonZeroI32`]
3005 * [`num::NonZeroI64`]
3006 * [`num::NonZeroI8`]
3007 * [`num::NonZeroIsize`]
3008 * [`slice::sort_by_cached_key`]
3009 * [`str::escape_debug`]
3010 * [`str::escape_default`]
3011 * [`str::escape_unicode`]
3012 * [`str::split_ascii_whitespace`]
3013
3014 #### std
3015 * [`Instant::checked_add`]
3016 * [`Instant::checked_sub`]
3017 * [`SystemTime::checked_add`]
3018 * [`SystemTime::checked_sub`]
3019
3020 Cargo
3021 -----
3022 - [You can now use alternative registries to crates.io.][cargo/6654]
3023
3024 Misc
3025 ----
3026 - [You can now use the `?` operator in your documentation tests without manually
3027   adding `fn main() -> Result<(), _> {}`.][56470]
3028
3029 Compatibility Notes
3030 -------------------
3031 - [`Command::before_exec` is being replaced by the unsafe method
3032   `Command::pre_exec`][58059] and will be deprecated with Rust 1.37.0.
3033 - [Use of `ATOMIC_{BOOL, ISIZE, USIZE}_INIT` is now deprecated][57425] as you
3034   can now use `const` functions in `static` variables.
3035
3036 [58370]: https://github.com/rust-lang/rust/pull/58370/
3037 [58406]: https://github.com/rust-lang/rust/pull/58406/
3038 [58421]: https://github.com/rust-lang/rust/pull/58421/
3039 [58166]: https://github.com/rust-lang/rust/pull/58166/
3040 [58044]: https://github.com/rust-lang/rust/pull/58044/
3041 [58057]: https://github.com/rust-lang/rust/pull/58057/
3042 [58059]: https://github.com/rust-lang/rust/pull/58059/
3043 [57809]: https://github.com/rust-lang/rust/pull/57809/
3044 [57873]: https://github.com/rust-lang/rust/pull/57873/
3045 [57604]: https://github.com/rust-lang/rust/pull/57604/
3046 [57367]: https://github.com/rust-lang/rust/pull/57367/
3047 [57407]: https://github.com/rust-lang/rust/pull/57407/
3048 [57425]: https://github.com/rust-lang/rust/pull/57425/
3049 [57106]: https://github.com/rust-lang/rust/pull/57106/
3050 [56470]: https://github.com/rust-lang/rust/pull/56470/
3051 [cargo/6654]: https://github.com/rust-lang/cargo/pull/6654/
3052 [`Any::type_id`]: https://doc.rust-lang.org/std/any/trait.Any.html#tymethod.type_id
3053 [`Error::type_id`]: https://doc.rust-lang.org/std/error/trait.Error.html#method.type_id
3054 [`atomic::AtomicI16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI16.html
3055 [`atomic::AtomicI32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI32.html
3056 [`atomic::AtomicI64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI64.html
3057 [`atomic::AtomicI8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI8.html
3058 [`atomic::AtomicU16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU16.html
3059 [`atomic::AtomicU32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU32.html
3060 [`atomic::AtomicU64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html
3061 [`atomic::AtomicU8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html
3062 [`convert::Infallible`]: https://doc.rust-lang.org/std/convert/enum.Infallible.html
3063 [`convert::TryFrom`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html
3064 [`convert::TryInto`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html
3065 [`iter::from_fn`]: https://doc.rust-lang.org/std/iter/fn.from_fn.html
3066 [`iter::successors`]: https://doc.rust-lang.org/std/iter/fn.successors.html
3067 [`num::NonZeroI128`]: https://doc.rust-lang.org/std/num/struct.NonZeroI128.html
3068 [`num::NonZeroI16`]: https://doc.rust-lang.org/std/num/struct.NonZeroI16.html
3069 [`num::NonZeroI32`]: https://doc.rust-lang.org/std/num/struct.NonZeroI32.html
3070 [`num::NonZeroI64`]: https://doc.rust-lang.org/std/num/struct.NonZeroI64.html
3071 [`num::NonZeroI8`]: https://doc.rust-lang.org/std/num/struct.NonZeroI8.html
3072 [`num::NonZeroIsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroIsize.html
3073 [`slice::sort_by_cached_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key
3074 [`str::escape_debug`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_debug
3075 [`str::escape_default`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_default
3076 [`str::escape_unicode`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_unicode
3077 [`str::split_ascii_whitespace`]: https://doc.rust-lang.org/std/primitive.str.html#method.split_ascii_whitespace
3078 [`Instant::checked_add`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_add
3079 [`Instant::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_sub
3080 [`SystemTime::checked_add`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_add
3081 [`SystemTime::checked_sub`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_sub
3082
3083
3084 Version 1.33.0 (2019-02-28)
3085 ==========================
3086
3087 Language
3088 --------
3089 - [You can now use the `cfg(target_vendor)` attribute.][57465] E.g.
3090   `#[cfg(target_vendor="apple")] fn main() { println!("Hello Apple!"); }`
3091 - [Integer patterns such as in a match expression can now be exhaustive.][56362]
3092   E.g. You can have match statement on a `u8` that covers `0..=255` and
3093   you would no longer be required to have a `_ => unreachable!()` case.
3094 - [You can now have multiple patterns in `if let` and `while let`
3095   expressions.][57532] You can do this with the same syntax as a `match`
3096   expression. E.g.
3097   ```rust
3098   enum Creature {
3099       Crab(String),
3100       Lobster(String),
3101       Person(String),
3102   }
3103
3104   fn main() {
3105       let state = Creature::Crab("Ferris");
3106
3107       if let Creature::Crab(name) | Creature::Person(name) = state {
3108           println!("This creature's name is: {}", name);
3109       }
3110   }
3111   ```
3112 - [You can now have irrefutable `if let` and `while let` patterns.][57535] Using
3113   this feature will by default produce a warning as this behaviour can be
3114   unintuitive. E.g. `if let _ = 5 {}`
3115 - [You can now use `let` bindings, assignments, expression statements,
3116   and irrefutable pattern destructuring in const functions.][57175]
3117 - [You can now call unsafe const functions.][57067] E.g.
3118   ```rust
3119   const unsafe fn foo() -> i32 { 5 }
3120   const fn bar() -> i32 {
3121       unsafe { foo() }
3122   }
3123   ```
3124 - [You can now specify multiple attributes in a `cfg_attr` attribute.][57332]
3125   E.g. `#[cfg_attr(all(), must_use, optimize)]`
3126 - [You can now specify a specific alignment with the `#[repr(packed)]`
3127   attribute.][57049] E.g. `#[repr(packed(2))] struct Foo(i16, i32);` is a struct
3128   with an alignment of 2 bytes and a size of 6 bytes.
3129 - [You can now import an item from a module as an `_`.][56303] This allows you to
3130   import a trait's impls, and not have the name in the namespace. E.g.
3131   ```rust
3132   use std::io::Read as _;
3133
3134   // Allowed as there is only one `Read` in the module.
3135   pub trait Read {}
3136   ```
3137 - [You may now use `Rc`, `Arc`, and `Pin` as method receivers][56805].
3138
3139 Compiler
3140 --------
3141 - [You can now set a linker flavor for `rustc` with the `-Clinker-flavor`
3142   command line argument.][56351]
3143 - [The minimum required LLVM version has been bumped to 6.0.][56642]
3144 - [Added support for the PowerPC64 architecture on FreeBSD.][57615]
3145 - [The `x86_64-fortanix-unknown-sgx` target support has been upgraded to
3146   tier 2 support.][57130] Visit the [platform support][platform-support] page for
3147   information on Rust's platform support.
3148 - [Added support for the `thumbv7neon-linux-androideabi` and
3149   `thumbv7neon-unknown-linux-gnueabihf` targets.][56947]
3150 - [Added support for the `x86_64-unknown-uefi` target.][56769]
3151
3152 Libraries
3153 ---------
3154 - [The methods `overflowing_{add, sub, mul, shl, shr}` are now `const`
3155   functions for all numeric types.][57566]
3156 - [The methods `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
3157   are now `const` functions for all numeric types.][57105]
3158 - [The methods `is_positive` and `is_negative` are now `const` functions for
3159   all signed numeric types.][57105]
3160 - [The `get` method for all `NonZero` types is now `const`.][57167]
3161 - [The methods `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
3162   `swap_bytes`, `from_be`, `from_le`, `to_be`, `to_le` are now `const` for all
3163   numeric types.][57234]
3164 - [`Ipv4Addr::new` is now a `const` function][57234]
3165
3166 Stabilized APIs
3167 ---------------
3168 - [`unix::FileExt::read_exact_at`]
3169 - [`unix::FileExt::write_all_at`]
3170 - [`Option::transpose`]
3171 - [`Result::transpose`]
3172 - [`convert::identity`]
3173 - [`pin::Pin`]
3174 - [`marker::Unpin`]
3175 - [`marker::PhantomPinned`]
3176 - [`Vec::resize_with`]
3177 - [`VecDeque::resize_with`]
3178 - [`Duration::as_millis`]
3179 - [`Duration::as_micros`]
3180 - [`Duration::as_nanos`]
3181
3182
3183 Cargo
3184 -----
3185 - [You can now publish crates that require a feature flag to compile with
3186   `cargo publish --features` or `cargo publish --all-features`.][cargo/6453]
3187 - [Cargo should now rebuild a crate if a file was modified during the initial
3188   build.][cargo/6484]
3189
3190 Compatibility Notes
3191 -------------------
3192 - The methods `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
3193   are now deprecated in the standard library, and their usage will now produce a warning.
3194   Please use the `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}`
3195   methods instead.
3196 - The `Error::cause` method has been deprecated in favor of `Error::source` which supports
3197   downcasting.
3198 - [Libtest no longer creates a new thread for each test when
3199   `--test-threads=1`.  It also runs the tests in deterministic order][56243]
3200
3201 [55982]: https://github.com/rust-lang/rust/pull/55982/
3202 [56243]: https://github.com/rust-lang/rust/pull/56243
3203 [56303]: https://github.com/rust-lang/rust/pull/56303/
3204 [56351]: https://github.com/rust-lang/rust/pull/56351/
3205 [56362]: https://github.com/rust-lang/rust/pull/56362
3206 [56642]: https://github.com/rust-lang/rust/pull/56642/
3207 [56769]: https://github.com/rust-lang/rust/pull/56769/
3208 [56805]: https://github.com/rust-lang/rust/pull/56805
3209 [56947]: https://github.com/rust-lang/rust/pull/56947/
3210 [57049]: https://github.com/rust-lang/rust/pull/57049/
3211 [57067]: https://github.com/rust-lang/rust/pull/57067/
3212 [57105]: https://github.com/rust-lang/rust/pull/57105
3213 [57130]: https://github.com/rust-lang/rust/pull/57130/
3214 [57167]: https://github.com/rust-lang/rust/pull/57167/
3215 [57175]: https://github.com/rust-lang/rust/pull/57175/
3216 [57234]: https://github.com/rust-lang/rust/pull/57234/
3217 [57332]: https://github.com/rust-lang/rust/pull/57332/
3218 [57465]: https://github.com/rust-lang/rust/pull/57465/
3219 [57532]: https://github.com/rust-lang/rust/pull/57532/
3220 [57535]: https://github.com/rust-lang/rust/pull/57535/
3221 [57566]: https://github.com/rust-lang/rust/pull/57566/
3222 [57615]: https://github.com/rust-lang/rust/pull/57615/
3223 [cargo/6453]: https://github.com/rust-lang/cargo/pull/6453/
3224 [cargo/6484]: https://github.com/rust-lang/cargo/pull/6484/
3225 [`unix::FileExt::read_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
3226 [`unix::FileExt::write_all_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
3227 [`Option::transpose`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.transpose
3228 [`Result::transpose`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
3229 [`convert::identity`]: https://doc.rust-lang.org/std/convert/fn.identity.html
3230 [`pin::Pin`]: https://doc.rust-lang.org/std/pin/struct.Pin.html
3231 [`marker::Unpin`]: https://doc.rust-lang.org/stable/std/marker/trait.Unpin.html
3232 [`marker::PhantomPinned`]: https://doc.rust-lang.org/nightly/std/marker/struct.PhantomPinned.html
3233 [`Vec::resize_with`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize_with
3234 [`VecDeque::resize_with`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.resize_with
3235 [`Duration::as_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis
3236 [`Duration::as_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_micros
3237 [`Duration::as_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_nanos
3238 [platform-support]: https://forge.rust-lang.org/platform-support.html
3239
3240 Version 1.32.0 (2019-01-17)
3241 ==========================
3242
3243 Language
3244 --------
3245 #### 2018 edition
3246 - [You can now use the `?` operator in macro definitions.][56245] The `?`
3247   operator allows you to specify zero or one repetitions similar to the `*` and
3248   `+` operators.
3249 - [Module paths with no leading keyword like `super`, `self`, or `crate`, will
3250   now always resolve to the item (`enum`, `struct`, etc.) available in the
3251   module if present, before resolving to a external crate or an item the prelude.][56759]
3252   E.g.
3253   ```rust
3254   enum Color { Red, Green, Blue }
3255
3256   use Color::*;
3257   ```
3258
3259 #### All editions
3260 - [You can now match against `PhantomData<T>` types.][55837]
3261 - [You can now match against literals in macros with the `literal`
3262   specifier.][56072] This will match against a literal of any type.
3263   E.g. `1`, `'A'`, `"Hello World"`
3264 - [Self can now be used as a constructor and pattern for unit and tuple structs.][56365] E.g.
3265   ```rust
3266   struct Point(i32, i32);
3267
3268   impl Point {
3269       pub fn new(x: i32, y: i32) -> Self {
3270           Self(x, y)
3271       }
3272
3273       pub fn is_origin(&self) -> bool {
3274           match self {
3275               Self(0, 0) => true,
3276               _ => false,
3277           }
3278       }
3279   }
3280   ```
3281 - [Self can also now be used in type definitions.][56366] E.g.
3282   ```rust
3283   enum List<T>
3284   where
3285       Self: PartialOrd<Self> // can write `Self` instead of `List<T>`
3286   {
3287       Nil,
3288       Cons(T, Box<Self>) // likewise here
3289   }
3290   ```
3291 - [You can now mark traits with `#[must_use]`.][55663] This provides a warning if
3292   a `impl Trait` or `dyn Trait` is returned and unused in the program.
3293
3294 Compiler
3295 --------
3296 - [The default allocator has changed from jemalloc to the default allocator on
3297   your system.][55238] The compiler itself on Linux & macOS will still use
3298   jemalloc, but programs compiled with it will use the system allocator.
3299 - [Added the `aarch64-pc-windows-msvc` target.][55702]
3300
3301 Libraries
3302 ---------
3303 - [`PathBuf` now implements `FromStr`.][55148]
3304 - [`Box<[T]>` now implements `FromIterator<T>`.][55843]
3305 - [The `dbg!` macro has been stabilized.][56395] This macro enables you to
3306   easily debug expressions in your rust program. E.g.
3307   ```rust
3308   let a = 2;
3309   let b = dbg!(a * 2) + 1;
3310   //      ^-- prints: [src/main.rs:4] a * 2 = 4
3311   assert_eq!(b, 5);
3312   ```
3313
3314 The following APIs are now `const` functions and can be used in a
3315 `const` context.
3316
3317 - [`Cell::as_ptr`]
3318 - [`UnsafeCell::get`]
3319 - [`char::is_ascii`]
3320 - [`iter::empty`]
3321 - [`ManuallyDrop::new`]
3322 - [`ManuallyDrop::into_inner`]
3323 - [`RangeInclusive::start`]
3324 - [`RangeInclusive::end`]
3325 - [`NonNull::as_ptr`]
3326 - [`slice::as_ptr`]
3327 - [`str::as_ptr`]
3328 - [`Duration::as_secs`]
3329 - [`Duration::subsec_millis`]
3330 - [`Duration::subsec_micros`]
3331 - [`Duration::subsec_nanos`]
3332 - [`CStr::as_ptr`]
3333 - [`Ipv4Addr::is_unspecified`]
3334 - [`Ipv6Addr::new`]
3335 - [`Ipv6Addr::octets`]
3336
3337 Stabilized APIs
3338 ---------------
3339 - [`i8::to_be_bytes`]
3340 - [`i8::to_le_bytes`]
3341 - [`i8::to_ne_bytes`]
3342 - [`i8::from_be_bytes`]
3343 - [`i8::from_le_bytes`]
3344 - [`i8::from_ne_bytes`]
3345 - [`i16::to_be_bytes`]
3346 - [`i16::to_le_bytes`]
3347 - [`i16::to_ne_bytes`]
3348 - [`i16::from_be_bytes`]
3349 - [`i16::from_le_bytes`]
3350 - [`i16::from_ne_bytes`]
3351 - [`i32::to_be_bytes`]
3352 - [`i32::to_le_bytes`]
3353 - [`i32::to_ne_bytes`]
3354 - [`i32::from_be_bytes`]
3355 - [`i32::from_le_bytes`]
3356 - [`i32::from_ne_bytes`]
3357 - [`i64::to_be_bytes`]
3358 - [`i64::to_le_bytes`]
3359 - [`i64::to_ne_bytes`]
3360 - [`i64::from_be_bytes`]
3361 - [`i64::from_le_bytes`]
3362 - [`i64::from_ne_bytes`]
3363 - [`i128::to_be_bytes`]
3364 - [`i128::to_le_bytes`]
3365 - [`i128::to_ne_bytes`]
3366 - [`i128::from_be_bytes`]
3367 - [`i128::from_le_bytes`]
3368 - [`i128::from_ne_bytes`]
3369 - [`isize::to_be_bytes`]
3370 - [`isize::to_le_bytes`]
3371 - [`isize::to_ne_bytes`]
3372 - [`isize::from_be_bytes`]
3373 - [`isize::from_le_bytes`]
3374 - [`isize::from_ne_bytes`]
3375 - [`u8::to_be_bytes`]
3376 - [`u8::to_le_bytes`]
3377 - [`u8::to_ne_bytes`]
3378 - [`u8::from_be_bytes`]
3379 - [`u8::from_le_bytes`]
3380 - [`u8::from_ne_bytes`]
3381 - [`u16::to_be_bytes`]
3382 - [`u16::to_le_bytes`]
3383 - [`u16::to_ne_bytes`]
3384 - [`u16::from_be_bytes`]
3385 - [`u16::from_le_bytes`]
3386 - [`u16::from_ne_bytes`]
3387 - [`u32::to_be_bytes`]
3388 - [`u32::to_le_bytes`]
3389 - [`u32::to_ne_bytes`]
3390 - [`u32::from_be_bytes`]
3391 - [`u32::from_le_bytes`]
3392 - [`u32::from_ne_bytes`]
3393 - [`u64::to_be_bytes`]
3394 - [`u64::to_le_bytes`]
3395 - [`u64::to_ne_bytes`]
3396 - [`u64::from_be_bytes`]
3397 - [`u64::from_le_bytes`]
3398 - [`u64::from_ne_bytes`]
3399 - [`u128::to_be_bytes`]
3400 - [`u128::to_le_bytes`]
3401 - [`u128::to_ne_bytes`]
3402 - [`u128::from_be_bytes`]
3403 - [`u128::from_le_bytes`]
3404 - [`u128::from_ne_bytes`]
3405 - [`usize::to_be_bytes`]
3406 - [`usize::to_le_bytes`]
3407 - [`usize::to_ne_bytes`]
3408 - [`usize::from_be_bytes`]
3409 - [`usize::from_le_bytes`]
3410 - [`usize::from_ne_bytes`]
3411
3412 Cargo
3413 -----
3414 - [You can now run `cargo c` as an alias for `cargo check`.][cargo/6218]
3415 - [Usernames are now allowed in alt registry URLs.][cargo/6242]
3416
3417 Misc
3418 ----
3419 - [`libproc_macro` has been added to the `rust-src` distribution.][55280]
3420
3421 Compatibility Notes
3422 -------------------
3423 - [The argument types for AVX's
3424   `_mm256_stream_si256`, `_mm256_stream_pd`, `_mm256_stream_ps`][55610] have
3425   been changed from `*const` to `*mut` as the previous implementation
3426   was unsound.
3427
3428
3429 [55148]: https://github.com/rust-lang/rust/pull/55148/
3430 [55238]: https://github.com/rust-lang/rust/pull/55238/
3431 [55280]: https://github.com/rust-lang/rust/pull/55280/
3432 [55610]: https://github.com/rust-lang/rust/pull/55610/
3433 [55663]: https://github.com/rust-lang/rust/pull/55663/
3434 [55702]: https://github.com/rust-lang/rust/pull/55702/
3435 [55837]: https://github.com/rust-lang/rust/pull/55837/
3436 [55843]: https://github.com/rust-lang/rust/pull/55843/
3437 [56072]: https://github.com/rust-lang/rust/pull/56072/
3438 [56245]: https://github.com/rust-lang/rust/pull/56245/
3439 [56365]: https://github.com/rust-lang/rust/pull/56365/
3440 [56366]: https://github.com/rust-lang/rust/pull/56366/
3441 [56395]: https://github.com/rust-lang/rust/pull/56395/
3442 [56759]: https://github.com/rust-lang/rust/pull/56759/
3443 [cargo/6218]: https://github.com/rust-lang/cargo/pull/6218/
3444 [cargo/6242]: https://github.com/rust-lang/cargo/pull/6242/
3445 [`CStr::as_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.as_ptr
3446 [`Cell::as_ptr`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr
3447 [`Duration::as_secs`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs
3448 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
3449 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
3450 [`Duration::subsec_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_nanos
3451 [`Ipv4Addr::is_unspecified`]: https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified
3452 [`Ipv6Addr::new`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.new
3453 [`Ipv6Addr::octets`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets
3454 [`ManuallyDrop::into_inner`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.into_inner
3455 [`ManuallyDrop::new`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.new
3456 [`NonNull::as_ptr`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.as_ptr
3457 [`RangeInclusive::end`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
3458 [`RangeInclusive::start`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
3459 [`UnsafeCell::get`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html#method.get
3460 [`slice::as_ptr`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
3461 [`char::is_ascii`]: https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
3462 [`i128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_be_bytes
3463 [`i128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_le_bytes
3464 [`i128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_ne_bytes
3465 [`i128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_be_bytes
3466 [`i128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_le_bytes
3467 [`i128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_ne_bytes
3468 [`i16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
3469 [`i16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
3470 [`i16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_ne_bytes
3471 [`i16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_be_bytes
3472 [`i16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_le_bytes
3473 [`i16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_ne_bytes
3474 [`i32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_be_bytes
3475 [`i32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_le_bytes
3476 [`i32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_ne_bytes
3477 [`i32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_be_bytes
3478 [`i32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_le_bytes
3479 [`i32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_ne_bytes
3480 [`i64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_be_bytes
3481 [`i64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_le_bytes
3482 [`i64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_ne_bytes
3483 [`i64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_be_bytes
3484 [`i64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_le_bytes
3485 [`i64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_ne_bytes
3486 [`i8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_be_bytes
3487 [`i8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_le_bytes
3488 [`i8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_ne_bytes
3489 [`i8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_be_bytes
3490 [`i8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_le_bytes
3491 [`i8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_ne_bytes
3492 [`isize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_be_bytes
3493 [`isize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_le_bytes
3494 [`isize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_ne_bytes
3495 [`isize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_be_bytes
3496 [`isize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_le_bytes
3497 [`isize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_ne_bytes
3498 [`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
3499 [`str::as_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_ptr
3500 [`u128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_be_bytes
3501 [`u128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_le_bytes
3502 [`u128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_ne_bytes
3503 [`u128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_be_bytes
3504 [`u128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_le_bytes
3505 [`u128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_ne_bytes
3506 [`u16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_be_bytes
3507 [`u16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_le_bytes
3508 [`u16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_ne_bytes
3509 [`u16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_be_bytes
3510 [`u16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_le_bytes
3511 [`u16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_ne_bytes
3512 [`u32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_be_bytes
3513 [`u32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_le_bytes
3514 [`u32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_ne_bytes
3515 [`u32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_be_bytes
3516 [`u32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_le_bytes
3517 [`u32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_ne_bytes
3518 [`u64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_be_bytes
3519 [`u64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_le_bytes
3520 [`u64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_ne_bytes
3521 [`u64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_be_bytes
3522 [`u64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_le_bytes
3523 [`u64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_ne_bytes
3524 [`u8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_be_bytes
3525 [`u8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_le_bytes
3526 [`u8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_ne_bytes
3527 [`u8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_be_bytes
3528 [`u8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_le_bytes
3529 [`u8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ne_bytes
3530 [`usize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_be_bytes
3531 [`usize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_le_bytes
3532 [`usize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_ne_bytes
3533 [`usize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_be_bytes
3534 [`usize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_le_bytes
3535 [`usize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_ne_bytes
3536
3537
3538 Version 1.31.1 (2018-12-20)
3539 ===========================
3540
3541 - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562]
3542 - [Fix broken go-to-definition in RLS][rls/1171]
3543 - [Fix infinite loop on hover in RLS][rls/1170]
3544
3545 [56562]: https://github.com/rust-lang/rust/pull/56562
3546 [rls/1171]: https://github.com/rust-lang/rls/issues/1171
3547 [rls/1170]: https://github.com/rust-lang/rls/pull/1170
3548
3549 Version 1.31.0 (2018-12-06)
3550 ==========================
3551
3552 Language
3553 --------
3554 - 🎉 [This version marks the release of the 2018 edition of Rust.][54057] 🎉
3555 - [New lifetime elision rules now allow for eliding lifetimes in functions and
3556   impl headers.][54778] E.g. `impl<'a> Reader for BufReader<'a> {}` can now be
3557   `impl Reader for BufReader<'_> {}`. Lifetimes are still required to be defined
3558   in structs.
3559 - [You can now define and use `const` functions.][54835] These are currently
3560   a strict minimal subset of the [const fn RFC][RFC-911]. Refer to the
3561   [language reference][const-reference] for what exactly is available.
3562 - [You can now use tool lints, which allow you to scope lints from external
3563   tools using attributes.][54870] E.g. `#[allow(clippy::filter_map)]`.
3564 - [`#[no_mangle]` and `#[export_name]` attributes can now be located anywhere in
3565   a crate, not just in exported functions.][54451]
3566 - [You can now use parentheses in pattern matches.][54497]
3567
3568 Compiler
3569 --------
3570 - [Updated musl to 1.1.20][54430]
3571
3572 Libraries
3573 ---------
3574 - [You can now convert `num::NonZero*` types to their raw equivalents using the
3575   `From` trait.][54240] E.g. `u8` now implements `From<NonZeroU8>`.
3576 - [You can now convert a `&Option<T>` into `Option<&T>` and `&mut Option<T>`
3577   into `Option<&mut T>` using the `From` trait.][53218]
3578 - [You can now multiply (`*`) a `time::Duration` by a `u32`.][52813]
3579
3580
3581 Stabilized APIs
3582 ---------------
3583 - [`slice::align_to`]
3584 - [`slice::align_to_mut`]
3585 - [`slice::chunks_exact`]
3586 - [`slice::chunks_exact_mut`]
3587 - [`slice::rchunks`]
3588 - [`slice::rchunks_mut`]
3589 - [`slice::rchunks_exact`]
3590 - [`slice::rchunks_exact_mut`]
3591 - [`Option::replace`]
3592
3593 Cargo
3594 -----
3595 - [Cargo will now download crates in parallel using HTTP/2.][cargo/6005]
3596 - [You can now rename packages in your Cargo.toml][cargo/6319] We have a guide
3597   on [how to use the `package` key in your dependencies.][cargo-rename-reference]
3598
3599 [52813]: https://github.com/rust-lang/rust/pull/52813/
3600 [53218]: https://github.com/rust-lang/rust/pull/53218/
3601 [53555]: https://github.com/rust-lang/rust/issues/53555/
3602 [54057]: https://github.com/rust-lang/rust/pull/54057/
3603 [54240]: https://github.com/rust-lang/rust/pull/54240/
3604 [54430]: https://github.com/rust-lang/rust/pull/54430/
3605 [54451]: https://github.com/rust-lang/rust/pull/54451/
3606 [54497]: https://github.com/rust-lang/rust/pull/54497/
3607 [54778]: https://github.com/rust-lang/rust/pull/54778/
3608 [54835]: https://github.com/rust-lang/rust/pull/54835/
3609 [54870]: https://github.com/rust-lang/rust/pull/54870/
3610 [RFC-911]: https://github.com/rust-lang/rfcs/pull/911
3611 [`Option::replace`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.replace
3612 [`slice::align_to_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to_mut
3613 [`slice::align_to`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to
3614 [`slice::chunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact_mut
3615 [`slice::chunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact
3616 [`slice::rchunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
3617 [`slice::rchunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_exact
3618 [`slice::rchunks_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
3619 [`slice::rchunks`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks
3620 [cargo/6005]: https://github.com/rust-lang/cargo/pull/6005/
3621 [cargo/6319]: https://github.com/rust-lang/cargo/pull/6319/
3622 [cargo-rename-reference]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
3623 [const-reference]: https://doc.rust-lang.org/reference/items/functions.html#const-functions
3624
3625 Version 1.30.1 (2018-11-08)
3626 ===========================
3627
3628 - [Fixed overflow ICE in rustdoc][54199]
3629 - [Cap Cargo progress bar width at 60 in MSYS terminals][cargo/6122]
3630
3631 [54199]: https://github.com/rust-lang/rust/pull/54199
3632 [cargo/6122]: https://github.com/rust-lang/cargo/pull/6122
3633
3634 Version 1.30.0 (2018-10-25)
3635 ==========================
3636
3637 Language
3638 --------
3639 - [Procedural macros are now available.][52081] These kinds of macros allow for
3640   more powerful code generation. There is a [new chapter available][proc-macros]
3641   in the Rust Programming Language book that goes further in depth.
3642 - [You can now use keywords as identifiers using the raw identifiers
3643   syntax (`r#`),][53236] e.g. `let r#for = true;`
3644 - [Using anonymous parameters in traits is now deprecated with a warning and
3645   will be a hard error in the 2018 edition.][53272]
3646 - [You can now use `crate` in paths.][54404] This allows you to refer to the
3647   crate root in the path, e.g. `use crate::foo;` refers to `foo` in `src/lib.rs`.
3648 - [Using a external crate no longer requires being prefixed with `::`.][54404]
3649   Previously, using a external crate in a module without a use statement
3650   required `let json = ::serde_json::from_str(foo);` but can now be written
3651   as `let json = serde_json::from_str(foo);`.
3652 - [You can now apply the `#[used]` attribute to static items to prevent the
3653   compiler from optimising them away, even if they appear to be unused,][51363]
3654   e.g. `#[used] static FOO: u32 = 1;`
3655 - [You can now import and reexport macros from other crates with the `use`
3656   syntax.][50911] Macros exported with `#[macro_export]` are now placed into
3657   the root module of the crate. If your macro relies on calling other local
3658   macros, it is recommended to export with the
3659   `#[macro_export(local_inner_macros)]` attribute so users won't have to import
3660   those macros.
3661 - [You can now catch visibility keywords (e.g. `pub`, `pub(crate)`) in macros
3662   using the `vis` specifier.][53370]
3663 - [Non-macro attributes now allow all forms of literals, not just
3664   strings.][53044] Previously, you would write `#[attr("true")]`, and you can now
3665   write `#[attr(true)]`.
3666 - [You can now specify a function to handle a panic in the Rust runtime with the
3667   `#[panic_handler]` attribute.][51366]
3668
3669 Compiler
3670 --------
3671 - [Added the `riscv32imc-unknown-none-elf` target.][53822]
3672 - [Added the `aarch64-unknown-netbsd` target][53165]
3673 - [Upgraded to LLVM 8.][53611]
3674
3675 Libraries
3676 ---------
3677 - [`ManuallyDrop` now allows the inner type to be unsized.][53033]
3678
3679 Stabilized APIs
3680 ---------------
3681 - [`Ipv4Addr::BROADCAST`]
3682 - [`Ipv4Addr::LOCALHOST`]
3683 - [`Ipv4Addr::UNSPECIFIED`]
3684 - [`Ipv6Addr::LOCALHOST`]
3685 - [`Ipv6Addr::UNSPECIFIED`]
3686 - [`Iterator::find_map`]
3687
3688   The following methods are replacement methods for `trim_left`, `trim_right`,
3689   `trim_left_matches`, and `trim_right_matches`, which will be deprecated
3690   in 1.33.0:
3691 - [`str::trim_end_matches`]
3692 - [`str::trim_end`]
3693 - [`str::trim_start_matches`]
3694 - [`str::trim_start`]
3695
3696 Cargo
3697 ----
3698 - [`cargo run` doesn't require specifying a package in workspaces.][cargo/5877]
3699 - [`cargo doc` now supports `--message-format=json`.][cargo/5878] This is
3700   equivalent to calling `rustdoc --error-format=json`.
3701 - [Cargo will now provide a progress bar for builds.][cargo/5995]
3702
3703 Misc
3704 ----
3705 - [`rustdoc` allows you to specify what edition to treat your code as with the
3706   `--edition` option.][54057]
3707 - [`rustdoc` now has the `--color` (specify whether to output color) and
3708   `--error-format` (specify error format, e.g. `json`) options.][53003]
3709 - [We now distribute a `rust-gdbgui` script that invokes `gdbgui` with Rust
3710   debug symbols.][53774]
3711 - [Attributes from Rust tools such as `rustfmt` or `clippy` are now
3712   available,][53459] e.g. `#[rustfmt::skip]` will skip formatting the next item.
3713
3714 [50911]: https://github.com/rust-lang/rust/pull/50911/
3715 [51363]: https://github.com/rust-lang/rust/pull/51363/
3716 [51366]: https://github.com/rust-lang/rust/pull/51366/
3717 [52081]: https://github.com/rust-lang/rust/pull/52081/
3718 [53003]: https://github.com/rust-lang/rust/pull/53003/
3719 [53033]: https://github.com/rust-lang/rust/pull/53033/
3720 [53044]: https://github.com/rust-lang/rust/pull/53044/
3721 [53165]: https://github.com/rust-lang/rust/pull/53165/
3722 [53611]: https://github.com/rust-lang/rust/pull/53611/
3723 [53213]: https://github.com/rust-lang/rust/pull/53213/
3724 [53236]: https://github.com/rust-lang/rust/pull/53236/
3725 [53272]: https://github.com/rust-lang/rust/pull/53272/
3726 [53370]: https://github.com/rust-lang/rust/pull/53370/
3727 [53459]: https://github.com/rust-lang/rust/pull/53459/
3728 [53774]: https://github.com/rust-lang/rust/pull/53774/
3729 [53822]: https://github.com/rust-lang/rust/pull/53822/
3730 [54057]: https://github.com/rust-lang/rust/pull/54057/
3731 [54146]: https://github.com/rust-lang/rust/pull/54146/
3732 [54404]: https://github.com/rust-lang/rust/pull/54404/
3733 [cargo/5877]: https://github.com/rust-lang/cargo/pull/5877/
3734 [cargo/5878]: https://github.com/rust-lang/cargo/pull/5878/
3735 [cargo/5995]: https://github.com/rust-lang/cargo/pull/5995/
3736 [proc-macros]: https://doc.rust-lang.org/nightly/book/2018-edition/ch19-06-macros.html
3737
3738 [`Ipv4Addr::BROADCAST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.BROADCAST
3739 [`Ipv4Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.LOCALHOST
3740 [`Ipv4Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.UNSPECIFIED
3741 [`Ipv6Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.LOCALHOST
3742 [`Ipv6Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.UNSPECIFIED
3743 [`Iterator::find_map`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find_map
3744 [`str::trim_end_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end_matches
3745 [`str::trim_end`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end
3746 [`str::trim_start_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start_matches
3747 [`str::trim_start`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start
3748
3749
3750 Version 1.29.2 (2018-10-11)
3751 ===========================
3752
3753 - [Workaround for an aliasing-related LLVM bug, which caused miscompilation.][54639]
3754 - The `rls-preview` component on the windows-gnu targets has been restored.
3755
3756 [54639]: https://github.com/rust-lang/rust/pull/54639
3757
3758
3759 Version 1.29.1 (2018-09-25)
3760 ===========================
3761
3762 Security Notes
3763 --------------
3764
3765 - The standard library's `str::repeat` function contained an out of bounds write
3766   caused by an integer overflow. This has been fixed by deterministically
3767   panicking when an overflow happens.
3768
3769   Thank you to Scott McMurray for responsibly disclosing this vulnerability to
3770   us.
3771
3772
3773 Version 1.29.0 (2018-09-13)
3774 ==========================
3775
3776 Compiler
3777 --------
3778 - [Bumped minimum LLVM version to 5.0.][51899]
3779 - [Added `powerpc64le-unknown-linux-musl` target.][51619]
3780 - [Added `aarch64-unknown-hermit` and `x86_64-unknown-hermit` targets.][52861]
3781 - [Upgraded to LLVM 7.][51966]
3782
3783 Libraries
3784 ---------
3785 - [`Once::call_once` no longer requires `Once` to be `'static`.][52239]
3786 - [`BuildHasherDefault` now implements `PartialEq` and `Eq`.][52402]
3787 - [`Box<CStr>`, `Box<OsStr>`, and `Box<Path>` now implement `Clone`.][51912]
3788 - [Implemented `PartialEq<&str>` for `OsString` and `PartialEq<OsString>`
3789   for `&str`.][51178]
3790 - [`Cell<T>` now allows `T` to be unsized.][50494]
3791 - [`SocketAddr` is now stable on Redox.][52656]
3792
3793 Stabilized APIs
3794 ---------------
3795 - [`Arc::downcast`]
3796 - [`Iterator::flatten`]
3797 - [`Rc::downcast`]
3798
3799 Cargo
3800 -----
3801 - [Cargo can silently fix some bad lockfiles.][cargo/5831] You can use
3802   `--locked` to disable this behavior.
3803 - [`cargo-install` will now allow you to cross compile an install
3804   using `--target`.][cargo/5614]
3805 - [Added the `cargo-fix` subcommand to automatically move project code from
3806   2015 edition to 2018.][cargo/5723]
3807 - [`cargo doc` can now optionally document private types using the
3808   `--document-private-items` flag.][cargo/5543]
3809
3810 Misc
3811 ----
3812 - [`rustdoc` now has the `--cap-lints` option which demotes all lints above
3813   the specified level to that level.][52354] For example `--cap-lints warn`
3814   will demote `deny` and `forbid` lints to `warn`.
3815 - [`rustc` and `rustdoc` will now have the exit code of `1` if compilation
3816   fails and `101` if there is a panic.][52197]
3817 - [A preview of clippy has been made available through rustup.][51122]
3818   You can install the preview with `rustup component add clippy-preview`.
3819
3820 Compatibility Notes
3821 -------------------
3822 - [`str::{slice_unchecked, slice_unchecked_mut}` are now deprecated.][51807]
3823   Use `str::get_unchecked(begin..end)` instead.
3824 - [`std::env::home_dir` is now deprecated for its unintuitive behavior.][51656]
3825   Consider using the `home_dir` function from
3826   https://crates.io/crates/dirs instead.
3827 - [`rustc` will no longer silently ignore invalid data in target spec.][52330]
3828 - [`cfg` attributes and `--cfg` command line flags are now more
3829   strictly validated.][53893]
3830
3831 [53893]: https://github.com/rust-lang/rust/pull/53893/
3832 [52861]: https://github.com/rust-lang/rust/pull/52861/
3833 [51966]: https://github.com/rust-lang/rust/pull/51966/
3834 [52656]: https://github.com/rust-lang/rust/pull/52656/
3835 [52239]: https://github.com/rust-lang/rust/pull/52239/
3836 [52330]: https://github.com/rust-lang/rust/pull/52330/
3837 [52354]: https://github.com/rust-lang/rust/pull/52354/
3838 [52402]: https://github.com/rust-lang/rust/pull/52402/
3839 [52103]: https://github.com/rust-lang/rust/pull/52103/
3840 [52197]: https://github.com/rust-lang/rust/pull/52197/
3841 [51807]: https://github.com/rust-lang/rust/pull/51807/
3842 [51899]: https://github.com/rust-lang/rust/pull/51899/
3843 [51912]: https://github.com/rust-lang/rust/pull/51912/
3844 [51511]: https://github.com/rust-lang/rust/pull/51511/
3845 [51619]: https://github.com/rust-lang/rust/pull/51619/
3846 [51656]: https://github.com/rust-lang/rust/pull/51656/
3847 [51178]: https://github.com/rust-lang/rust/pull/51178/
3848 [51122]: https://github.com/rust-lang/rust/pull/51122
3849 [50494]: https://github.com/rust-lang/rust/pull/50494/
3850 [cargo/5543]: https://github.com/rust-lang/cargo/pull/5543
3851 [cargo/5614]: https://github.com/rust-lang/cargo/pull/5614/
3852 [cargo/5723]: https://github.com/rust-lang/cargo/pull/5723/
3853 [cargo/5831]: https://github.com/rust-lang/cargo/pull/5831/
3854 [`Arc::downcast`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.downcast
3855 [`Iterator::flatten`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flatten
3856 [`Rc::downcast`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.downcast
3857
3858
3859 Version 1.28.0 (2018-08-02)
3860 ===========================
3861
3862 Language
3863 --------
3864 - [The `#[repr(transparent)]` attribute is now stable.][51562] This attribute
3865   allows a Rust newtype wrapper (`struct NewType<T>(T);`) to be represented as
3866   the inner type across Foreign Function Interface (FFI) boundaries.
3867 - [The keywords `pure`, `sizeof`, `alignof`, and `offsetof` have been unreserved
3868   and can now be used as identifiers.][51196]
3869 - [The `GlobalAlloc` trait and `#[global_allocator]` attribute are now
3870   stable.][51241] This will allow users to specify a global allocator for
3871   their program.
3872 - [Unit test functions marked with the `#[test]` attribute can now return
3873   `Result<(), E: Debug>` in addition to `()`.][51298]
3874 - [The `lifetime` specifier for `macro_rules!` is now stable.][50385] This
3875   allows macros to easily target lifetimes.
3876
3877 Compiler
3878 --------
3879 - [The `s` and `z` optimisation levels are now stable.][50265] These optimisations
3880   prioritise making smaller binary sizes. `z` is the same as `s` with the
3881   exception that it does not vectorise loops, which typically results in an even
3882   smaller binary.
3883 - [The short error format is now stable.][49546] Specified with
3884   `--error-format=short` this option will provide a more compressed output of
3885   rust error messages.
3886 - [Added a lint warning when you have duplicated `macro_export`s.][50143]
3887 - [Reduced the number of allocations in the macro parser.][50855] This can
3888   improve compile times of macro heavy crates on average by 5%.
3889
3890 Libraries
3891 ---------
3892 - [Implemented `Default` for `&mut str`.][51306]
3893 - [Implemented `From<bool>` for all integer and unsigned number types.][50554]
3894 - [Implemented `Extend` for `()`.][50234]
3895 - [The `Debug` implementation of `time::Duration` should now be more easily
3896   human readable.][50364] Previously a `Duration` of one second would printed as
3897   `Duration { secs: 1, nanos: 0 }` and will now be printed as `1s`.
3898 - [Implemented `From<&String>` for `Cow<str>`, `From<&Vec<T>>` for `Cow<[T]>`,
3899   `From<Cow<CStr>>` for `CString`, `From<CString>, From<CStr>, From<&CString>`
3900   for `Cow<CStr>`, `From<OsString>, From<OsStr>, From<&OsString>` for
3901   `Cow<OsStr>`, `From<&PathBuf>` for `Cow<Path>`, and `From<Cow<Path>>`
3902   for `PathBuf`.][50170]
3903 - [Implemented `Shl` and `Shr` for `Wrapping<u128>`
3904   and `Wrapping<i128>`.][50465]
3905 - [`DirEntry::metadata` now uses `fstatat` instead of `lstat` when
3906   possible.][51050] This can provide up to a 40% speed increase.
3907 - [Improved error messages when using `format!`.][50610]
3908
3909 Stabilized APIs
3910 ---------------
3911 - [`Iterator::step_by`]
3912 - [`Path::ancestors`]
3913 - [`SystemTime::UNIX_EPOCH`]
3914 - [`alloc::GlobalAlloc`]
3915 - [`alloc::Layout`]
3916 - [`alloc::LayoutErr`]
3917 - [`alloc::System`]
3918 - [`alloc::alloc`]
3919 - [`alloc::alloc_zeroed`]
3920 - [`alloc::dealloc`]
3921 - [`alloc::realloc`]
3922 - [`alloc::handle_alloc_error`]
3923 - [`btree_map::Entry::or_default`]
3924 - [`fmt::Alignment`]
3925 - [`hash_map::Entry::or_default`]
3926 - [`iter::repeat_with`]
3927 - [`num::NonZeroUsize`]
3928 - [`num::NonZeroU128`]
3929 - [`num::NonZeroU16`]
3930 - [`num::NonZeroU32`]
3931 - [`num::NonZeroU64`]
3932 - [`num::NonZeroU8`]
3933 - [`ops::RangeBounds`]
3934 - [`slice::SliceIndex`]
3935 - [`slice::from_mut`]
3936 - [`slice::from_ref`]
3937 - [`{Any + Send + Sync}::downcast_mut`]
3938 - [`{Any + Send + Sync}::downcast_ref`]
3939 - [`{Any + Send + Sync}::is`]
3940
3941 Cargo
3942 -----
3943 - [Cargo will now no longer allow you to publish crates with build scripts that
3944   modify the `src` directory.][cargo/5584] The `src` directory in a crate should be
3945   considered to be immutable.
3946
3947 Misc
3948 ----
3949 - [The `suggestion_applicability` field in `rustc`'s json output is now
3950   stable.][50486] This will allow dev tools to check whether a code suggestion
3951   would apply to them.
3952
3953 Compatibility Notes
3954 -------------------
3955 - [Rust will consider trait objects with duplicated constraints to be the same
3956   type as without the duplicated constraint.][51276] For example the below code will
3957   now fail to compile.
3958   ```rust
3959   trait Trait {}
3960
3961   impl Trait + Send {
3962       fn test(&self) { println!("one"); } //~ ERROR duplicate definitions with name `test`
3963   }
3964
3965   impl Trait + Send + Send {
3966       fn test(&self) { println!("two"); }
3967   }
3968   ```
3969
3970 [49546]: https://github.com/rust-lang/rust/pull/49546/
3971 [50143]: https://github.com/rust-lang/rust/pull/50143/
3972 [50170]: https://github.com/rust-lang/rust/pull/50170/
3973 [50234]: https://github.com/rust-lang/rust/pull/50234/
3974 [50265]: https://github.com/rust-lang/rust/pull/50265/
3975 [50364]: https://github.com/rust-lang/rust/pull/50364/
3976 [50385]: https://github.com/rust-lang/rust/pull/50385/
3977 [50465]: https://github.com/rust-lang/rust/pull/50465/
3978 [50486]: https://github.com/rust-lang/rust/pull/50486/
3979 [50554]: https://github.com/rust-lang/rust/pull/50554/
3980 [50610]: https://github.com/rust-lang/rust/pull/50610/
3981 [50855]: https://github.com/rust-lang/rust/pull/50855/
3982 [51050]: https://github.com/rust-lang/rust/pull/51050/
3983 [51196]: https://github.com/rust-lang/rust/pull/51196/
3984 [51200]: https://github.com/rust-lang/rust/pull/51200/
3985 [51241]: https://github.com/rust-lang/rust/pull/51241/
3986 [51276]: https://github.com/rust-lang/rust/pull/51276/
3987 [51298]: https://github.com/rust-lang/rust/pull/51298/
3988 [51306]: https://github.com/rust-lang/rust/pull/51306/
3989 [51562]: https://github.com/rust-lang/rust/pull/51562/
3990 [cargo/5584]: https://github.com/rust-lang/cargo/pull/5584/
3991 [`Iterator::step_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by
3992 [`Path::ancestors`]: https://doc.rust-lang.org/std/path/struct.Path.html#method.ancestors
3993 [`SystemTime::UNIX_EPOCH`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#associatedconstant.UNIX_EPOCH
3994 [`alloc::GlobalAlloc`]: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html
3995 [`alloc::Layout`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html
3996 [`alloc::LayoutErr`]: https://doc.rust-lang.org/std/alloc/struct.LayoutErr.html
3997 [`alloc::System`]: https://doc.rust-lang.org/std/alloc/struct.System.html
3998 [`alloc::alloc`]: https://doc.rust-lang.org/std/alloc/fn.alloc.html
3999 [`alloc::alloc_zeroed`]: https://doc.rust-lang.org/std/alloc/fn.alloc_zeroed.html
4000 [`alloc::dealloc`]: https://doc.rust-lang.org/std/alloc/fn.dealloc.html
4001 [`alloc::realloc`]: https://doc.rust-lang.org/std/alloc/fn.realloc.html
4002 [`alloc::handle_alloc_error`]: https://doc.rust-lang.org/std/alloc/fn.handle_alloc_error.html
4003 [`btree_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.or_default
4004 [`fmt::Alignment`]: https://doc.rust-lang.org/std/fmt/enum.Alignment.html
4005 [`hash_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.or_default
4006 [`iter::repeat_with`]: https://doc.rust-lang.org/std/iter/fn.repeat_with.html
4007 [`num::NonZeroUsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroUsize.html
4008 [`num::NonZeroU128`]: https://doc.rust-lang.org/std/num/struct.NonZeroU128.html
4009 [`num::NonZeroU16`]: https://doc.rust-lang.org/std/num/struct.NonZeroU16.html
4010 [`num::NonZeroU32`]: https://doc.rust-lang.org/std/num/struct.NonZeroU32.html
4011 [`num::NonZeroU64`]: https://doc.rust-lang.org/std/num/struct.NonZeroU64.html
4012 [`num::NonZeroU8`]: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
4013 [`ops::RangeBounds`]: https://doc.rust-lang.org/std/ops/trait.RangeBounds.html
4014 [`slice::SliceIndex`]: https://doc.rust-lang.org/std/slice/trait.SliceIndex.html
4015 [`slice::from_mut`]: https://doc.rust-lang.org/std/slice/fn.from_mut.html
4016 [`slice::from_ref`]: https://doc.rust-lang.org/std/slice/fn.from_ref.html
4017 [`{Any + Send + Sync}::downcast_mut`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_mut-2
4018 [`{Any + Send + Sync}::downcast_ref`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_ref-2
4019 [`{Any + Send + Sync}::is`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.is-2
4020
4021 Version 1.27.2 (2018-07-20)
4022 ===========================
4023
4024 Compatibility Notes
4025 -------------------
4026
4027 - The borrow checker was fixed to avoid potential unsoundness when using
4028   match ergonomics: [#52213][52213].
4029
4030 [52213]: https://github.com/rust-lang/rust/issues/52213
4031
4032 Version 1.27.1 (2018-07-10)
4033 ===========================
4034
4035 Security Notes
4036 --------------
4037
4038 - rustdoc would execute plugins in the /tmp/rustdoc/plugins directory
4039   when running, which enabled executing code as some other user on a
4040   given machine. This release fixes that vulnerability; you can read
4041   more about this on the [blog][rustdoc-sec]. The associated CVE is [CVE-2018-1000622].
4042
4043   Thank you to Red Hat for responsibly disclosing this vulnerability to us.
4044
4045 Compatibility Notes
4046 -------------------
4047
4048 - The borrow checker was fixed to avoid an additional potential unsoundness when using
4049   match ergonomics: [#51415][51415], [#49534][49534].
4050
4051 [51415]: https://github.com/rust-lang/rust/issues/51415
4052 [49534]: https://github.com/rust-lang/rust/issues/49534
4053 [rustdoc-sec]: https://blog.rust-lang.org/2018/07/06/security-advisory-for-rustdoc.html
4054 [CVE-2018-1000622]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=%20CVE-2018-1000622
4055
4056 Version 1.27.0 (2018-06-21)
4057 ==========================
4058
4059 Language
4060 --------
4061 - [Removed 'proc' from the reserved keywords list.][49699] This allows `proc` to
4062   be used as an identifier.
4063 - [The dyn syntax is now available.][49968] This syntax is equivalent to the
4064   bare `Trait` syntax, and should make it clearer when being used in tandem with
4065   `impl Trait` because it is equivalent to the following syntax:
4066   `&Trait == &dyn Trait`, `&mut Trait == &mut dyn Trait`, and
4067   `Box<Trait> == Box<dyn Trait>`.
4068 - [Attributes on generic parameters such as types and lifetimes are
4069   now stable.][48851] e.g.
4070   `fn foo<#[lifetime_attr] 'a, #[type_attr] T: 'a>() {}`
4071 - [The `#[must_use]` attribute can now also be used on functions as well as
4072   types.][48925] It provides a lint that by default warns users when the
4073   value returned by a function has not been used.
4074
4075 Compiler
4076 --------
4077 - [Added the `armv5te-unknown-linux-musleabi` target.][50423]
4078
4079 Libraries
4080 ---------
4081 - [SIMD (Single Instruction Multiple Data) on x86/x86_64 is now stable.][49664]
4082   This includes [`arch::x86`] & [`arch::x86_64`] modules which contain
4083   SIMD intrinsics, a new macro called `is_x86_feature_detected!`, the
4084   `#[target_feature(enable="")]` attribute, and adding `target_feature = ""` to
4085   the `cfg` attribute.
4086 - [A lot of methods for `[u8]`, `f32`, and `f64` previously only available in
4087   std are now available in core.][49896]
4088 - [The generic `Rhs` type parameter on `ops::{Shl, ShlAssign, Shr}` now defaults
4089   to `Self`.][49630]
4090 - [`std::str::replace` now has the `#[must_use]` attribute][50177] to clarify
4091   that the operation isn't done in place.
4092 - [`Clone::clone`, `Iterator::collect`, and `ToOwned::to_owned` now have
4093   the `#[must_use]` attribute][49533] to warn about unused potentially
4094   expensive allocations.
4095
4096 Stabilized APIs
4097 ---------------
4098 - [`DoubleEndedIterator::rfind`]
4099 - [`DoubleEndedIterator::rfold`]
4100 - [`DoubleEndedIterator::try_rfold`]
4101 - [`Duration::from_micros`]
4102 - [`Duration::from_nanos`]
4103 - [`Duration::subsec_micros`]
4104 - [`Duration::subsec_millis`]
4105 - [`HashMap::remove_entry`]
4106 - [`Iterator::try_fold`]
4107 - [`Iterator::try_for_each`]
4108 - [`NonNull::cast`]
4109 - [`Option::filter`]
4110 - [`String::replace_range`]
4111 - [`Take::set_limit`]
4112 - [`hint::unreachable_unchecked`]
4113 - [`os::unix::process::parent_id`]
4114 - [`ptr::swap_nonoverlapping`]
4115 - [`slice::rsplit_mut`]
4116 - [`slice::rsplit`]
4117 - [`slice::swap_with_slice`]
4118
4119 Cargo
4120 -----
4121 - [`cargo-metadata` now includes `authors`, `categories`, `keywords`,
4122   `readme`, and `repository` fields.][cargo/5386]
4123 - [`cargo-metadata` now includes a package's `metadata` table.][cargo/5360]
4124 - [Added the `--target-dir` optional argument.][cargo/5393] This allows you to specify
4125   a different directory than `target` for placing compilation artifacts.
4126 - [Cargo will be adding automatic target inference for binaries, benchmarks,
4127   examples, and tests in the Rust 2018 edition.][cargo/5335] If your project specifies
4128   specific targets, e.g. using `[[bin]]`, and have other binaries in locations
4129   where cargo would infer a binary, Cargo will produce a warning. You can
4130   disable this feature ahead of time by setting any of the following to false:
4131   `autobins`, `autobenches`, `autoexamples`, `autotests`.
4132 - [Cargo will now cache compiler information.][cargo/5359] This can be disabled by
4133   setting `CARGO_CACHE_RUSTC_INFO=0` in your environment.
4134
4135 Misc
4136 ----
4137 - [Added “The Rustc book” into the official documentation.][49707]
4138   [“The Rustc book”] documents and teaches how to use the rustc compiler.
4139 - [All books available on `doc.rust-lang.org` are now searchable.][49623]
4140
4141 Compatibility Notes
4142 -------------------
4143 - [Calling a `CharExt` or `StrExt` method directly on core will no longer
4144   work.][49896] e.g. `::core::prelude::v1::StrExt::is_empty("")` will not
4145   compile, `"".is_empty()` will still compile.
4146 - [`Debug` output on `atomic::{AtomicBool, AtomicIsize, AtomicPtr, AtomicUsize}`
4147   will only print the inner type.][48553] E.g.
4148   `print!("{:?}", AtomicBool::new(true))` will print `true`,
4149   not `AtomicBool(true)`.
4150 - [The maximum number for `repr(align(N))` is now 2²⁹.][50378] Previously you
4151   could enter higher numbers but they were not supported by LLVM. Up to 512MB
4152   alignment should cover all use cases.
4153 - The `.description()` method on the `std::error::Error` trait
4154   [has been soft-deprecated][50163]. It is no longer required to implement it.
4155
4156 [48553]: https://github.com/rust-lang/rust/pull/48553/
4157 [48851]: https://github.com/rust-lang/rust/pull/48851/
4158 [48925]: https://github.com/rust-lang/rust/pull/48925/
4159 [49533]: https://github.com/rust-lang/rust/pull/49533/
4160 [49623]: https://github.com/rust-lang/rust/pull/49623/
4161 [49630]: https://github.com/rust-lang/rust/pull/49630/
4162 [49664]: https://github.com/rust-lang/rust/pull/49664/
4163 [49699]: https://github.com/rust-lang/rust/pull/49699/
4164 [49707]: https://github.com/rust-lang/rust/pull/49707/
4165 [49719]: https://github.com/rust-lang/rust/pull/49719/
4166 [49896]: https://github.com/rust-lang/rust/pull/49896/
4167 [49968]: https://github.com/rust-lang/rust/pull/49968/
4168 [50163]: https://github.com/rust-lang/rust/pull/50163
4169 [50177]: https://github.com/rust-lang/rust/pull/50177/
4170 [50378]: https://github.com/rust-lang/rust/pull/50378/
4171 [50398]: https://github.com/rust-lang/rust/pull/50398/
4172 [50423]: https://github.com/rust-lang/rust/pull/50423/
4173 [cargo/5203]: https://github.com/rust-lang/cargo/pull/5203/
4174 [cargo/5335]: https://github.com/rust-lang/cargo/pull/5335/
4175 [cargo/5359]: https://github.com/rust-lang/cargo/pull/5359/
4176 [cargo/5360]: https://github.com/rust-lang/cargo/pull/5360/
4177 [cargo/5386]: https://github.com/rust-lang/cargo/pull/5386/
4178 [cargo/5393]: https://github.com/rust-lang/cargo/pull/5393/
4179 [`DoubleEndedIterator::rfind`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfind
4180 [`DoubleEndedIterator::rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfold
4181 [`DoubleEndedIterator::try_rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
4182 [`Duration::from_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_micros
4183 [`Duration::from_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_nanos
4184 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4185 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4186 [`HashMap::remove_entry`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.remove_entry
4187 [`Iterator::try_fold`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_fold
4188 [`Iterator::try_for_each`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
4189 [`NonNull::cast`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.cast
4190 [`Option::filter`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.filter
4191 [`String::replace_range`]: https://doc.rust-lang.org/std/string/struct.String.html#method.replace_range
4192 [`Take::set_limit`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.set_limit
4193 [`hint::unreachable_unchecked`]: https://doc.rust-lang.org/std/hint/fn.unreachable_unchecked.html
4194 [`os::unix::process::parent_id`]: https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html
4195 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
4196 [`ptr::swap_nonoverlapping`]: https://doc.rust-lang.org/std/ptr/fn.swap_nonoverlapping.html
4197 [`slice::rsplit_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit_mut
4198 [`slice::rsplit`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit
4199 [`slice::swap_with_slice`]: https://doc.rust-lang.org/std/primitive.slice.html#method.swap_with_slice
4200 [`arch::x86_64`]: https://doc.rust-lang.org/std/arch/x86_64/index.html
4201 [`arch::x86`]: https://doc.rust-lang.org/std/arch/x86/index.html
4202 [“The Rustc book”]: https://doc.rust-lang.org/rustc
4203
4204
4205 Version 1.26.2 (2018-06-05)
4206 ==========================
4207
4208 Compatibility Notes
4209 -------------------
4210
4211 - [The borrow checker was fixed to avoid unsoundness when using match ergonomics.][51117]
4212
4213 [51117]: https://github.com/rust-lang/rust/issues/51117
4214
4215
4216 Version 1.26.1 (2018-05-29)
4217 ==========================
4218
4219 Tools
4220 -----
4221
4222 - [RLS now works on Windows.][50646]
4223 - [Rustfmt stopped badly formatting text in some cases.][rustfmt/2695]
4224
4225
4226 Compatibility Notes
4227 --------
4228
4229 - [`fn main() -> impl Trait` no longer works for non-Termination
4230   trait.][50656]
4231   This reverts an accidental stabilization.
4232 - [`NaN > NaN` no longer returns true in const-fn contexts.][50812]
4233 - [Prohibit using turbofish for `impl Trait` in method arguments.][50950]
4234
4235 [50646]: https://github.com/rust-lang/rust/issues/50646
4236 [50656]: https://github.com/rust-lang/rust/pull/50656
4237 [50812]: https://github.com/rust-lang/rust/pull/50812
4238 [50950]: https://github.com/rust-lang/rust/issues/50950
4239 [rustfmt/2695]: https://github.com/rust-lang-nursery/rustfmt/issues/2695
4240
4241 Version 1.26.0 (2018-05-10)
4242 ==========================
4243
4244 Language
4245 --------
4246 - [Closures now implement `Copy` and/or `Clone` if all captured variables
4247   implement either or both traits.][49299]
4248 - [The inclusive range syntax e.g. `for x in 0..=10` is now stable.][47813]
4249 - [The `'_` lifetime is now stable. The underscore lifetime can be used anywhere a
4250   lifetime can be elided.][49458]
4251 - [`impl Trait` is now stable allowing you to have abstract types in returns
4252    or in function parameters.][49255] E.g. `fn foo() -> impl Iterator<Item=u8>` or
4253   `fn open(path: impl AsRef<Path>)`.
4254 - [Pattern matching will now automatically apply dereferences.][49394]
4255 - [128-bit integers in the form of `u128` and `i128` are now stable.][49101]
4256 - [`main` can now return `Result<(), E: Debug>`][49162] in addition to `()`.
4257 - [A lot of operations are now available in a const context.][46882] E.g. You
4258   can now index into constant arrays, reference and dereference into constants,
4259   and use tuple struct constructors.
4260 - [Fixed entry slice patterns are now stable.][48516] E.g.
4261   ```rust
4262   let points = [1, 2, 3, 4];
4263   match points {
4264       [1, 2, 3, 4] => println!("All points were sequential."),
4265       _ => println!("Not all points were sequential."),
4266   }
4267   ```
4268
4269
4270 Compiler
4271 --------
4272 - [LLD is now used as the default linker for `wasm32-unknown-unknown`.][48125]
4273 - [Fixed exponential projection complexity on nested types.][48296]
4274   This can provide up to a ~12% reduction in compile times for certain crates.
4275 - [Added the `--remap-path-prefix` option to rustc.][48359] Allowing you
4276   to remap path prefixes outputted by the compiler.
4277 - [Added `powerpc-unknown-netbsd` target.][48281]
4278
4279 Libraries
4280 ---------
4281 - [Implemented `From<u16> for usize` & `From<{u8, i16}> for isize`.][49305]
4282 - [Added hexadecimal formatting for integers with fmt::Debug][48978]
4283   e.g. `assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]")`
4284 - [Implemented `Default, Hash` for `cmp::Reverse`.][48628]
4285 - [Optimized `str::repeat` being 8x faster in large cases.][48657]
4286 - [`ascii::escape_default` is now available in libcore.][48735]
4287 - [Trailing commas are now supported in std and core macros.][48056]
4288 - [Implemented `Copy, Clone` for `cmp::Reverse`][47379]
4289 - [Implemented `Clone` for `char::{ToLowercase, ToUppercase}`.][48629]
4290
4291 Stabilized APIs
4292 ---------------
4293 - [`*const T::add`]
4294 - [`*const T::copy_to_nonoverlapping`]
4295 - [`*const T::copy_to`]
4296 - [`*const T::read_unaligned`]
4297 - [`*const T::read_volatile`]
4298 - [`*const T::read`]
4299 - [`*const T::sub`]
4300 - [`*const T::wrapping_add`]
4301 - [`*const T::wrapping_sub`]
4302 - [`*mut T::add`]
4303 - [`*mut T::copy_to_nonoverlapping`]
4304 - [`*mut T::copy_to`]
4305 - [`*mut T::read_unaligned`]
4306 - [`*mut T::read_volatile`]
4307 - [`*mut T::read`]
4308 - [`*mut T::replace`]
4309 - [`*mut T::sub`]
4310 - [`*mut T::swap`]
4311 - [`*mut T::wrapping_add`]
4312 - [`*mut T::wrapping_sub`]
4313 - [`*mut T::write_bytes`]
4314 - [`*mut T::write_unaligned`]
4315 - [`*mut T::write_volatile`]
4316 - [`*mut T::write`]
4317 - [`Box::leak`]
4318 - [`FromUtf8Error::as_bytes`]
4319 - [`LocalKey::try_with`]
4320 - [`Option::cloned`]
4321 - [`btree_map::Entry::and_modify`]
4322 - [`fs::read_to_string`]
4323 - [`fs::read`]
4324 - [`fs::write`]
4325 - [`hash_map::Entry::and_modify`]
4326 - [`iter::FusedIterator`]
4327 - [`ops::RangeInclusive`]
4328 - [`ops::RangeToInclusive`]
4329 - [`process::id`]
4330 - [`slice::rotate_left`]
4331 - [`slice::rotate_right`]
4332 - [`String::retain`]
4333
4334
4335 Cargo
4336 -----
4337 - [Cargo will now output path to custom commands when `-v` is
4338   passed with `--list`][cargo/5041]
4339 - [The Cargo binary version is now the same as the Rust version][cargo/5083]
4340
4341 Misc
4342 ----
4343 - [The second edition of "The Rust Programming Language" book is now recommended
4344   over the first.][48404]
4345
4346 Compatibility Notes
4347 -------------------
4348
4349 - [aliasing a `Fn` trait as `dyn` no longer works.][48481] E.g. the following
4350   syntax is now invalid.
4351   ```
4352   use std::ops::Fn as dyn;
4353   fn g(_: Box<dyn(std::fmt::Debug)>) {}
4354   ```
4355 - [The result of dereferences are no longer promoted to `'static`.][47408]
4356   e.g.
4357   ```rust
4358   fn main() {
4359       const PAIR: &(i32, i32) = &(0, 1);
4360       let _reversed_pair: &'static _ = &(PAIR.1, PAIR.0); // Doesn't work
4361   }
4362   ```
4363 - [Deprecate `AsciiExt` trait in favor of inherent methods.][49109]
4364 - [`".e0"` will now no longer parse as `0.0` and will instead cause
4365   an error.][48235]
4366 - [Removed hoedown from rustdoc.][48274]
4367 - [Bounds on higher-kinded lifetimes a hard error.][48326]
4368
4369 [46882]: https://github.com/rust-lang/rust/pull/46882
4370 [47379]: https://github.com/rust-lang/rust/pull/47379
4371 [47408]: https://github.com/rust-lang/rust/pull/47408
4372 [47813]: https://github.com/rust-lang/rust/pull/47813
4373 [48056]: https://github.com/rust-lang/rust/pull/48056
4374 [48125]: https://github.com/rust-lang/rust/pull/48125
4375 [48166]: https://github.com/rust-lang/rust/pull/48166
4376 [48235]: https://github.com/rust-lang/rust/pull/48235
4377 [48274]: https://github.com/rust-lang/rust/pull/48274
4378 [48281]: https://github.com/rust-lang/rust/pull/48281
4379 [48296]: https://github.com/rust-lang/rust/pull/48296
4380 [48326]: https://github.com/rust-lang/rust/pull/48326
4381 [48359]: https://github.com/rust-lang/rust/pull/48359
4382 [48404]: https://github.com/rust-lang/rust/pull/48404
4383 [48481]: https://github.com/rust-lang/rust/pull/48481
4384 [48516]: https://github.com/rust-lang/rust/pull/48516
4385 [48628]: https://github.com/rust-lang/rust/pull/48628
4386 [48629]: https://github.com/rust-lang/rust/pull/48629
4387 [48657]: https://github.com/rust-lang/rust/pull/48657
4388 [48735]: https://github.com/rust-lang/rust/pull/48735
4389 [48978]: https://github.com/rust-lang/rust/pull/48978
4390 [49101]: https://github.com/rust-lang/rust/pull/49101
4391 [49109]: https://github.com/rust-lang/rust/pull/49109
4392 [49121]: https://github.com/rust-lang/rust/pull/49121
4393 [49162]: https://github.com/rust-lang/rust/pull/49162
4394 [49184]: https://github.com/rust-lang/rust/pull/49184
4395 [49234]: https://github.com/rust-lang/rust/pull/49234
4396 [49255]: https://github.com/rust-lang/rust/pull/49255
4397 [49299]: https://github.com/rust-lang/rust/pull/49299
4398 [49305]: https://github.com/rust-lang/rust/pull/49305
4399 [49394]: https://github.com/rust-lang/rust/pull/49394
4400 [49458]: https://github.com/rust-lang/rust/pull/49458
4401 [`*const T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add
4402 [`*const T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping
4403 [`*const T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to
4404 [`*const T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned
4405 [`*const T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile
4406 [`*const T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read
4407 [`*const T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub
4408 [`*const T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add
4409 [`*const T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub
4410 [`*mut T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add-1
4411 [`*mut T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping-1
4412 [`*mut T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to-1
4413 [`*mut T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned-1
4414 [`*mut T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile-1
4415 [`*mut T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read-1
4416 [`*mut T::replace`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.replace
4417 [`*mut T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub-1
4418 [`*mut T::swap`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.swap
4419 [`*mut T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add-1
4420 [`*mut T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub-1
4421 [`*mut T::write_bytes`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_bytes
4422 [`*mut T::write_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_unaligned
4423 [`*mut T::write_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_volatile
4424 [`*mut T::write`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write
4425 [`Box::leak`]: https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak
4426 [`FromUtf8Error::as_bytes`]: https://doc.rust-lang.org/std/string/struct.FromUtf8Error.html#method.as_bytes
4427 [`LocalKey::try_with`]: https://doc.rust-lang.org/std/thread/struct.LocalKey.html#method.try_with
4428 [`Option::cloned`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.cloned
4429 [`btree_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.and_modify
4430 [`fs::read_to_string`]: https://doc.rust-lang.org/std/fs/fn.read_to_string.html
4431 [`fs::read`]: https://doc.rust-lang.org/std/fs/fn.read.html
4432 [`fs::write`]: https://doc.rust-lang.org/std/fs/fn.write.html
4433 [`hash_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.and_modify
4434 [`iter::FusedIterator`]: https://doc.rust-lang.org/std/iter/trait.FusedIterator.html
4435 [`ops::RangeInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html
4436 [`ops::RangeToInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html
4437 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
4438 [`slice::rotate_left`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_left
4439 [`slice::rotate_right`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_right
4440 [`String::retain`]: https://doc.rust-lang.org/std/string/struct.String.html#method.retain
4441 [cargo/5041]: https://github.com/rust-lang/cargo/pull/5041
4442 [cargo/5083]: https://github.com/rust-lang/cargo/pull/5083
4443
4444
4445 Version 1.25.0 (2018-03-29)
4446 ==========================
4447
4448 Language
4449 --------
4450 - [The `#[repr(align(x))]` attribute is now stable.][47006] [RFC 1358]
4451 - [You can now use nested groups of imports.][47948]
4452   e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};`
4453 - [You can now have `|` at the start of a match arm.][47947] e.g.
4454 ```rust
4455 enum Foo { A, B, C }
4456
4457 fn main() {
4458     let x = Foo::A;
4459     match x {
4460         | Foo::A
4461         | Foo::B => println!("AB"),
4462         | Foo::C => println!("C"),
4463     }
4464 }
4465 ```
4466
4467 Compiler
4468 --------
4469 - [Upgraded to LLVM 6.][47828]
4470 - [Added `-C lto=val` option.][47521]
4471 - [Added `i586-unknown-linux-musl` target][47282]
4472
4473 Libraries
4474 ---------
4475 - [Impl Send for `process::Command` on Unix.][47760]
4476 - [Impl PartialEq and Eq for `ParseCharError`.][47790]
4477 - [`UnsafeCell::into_inner` is now safe.][47204]
4478 - [Implement libstd for CloudABI.][47268]
4479 - [`Float::{from_bits, to_bits}` is now available in libcore.][46931]
4480 - [Implement `AsRef<Path>` for Component][46985]
4481 - [Implemented `Write` for `Cursor<&mut Vec<u8>>`][46830]
4482 - [Moved `Duration` to libcore.][46666]
4483
4484 Stabilized APIs
4485 ---------------
4486 - [`Location::column`]
4487 - [`ptr::NonNull`]
4488
4489 The following functions can now be used in a constant expression.
4490 eg. `static MINUTE: Duration = Duration::from_secs(60);`
4491 - [`Duration::new`][47300]
4492 - [`Duration::from_secs`][47300]
4493 - [`Duration::from_millis`][47300]
4494
4495 Cargo
4496 -----
4497 - [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
4498 - [`cargo new` now defaults to creating a binary crate, instead of a
4499   library crate.][cargo/5029]
4500
4501 Misc
4502 ----
4503 - [Rust by example is now shipped with new releases][46196]
4504
4505 Compatibility Notes
4506 -------------------
4507 - [Deprecated `net::lookup_host`.][47510]
4508 - [`rustdoc` has switched to pulldown as the default markdown renderer.][47398]
4509 - The borrow checker was sometimes incorrectly permitting overlapping borrows
4510   around indexing operations (see [#47349][47349]). This has been fixed (which also
4511   enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]).
4512 - [Removed deprecated unstable attribute `#[simd]`.][47251]
4513
4514 [33903]: https://github.com/rust-lang/rust/pull/33903
4515 [47947]: https://github.com/rust-lang/rust/pull/47947
4516 [47948]: https://github.com/rust-lang/rust/pull/47948
4517 [47760]: https://github.com/rust-lang/rust/pull/47760
4518 [47790]: https://github.com/rust-lang/rust/pull/47790
4519 [47828]: https://github.com/rust-lang/rust/pull/47828
4520 [47398]: https://github.com/rust-lang/rust/pull/47398
4521 [47510]: https://github.com/rust-lang/rust/pull/47510
4522 [47521]: https://github.com/rust-lang/rust/pull/47521
4523 [47204]: https://github.com/rust-lang/rust/pull/47204
4524 [47251]: https://github.com/rust-lang/rust/pull/47251
4525 [47268]: https://github.com/rust-lang/rust/pull/47268
4526 [47282]: https://github.com/rust-lang/rust/pull/47282
4527 [47300]: https://github.com/rust-lang/rust/pull/47300
4528 [47349]: https://github.com/rust-lang/rust/pull/47349
4529 [46931]: https://github.com/rust-lang/rust/pull/46931
4530 [46985]: https://github.com/rust-lang/rust/pull/46985
4531 [47006]: https://github.com/rust-lang/rust/pull/47006
4532 [46830]: https://github.com/rust-lang/rust/pull/46830
4533 [46095]: https://github.com/rust-lang/rust/pull/46095
4534 [46666]: https://github.com/rust-lang/rust/pull/46666
4535 [46196]: https://github.com/rust-lang/rust/pull/46196
4536 [cargo/5013]: https://github.com/rust-lang/cargo/pull/5013
4537 [cargo/5029]: https://github.com/rust-lang/cargo/pull/5029
4538 [RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358
4539 [`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column
4540 [`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
4541
4542
4543 Version 1.24.1 (2018-03-01)
4544 ==========================
4545
4546  - [Do not abort when unwinding through FFI][48251]
4547  - [Emit UTF-16 files for linker arguments on Windows][48318]
4548  - [Make the error index generator work again][48308]
4549  - [Cargo will warn on Windows 7 if an update is needed][cargo/5069].
4550
4551 [48251]: https://github.com/rust-lang/rust/issues/48251
4552 [48308]: https://github.com/rust-lang/rust/issues/48308
4553 [48318]: https://github.com/rust-lang/rust/issues/48318
4554 [cargo/5069]: https://github.com/rust-lang/cargo/pull/5069
4555
4556
4557 Version 1.24.0 (2018-02-15)
4558 ==========================
4559
4560 Language
4561 --------
4562 - [External `sysv64` ffi is now available.][46528]
4563   eg. `extern "sysv64" fn foo () {}`
4564
4565 Compiler
4566 --------
4567 - [rustc now uses 16 codegen units by default for release builds.][46910]
4568   For the fastest builds, utilize `codegen-units=1`.
4569 - [Added `armv4t-unknown-linux-gnueabi` target.][47018]
4570 - [Add `aarch64-unknown-openbsd` support][46760]
4571
4572 Libraries
4573 ---------
4574 - [`str::find::<char>` now uses memchr.][46735] This should lead to a 10x
4575   improvement in performance in the majority of cases.
4576 - [`OsStr`'s `Debug` implementation is now lossless and consistent
4577   with Windows.][46798]
4578 - [`time::{SystemTime, Instant}` now implement `Hash`.][46828]
4579 - [impl `From<bool>` for `AtomicBool`][46293]
4580 - [impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`][45990]
4581 - [impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`][45990]
4582 - [impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`][45990]
4583 - [float::from_bits now just uses transmute.][46012] This provides
4584   some optimisations from LLVM.
4585 - [Copied `AsciiExt` methods onto `char`][46077]
4586 - [Remove `T: Sized` requirement on `ptr::is_null()`][46094]
4587 - [impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`][45506]
4588 - [Optimised `f32::{min, max}` to generate more efficient x86 assembly][47080]
4589 - [`[u8]::contains` now uses memchr which provides a 3x speed improvement][46713]
4590
4591 Stabilized APIs
4592 ---------------
4593 - [`RefCell::replace`]
4594 - [`RefCell::swap`]
4595 - [`atomic::spin_loop_hint`]
4596
4597 The following functions can now be used in a constant expression.
4598 eg. `let buffer: [u8; size_of::<usize>()];`, `static COUNTER: AtomicUsize = AtomicUsize::new(1);`
4599
4600 - [`AtomicBool::new`][46287]
4601 - [`AtomicUsize::new`][46287]
4602 - [`AtomicIsize::new`][46287]
4603 - [`AtomicPtr::new`][46287]
4604 - [`Cell::new`][46287]
4605 - [`{integer}::min_value`][46287]
4606 - [`{integer}::max_value`][46287]
4607 - [`mem::size_of`][46287]
4608 - [`mem::align_of`][46287]
4609 - [`ptr::null`][46287]
4610 - [`ptr::null_mut`][46287]
4611 - [`RefCell::new`][46287]
4612 - [`UnsafeCell::new`][46287]
4613
4614 Cargo
4615 -----
4616 - [Added a `workspace.default-members` config that
4617   overrides implied `--all` in virtual workspaces.][cargo/4743]
4618 - [Enable incremental by default on development builds.][cargo/4817] Also added
4619   configuration keys to `Cargo.toml` and `.cargo/config` to disable on a
4620   per-project or global basis respectively.
4621
4622 Misc
4623 ----
4624
4625 Compatibility Notes
4626 -------------------
4627 - [Floating point types `Debug` impl now always prints a decimal point.][46831]
4628 - [`Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses][46671] This is
4629   in accordance with IETF RFC 4291 §2.2.
4630 - [Unwinding will no longer go past FFI boundaries, and will instead abort.][46833]
4631 - [`Formatter::flags` method is now deprecated.][46284] The `sign_plus`,
4632   `sign_minus`, `alternate`, and `sign_aware_zero_pad` should be used instead.
4633 - [Leading zeros in tuple struct members is now an error][47084]
4634 - [`column!()` macro is one-based instead of zero-based][46977]
4635 - [`fmt::Arguments` can no longer be shared across threads][45198]
4636 - [Access to `#[repr(packed)]` struct fields is now unsafe][44884]
4637 - [Cargo sets a different working directory for the compiler][cargo/4788]
4638
4639 [44884]: https://github.com/rust-lang/rust/pull/44884
4640 [45198]: https://github.com/rust-lang/rust/pull/45198
4641 [45506]: https://github.com/rust-lang/rust/pull/45506
4642 [45904]: https://github.com/rust-lang/rust/pull/45904
4643 [45990]: https://github.com/rust-lang/rust/pull/45990
4644 [46012]: https://github.com/rust-lang/rust/pull/46012
4645 [46077]: https://github.com/rust-lang/rust/pull/46077
4646 [46094]: https://github.com/rust-lang/rust/pull/46094
4647 [46284]: https://github.com/rust-lang/rust/pull/46284
4648 [46287]: https://github.com/rust-lang/rust/pull/46287
4649 [46293]: https://github.com/rust-lang/rust/pull/46293
4650 [46528]: https://github.com/rust-lang/rust/pull/46528
4651 [46671]: https://github.com/rust-lang/rust/pull/46671
4652 [46713]: https://github.com/rust-lang/rust/pull/46713
4653 [46735]: https://github.com/rust-lang/rust/pull/46735
4654 [46749]: https://github.com/rust-lang/rust/pull/46749
4655 [46760]: https://github.com/rust-lang/rust/pull/46760
4656 [46798]: https://github.com/rust-lang/rust/pull/46798
4657 [46828]: https://github.com/rust-lang/rust/pull/46828
4658 [46831]: https://github.com/rust-lang/rust/pull/46831
4659 [46833]: https://github.com/rust-lang/rust/pull/46833
4660 [46910]: https://github.com/rust-lang/rust/pull/46910
4661 [46977]: https://github.com/rust-lang/rust/pull/46977
4662 [47018]: https://github.com/rust-lang/rust/pull/47018
4663 [47080]: https://github.com/rust-lang/rust/pull/47080
4664 [47084]: https://github.com/rust-lang/rust/pull/47084
4665 [cargo/4743]: https://github.com/rust-lang/cargo/pull/4743
4666 [cargo/4788]: https://github.com/rust-lang/cargo/pull/4788
4667 [cargo/4817]: https://github.com/rust-lang/cargo/pull/4817
4668 [`RefCell::replace`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.replace
4669 [`RefCell::swap`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.swap
4670 [`atomic::spin_loop_hint`]: https://doc.rust-lang.org/std/sync/atomic/fn.spin_loop_hint.html
4671
4672
4673 Version 1.23.0 (2018-01-04)
4674 ==========================
4675
4676 Language
4677 --------
4678 - [Arbitrary `auto` traits are now permitted in trait objects.][45772]
4679 - [rustc now uses subtyping on the left hand side of binary operations.][45435]
4680   Which should fix some confusing errors in some operations.
4681
4682 Compiler
4683 --------
4684 - [Enabled `TrapUnreachable` in LLVM which should mitigate the impact of
4685   undefined behavior.][45920]
4686 - [rustc now suggests renaming import if names clash.][45660]
4687 - [Display errors/warnings correctly when there are zero-width or
4688   wide characters.][45711]
4689 - [rustc now avoids unnecessary copies of arguments that are
4690   simple bindings][45380] This should improve memory usage on average by 5-10%.
4691 - [Updated musl used to build musl rustc to 1.1.17][45393]
4692
4693 Libraries
4694 ---------
4695 - [Allow a trailing comma in `assert_eq/ne` macro][45887]
4696 - [Implement Hash for raw pointers to unsized types][45483]
4697 - [impl `From<*mut T>` for `AtomicPtr<T>`][45610]
4698 - [impl `From<usize/isize>` for `AtomicUsize/AtomicIsize`.][45610]
4699 - [Removed the `T: Sync` requirement for `RwLock<T>: Send`][45267]
4700 - [Removed `T: Sized` requirement for `{<*const T>, <*mut T>}::as_ref`
4701   and `<*mut T>::as_mut`][44932]
4702 - [Optimized `Thread::{park, unpark}` implementation][45524]
4703 - [Improved `SliceExt::binary_search` performance.][45333]
4704 - [impl `FromIterator<()>` for `()`][45379]
4705 - [Copied `AsciiExt` trait methods to primitive types.][44042] Use of `AsciiExt`
4706   is now deprecated.
4707
4708 Stabilized APIs
4709 ---------------
4710
4711 Cargo
4712 -----
4713 - [Cargo now supports uninstallation of multiple packages][cargo/4561]
4714   eg. `cargo uninstall foo bar` uninstalls `foo` and `bar`.
4715 - [Added unit test checking to `cargo check`][cargo/4592]
4716 - [Cargo now lets you install a specific version
4717   using `cargo install --version`][cargo/4637]
4718
4719 Misc
4720 ----
4721 - [Releases now ship with the Cargo book documentation.][45692]
4722 - [rustdoc now prints rendering warnings on every run.][45324]
4723
4724 Compatibility Notes
4725 -------------------
4726 - [Changes have been made to type equality to make it more correct,
4727   in rare cases this could break some code.][45853] [Tracking issue for
4728   further information][45852]
4729 - [`char::escape_debug` now uses Unicode 10 over 9.][45571]
4730 - [Upgraded Android SDK to 27, and NDK to r15c.][45580] This drops support for
4731   Android 9, the minimum supported version is Android 14.
4732 - [Bumped the minimum LLVM to 3.9][45326]
4733
4734 [44042]: https://github.com/rust-lang/rust/pull/44042
4735 [44932]: https://github.com/rust-lang/rust/pull/44932
4736 [45267]: https://github.com/rust-lang/rust/pull/45267
4737 [45324]: https://github.com/rust-lang/rust/pull/45324
4738 [45326]: https://github.com/rust-lang/rust/pull/45326
4739 [45333]: https://github.com/rust-lang/rust/pull/45333
4740 [45379]: https://github.com/rust-lang/rust/pull/45379
4741 [45380]: https://github.com/rust-lang/rust/pull/45380
4742 [45393]: https://github.com/rust-lang/rust/pull/45393
4743 [45435]: https://github.com/rust-lang/rust/pull/45435
4744 [45483]: https://github.com/rust-lang/rust/pull/45483
4745 [45524]: https://github.com/rust-lang/rust/pull/45524
4746 [45571]: https://github.com/rust-lang/rust/pull/45571
4747 [45580]: https://github.com/rust-lang/rust/pull/45580
4748 [45610]: https://github.com/rust-lang/rust/pull/45610
4749 [45660]: https://github.com/rust-lang/rust/pull/45660
4750 [45692]: https://github.com/rust-lang/rust/pull/45692
4751 [45711]: https://github.com/rust-lang/rust/pull/45711
4752 [45772]: https://github.com/rust-lang/rust/pull/45772
4753 [45852]: https://github.com/rust-lang/rust/issues/45852
4754 [45853]: https://github.com/rust-lang/rust/pull/45853
4755 [45887]: https://github.com/rust-lang/rust/pull/45887
4756 [45920]: https://github.com/rust-lang/rust/pull/45920
4757 [cargo/4561]: https://github.com/rust-lang/cargo/pull/4561
4758 [cargo/4592]: https://github.com/rust-lang/cargo/pull/4592
4759 [cargo/4637]: https://github.com/rust-lang/cargo/pull/4637
4760
4761
4762 Version 1.22.1 (2017-11-22)
4763 ==========================
4764
4765 - [Update Cargo to fix an issue with macOS 10.13 "High Sierra"][46183]
4766
4767 [46183]: https://github.com/rust-lang/rust/pull/46183
4768
4769 Version 1.22.0 (2017-11-22)
4770 ==========================
4771
4772 Language
4773 --------
4774 - [`non_snake_case` lint now allows extern no-mangle functions][44966]
4775 - [Now accepts underscores in unicode escapes][43716]
4776 - [`T op= &T` now works for numeric types.][44287] eg. `let mut x = 2; x += &8;`
4777 - [types that impl `Drop` are now allowed in `const` and `static` types][44456]
4778
4779 Compiler
4780 --------
4781 - [rustc now defaults to having 16 codegen units at debug on supported platforms.][45064]
4782 - [rustc will no longer inline in codegen units when compiling for debug][45075]
4783   This should decrease compile times for debug builds.
4784 - [strict memory alignment now enabled on ARMv6][45094]
4785 - [Remove support for the PNaCl target `le32-unknown-nacl`][45041]
4786
4787 Libraries
4788 ---------
4789 - [Allow atomic operations up to 32 bits
4790   on `armv5te_unknown_linux_gnueabi`][44978]
4791 - [`Box<Error>` now impls `From<Cow<str>>`][44466]
4792 - [`std::mem::Discriminant` is now guaranteed to be `Send + Sync`][45095]
4793 - [`fs::copy` now returns the length of the main stream on NTFS.][44895]
4794 - [Properly detect overflow in `Instant += Duration`.][44220]
4795 - [impl `Hasher` for `{&mut Hasher, Box<Hasher>}`][44015]
4796 - [impl `fmt::Debug` for `SplitWhitespace`.][44303]
4797 - [`Option<T>` now impls `Try`][42526] This allows for using `?` with `Option` types.
4798
4799 Stabilized APIs
4800 ---------------
4801
4802 Cargo
4803 -----
4804 - [Cargo will now build multi file examples in subdirectories of the `examples`
4805   folder that have a `main.rs` file.][cargo/4496]
4806 - [Changed `[root]` to `[package]` in `Cargo.lock`][cargo/4571] Packages with
4807   the old format will continue to work and can be updated with `cargo update`.
4808 - [Now supports vendoring git repositories][cargo/3992]
4809
4810 Misc
4811 ----
4812 - [`libbacktrace` is now available on Apple platforms.][44251]
4813 - [Stabilised the `compile_fail` attribute for code fences in doc-comments.][43949]
4814   This now lets you specify that a given code example will fail to compile.
4815
4816 Compatibility Notes
4817 -------------------
4818 - [The minimum Android version that rustc can build for has been bumped
4819   to `4.0` from `2.3`][45656]
4820 - [Allowing `T op= &T` for numeric types has broken some type
4821   inference cases][45480]
4822
4823
4824 [42526]: https://github.com/rust-lang/rust/pull/42526
4825 [43017]: https://github.com/rust-lang/rust/pull/43017
4826 [43716]: https://github.com/rust-lang/rust/pull/43716
4827 [43949]: https://github.com/rust-lang/rust/pull/43949
4828 [44015]: https://github.com/rust-lang/rust/pull/44015
4829 [44220]: https://github.com/rust-lang/rust/pull/44220
4830 [44251]: https://github.com/rust-lang/rust/pull/44251
4831 [44287]: https://github.com/rust-lang/rust/pull/44287
4832 [44303]: https://github.com/rust-lang/rust/pull/44303
4833 [44456]: https://github.com/rust-lang/rust/pull/44456
4834 [44466]: https://github.com/rust-lang/rust/pull/44466
4835 [44895]: https://github.com/rust-lang/rust/pull/44895
4836 [44966]: https://github.com/rust-lang/rust/pull/44966
4837 [44978]: https://github.com/rust-lang/rust/pull/44978
4838 [45041]: https://github.com/rust-lang/rust/pull/45041
4839 [45064]: https://github.com/rust-lang/rust/pull/45064
4840 [45075]: https://github.com/rust-lang/rust/pull/45075
4841 [45094]: https://github.com/rust-lang/rust/pull/45094
4842 [45095]: https://github.com/rust-lang/rust/pull/45095
4843 [45480]: https://github.com/rust-lang/rust/issues/45480
4844 [45656]: https://github.com/rust-lang/rust/pull/45656
4845 [cargo/3992]: https://github.com/rust-lang/cargo/pull/3992
4846 [cargo/4496]: https://github.com/rust-lang/cargo/pull/4496
4847 [cargo/4571]: https://github.com/rust-lang/cargo/pull/4571
4848
4849
4850
4851
4852
4853
4854 Version 1.21.0 (2017-10-12)
4855 ==========================
4856
4857 Language
4858 --------
4859 - [You can now use static references for literals.][43838]
4860   Example:
4861   ```rust
4862   fn main() {
4863       let x: &'static u32 = &0;
4864   }
4865   ```
4866 - [Relaxed path syntax. Optional `::` before `<` is now allowed in all contexts.][43540]
4867   Example:
4868   ```rust
4869   my_macro!(Vec<i32>::new); // Always worked
4870   my_macro!(Vec::<i32>::new); // Now works
4871   ```
4872
4873 Compiler
4874 --------
4875 - [Upgraded jemalloc to 4.5.0][43911]
4876 - [Enabled unwinding panics on Redox][43917]
4877 - [Now runs LLVM in parallel during translation phase.][43506]
4878   This should reduce peak memory usage.
4879
4880 Libraries
4881 ---------
4882 - [Generate builtin impls for `Clone` for all arrays and tuples that
4883   are `T: Clone`][43690]
4884 - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459]
4885 - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From<str>`,
4886   `From<String>`, `From<Box<T>> where T: ?Sized`, and `From<Vec<T>>`.][42565]
4887
4888 Stabilized APIs
4889 ---------------
4890
4891 [`std::mem::discriminant`]
4892
4893 Cargo
4894 -----
4895 - [You can now call `cargo install` with multiple package names][cargo/4216]
4896 - [Cargo commands inside a virtual workspace will now implicitly
4897   pass `--all`][cargo/4335]
4898 - [Added a `[patch]` section to `Cargo.toml` to handle
4899   prepublication dependencies][cargo/4123] [RFC 1969]
4900 - [`include` & `exclude` fields in `Cargo.toml` now accept gitignore
4901   like patterns][cargo/4270]
4902 - [Added the `--all-targets` option][cargo/4400]
4903 - [Using required dependencies as a feature is now deprecated and emits
4904   a warning][cargo/4364]
4905
4906
4907 Misc
4908 ----
4909 - [Cargo docs are moving][43916]
4910   to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo)
4911 - [The rustdoc book is now available][43863]
4912   at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc)
4913 - [Added a preview of RLS has been made available through rustup][44204]
4914   Install with `rustup component add rls-preview`
4915 - [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348]
4916   Previously only showed `std::os::unix`.
4917
4918 Compatibility Notes
4919 -------------------
4920 - [Changes in method matching against higher-ranked types][43880] This may cause
4921   breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880]
4922 - [rustc's JSON error output's byte position start at top of file.][42973]
4923   Was previously relative to the rustc's internal `CodeMap` struct which
4924   required the unstable library `libsyntax` to correctly use.
4925 - [`unused_results` lint no longer ignores booleans][43728]
4926
4927 [42565]: https://github.com/rust-lang/rust/pull/42565
4928 [42973]: https://github.com/rust-lang/rust/pull/42973
4929 [43348]: https://github.com/rust-lang/rust/pull/43348
4930 [43459]: https://github.com/rust-lang/rust/pull/43459
4931 [43506]: https://github.com/rust-lang/rust/pull/43506
4932 [43540]: https://github.com/rust-lang/rust/pull/43540
4933 [43690]: https://github.com/rust-lang/rust/pull/43690
4934 [43728]: https://github.com/rust-lang/rust/pull/43728
4935 [43838]: https://github.com/rust-lang/rust/pull/43838
4936 [43863]: https://github.com/rust-lang/rust/pull/43863
4937 [43880]: https://github.com/rust-lang/rust/pull/43880
4938 [43911]: https://github.com/rust-lang/rust/pull/43911
4939 [43916]: https://github.com/rust-lang/rust/pull/43916
4940 [43917]: https://github.com/rust-lang/rust/pull/43917
4941 [44204]: https://github.com/rust-lang/rust/pull/44204
4942 [cargo/4123]: https://github.com/rust-lang/cargo/pull/4123
4943 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216
4944 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
4945 [cargo/4335]: https://github.com/rust-lang/cargo/pull/4335
4946 [cargo/4364]: https://github.com/rust-lang/cargo/pull/4364
4947 [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400
4948 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969
4949 [info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902
4950 [`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html
4951
4952 Version 1.20.0 (2017-08-31)
4953 ===========================
4954
4955 Language
4956 --------
4957 - [Associated constants are now stabilised.][42809]
4958 - [A lot of macro bugs are now fixed.][42913]
4959
4960 Compiler
4961 --------
4962
4963 - [Struct fields are now properly coerced to the expected field type.][42807]
4964 - [Enabled wasm LLVM backend][42571] WASM can now be built with the
4965   `wasm32-experimental-emscripten` target.
4966 - [Changed some of the error messages to be more helpful.][42033]
4967 - [Add support for RELRO(RELocation Read-Only) for platforms that support
4968   it.][43170]
4969 - [rustc now reports the total number of errors on compilation failure][43015]
4970   previously this was only the number of errors in the pass that failed.
4971 - [Expansion in rustc has been sped up 29x.][42533]
4972 - [added `msp430-none-elf` target.][43099]
4973 - [rustc will now suggest one-argument enum variant to fix type mismatch when
4974   applicable][43178]
4975 - [Fixes backtraces on Redox][43228]
4976 - [rustc now identifies different versions of same crate when absolute paths of
4977   different types match in an error message.][42826]
4978
4979 Libraries
4980 ---------
4981
4982
4983 - [Relaxed Debug constraints on `{HashMap,BTreeMap}::{Keys,Values}`.][42854]
4984 - [Impl `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Debug`, `Hash` for unsized
4985   tuples.][43011]
4986 - [Impl `fmt::{Display, Debug}` for `Ref`, `RefMut`, `MutexGuard`,
4987   `RwLockReadGuard`, `RwLockWriteGuard`][42822]
4988 - [Impl `Clone` for `DefaultHasher`.][42799]
4989 - [Impl `Sync` for `SyncSender`.][42397]
4990 - [Impl `FromStr` for `char`][42271]
4991 - [Fixed how `{f32, f64}::{is_sign_negative, is_sign_positive}` handles
4992   NaN.][42431]
4993 - [allow messages in the `unimplemented!()` macro.][42155]
4994   ie. `unimplemented!("Waiting for 1.21 to be stable")`
4995 - [`pub(restricted)` is now supported in the `thread_local!` macro.][43185]
4996 - [Upgrade to Unicode 10.0.0][42999]
4997 - [Reimplemented `{f32, f64}::{min, max}` in Rust instead of using CMath.][42430]
4998 - [Skip the main thread's manual stack guard on Linux][43072]
4999 - [Iterator::nth for `ops::{Range, RangeFrom}` is now done in O(1) time][43077]
5000 - [`#[repr(align(N))]` attribute max number is now 2^31 - 1.][43097] This was
5001   previously 2^15.
5002 - [`{OsStr, Path}::Display` now avoids allocations where possible][42613]
5003
5004 Stabilized APIs
5005 ---------------
5006
5007 - [`CStr::into_c_string`]
5008 - [`CString::as_c_str`]
5009 - [`CString::into_boxed_c_str`]
5010 - [`Chain::get_mut`]
5011 - [`Chain::get_ref`]
5012 - [`Chain::into_inner`]
5013 - [`Option::get_or_insert_with`]
5014 - [`Option::get_or_insert`]
5015 - [`OsStr::into_os_string`]
5016 - [`OsString::into_boxed_os_str`]
5017 - [`Take::get_mut`]
5018 - [`Take::get_ref`]
5019 - [`Utf8Error::error_len`]
5020 - [`char::EscapeDebug`]
5021 - [`char::escape_debug`]
5022 - [`compile_error!`]
5023 - [`f32::from_bits`]
5024 - [`f32::to_bits`]
5025 - [`f64::from_bits`]
5026 - [`f64::to_bits`]
5027 - [`mem::ManuallyDrop`]
5028 - [`slice::sort_unstable_by_key`]
5029 - [`slice::sort_unstable_by`]
5030 - [`slice::sort_unstable`]
5031 - [`str::from_boxed_utf8_unchecked`]
5032 - [`str::as_bytes_mut`]
5033 - [`str::as_bytes_mut`]
5034 - [`str::from_utf8_mut`]
5035 - [`str::from_utf8_unchecked_mut`]
5036 - [`str::get_mut`]
5037 - [`str::get_unchecked_mut`]
5038 - [`str::get_unchecked`]
5039 - [`str::get`]
5040 - [`str::into_boxed_bytes`]
5041
5042
5043 Cargo
5044 -----
5045 - [Cargo API token location moved from `~/.cargo/config` to
5046   `~/.cargo/credentials`.][cargo/3978]
5047 - [Cargo will now build `main.rs` binaries that are in sub-directories of
5048   `src/bin`.][cargo/4214] ie. Having `src/bin/server/main.rs` and
5049   `src/bin/client/main.rs` generates `target/debug/server` and `target/debug/client`
5050 - [You can now specify version of a binary when installed through
5051   `cargo install` using `--vers`.][cargo/4229]
5052 - [Added `--no-fail-fast` flag to cargo to run all benchmarks regardless of
5053   failure.][cargo/4248]
5054 - [Changed the convention around which file is the crate root.][cargo/4259]
5055 - [The `include`/`exclude` property in `Cargo.toml` now accepts gitignore paths
5056   instead of glob patterns][cargo/4270]. Glob patterns are now deprecated.
5057
5058 Compatibility Notes
5059 -------------------
5060
5061 - [Functions with `'static` in their return types will now not be as usable as
5062   if they were using lifetime parameters instead.][42417]
5063 - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now
5064   takes the sign of NaN into account where previously didn't.][42430]
5065
5066 [42033]: https://github.com/rust-lang/rust/pull/42033
5067 [42155]: https://github.com/rust-lang/rust/pull/42155
5068 [42271]: https://github.com/rust-lang/rust/pull/42271
5069 [42397]: https://github.com/rust-lang/rust/pull/42397
5070 [42417]: https://github.com/rust-lang/rust/pull/42417
5071 [42430]: https://github.com/rust-lang/rust/pull/42430
5072 [42431]: https://github.com/rust-lang/rust/pull/42431
5073 [42533]: https://github.com/rust-lang/rust/pull/42533
5074 [42571]: https://github.com/rust-lang/rust/pull/42571
5075 [42613]: https://github.com/rust-lang/rust/pull/42613
5076 [42799]: https://github.com/rust-lang/rust/pull/42799
5077 [42807]: https://github.com/rust-lang/rust/pull/42807
5078 [42809]: https://github.com/rust-lang/rust/pull/42809
5079 [42822]: https://github.com/rust-lang/rust/pull/42822
5080 [42826]: https://github.com/rust-lang/rust/pull/42826
5081 [42854]: https://github.com/rust-lang/rust/pull/42854
5082 [42913]: https://github.com/rust-lang/rust/pull/42913
5083 [42999]: https://github.com/rust-lang/rust/pull/42999
5084 [43011]: https://github.com/rust-lang/rust/pull/43011
5085 [43015]: https://github.com/rust-lang/rust/pull/43015
5086 [43072]: https://github.com/rust-lang/rust/pull/43072
5087 [43077]: https://github.com/rust-lang/rust/pull/43077
5088 [43097]: https://github.com/rust-lang/rust/pull/43097
5089 [43099]: https://github.com/rust-lang/rust/pull/43099
5090 [43170]: https://github.com/rust-lang/rust/pull/43170
5091 [43178]: https://github.com/rust-lang/rust/pull/43178
5092 [43185]: https://github.com/rust-lang/rust/pull/43185
5093 [43228]: https://github.com/rust-lang/rust/pull/43228
5094 [cargo/3978]: https://github.com/rust-lang/cargo/pull/3978
5095 [cargo/4214]: https://github.com/rust-lang/cargo/pull/4214
5096 [cargo/4229]: https://github.com/rust-lang/cargo/pull/4229
5097 [cargo/4248]: https://github.com/rust-lang/cargo/pull/4248
5098 [cargo/4259]: https://github.com/rust-lang/cargo/pull/4259
5099 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
5100 [`CStr::into_c_string`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.into_c_string
5101 [`CString::as_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.as_c_str
5102 [`CString::into_boxed_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str
5103 [`Chain::get_mut`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_mut
5104 [`Chain::get_ref`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_ref
5105 [`Chain::into_inner`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.into_inner
5106 [`Option::get_or_insert_with`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert_with
5107 [`Option::get_or_insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert
5108 [`OsStr::into_os_string`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.into_os_string
5109 [`OsString::into_boxed_os_str`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.into_boxed_os_str
5110 [`Take::get_mut`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_mut
5111 [`Take::get_ref`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_ref
5112 [`Utf8Error::error_len`]: https://doc.rust-lang.org/std/str/struct.Utf8Error.html#method.error_len
5113 [`char::EscapeDebug`]: https://doc.rust-lang.org/std/char/struct.EscapeDebug.html
5114 [`char::escape_debug`]: https://doc.rust-lang.org/std/primitive.char.html#method.escape_debug
5115 [`compile_error!`]: https://doc.rust-lang.org/std/macro.compile_error.html
5116 [`f32::from_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits
5117 [`f32::to_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_bits
5118 [`f64::from_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_bits
5119 [`f64::to_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_bits
5120 [`mem::ManuallyDrop`]: https://doc.rust-lang.org/std/mem/union.ManuallyDrop.html
5121 [`slice::sort_unstable_by_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by_key
5122 [`slice::sort_unstable_by`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by
5123 [`slice::sort_unstable`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable
5124 [`str::from_boxed_utf8_unchecked`]: https://doc.rust-lang.org/std/str/fn.from_boxed_utf8_unchecked.html
5125 [`str::as_bytes_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_bytes_mut
5126 [`str::from_utf8_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_mut.html
5127 [`str::from_utf8_unchecked_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_unchecked_mut.html
5128 [`str::get_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_mut
5129 [`str::get_unchecked_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked_mut
5130 [`str::get_unchecked`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked
5131 [`str::get`]: https://doc.rust-lang.org/std/primitive.str.html#method.get
5132 [`str::into_boxed_bytes`]: https://doc.rust-lang.org/std/primitive.str.html#method.into_boxed_bytes
5133
5134
5135 Version 1.19.0 (2017-07-20)
5136 ===========================
5137
5138 Language
5139 --------
5140
5141 - [Numeric fields can now be used for creating tuple structs.][41145] [RFC 1506]
5142   For example `struct Point(u32, u32); let x = Point { 0: 7, 1: 0 };`.
5143 - [Macro recursion limit increased to 1024 from 64.][41676]
5144 - [Added lint for detecting unused macros.][41907]
5145 - [`loop` can now return a value with `break`.][42016] [RFC 1624]
5146   For example: `let x = loop { break 7; };`
5147 - [C compatible `union`s are now available.][42068] [RFC 1444] They can only
5148   contain `Copy` types and cannot have a `Drop` implementation.
5149   Example: `union Foo { bar: u8, baz: usize }`
5150 - [Non capturing closures can now be coerced into `fn`s,][42162] [RFC 1558]
5151   Example: `let foo: fn(u8) -> u8 = |v: u8| { v };`
5152
5153 Compiler
5154 --------
5155
5156 - [Add support for bootstrapping the Rust compiler toolchain on Android.][41370]
5157 - [Change `arm-linux-androideabi` to correspond to the `armeabi`
5158   official ABI.][41656] If you wish to continue targeting the `armeabi-v7a` ABI
5159   you should use `--target armv7-linux-androideabi`.
5160 - [Fixed ICE when removing a source file between compilation sessions.][41873]
5161 - [Minor optimisation of string operations.][42037]
5162 - [Compiler error message is now `aborting due to previous error(s)` instead of
5163   `aborting due to N previous errors`][42150] This was previously inaccurate and
5164   would only count certain kinds of errors.
5165 - [The compiler now supports Visual Studio 2017][42225]
5166 - [The compiler is now built against LLVM 4.0.1 by default][42948]
5167 - [Added a lot][42264] of [new error codes][42302]
5168 - [Added `target-feature=+crt-static` option][37406] [RFC 1721] Which allows
5169   libraries with C Run-time Libraries(CRT) to be statically linked.
5170 - [Fixed various ARM codegen bugs][42740]
5171
5172 Libraries
5173 ---------
5174
5175 - [`String` now implements `FromIterator<Cow<'a, str>>` and
5176   `Extend<Cow<'a, str>>`][41449]
5177 - [`Vec` now implements `From<&mut [T]>`][41530]
5178 - [`Box<[u8]>` now implements `From<Box<str>>`][41258]
5179 - [`SplitWhitespace` now implements `Clone`][41659]
5180 - [`[u8]::reverse` is now 5x faster and `[u16]::reverse` is now
5181   1.5x faster][41764]
5182 - [`eprint!` and `eprintln!` macros added to prelude.][41192] Same as the `print!`
5183   macros, but for printing to stderr.
5184
5185 Stabilized APIs
5186 ---------------
5187
5188 - [`OsString::shrink_to_fit`]
5189 - [`cmp::Reverse`]
5190 - [`Command::envs`]
5191 - [`thread::ThreadId`]
5192
5193 Cargo
5194 -----
5195
5196 - [Build scripts can now add environment variables to the environment
5197   the crate is being compiled in.
5198   Example: `println!("cargo:rustc-env=FOO=bar");`][cargo/3929]
5199 - [Subcommands now replace the current process rather than spawning a new
5200   child process][cargo/3970]
5201 - [Workspace members can now accept glob file patterns][cargo/3979]
5202 - [Added `--all` flag to the `cargo bench` subcommand to run benchmarks of all
5203   the members in a given workspace.][cargo/3988]
5204 - [Updated `libssh2-sys` to 0.2.6][cargo/4008]
5205 - [Target directory path is now in the cargo metadata][cargo/4022]
5206 - [Cargo no longer checks out a local working directory for the
5207   crates.io index][cargo/4026] This should provide smaller file size for the
5208   registry, and improve cloning times, especially on Windows machines.
5209 - [Added an `--exclude` option for excluding certain packages when using the
5210   `--all` option][cargo/4031]
5211 - [Cargo will now automatically retry when receiving a 5xx error
5212   from crates.io][cargo/4032]
5213 - [The `--features` option now accepts multiple comma or space
5214   delimited values.][cargo/4084]
5215 - [Added support for custom target specific runners][cargo/3954]
5216
5217 Misc
5218 ----
5219
5220 - [Added `rust-windbg.cmd`][39983] for loading rust `.natvis` files in the
5221   Windows Debugger.
5222 - [Rust will now release XZ compressed packages][rust-installer/57]
5223 - [rustup will now prefer to download rust packages with
5224   XZ compression][rustup/1100] over GZip packages.
5225 - [Added the ability to escape `#` in rust documentation][41785] By adding
5226   additional `#`'s ie. `##` is now `#`
5227
5228 Compatibility Notes
5229 -------------------
5230
5231 - [`MutexGuard<T>` may only be `Sync` if `T` is `Sync`.][41624]
5232 - [`-Z` flags are now no longer allowed to be used on the stable
5233   compiler.][41751] This has been a warning for a year previous to this.
5234 - [As a result of the `-Z` flag change, the `cargo-check` plugin no
5235   longer works][42844]. Users should migrate to the built-in `check`
5236   command, which has been available since 1.16.
5237 - [Ending a float literal with `._` is now a hard error.
5238   Example: `42._` .][41946]
5239 - [Any use of a private `extern crate` outside of its module is now a
5240   hard error.][36886] This was previously a warning.
5241 - [`use ::self::foo;` is now a hard error.][36888] `self` paths are always
5242   relative while the `::` prefix makes a path absolute, but was ignored and the
5243   path was relative regardless.
5244 - [Floating point constants in match patterns is now a hard error][36890]
5245   This was previously a warning.
5246 - [Struct or enum constants that don't derive `PartialEq` & `Eq` used
5247   match patterns is now a hard error][36891] This was previously a warning.
5248 - [Lifetimes named `'_` are no longer allowed.][36892] This was previously
5249   a warning.
5250 - [From the pound escape, lines consisting of multiple `#`s are
5251   now visible][41785]
5252 - [It is an error to re-export private enum variants][42460]. This is
5253   known to break a number of crates that depend on an older version of
5254   mustache.
5255 - [On Windows, if `VCINSTALLDIR` is set incorrectly, `rustc` will try
5256   to use it to find the linker, and the build will fail where it did
5257   not previously][42607]
5258
5259 [36886]: https://github.com/rust-lang/rust/issues/36886
5260 [36888]: https://github.com/rust-lang/rust/issues/36888
5261 [36890]: https://github.com/rust-lang/rust/issues/36890
5262 [36891]: https://github.com/rust-lang/rust/issues/36891
5263 [36892]: https://github.com/rust-lang/rust/issues/36892
5264 [37406]: https://github.com/rust-lang/rust/issues/37406
5265 [39983]: https://github.com/rust-lang/rust/pull/39983
5266 [41145]: https://github.com/rust-lang/rust/pull/41145
5267 [41192]: https://github.com/rust-lang/rust/pull/41192
5268 [41258]: https://github.com/rust-lang/rust/pull/41258
5269 [41370]: https://github.com/rust-lang/rust/pull/41370
5270 [41449]: https://github.com/rust-lang/rust/pull/41449
5271 [41530]: https://github.com/rust-lang/rust/pull/41530
5272 [41624]: https://github.com/rust-lang/rust/pull/41624
5273 [41656]: https://github.com/rust-lang/rust/pull/41656
5274 [41659]: https://github.com/rust-lang/rust/pull/41659
5275 [41676]: https://github.com/rust-lang/rust/pull/41676
5276 [41751]: https://github.com/rust-lang/rust/pull/41751
5277 [41764]: https://github.com/rust-lang/rust/pull/41764
5278 [41785]: https://github.com/rust-lang/rust/pull/41785
5279 [41873]: https://github.com/rust-lang/rust/pull/41873
5280 [41907]: https://github.com/rust-lang/rust/pull/41907
5281 [41946]: https://github.com/rust-lang/rust/pull/41946
5282 [42016]: https://github.com/rust-lang/rust/pull/42016
5283 [42037]: https://github.com/rust-lang/rust/pull/42037
5284 [42068]: https://github.com/rust-lang/rust/pull/42068
5285 [42150]: https://github.com/rust-lang/rust/pull/42150
5286 [42162]: https://github.com/rust-lang/rust/pull/42162
5287 [42225]: https://github.com/rust-lang/rust/pull/42225
5288 [42264]: https://github.com/rust-lang/rust/pull/42264
5289 [42302]: https://github.com/rust-lang/rust/pull/42302
5290 [42460]: https://github.com/rust-lang/rust/issues/42460
5291 [42607]: https://github.com/rust-lang/rust/issues/42607
5292 [42740]: https://github.com/rust-lang/rust/pull/42740
5293 [42844]: https://github.com/rust-lang/rust/issues/42844
5294 [42948]: https://github.com/rust-lang/rust/pull/42948
5295 [RFC 1444]: https://github.com/rust-lang/rfcs/pull/1444
5296 [RFC 1506]: https://github.com/rust-lang/rfcs/pull/1506
5297 [RFC 1558]: https://github.com/rust-lang/rfcs/pull/1558
5298 [RFC 1624]: https://github.com/rust-lang/rfcs/pull/1624
5299 [RFC 1721]: https://github.com/rust-lang/rfcs/pull/1721
5300 [`Command::envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.envs
5301 [`OsString::shrink_to_fit`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.shrink_to_fit
5302 [`cmp::Reverse`]: https://doc.rust-lang.org/std/cmp/struct.Reverse.html
5303 [`thread::ThreadId`]: https://doc.rust-lang.org/std/thread/struct.ThreadId.html
5304 [cargo/3929]: https://github.com/rust-lang/cargo/pull/3929
5305 [cargo/3954]: https://github.com/rust-lang/cargo/pull/3954
5306 [cargo/3970]: https://github.com/rust-lang/cargo/pull/3970
5307 [cargo/3979]: https://github.com/rust-lang/cargo/pull/3979
5308 [cargo/3988]: https://github.com/rust-lang/cargo/pull/3988
5309 [cargo/4008]: https://github.com/rust-lang/cargo/pull/4008
5310 [cargo/4022]: https://github.com/rust-lang/cargo/pull/4022
5311 [cargo/4026]: https://github.com/rust-lang/cargo/pull/4026
5312 [cargo/4031]: https://github.com/rust-lang/cargo/pull/4031
5313 [cargo/4032]: https://github.com/rust-lang/cargo/pull/4032
5314 [cargo/4084]: https://github.com/rust-lang/cargo/pull/4084
5315 [rust-installer/57]: https://github.com/rust-lang/rust-installer/pull/57
5316 [rustup/1100]: https://github.com/rust-lang-nursery/rustup.rs/pull/1100
5317
5318
5319 Version 1.18.0 (2017-06-08)
5320 ===========================
5321
5322 Language
5323 --------
5324
5325 - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to
5326   make the item visible to just that module tree. Also accepts the keyword
5327   `crate` to make something public to the whole crate but not users of the
5328   library. Example: `pub(crate) mod utils;`. [RFC 1422].
5329 - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the
5330   `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665].
5331 - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept
5332   types like `Write + Send`, trailing `+` are now supported in trait objects,
5333   and better error reporting for trait objects starting with `?Sized`.
5334 - [0e+10 is now a valid floating point literal][40589]
5335 - [Now warns if you bind a lifetime parameter to 'static][40734]
5336 - [Tuples, Enum variant fields, and structs with no `repr` attribute or with
5337   `#[repr(Rust)]` are reordered to minimize padding and produce a smaller
5338   representation in some cases.][40377]
5339
5340 Compiler
5341 --------
5342
5343 - [rustc can now emit mir with `--emit mir`][39891]
5344 - [Improved LLVM IR for trivial functions][40367]
5345 - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723]
5346 - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation
5347   opportunities found through profiling
5348 - [Improved backtrace formatting when panicking][38165]
5349
5350 Libraries
5351 ---------
5352
5353 - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the
5354   iterator hasn't been advanced the original `Vec` is reassembled with no actual
5355   iteration or reallocation.
5356 - [Simplified HashMap Bucket interface][40561] provides performance
5357   improvements for iterating and cloning.
5358 - [Specialize Vec::from_elem to use calloc][40409]
5359 - [Fixed Race condition in fs::create_dir_all][39799]
5360 - [No longer caching stdio on Windows][40516]
5361 - [Optimized insertion sort in slice][40807] insertion sort in some cases
5362   2.50%~ faster and in one case now 12.50% faster.
5363 - [Optimized `AtomicBool::fetch_nand`][41143]
5364
5365 Stabilized APIs
5366 ---------------
5367
5368 - [`Child::try_wait`]
5369 - [`HashMap::retain`]
5370 - [`HashSet::retain`]
5371 - [`PeekMut::pop`]
5372 - [`TcpStream::peek`]
5373 - [`UdpSocket::peek`]
5374 - [`UdpSocket::peek_from`]
5375
5376 Cargo
5377 -----
5378
5379 - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust.
5380   You can now create new cargo projects with Pijul using `cargo new --vcs pijul`
5381 - [Now always emits build script warnings for crates that fail to build][cargo/3847]
5382 - [Added Android build support][cargo/3885]
5383 - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs
5384   of a certain type, for example `cargo build --bins` will build all
5385   binaries.
5386 - [Added support for haiku][cargo/3952]
5387
5388 Misc
5389 ----
5390
5391 - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338]
5392 - [Added rust-windbg script for better debugging on Windows][39983]
5393 - [Rust now uses the official cross compiler for NetBSD][40612]
5394 - [rustdoc now accepts `#` at the start of files][40828]
5395 - [Fixed jemalloc support for musl][41168]
5396
5397 Compatibility Notes
5398 -------------------
5399
5400 - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now
5401   always placed after the sign if it exists and before the digits. With the `#`
5402   flag the zeroes are placed after the prefix and before the digits.
5403 - [Due to the struct field optimisation][40377], using `transmute` on structs
5404   that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has
5405   always been undefined behavior, but is now more likely to break in practice.
5406 - [The refactor of trait object type parsing][40043] fixed a bug where `+` was
5407   receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as
5408   `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send`
5409 - [Overlapping inherent `impl`s are now a hard error][40728]
5410 - [`PartialOrd` and `Ord` must agree on the ordering.][41270]
5411 - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output
5412   `out.asm` and `out.ll` instead of only one of the filetypes.
5413 - [ calling a function that returns `Self` will no longer work][41805] when
5414   the size of `Self` cannot be statically determined.
5415 - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805]
5416   this has caused a few regressions namely:
5417
5418   - Changed the link order of local static/dynamic libraries (respecting the
5419     order on given rather than having the compiler reorder).
5420   - Changed how MinGW is linked, native code linked to dynamic libraries
5421     may require manually linking to the gcc support library (for the native
5422     code itself)
5423
5424 [38165]: https://github.com/rust-lang/rust/pull/38165
5425 [39799]: https://github.com/rust-lang/rust/pull/39799
5426 [39891]: https://github.com/rust-lang/rust/pull/39891
5427 [39983]: https://github.com/rust-lang/rust/pull/39983
5428 [40043]: https://github.com/rust-lang/rust/pull/40043
5429 [40241]: https://github.com/rust-lang/rust/pull/40241
5430 [40338]: https://github.com/rust-lang/rust/pull/40338
5431 [40367]: https://github.com/rust-lang/rust/pull/40367
5432 [40377]: https://github.com/rust-lang/rust/pull/40377
5433 [40409]: https://github.com/rust-lang/rust/pull/40409
5434 [40516]: https://github.com/rust-lang/rust/pull/40516
5435 [40556]: https://github.com/rust-lang/rust/pull/40556
5436 [40561]: https://github.com/rust-lang/rust/pull/40561
5437 [40589]: https://github.com/rust-lang/rust/pull/40589
5438 [40612]: https://github.com/rust-lang/rust/pull/40612
5439 [40723]: https://github.com/rust-lang/rust/pull/40723
5440 [40728]: https://github.com/rust-lang/rust/pull/40728
5441 [40731]: https://github.com/rust-lang/rust/pull/40731
5442 [40734]: https://github.com/rust-lang/rust/pull/40734
5443 [40805]: https://github.com/rust-lang/rust/pull/40805
5444 [40807]: https://github.com/rust-lang/rust/pull/40807
5445 [40828]: https://github.com/rust-lang/rust/pull/40828
5446 [40870]: https://github.com/rust-lang/rust/pull/40870
5447 [41085]: https://github.com/rust-lang/rust/pull/41085
5448 [41143]: https://github.com/rust-lang/rust/pull/41143
5449 [41168]: https://github.com/rust-lang/rust/pull/41168
5450 [41270]: https://github.com/rust-lang/rust/issues/41270
5451 [41469]: https://github.com/rust-lang/rust/pull/41469
5452 [41805]: https://github.com/rust-lang/rust/issues/41805
5453 [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md
5454 [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md
5455 [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
5456 [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain
5457 [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain
5458 [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop
5459 [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek
5460 [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from
5461 [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek
5462 [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842
5463 [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847
5464 [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885
5465 [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901
5466 [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952
5467
5468
5469 Version 1.17.0 (2017-04-27)
5470 ===========================
5471
5472 Language
5473 --------
5474
5475 * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
5476 * [Fields of structs may be initialized without duplicating the field/variable
5477   names][39761]. [RFC 1682]
5478 * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
5479 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
5480   there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
5481   coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
5482   `'b`. Soundness fix.
5483 * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
5484 * [Static variables may contain references to other statics][40027]
5485
5486 Compiler
5487 --------
5488
5489 * [Exit quickly on only `--emit dep-info`][40336]
5490 * [Make `-C relocation-model` more correctly determine whether the linker
5491   creates a position-independent executable][40245]
5492 * [Add `-C overflow-checks` to directly control whether integer overflow
5493   panics][40037]
5494 * [The rustc type checker now checks items on demand instead of in a single
5495   in-order pass][40008]. This is mostly an internal refactoring in support of
5496   future work, including incremental type checking, but also resolves [RFC
5497   1647], allowing `Self` to appear in `impl` `where` clauses.
5498 * [Optimize vtable loads][39995]
5499 * [Turn off vectorization for Emscripten targets][39990]
5500 * [Provide suggestions for unknown macros imported with `use`][39953]
5501 * [Fix ICEs in path resolution][39939]
5502 * [Strip exception handling code on Emscripten when `panic=abort`][39193]
5503 * [Add clearer error message using `&str + &str`][39116]
5504
5505 Stabilized APIs
5506 ---------------
5507
5508 * [`Arc::into_raw`]
5509 * [`Arc::from_raw`]
5510 * [`Arc::ptr_eq`]
5511 * [`Rc::into_raw`]
5512 * [`Rc::from_raw`]
5513 * [`Rc::ptr_eq`]
5514 * [`Ordering::then`]
5515 * [`Ordering::then_with`]
5516 * [`BTreeMap::range`]
5517 * [`BTreeMap::range_mut`]
5518 * [`collections::Bound`]
5519 * [`process::abort`]
5520 * [`ptr::read_unaligned`]
5521 * [`ptr::write_unaligned`]
5522 * [`Result::expect_err`]
5523 * [`Cell::swap`]
5524 * [`Cell::replace`]
5525 * [`Cell::into_inner`]
5526 * [`Cell::take`]
5527
5528 Libraries
5529 ---------
5530
5531 * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
5532 * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
5533 * [`String` implements `FromIterator<&char>`][40028]
5534 * `Box` [implements][40009] a number of new conversions:
5535   `From<Box<str>> for String`,
5536   `From<Box<[T]>> for Vec<T>`,
5537   `From<Box<CStr>> for CString`,
5538   `From<Box<OsStr>> for OsString`,
5539   `From<Box<Path>> for PathBuf`,
5540   `Into<Box<str>> for String`,
5541   `Into<Box<[T]>> for Vec<T>`,
5542   `Into<Box<CStr>> for CString`,
5543   `Into<Box<OsStr>> for OsString`,
5544   `Into<Box<Path>> for PathBuf`,
5545   `Default for Box<str>`,
5546   `Default for Box<CStr>`,
5547   `Default for Box<OsStr>`,
5548   `From<&CStr> for Box<CStr>`,
5549   `From<&OsStr> for Box<OsStr>`,
5550   `From<&Path> for Box<Path>`
5551 * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
5552 * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
5553 * [Slightly optimize `slice::sort`][39538]
5554 * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
5555 * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
5556   `Box<str>` implements `From<&str>`][39438]
5557 * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
5558   `From<(I, u16)> where I: Into<IpAddr>`][39372]
5559 * [`format!` estimates the needed capacity before writing a string][39356]
5560 * [Support unprivileged symlink creation in Windows][38921]
5561 * [`PathBuf` implements `Default`][38764]
5562 * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
5563 * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
5564   and poor hash functions.
5565
5566 Cargo
5567 -----
5568
5569 * [Add `cargo check --all`][cargo/3731]
5570 * [Add an option to ignore SSL revocation checking][cargo/3699]
5571 * [Add `cargo run --package`][cargo/3691]
5572 * [Add `required_features`][cargo/3667]
5573 * [Assume `build.rs` is a build script][cargo/3664]
5574 * [Find workspace via `workspace_root` link in containing member][cargo/3562]
5575
5576 Misc
5577 ----
5578
5579 * [Documentation is rendered with mdbook instead of the obsolete, in-tree
5580   `rustbook`][39633]
5581 * [The "Unstable Book" documents nightly-only features][ubook]
5582 * [Improve the style of the sidebar in rustdoc output][40265]
5583 * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
5584 * [Fix MSP430 breakage due to `i128`][40257]
5585 * [Preliminary Solaris/SPARCv9 support][39903]
5586 * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
5587   run without installing the MSVC runtime.
5588 * [`rustdoc --test` includes file names in test names][39788]
5589 * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
5590   `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
5591 * [Initial support for `aarch64-unknown-freebsd`][39491]
5592 * [Initial support for `i686-unknown-netbsd`][39426]
5593 * [This release no longer includes the old makefile build system][39431]. Rust
5594   is built with a custom build system, written in Rust, and with Cargo.
5595 * [Add Debug implementations for libcollection structs][39002]
5596 * [`TypeId` implements `PartialOrd` and `Ord`][38981]
5597 * [`--test-threads=0` produces an error][38945]
5598 * [`rustup` installs documentation by default][40526]
5599 * [The Rust source includes NatVis visualizations][39843]. These can be used by
5600   WinDbg and Visual Studio to improve the debugging experience.
5601
5602 Compatibility Notes
5603 -------------------
5604
5605 * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
5606   workaround, either use MSVC 2015 or run vcvars.bat.
5607 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
5608   disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
5609   `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
5610   fix.
5611 * [`format!` and `Display::to_string` panic if an underlying formatting
5612   implementation returns an error][40117]. Previously the error was silently
5613   ignored. It is incorrect for `write_fmt` to return an error when writing
5614   to a string.
5615 * [In-tree crates are verified to be unstable][39851]. Previously, some minor
5616   crates were marked stable and could be accessed from the stable toolchain.
5617 * [Rust git source no longer includes vendored crates][39728]. Those that need
5618   to build with vendored crates should build from release tarballs.
5619 * [Fix inert attributes from `proc_macro_derives`][39572]
5620 * [During crate resolution, rustc prefers a crate in the sysroot if two crates
5621   are otherwise identical][39518]. Unlikely to be encountered outside the Rust
5622   build system.
5623 * [Fixed bugs around how type inference interacts with dead-code][39485]. The
5624   existing code generally ignores the type of dead-code unless a type-hint is
5625   provided; this can cause surprising inference interactions particularly around
5626   defaulting. The new code uniformly ignores the result type of dead-code.
5627 * [Tuple-struct constructors with private fields are no longer visible][38932]
5628 * [Lifetime parameters that do not appear in the arguments are now considered
5629   early-bound][38897], resolving a soundness bug (#[32330]). The
5630   `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
5631   April of 2016.
5632 * [rustdoc: fix doctests with non-feature crate attributes][38161]
5633 * [Make transmuting from fn item types to pointer-sized types a hard
5634   error][34198]
5635
5636 [27787]: https://github.com/rust-lang/rust/issues/27787
5637 [32330]: https://github.com/rust-lang/rust/issues/32330
5638 [34198]: https://github.com/rust-lang/rust/pull/34198
5639 [38161]: https://github.com/rust-lang/rust/pull/38161
5640 [38368]: https://github.com/rust-lang/rust/pull/38368
5641 [38584]: https://github.com/rust-lang/rust/issues/38584
5642 [38661]: https://github.com/rust-lang/rust/pull/38661
5643 [38764]: https://github.com/rust-lang/rust/pull/38764
5644 [38864]: https://github.com/rust-lang/rust/issues/38864
5645 [38897]: https://github.com/rust-lang/rust/pull/38897
5646 [38921]: https://github.com/rust-lang/rust/pull/38921
5647 [38932]: https://github.com/rust-lang/rust/pull/38932
5648 [38945]: https://github.com/rust-lang/rust/pull/38945
5649 [38981]: https://github.com/rust-lang/rust/pull/38981
5650 [39002]: https://github.com/rust-lang/rust/pull/39002
5651 [39116]: https://github.com/rust-lang/rust/pull/39116
5652 [39193]: https://github.com/rust-lang/rust/pull/39193
5653 [39265]: https://github.com/rust-lang/rust/pull/39265
5654 [39356]: https://github.com/rust-lang/rust/pull/39356
5655 [39372]: https://github.com/rust-lang/rust/pull/39372
5656 [39426]: https://github.com/rust-lang/rust/pull/39426
5657 [39431]: https://github.com/rust-lang/rust/pull/39431
5658 [39438]: https://github.com/rust-lang/rust/pull/39438
5659 [39440]: https://github.com/rust-lang/rust/pull/39440
5660 [39485]: https://github.com/rust-lang/rust/pull/39485
5661 [39491]: https://github.com/rust-lang/rust/pull/39491
5662 [39518]: https://github.com/rust-lang/rust/pull/39518
5663 [39538]: https://github.com/rust-lang/rust/pull/39538
5664 [39572]: https://github.com/rust-lang/rust/pull/39572
5665 [39633]: https://github.com/rust-lang/rust/pull/39633
5666 [39642]: https://github.com/rust-lang/rust/pull/39642
5667 [39728]: https://github.com/rust-lang/rust/pull/39728
5668 [39761]: https://github.com/rust-lang/rust/pull/39761
5669 [39788]: https://github.com/rust-lang/rust/pull/39788
5670 [39793]: https://github.com/rust-lang/rust/pull/39793
5671 [39837]: https://github.com/rust-lang/rust/pull/39837
5672 [39843]: https://github.com/rust-lang/rust/pull/39843
5673 [39851]: https://github.com/rust-lang/rust/pull/39851
5674 [39903]: https://github.com/rust-lang/rust/pull/39903
5675 [39939]: https://github.com/rust-lang/rust/pull/39939
5676 [39953]: https://github.com/rust-lang/rust/pull/39953
5677 [39960]: https://github.com/rust-lang/rust/pull/39960
5678 [39990]: https://github.com/rust-lang/rust/pull/39990
5679 [39995]: https://github.com/rust-lang/rust/pull/39995
5680 [40008]: https://github.com/rust-lang/rust/pull/40008
5681 [40009]: https://github.com/rust-lang/rust/pull/40009
5682 [40027]: https://github.com/rust-lang/rust/pull/40027
5683 [40028]: https://github.com/rust-lang/rust/pull/40028
5684 [40037]: https://github.com/rust-lang/rust/pull/40037
5685 [40117]: https://github.com/rust-lang/rust/pull/40117
5686 [40166]: https://github.com/rust-lang/rust/pull/40166
5687 [40245]: https://github.com/rust-lang/rust/pull/40245
5688 [40257]: https://github.com/rust-lang/rust/pull/40257
5689 [40261]: https://github.com/rust-lang/rust/pull/40261
5690 [40265]: https://github.com/rust-lang/rust/pull/40265
5691 [40319]: https://github.com/rust-lang/rust/pull/40319
5692 [40336]: https://github.com/rust-lang/rust/pull/40336
5693 [40526]: https://github.com/rust-lang/rust/pull/40526
5694 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
5695 [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
5696 [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
5697 [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
5698 [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
5699 [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
5700 [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
5701 [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
5702 [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
5703 [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
5704 [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
5705 [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
5706 [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
5707 [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
5708 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
5709 [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
5710 [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
5711 [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
5712 [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
5713 [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
5714 [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
5715 [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
5716 [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
5717 [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
5718 [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
5719 [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
5720 [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
5721 [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
5722 [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
5723 [mdbook]: https://crates.io/crates/mdbook
5724 [ubook]: https://doc.rust-lang.org/unstable-book/
5725
5726
5727 Version 1.16.0 (2017-03-16)
5728 ===========================
5729
5730 Language
5731 --------
5732
5733 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
5734 * [Uninhabitable enums (those without any variants) no longer permit wildcard
5735   match patterns][38069]
5736 * [Clean up semantics of `self` in an import list][38313]
5737 * [`Self` may appear in `impl` headers][38920]
5738 * [`Self` may appear in struct expressions][39282]
5739
5740 Compiler
5741 --------
5742
5743 * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
5744   a `.rmeta` file containing only crate metadata][38571]. This can be
5745   used by tools like the Rust Language Service to perform
5746   metadata-only builds.
5747 * [Levenshtein based typo suggestions now work in most places, while
5748   previously they worked only for fields and sometimes for local
5749   variables][38927]. Together with the overhaul of "no
5750   resolution"/"unexpected resolution" errors (#[38154]) they result in
5751   large and systematic improvement in resolution diagnostics.
5752 * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
5753   `U`][38670]
5754 * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
5755 * [`rustc` no longer attempts to provide "consider using an explicit
5756   lifetime" suggestions][37057]. They were inaccurate.
5757
5758 Stabilized APIs
5759 ---------------
5760
5761 * [`VecDeque::truncate`]
5762 * [`VecDeque::resize`]
5763 * [`String::insert_str`]
5764 * [`Duration::checked_add`]
5765 * [`Duration::checked_sub`]
5766 * [`Duration::checked_div`]
5767 * [`Duration::checked_mul`]
5768 * [`str::replacen`]
5769 * [`str::repeat`]
5770 * [`SocketAddr::is_ipv4`]
5771 * [`SocketAddr::is_ipv6`]
5772 * [`IpAddr::is_ipv4`]
5773 * [`IpAddr::is_ipv6`]
5774 * [`Vec::dedup_by`]
5775 * [`Vec::dedup_by_key`]
5776 * [`Result::unwrap_or_default`]
5777 * [`<*const T>::wrapping_offset`]
5778 * [`<*mut T>::wrapping_offset`]
5779 * `CommandExt::creation_flags`
5780 * [`File::set_permissions`]
5781 * [`String::split_off`]
5782
5783 Libraries
5784 ---------
5785
5786 * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
5787   their argument by `Borrow` parameter][37761]
5788 * [All public types in std implement `Debug`][38006]
5789 * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
5790 * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
5791 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
5792   Windows][38274]
5793 * [std: Fix partial writes in `LineWriter`][38062]
5794 * [std: Clamp max read/write sizes on Unix][38062]
5795 * [Use more specific panic message for `&str` slicing errors][38066]
5796 * [`TcpListener::set_only_v6` is deprecated][38304]. This
5797   functionality cannot be achieved in std currently.
5798 * [`writeln!`, like `println!`, now accepts a form with no string
5799   or formatting arguments, to just print a newline][38469]
5800 * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
5801 * [Reduce the size of static data in `std_unicode::tables`][38781]
5802 * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
5803   `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
5804   `Display`][38909]
5805 * [`Duration` implements `Sum`][38712]
5806 * [`String` implements `ToSocketAddrs`][39048]
5807
5808 Cargo
5809 -----
5810
5811 * [The `cargo check` command does a type check of a project without
5812   building it][cargo/3296]
5813 * [crates.io will display CI badges from Travis and AppVeyor, if
5814   specified in Cargo.toml][cargo/3546]
5815 * [crates.io will display categories listed in Cargo.toml][cargo/3301]
5816 * [Compilation profiles accept integer values for `debug`, in addition
5817   to `true` and `false`. These are passed to `rustc` as the value to
5818   `-C debuginfo`][cargo/3534]
5819 * [Implement `cargo --version --verbose`][cargo/3604]
5820 * [All builds now output 'dep-info' build dependencies compatible with
5821   make and ninja][cargo/3557]
5822 * [Build all workspace members with `build --all`][cargo/3511]
5823 * [Document all workspace members with `doc --all`][cargo/3515]
5824 * [Path deps outside workspace are not members][cargo/3443]
5825
5826 Misc
5827 ----
5828
5829 * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
5830   the path to the Rust implementation][38589]
5831 * [The `armv7-linux-androideabi` target no longer enables NEON
5832   extensions, per Google's ABI guide][38413]
5833 * [The stock standard library can be compiled for Redox OS][38401]
5834 * [Rust has initial SPARC support][38726]. Tier 3. No builds
5835   available.
5836 * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
5837   builds available.
5838 * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
5839
5840 Compatibility Notes
5841 -------------------
5842
5843 * [Uninhabitable enums (those without any variants) no longer permit wildcard
5844   match patterns][38069]
5845 * In this release, references to uninhabited types can not be
5846   pattern-matched. This was accidentally allowed in 1.15.
5847 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
5848 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
5849   Windows][38274]
5850 * [Clean up semantics of `self` in an import list][38313]
5851 * Reimplemented lifetime elision. This change was almost entirely compatible
5852   with existing code, but it did close a number of small bugs and loopholes,
5853   as well as being more accepting in some other [cases][41105].
5854
5855 [37057]: https://github.com/rust-lang/rust/pull/37057
5856 [37761]: https://github.com/rust-lang/rust/pull/37761
5857 [38006]: https://github.com/rust-lang/rust/pull/38006
5858 [38051]: https://github.com/rust-lang/rust/pull/38051
5859 [38062]: https://github.com/rust-lang/rust/pull/38062
5860 [38062]: https://github.com/rust-lang/rust/pull/38622
5861 [38066]: https://github.com/rust-lang/rust/pull/38066
5862 [38069]: https://github.com/rust-lang/rust/pull/38069
5863 [38131]: https://github.com/rust-lang/rust/pull/38131
5864 [38154]: https://github.com/rust-lang/rust/pull/38154
5865 [38274]: https://github.com/rust-lang/rust/pull/38274
5866 [38304]: https://github.com/rust-lang/rust/pull/38304
5867 [38313]: https://github.com/rust-lang/rust/pull/38313
5868 [38314]: https://github.com/rust-lang/rust/pull/38314
5869 [38327]: https://github.com/rust-lang/rust/pull/38327
5870 [38401]: https://github.com/rust-lang/rust/pull/38401
5871 [38413]: https://github.com/rust-lang/rust/pull/38413
5872 [38469]: https://github.com/rust-lang/rust/pull/38469
5873 [38559]: https://github.com/rust-lang/rust/pull/38559
5874 [38571]: https://github.com/rust-lang/rust/pull/38571
5875 [38580]: https://github.com/rust-lang/rust/pull/38580
5876 [38589]: https://github.com/rust-lang/rust/pull/38589
5877 [38670]: https://github.com/rust-lang/rust/pull/38670
5878 [38712]: https://github.com/rust-lang/rust/pull/38712
5879 [38726]: https://github.com/rust-lang/rust/pull/38726
5880 [38781]: https://github.com/rust-lang/rust/pull/38781
5881 [38798]: https://github.com/rust-lang/rust/pull/38798
5882 [38909]: https://github.com/rust-lang/rust/pull/38909
5883 [38920]: https://github.com/rust-lang/rust/pull/38920
5884 [38927]: https://github.com/rust-lang/rust/pull/38927
5885 [39048]: https://github.com/rust-lang/rust/pull/39048
5886 [39282]: https://github.com/rust-lang/rust/pull/39282
5887 [39379]: https://github.com/rust-lang/rust/pull/39379
5888 [41105]: https://github.com/rust-lang/rust/issues/41105
5889 [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
5890 [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
5891 [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
5892 [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
5893 [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
5894 [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
5895 [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
5896 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
5897 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
5898 [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
5899 [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
5900 [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
5901 [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
5902 [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
5903 [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
5904 [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
5905 [`VecDeque::resize`]:  https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
5906 [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
5907 [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
5908 [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
5909 [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
5910 [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
5911 [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
5912 [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
5913 [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
5914 [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
5915 [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
5916 [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
5917 [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
5918 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
5919
5920
5921 Version 1.15.1 (2017-02-09)
5922 ===========================
5923
5924 * [Fix IntoIter::as_mut_slice's signature][39466]
5925 * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
5926
5927 [39466]: https://github.com/rust-lang/rust/pull/39466
5928 [39523]: https://github.com/rust-lang/rust/pull/39523
5929
5930
5931 Version 1.15.0 (2017-02-02)
5932 ===========================
5933
5934 Language
5935 --------
5936
5937 * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
5938   stable. This allows popular code-generating crates like Serde and Diesel to
5939   work ergonomically. [RFC 1681].
5940 * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
5941   with curly braces][36868]. Part of [RFC 1506].
5942 * [A number of minor changes to name resolution have been activated][37127].
5943   They add up to more consistent semantics, allowing for future evolution of
5944   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
5945   details of what is different. The breaking changes here have been transitioned
5946   through the [`legacy_imports`] lint since 1.14, with no known regressions.
5947 * [In `macro_rules`, `path` fragments can now be parsed as type parameter
5948   bounds][38279]
5949 * [`?Sized` can be used in `where` clauses][37791]
5950 * [There is now a limit on the size of monomorphized types and it can be
5951   modified with the `#![type_size_limit]` crate attribute, similarly to
5952   the `#![recursion_limit]` attribute][37789]
5953
5954 Compiler
5955 --------
5956
5957 * [On Windows, the compiler will apply dllimport attributes when linking to
5958   extern functions][37973]. Additional attributes and flags can control which
5959   library kind is linked and its name. [RFC 1717].
5960 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
5961 * [The `--test` flag works with procedural macro crates][38107]
5962 * [Fix `extern "aapcs" fn` ABI][37814]
5963 * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
5964 * [The `format!` expander recognizes incorrect `printf` and shell-style
5965   formatting directives and suggests the correct format][37613].
5966 * [Only report one error for all unused imports in an import list][37456]
5967
5968 Compiler Performance
5969 --------------------
5970
5971 * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
5972 * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
5973 * [Don't clone in `UnificationTable::probe`][37848]
5974 * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
5975 * [Use small vectors in type walker][37760]
5976 * [Macro expansion performance was improved][37701]
5977 * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
5978 * [Replace FNV with a faster hash function][37229]
5979
5980 Stabilized APIs
5981 ---------------
5982
5983 * [`std::iter::Iterator::min_by`]
5984 * [`std::iter::Iterator::max_by`]
5985 * [`std::os::*::fs::FileExt`]
5986 * [`std::sync::atomic::Atomic*::get_mut`]
5987 * [`std::sync::atomic::Atomic*::into_inner`]
5988 * [`std::vec::IntoIter::as_slice`]
5989 * [`std::vec::IntoIter::as_mut_slice`]
5990 * [`std::sync::mpsc::Receiver::try_iter`]
5991 * [`std::os::unix::process::CommandExt::before_exec`]
5992 * [`std::rc::Rc::strong_count`]
5993 * [`std::rc::Rc::weak_count`]
5994 * [`std::sync::Arc::strong_count`]
5995 * [`std::sync::Arc::weak_count`]
5996 * [`std::char::encode_utf8`]
5997 * [`std::char::encode_utf16`]
5998 * [`std::cell::Ref::clone`]
5999 * [`std::io::Take::into_inner`]
6000
6001 Libraries
6002 ---------
6003
6004 * [The standard sorting algorithm has been rewritten for dramatic performance
6005   improvements][38192]. It is a hybrid merge sort, drawing influences from
6006   Timsort. Previously it was a naive merge sort.
6007 * [`Iterator::nth` no longer has a `Sized` bound][38134]
6008 * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
6009   performance.
6010 * [`chars().count()` is much faster][37888] and so are [`chars().last()`
6011   and `char_indices().last()`][37882]
6012 * [Fix ARM Objective-C ABI in `std::env::args`][38146]
6013 * [Chinese characters display correctly in `fmt::Debug`][37855]
6014 * [Derive `Default` for `Duration`][37699]
6015 * [Support creation of anonymous pipes on WinXP/2k][37677]
6016 * [`mpsc::RecvTimeoutError` implements `Error`][37527]
6017 * [Don't pass overlapped handles to processes][38835]
6018
6019 Cargo
6020 -----
6021
6022 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6023   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6024   should instead check the variable at runtime with `std::env`. That the value
6025   was set at build time was a bug, and incorrect when cross-compiling. This
6026   change is known to cause breakage.
6027 * [Add `--all` flag to `cargo test`][cargo/3221]
6028 * [Compile statically against the MSVC CRT][cargo/3363]
6029 * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
6030 * [Link OpenSSL statically on OSX][cargo/3311]
6031 * [Apply new fingerprinting to build dir outputs][cargo/3310]
6032 * [Test for bad path overrides with summaries][cargo/3336]
6033 * [Require `cargo install --vers` to take a semver version][cargo/3338]
6034 * [Fix retrying crate downloads for network errors][cargo/3348]
6035 * [Implement string lookup for `build.rustflags` config key][cargo/3356]
6036 * [Emit more info on --message-format=json][cargo/3319]
6037 * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
6038 * [Don't ignore errors in workspace manifest][cargo/3409]
6039 * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
6040
6041 Tooling
6042 -------
6043
6044 * [Test runners (binaries built with `--test`) now support a `--list` argument
6045   that lists the tests it contains][38185]
6046 * [Test runners now support a `--exact` argument that makes the test filter
6047   match exactly, instead of matching only a substring of the test name][38181]
6048 * [rustdoc supports a `--playground-url` flag][37763]
6049 * [rustdoc provides more details about `#[should_panic]` errors][37749]
6050
6051 Misc
6052 ----
6053
6054 * [The Rust build system is now written in Rust][37817]. The Makefiles may
6055   continue to be used in this release by passing `--disable-rustbuild` to the
6056   configure script, but they will be deleted soon. Note that the new build
6057   system uses a different on-disk layout that will likely affect any scripts
6058   building Rust.
6059 * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
6060   releases.
6061 * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
6062 * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
6063   releases.
6064
6065 Compatibility Notes
6066 -------------------
6067
6068 * [A number of minor changes to name resolution have been activated][37127].
6069   They add up to more consistent semantics, allowing for future evolution of
6070   Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6071   details of what is different. The breaking changes here have been transitioned
6072   through the [`legacy_imports`] lint since 1.14, with no known regressions.
6073 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6074   environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6075   should instead check the variable at runtime with `std::env`. That the value
6076   was set at build time was a bug, and incorrect when cross-compiling. This
6077   change is known to cause breakage.
6078 * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
6079   types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
6080   1.10 and is now an error by default. It will become a hard error in the near
6081   future.
6082 * [The semantics relating modules to file system directories are changing in
6083   minor ways][37602]. This is captured in the new `legacy_directory_ownership`
6084   lint, which is a warning in this release, and will become a hard error in the
6085   future.
6086 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6087 * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
6088   the underlying iterator][37834]
6089
6090 ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
6091 [33685]: https://github.com/rust-lang/rust/issues/33685
6092 [36868]: https://github.com/rust-lang/rust/pull/36868
6093 [37127]: https://github.com/rust-lang/rust/pull/37127
6094 [37229]: https://github.com/rust-lang/rust/pull/37229
6095 [37456]: https://github.com/rust-lang/rust/pull/37456
6096 [37527]: https://github.com/rust-lang/rust/pull/37527
6097 [37602]: https://github.com/rust-lang/rust/pull/37602
6098 [37613]: https://github.com/rust-lang/rust/pull/37613
6099 [37615]: https://github.com/rust-lang/rust/pull/37615
6100 [37636]: https://github.com/rust-lang/rust/pull/37636
6101 [37627]: https://github.com/rust-lang/rust/pull/37627
6102 [37642]: https://github.com/rust-lang/rust/pull/37642
6103 [37677]: https://github.com/rust-lang/rust/pull/37677
6104 [37699]: https://github.com/rust-lang/rust/pull/37699
6105 [37701]: https://github.com/rust-lang/rust/pull/37701
6106 [37705]: https://github.com/rust-lang/rust/pull/37705
6107 [37749]: https://github.com/rust-lang/rust/pull/37749
6108 [37760]: https://github.com/rust-lang/rust/pull/37760
6109 [37763]: https://github.com/rust-lang/rust/pull/37763
6110 [37764]: https://github.com/rust-lang/rust/pull/37764
6111 [37789]: https://github.com/rust-lang/rust/pull/37789
6112 [37791]: https://github.com/rust-lang/rust/pull/37791
6113 [37814]: https://github.com/rust-lang/rust/pull/37814
6114 [37817]: https://github.com/rust-lang/rust/pull/37817
6115 [37834]: https://github.com/rust-lang/rust/pull/37834
6116 [37848]: https://github.com/rust-lang/rust/pull/37848
6117 [37855]: https://github.com/rust-lang/rust/pull/37855
6118 [37882]: https://github.com/rust-lang/rust/pull/37882
6119 [37888]: https://github.com/rust-lang/rust/pull/37888
6120 [37973]: https://github.com/rust-lang/rust/pull/37973
6121 [37979]: https://github.com/rust-lang/rust/pull/37979
6122 [38086]: https://github.com/rust-lang/rust/pull/38086
6123 [38107]: https://github.com/rust-lang/rust/pull/38107
6124 [38117]: https://github.com/rust-lang/rust/pull/38117
6125 [38134]: https://github.com/rust-lang/rust/pull/38134
6126 [38146]: https://github.com/rust-lang/rust/pull/38146
6127 [38181]: https://github.com/rust-lang/rust/pull/38181
6128 [38182]: https://github.com/rust-lang/rust/pull/38182
6129 [38185]: https://github.com/rust-lang/rust/pull/38185
6130 [38192]: https://github.com/rust-lang/rust/pull/38192
6131 [38279]: https://github.com/rust-lang/rust/pull/38279
6132 [38835]: https://github.com/rust-lang/rust/pull/38835
6133 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
6134 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
6135 [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
6136 [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
6137 [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
6138 [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
6139 [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
6140 [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
6141 [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
6142 [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
6143 [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
6144 [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
6145 [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
6146 [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
6147 [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
6148 [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
6149 [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
6150 [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
6151 [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
6152 [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
6153 [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
6154 [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
6155 [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
6156 [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
6157 [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
6158 [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
6159 [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
6160 [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
6161 [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
6162 [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
6163 [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
6164 [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
6165 [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
6166 [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
6167 [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
6168 [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
6169 [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
6170 [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
6171
6172
6173 Version 1.14.0 (2016-12-22)
6174 ===========================
6175
6176 Language
6177 --------
6178
6179 * [`..` matches multiple tuple fields in enum variants, structs
6180   and tuples][36843]. [RFC 1492].
6181 * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
6182 * [`use *` and `use ::*` both glob-import from the crate root][37367]
6183 * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
6184   dereferencing][36822]
6185
6186 Compiler
6187 --------
6188
6189 * [Mark enums with non-zero discriminant as non-zero][37224]
6190 * [Lower-case `static mut` names are linted like other
6191   statics and consts][37162]
6192 * [Fix ICE on some macros in const integer positions
6193    (e.g. `[u8; m!()]`)][36819]
6194 * [Improve error message and snippet for "did you mean `x`"][36798]
6195 * [Add a panic-strategy field to the target specification][36794]
6196 * [Include LLVM version in `--version --verbose`][37200]
6197
6198 Compile-time Optimizations
6199 --------------------------
6200
6201 * [Improve macro expansion performance][37569]
6202 * [Shrink `Expr_::ExprInlineAsm`][37445]
6203 * [Replace all uses of SHA-256 with BLAKE2b][37439]
6204 * [Reduce the number of bytes hashed by `IchHasher`][37427]
6205 * [Avoid more allocations when compiling html5ever][37373]
6206 * [Use `SmallVector` in `CombineFields::instantiate`][37322]
6207 * [Avoid some allocations in the macro parser][37318]
6208 * [Use a faster deflate setting][37298]
6209 * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
6210   during interning of slices][37270]
6211 * [Optimize `write_metadata`][37267]
6212 * [Don't process obligation forest cycles when stalled][37231]
6213 * [Avoid many `CrateConfig` clones][37161]
6214 * [Optimize `Substs::super_fold_with`][37108]
6215 * [Optimize `ObligationForest`'s `NodeState` handling][36993]
6216 * [Speed up `plug_leaks`][36917]
6217
6218 Libraries
6219 ---------
6220
6221 * [`println!()`, with no arguments, prints newline][36825].
6222   Previously, an empty string was required to achieve the same.
6223 * [`Wrapping` impls standard binary and unary operators, as well as
6224    the `Sum` and `Product` iterators][37356]
6225 * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
6226   Vec<T>`][37326]
6227 * [Improve `fold` performance for `chain`, `cloned`, `map`, and
6228   `VecDeque` iterators][37315]
6229 * [Improve `SipHasher` performance on small values][37312]
6230 * [Add Iterator trait TrustedLen to enable better FromIterator /
6231   Extend][37306]
6232 * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
6233 * [`ReadDir` implements `Debug`][37221]
6234 * [Implement `RefUnwindSafe` for atomic types][37178]
6235 * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
6236 * [Avoid allocations in `Decoder::read_str`][37064]
6237 * [`io::Error` implements `From<io::ErrorKind>`][37037]
6238 * [Impl `Debug` for raw pointers to unsized data][36880]
6239 * [Don't reuse `HashMap` random seeds][37470]
6240 * [The internal memory layout of `HashMap` is more cache-friendly, for
6241   significant improvements in some operations][36692]
6242 * [`HashMap` uses less memory on 32-bit architectures][36595]
6243 * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
6244
6245 Cargo
6246 -----
6247
6248 * [Expose rustc cfg values to build scripts][cargo/3243]
6249 * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
6250 * [Fix passing --features when testing multiple packages][cargo/3280]
6251 * [Use a single profile set per workspace][cargo/3249]
6252 * [Load `replace` sections from lock files][cargo/3220]
6253 * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
6254
6255 Tooling
6256 -------
6257
6258 * [rustup is the recommended Rust installation method][1.14rustup]
6259 * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
6260   S390x. These are [tier 2] platforms and may have major defects. Follow the
6261   instructions on the website to install, or add the targets to an existing
6262   installation with `rustup target add`. The new target triples are:
6263   - `mips-unknown-linux-gnu`
6264   - `mipsel-unknown-linux-gnu`
6265   - `mips64-unknown-linux-gnuabi64`
6266   - `mips64el-unknown-linux-gnuabi64 `
6267   - `powerpc-unknown-linux-gnu`
6268   - `powerpc64-unknown-linux-gnu`
6269   - `powerpc64le-unknown-linux-gnu`
6270   - `s390x-unknown-linux-gnu `
6271 * This release includes target (std) builds for ARM Linux running MUSL
6272   libc. These are [tier 2] platforms and may have major defects. Add the
6273   following triples to an existing rustup installation with `rustup target add`:
6274   - `arm-unknown-linux-musleabi`
6275   - `arm-unknown-linux-musleabihf`
6276   - `armv7-unknown-linux-musleabihf`
6277 * This release includes [experimental support for WebAssembly][1.14wasm], via
6278   the `wasm32-unknown-emscripten` target. This target is known to have major
6279   defects. Please test, report, and fix.
6280 * rustup no longer installs documentation by default. Run `rustup
6281   component add rust-docs` to install.
6282 * [Fix line stepping in debugger][37310]
6283 * [Enable line number debuginfo in releases][37280]
6284
6285 Misc
6286 ----
6287
6288 * [Disable jemalloc on aarch64/powerpc/mips][37392]
6289 * [Add support for Fuchsia OS][37313]
6290 * [Detect local-rebuild by only MAJOR.MINOR version][37273]
6291
6292 Compatibility Notes
6293 -------------------
6294
6295 * [A number of forward-compatibility lints used by the compiler
6296   to gradually introduce language changes have been converted
6297   to deny by default][36894]:
6298   - ["use of inaccessible extern crate erroneously allowed"][36886]
6299   - ["type parameter default erroneously allowed in invalid location"][36887]
6300   - ["detects super or self keywords at the beginning of global path"][36888]
6301   - ["two overlapping inherent impls define an item with the same name
6302     were erroneously allowed"][36889]
6303   - ["floating-point constants cannot be used in patterns"][36890]
6304   - ["constants of struct or enum type can only be used in a pattern if
6305      the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
6306   - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
6307 * [Prohibit patterns in trait methods without bodies][37378]
6308 * [The atomic `Ordering` enum may not be matched exhaustively][37351]
6309 * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
6310 * [The `$crate` macro variable is accepted in fewer locations][37213]
6311 * [Impls specifying extra region requirements beyond the trait
6312   they implement are rejected][37167]
6313 * [Enums may not be unsized][37111]. Unsized enums are intended to
6314   work but never have. For now they are forbidden.
6315 * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
6316
6317 [tier 2]: https://forge.rust-lang.org/platform-support.html
6318 [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
6319 [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
6320 [36430]: https://github.com/rust-lang/rust/pull/36430
6321 [36595]: https://github.com/rust-lang/rust/pull/36595
6322 [36595]: https://github.com/rust-lang/rust/pull/36595
6323 [36692]: https://github.com/rust-lang/rust/pull/36692
6324 [36767]: https://github.com/rust-lang/rust/pull/36767
6325 [36794]: https://github.com/rust-lang/rust/pull/36794
6326 [36798]: https://github.com/rust-lang/rust/pull/36798
6327 [36819]: https://github.com/rust-lang/rust/pull/36819
6328 [36822]: https://github.com/rust-lang/rust/pull/36822
6329 [36825]: https://github.com/rust-lang/rust/pull/36825
6330 [36843]: https://github.com/rust-lang/rust/pull/36843
6331 [36880]: https://github.com/rust-lang/rust/pull/36880
6332 [36886]: https://github.com/rust-lang/rust/issues/36886
6333 [36887]: https://github.com/rust-lang/rust/issues/36887
6334 [36888]: https://github.com/rust-lang/rust/issues/36888
6335 [36889]: https://github.com/rust-lang/rust/issues/36889
6336 [36890]: https://github.com/rust-lang/rust/issues/36890
6337 [36891]: https://github.com/rust-lang/rust/issues/36891
6338 [36892]: https://github.com/rust-lang/rust/issues/36892
6339 [36894]: https://github.com/rust-lang/rust/pull/36894
6340 [36917]: https://github.com/rust-lang/rust/pull/36917
6341 [36993]: https://github.com/rust-lang/rust/pull/36993
6342 [37037]: https://github.com/rust-lang/rust/pull/37037
6343 [37064]: https://github.com/rust-lang/rust/pull/37064
6344 [37094]: https://github.com/rust-lang/rust/pull/37094
6345 [37108]: https://github.com/rust-lang/rust/pull/37108
6346 [37111]: https://github.com/rust-lang/rust/pull/37111
6347 [37161]: https://github.com/rust-lang/rust/pull/37161
6348 [37162]: https://github.com/rust-lang/rust/pull/37162
6349 [37167]: https://github.com/rust-lang/rust/pull/37167
6350 [37178]: https://github.com/rust-lang/rust/pull/37178
6351 [37200]: https://github.com/rust-lang/rust/pull/37200
6352 [37213]: https://github.com/rust-lang/rust/pull/37213
6353 [37221]: https://github.com/rust-lang/rust/pull/37221
6354 [37224]: https://github.com/rust-lang/rust/pull/37224
6355 [37230]: https://github.com/rust-lang/rust/pull/37230
6356 [37231]: https://github.com/rust-lang/rust/pull/37231
6357 [37247]: https://github.com/rust-lang/rust/pull/37247
6358 [37267]: https://github.com/rust-lang/rust/pull/37267
6359 [37270]: https://github.com/rust-lang/rust/pull/37270
6360 [37273]: https://github.com/rust-lang/rust/pull/37273
6361 [37280]: https://github.com/rust-lang/rust/pull/37280
6362 [37298]: https://github.com/rust-lang/rust/pull/37298
6363 [37306]: https://github.com/rust-lang/rust/pull/37306
6364 [37310]: https://github.com/rust-lang/rust/pull/37310
6365 [37312]: https://github.com/rust-lang/rust/pull/37312
6366 [37313]: https://github.com/rust-lang/rust/pull/37313
6367 [37315]: https://github.com/rust-lang/rust/pull/37315
6368 [37318]: https://github.com/rust-lang/rust/pull/37318
6369 [37322]: https://github.com/rust-lang/rust/pull/37322
6370 [37326]: https://github.com/rust-lang/rust/pull/37326
6371 [37351]: https://github.com/rust-lang/rust/pull/37351
6372 [37356]: https://github.com/rust-lang/rust/pull/37356
6373 [37367]: https://github.com/rust-lang/rust/pull/37367
6374 [37373]: https://github.com/rust-lang/rust/pull/37373
6375 [37378]: https://github.com/rust-lang/rust/pull/37378
6376 [37389]: https://github.com/rust-lang/rust/pull/37389
6377 [37392]: https://github.com/rust-lang/rust/pull/37392
6378 [37427]: https://github.com/rust-lang/rust/pull/37427
6379 [37439]: https://github.com/rust-lang/rust/pull/37439
6380 [37445]: https://github.com/rust-lang/rust/pull/37445
6381 [37470]: https://github.com/rust-lang/rust/pull/37470
6382 [37569]: https://github.com/rust-lang/rust/pull/37569
6383 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
6384 [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
6385 [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
6386 [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
6387 [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
6388 [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
6389 [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
6390
6391
6392 Version 1.13.0 (2016-11-10)
6393 ===========================
6394
6395 Language
6396 --------
6397
6398 * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
6399   errors, like the `try!` macro, described in [RFC 0243].
6400 * [Stabilize macros in type position][36014]. Described in [RFC 873].
6401 * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
6402 * [Fix `#[derive]` for empty tuple structs/variants][35728]
6403 * [Fix lifetime rules for 'if' conditions][36029]
6404 * [Avoid loading and parsing unconfigured non-inline modules][36482]
6405
6406 Compiler
6407 --------
6408
6409 * [Add the `-C link-arg` argument][36574]
6410 * [Remove the old AST-based backend from rustc_trans][35764]
6411 * [Don't enable NEON by default on armv7 Linux][35814]
6412 * [Fix debug line number info for macro expansions][35238]
6413 * [Do not emit "class method" debuginfo for types that are not
6414   DICompositeType][36008]
6415 * [Warn about multiple conflicting #[repr] hints][34623]
6416 * [When sizing DST, don't double-count nested struct prefixes][36351]
6417 * [Default RUST_MIN_STACK to 16MiB for now][36505]
6418 * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
6419 * [Reject macros with empty repetitions to avoid infinite loop][36721]
6420 * [Expand macros without recursing to avoid stack overflows][36214]
6421
6422 Diagnostics
6423 -----------
6424
6425 * [Replace macro backtraces with labeled local uses][35702]
6426 * [Improve error message for misplaced doc comments][33922]
6427 * [Buffer unix and lock windows to prevent message interleaving][35975]
6428 * [Update lifetime errors to specifically note temporaries][36171]
6429 * [Special case a few colors for Windows][36178]
6430 * [Suggest `use self` when such an import resolves][36289]
6431 * [Be more specific when type parameter shadows primitive type][36338]
6432 * Many minor improvements
6433
6434 Compile-time Optimizations
6435 --------------------------
6436
6437 * [Compute and cache HIR hashes at beginning][35854]
6438 * [Don't hash types in loan paths][36004]
6439 * [Cache projections in trans][35761]
6440 * [Optimize the parser's last token handling][36527]
6441 * [Only instantiate #[inline] functions in codegen units referencing
6442   them][36524]. This leads to big improvements in cases where crates export
6443   define many inline functions without using them directly.
6444 * [Lazily allocate TypedArena's first chunk][36592]
6445 * [Don't allocate during default HashSet creation][36734]
6446
6447 Stabilized APIs
6448 ---------------
6449
6450 * [`checked_abs`]
6451 * [`wrapping_abs`]
6452 * [`overflowing_abs`]
6453 * [`RefCell::try_borrow`]
6454 * [`RefCell::try_borrow_mut`]
6455
6456 Libraries
6457 ---------
6458
6459 * [Add `assert_ne!` and `debug_assert_ne!`][35074]
6460 * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
6461   covariant][35354]
6462 * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
6463 * [Implement `Debug` for `std::vec::IntoIter`][35707]
6464 * [`CString`: avoid excessive growth just to 0-terminate][35871]
6465 * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
6466 * [Use arc4rand on FreeBSD][35884]
6467 * [memrchr: Correct aligned offset computation][35969]
6468 * [Improve Demangling of Rust Symbols][36059]
6469 * [Use monotonic time in condition variables][35048]
6470 * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
6471 * [Implement conversion traits for `char`][35755]
6472 * [Fix illegal instruction caused by overflow in channel cloning][36104]
6473 * [Zero first byte of CString on drop][36264]
6474 * [Inherit overflow checks for sum and product][36372]
6475 * [Add missing Eq implementations][36423]
6476 * [Implement `Debug` for `DirEntry`][36631]
6477 * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
6478   `errno`][36754]
6479 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
6480 * [Implement more traits for `std::io::ErrorKind`][35911]
6481 * [Optimize BinaryHeap bounds checking][36072]
6482 * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
6483   `extend_with_element`][36355]
6484 * [Fix overflow checking in unsigned pow()][34942]
6485
6486 Cargo
6487 -----
6488
6489 * This release includes security fixes to both curl and OpenSSL.
6490 * [Fix transitive doctests when panic=abort][cargo/3021]
6491 * [Add --all-features flag to cargo][cargo/3038]
6492 * [Reject path-based dependencies in `cargo package`][cargo/3060]
6493 * [Don't parse the home directory more than once][cargo/3078]
6494 * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
6495 * [Update OpenSSL to 1.0.2j][cargo/3121]
6496 * [Add license and license_file to cargo metadata output][cargo/3110]
6497 * [Make crates-io registry URL optional in config; ignore all changes to
6498   source.crates-io][cargo/3089]
6499 * [Don't download dependencies from other platforms][cargo/3123]
6500 * [Build transitive dev-dependencies when needed][cargo/3125]
6501 * [Add support for per-target rustflags in .cargo/config][cargo/3157]
6502 * [Avoid updating registry when adding existing deps][cargo/3144]
6503 * [Warn about path overrides that won't work][cargo/3136]
6504 * [Use workspaces during `cargo install`][cargo/3146]
6505 * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
6506 * [Add --message-format flag][cargo/3000]
6507 * [Pass target environment for rustdoc][cargo/3205]
6508 * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
6509 * [Update curl and curl-sys][cargo/3241]
6510 * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
6511
6512 Tooling
6513 -------
6514
6515 * [rustdoc: Add the `--sysroot` argument][36586]
6516 * [rustdoc: Fix a couple of issues with the search results][35655]
6517 * [rustdoc: remove the `!` from macro URLs and titles][35234]
6518 * [gdb: Fix pretty-printing special-cased Rust types][35585]
6519 * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
6520
6521 Misc
6522 ----
6523
6524 * [Remove unmaintained style guide][35124]
6525 * [Add s390x support][36369]
6526 * [Initial work at Haiku OS support][36727]
6527 * [Add mips-uclibc targets][35734]
6528 * [Crate-ify compiler-rt into compiler-builtins][35021]
6529 * [Add rustc version info (git hash + date) to dist tarball][36213]
6530 * Many documentation improvements
6531
6532 Compatibility Notes
6533 -------------------
6534
6535 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
6536 * [Deny (by default) transmuting from fn item types to pointer-sized
6537   types][34923]. Continuing the long transition to zero-sized fn items,
6538   per [RFC 401].
6539 * [Fix `#[derive]` for empty tuple structs/variants][35728].
6540   Part of [RFC 1506].
6541 * [Issue deprecation warnings for safe accesses to extern statics][36173]
6542 * [Fix lifetime rules for 'if' conditions][36029].
6543 * [Inherit overflow checks for sum and product][36372].
6544 * [Forbid user-defined macros named "macro_rules"][36730].
6545
6546 [33922]: https://github.com/rust-lang/rust/pull/33922
6547 [34623]: https://github.com/rust-lang/rust/pull/34623
6548 [34923]: https://github.com/rust-lang/rust/pull/34923
6549 [34942]: https://github.com/rust-lang/rust/pull/34942
6550 [34982]: https://github.com/rust-lang/rust/pull/34982
6551 [35021]: https://github.com/rust-lang/rust/pull/35021
6552 [35048]: https://github.com/rust-lang/rust/pull/35048
6553 [35074]: https://github.com/rust-lang/rust/pull/35074
6554 [35124]: https://github.com/rust-lang/rust/pull/35124
6555 [35234]: https://github.com/rust-lang/rust/pull/35234
6556 [35238]: https://github.com/rust-lang/rust/pull/35238
6557 [35354]: https://github.com/rust-lang/rust/pull/35354
6558 [35559]: https://github.com/rust-lang/rust/pull/35559
6559 [35585]: https://github.com/rust-lang/rust/pull/35585
6560 [35627]: https://github.com/rust-lang/rust/pull/35627
6561 [35655]: https://github.com/rust-lang/rust/pull/35655
6562 [35702]: https://github.com/rust-lang/rust/pull/35702
6563 [35707]: https://github.com/rust-lang/rust/pull/35707
6564 [35728]: https://github.com/rust-lang/rust/pull/35728
6565 [35734]: https://github.com/rust-lang/rust/pull/35734
6566 [35755]: https://github.com/rust-lang/rust/pull/35755
6567 [35761]: https://github.com/rust-lang/rust/pull/35761
6568 [35764]: https://github.com/rust-lang/rust/pull/35764
6569 [35814]: https://github.com/rust-lang/rust/pull/35814
6570 [35854]: https://github.com/rust-lang/rust/pull/35854
6571 [35871]: https://github.com/rust-lang/rust/pull/35871
6572 [35884]: https://github.com/rust-lang/rust/pull/35884
6573 [35911]: https://github.com/rust-lang/rust/pull/35911
6574 [35969]: https://github.com/rust-lang/rust/pull/35969
6575 [35975]: https://github.com/rust-lang/rust/pull/35975
6576 [36004]: https://github.com/rust-lang/rust/pull/36004
6577 [36008]: https://github.com/rust-lang/rust/pull/36008
6578 [36014]: https://github.com/rust-lang/rust/pull/36014
6579 [36029]: https://github.com/rust-lang/rust/pull/36029
6580 [36059]: https://github.com/rust-lang/rust/pull/36059
6581 [36072]: https://github.com/rust-lang/rust/pull/36072
6582 [36101]: https://github.com/rust-lang/rust/pull/36101
6583 [36104]: https://github.com/rust-lang/rust/pull/36104
6584 [36171]: https://github.com/rust-lang/rust/pull/36171
6585 [36173]: https://github.com/rust-lang/rust/pull/36173
6586 [36178]: https://github.com/rust-lang/rust/pull/36178
6587 [36213]: https://github.com/rust-lang/rust/pull/36213
6588 [36214]: https://github.com/rust-lang/rust/pull/36214
6589 [36264]: https://github.com/rust-lang/rust/pull/36264
6590 [36266]: https://github.com/rust-lang/rust/pull/36266
6591 [36289]: https://github.com/rust-lang/rust/pull/36289
6592 [36338]: https://github.com/rust-lang/rust/pull/36338
6593 [36351]: https://github.com/rust-lang/rust/pull/36351
6594 [36355]: https://github.com/rust-lang/rust/pull/36355
6595 [36369]: https://github.com/rust-lang/rust/pull/36369
6596 [36372]: https://github.com/rust-lang/rust/pull/36372
6597 [36423]: https://github.com/rust-lang/rust/pull/36423
6598 [36482]: https://github.com/rust-lang/rust/pull/36482
6599 [36505]: https://github.com/rust-lang/rust/pull/36505
6600 [36524]: https://github.com/rust-lang/rust/pull/36524
6601 [36527]: https://github.com/rust-lang/rust/pull/36527
6602 [36551]: https://github.com/rust-lang/rust/pull/36551
6603 [36574]: https://github.com/rust-lang/rust/pull/36574
6604 [36586]: https://github.com/rust-lang/rust/pull/36586
6605 [36592]: https://github.com/rust-lang/rust/pull/36592
6606 [36631]: https://github.com/rust-lang/rust/pull/36631
6607 [36639]: https://github.com/rust-lang/rust/pull/36639
6608 [36721]: https://github.com/rust-lang/rust/pull/36721
6609 [36727]: https://github.com/rust-lang/rust/pull/36727
6610 [36730]: https://github.com/rust-lang/rust/pull/36730
6611 [36734]: https://github.com/rust-lang/rust/pull/36734
6612 [36754]: https://github.com/rust-lang/rust/pull/36754
6613 [36995]: https://github.com/rust-lang/rust/pull/36995
6614 [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
6615 [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
6616 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
6617 [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
6618 [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
6619 [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
6620 [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
6621 [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
6622 [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
6623 [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
6624 [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
6625 [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
6626 [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
6627 [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
6628 [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
6629 [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
6630 [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
6631 [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
6632 [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
6633 [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
6634 [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
6635 [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
6636 [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
6637 [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
6638 [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
6639 [rustup]: https://www.rustup.rs
6640 [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
6641 [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
6642 [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
6643 [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
6644 [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
6645 [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
6646 [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
6647
6648
6649 Version 1.12.1 (2016-10-20)
6650 ===========================
6651
6652 Regression Fixes
6653 ----------------
6654
6655 * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
6656 * [Confusion with double negation and booleans][36856]
6657 * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
6658 * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
6659 * [1.12.0: High memory usage when linking in release mode with debug info][36926]
6660 * [Corrupted memory after updated to 1.12][36936]
6661 * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
6662 * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
6663 * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
6664
6665 [36381]: https://github.com/rust-lang/rust/issues/36381
6666 [36856]: https://github.com/rust-lang/rust/issues/36856
6667 [36875]: https://github.com/rust-lang/rust/issues/36875
6668 [36924]: https://github.com/rust-lang/rust/issues/36924
6669 [36926]: https://github.com/rust-lang/rust/issues/36926
6670 [36936]: https://github.com/rust-lang/rust/issues/36936
6671 [37026]: https://github.com/rust-lang/rust/issues/37026
6672 [37112]: https://github.com/rust-lang/rust/issues/37112
6673 [37153]: https://github.com/rust-lang/rust/issues/37153
6674
6675
6676 Version 1.12.0 (2016-09-29)
6677 ===========================
6678
6679 Highlights
6680 ----------
6681
6682 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
6683   This translation pass is far simpler than the previous AST->LLVM pass, and
6684   creates opportunities to perform new optimizations directly on the MIR. It
6685   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
6686 * [`rustc` presents a new, more readable error format, along with
6687   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
6688   Most common editors supporting Rust have been updated to work with it. It was
6689   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
6690
6691 Compiler
6692 --------
6693
6694 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
6695   This translation pass is far simpler than the previous AST->LLVM pass, and
6696   creates opportunities to perform new optimizations directly on the MIR. It
6697   was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
6698 * [Print the Rust target name, not the LLVM target name, with
6699   `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
6700 * [The computation of `TypeId` is correct in some cases where it was previously
6701   producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
6702 * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
6703 * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
6704   `--print relocation-models`, and `--print code-models` print the available
6705   options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
6706   `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
6707 * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
6708   `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
6709   These targets produce statically-linked binaries. There are no binary release
6710   builds yet though.
6711
6712 Diagnostics
6713 -----------
6714
6715 * [`rustc` presents a new, more readable error format, along with
6716   machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
6717   Most common editors supporting Rust have been updated to work with it. It was
6718   previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
6719 * [In error descriptions, references are now described in plain English,
6720   instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
6721 * [In error type descriptions, unknown numeric types are named `{integer}` or
6722   `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
6723 * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
6724
6725 Language
6726 --------
6727
6728 * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
6729 * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
6730 * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
6731   useful](https://github.com/rust-lang/rust/pull/34908)
6732 * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
6733   inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
6734 * [Semicolons are properly required as statement delimiters inside
6735   `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
6736 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
6737
6738 Stabilized APIs
6739 ---------------
6740
6741 * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
6742 * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
6743 * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
6744 * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
6745 * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
6746 * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
6747 * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
6748 * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
6749 * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
6750 * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
6751   Both on Unix and Windows.
6752 * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
6753 * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
6754 * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
6755 * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
6756 * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
6757 * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
6758 * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
6759 * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
6760
6761 Libraries
6762 ---------
6763
6764 * [The `format!` macro and friends now allow a single argument to be formatted
6765   in multiple styles](https://github.com/rust-lang/rust/pull/33642)
6766 * [The lifetime bounds on `[T]::binary_search_by` and
6767   `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
6768 * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
6769 * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
6770 * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
6771 * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
6772 * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
6773 * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
6774 * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
6775 * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
6776   implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
6777 * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
6778   implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
6779 * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
6780 * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
6781   `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
6782 * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
6783 * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
6784 * [`mpsc::sync_channel` `Receiver`s return any available message before
6785   reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
6786 * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
6787 * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
6788
6789 Cargo
6790 -----
6791
6792 * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
6793 * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
6794 * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
6795 * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
6796 * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
6797 * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
6798 * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
6799 * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
6800 * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
6801 * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
6802 * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
6803 * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
6804 * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
6805 * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
6806 * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
6807 * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
6808
6809 Performance
6810 -----------
6811
6812 * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
6813 * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
6814
6815 Tooling
6816 -------
6817
6818 * [Test binaries now support a `--test-threads` argument to specify the number
6819   of threads used to run tests, and which acts the same as the
6820   `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
6821 * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
6822 * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
6823 * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
6824 * [Rust releases now come with source packages that can be installed by rustup
6825   via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
6826   The resulting source code can be used by tools and IDES, located in the
6827   sysroot under `lib/rustlib/src`.
6828
6829 Misc
6830 ----
6831
6832 * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
6833 * Many minor improvements to the documentation.
6834 * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
6835
6836 Compatibility Notes
6837 -------------------
6838
6839 * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
6840   with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
6841 * [When formatting strings, if "precision" is specified, the "fill",
6842   "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
6843 * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
6844
6845
6846 Version 1.11.0 (2016-08-18)
6847 ===========================
6848
6849 Language
6850 --------
6851
6852 * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
6853 * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
6854 * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
6855 * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
6856
6857 Stabilized APIs
6858 ---------------
6859
6860 * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
6861 * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
6862 * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
6863 * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
6864 * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
6865 * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
6866   (in libcore - previously stabilized in libstd)
6867 * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
6868   (in libcore - previously stabilized in libstd)
6869 * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
6870   (in libcore - previously stabilized in libstd)
6871 * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
6872   (in libcore - previously stabilized in libstd)
6873 * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
6874 * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
6875 * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
6876 * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
6877
6878 Libraries
6879 ---------
6880
6881 * [The `thread_local!` macro supports multiple definitions in a single
6882    invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
6883 * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
6884 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
6885   `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
6886 * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
6887 * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
6888 * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
6889 * [The main thread is now called "main" instead of "&lt;main&gt;"](https://github.com/rust-lang/rust/pull/33803)
6890
6891 Cargo
6892 -----
6893
6894 * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
6895 * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
6896 * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
6897 * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
6898 * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
6899   and `-vv` prints warnings for all crates.
6900 * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
6901 * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
6902   This provides room for expansion by arbitrary tools.
6903 * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
6904 * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
6905 * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
6906 * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
6907 * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
6908 * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
6909 * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
6910
6911 Performance
6912 -----------
6913
6914 * [Caching projections speeds up type check dramatically for some
6915   workloads](https://github.com/rust-lang/rust/pull/33816)
6916 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
6917   This hasher is faster, but is believed to provide sufficient
6918   protection from collision attacks.
6919 * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
6920
6921 Rustdoc
6922 -------
6923
6924 * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
6925 * [Fix inlined renamed re-exports in import lists](https://github.com/rust-lang/rust/pull/34479)
6926 * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
6927 * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
6928 * [Fix redirect pages for renamed re-exports](https://github.com/rust-lang/rust/pull/34245)
6929
6930 Tooling
6931 -------
6932
6933 * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
6934 * [When emitting debug info, rustc emits frame pointers for closures,
6935   shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
6936 * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
6937 * Many more errors have been given error codes and extended
6938   explanations
6939 * API documentation continues to be improved, with many new examples
6940
6941 Misc
6942 ----
6943
6944 * [rustc no longer hangs when dependencies recursively re-export
6945   submodules](https://github.com/rust-lang/rust/pull/34542)
6946 * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
6947 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
6948   rewritten](https://github.com/rust-lang/rust/pull/33895)
6949 * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
6950   No targets use this yet, but it works toward AVR support.
6951
6952 Compatibility Notes
6953 -------------------
6954
6955 * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
6956 * [The new follow-set rules that place restrictions on `macro_rules!`
6957   in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
6958   This was an [amendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
6959   and has been a warning since 1.10.
6960 * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
6961   This causes breakage in some corner cases.
6962
6963
6964 Version 1.10.0 (2016-07-07)
6965 ===========================
6966
6967 Language
6968 --------
6969
6970 * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
6971   [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
6972 * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
6973 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
6974 * [`panic!` can be converted to a runtime abort with the
6975   `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
6976   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
6977 * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
6978   cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
6979   [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md).
6980   Note that Cargo does not yet directly support cdylibs.
6981
6982 Stabilized APIs
6983 ---------------
6984
6985 * `os::windows::fs::OpenOptionsExt::access_mode`
6986 * `os::windows::fs::OpenOptionsExt::share_mode`
6987 * `os::windows::fs::OpenOptionsExt::custom_flags`
6988 * `os::windows::fs::OpenOptionsExt::attributes`
6989 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
6990 * `os::unix::fs::OpenOptionsExt::custom_flags`
6991 * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
6992 * `Default for sync::Weak`
6993 * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
6994 * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
6995 * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
6996 * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
6997 * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
6998 * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
6999 * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
7000 * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
7001 * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
7002 * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
7003 * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
7004 * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
7005 * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
7006 * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
7007 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
7008 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
7009 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
7010 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
7011 * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
7012 * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
7013 * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
7014 * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
7015 * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
7016 * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
7017 * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
7018 * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7019 * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7020 * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7021 * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7022 * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
7023 * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
7024 * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
7025 * Read/Write/RawFd impls for `UnixStream`
7026 * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
7027 * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
7028 * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
7029 * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
7030 * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
7031 * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
7032 * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
7033 * RawFd impls for `UnixListener`
7034 * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
7035 * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
7036 * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
7037 * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
7038 * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
7039 * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
7040 * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
7041 * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
7042 * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
7043 * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
7044 * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
7045 * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
7046 * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
7047 * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
7048 * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
7049 * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
7050 * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
7051 * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
7052 * RawFd impls for `UnixDatagram`
7053 * `{BTree,Hash}Map::values_mut`
7054 * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/std/primitive.slice.html#method.binary_search_by_key)
7055
7056 Libraries
7057 ---------
7058
7059 * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
7060   The semantics of this minor method are subtle and probably not what
7061   most people want.
7062 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
7063 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
7064   will fall back to `/dev/urandom` temporarily to avoid blocking
7065   during early boot](https://github.com/rust-lang/rust/pull/33086).
7066 * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
7067 * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
7068 * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
7069 * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
7070 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
7071 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
7072   `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
7073
7074 Cargo
7075 -----
7076 * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
7077   This controls the runtime behavior of the `panic!` macro
7078   and can be either "unwind" (the default), or "abort".
7079   [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7080 * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
7081 * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
7082 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
7083   variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
7084 * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
7085 * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
7086 * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
7087   By default they are retried twice, which can be customized with the
7088   `net.retry` value in `.cargo/config`.
7089 * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
7090 * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
7091 * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
7092 * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
7093   Makes it possible to install multiple crates in parallel.
7094 * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
7095 * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
7096 * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
7097 * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
7098 * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
7099 * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
7100
7101 Performance
7102 -----------
7103
7104 * [rustc memory usage was reduced by refactoring the context used for
7105   type checking](https://github.com/rust-lang/rust/pull/33425).
7106 * [Speed up creation of `HashMap`s by caching the random keys used
7107   to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
7108 * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
7109 * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
7110 * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
7111   10x faster than the previous lookup tables.
7112 * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
7113
7114 Usability
7115 ---------
7116
7117 * Many incremental improvements to documentation and rustdoc.
7118 * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
7119 * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
7120 * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
7121 * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
7122 * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
7123 * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
7124 * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
7125
7126 Misc
7127 ----
7128
7129 * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
7130 * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
7131 * [`std` no longer prints backtraces on platforms where the running
7132   module must be loaded with `env::current_exe`, which can't be relied
7133   on](https://github.com/rust-lang/rust/pull/33554).
7134 * This release includes std binaries for the i586-unknown-linux-gnu,
7135   i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
7136   i586 target is for old x86 hardware without SSE2, and the armv7
7137   target is for Android running on modern ARM architectures.
7138 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
7139   Unix platforms](https://github.com/rust-lang/rust/pull/32835).
7140 * [On Unix the runtime aborts by calling `libc::abort` instead of
7141   generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
7142 * [Rust is now bootstrapped from the previous release of Rust,
7143   instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
7144
7145 Compatibility Notes
7146 -------------------
7147
7148 * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
7149 * [`target_env` for Linux ARM targets is just `gnu`, not
7150   `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
7151 * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
7152 * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
7153 * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
7154   Affects how macros are parsed.
7155 * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
7156 * [Feature-gated attributes on macro-generated macro invocations are
7157   now rejected](https://github.com/rust-lang/rust/pull/32791).
7158 * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
7159   This caused some minor changes to type inference.
7160
7161
7162 Version 1.9.0 (2016-05-26)
7163 ==========================
7164
7165 Language
7166 --------
7167
7168 * The `#[deprecated]` attribute when applied to an API will generate
7169   warnings when used. The warnings may be suppressed with
7170   `#[allow(deprecated)]`. [RFC 1270].
7171 * [`fn` item types are zero sized, and each `fn` names a unique
7172   type][1.9fn]. This will break code that transmutes `fn`s, so calling
7173   `transmute` on a `fn` type will generate a warning for a few cycles,
7174   then will be converted to an error.
7175 * [Field and method resolution understand visibility, so private
7176   fields and methods cannot prevent the proper use of public fields
7177   and methods][1.9fv].
7178 * [The parser considers unicode codepoints in the
7179   `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
7180
7181 Stabilized APIs
7182 ---------------
7183
7184 * [`std::panic`]
7185 * [`std::panic::catch_unwind`] (renamed from `recover`)
7186 * [`std::panic::resume_unwind`] (renamed from `propagate`)
7187 * [`std::panic::AssertUnwindSafe`] (renamed from `AssertRecoverSafe`)
7188 * [`std::panic::UnwindSafe`] (renamed from `RecoverSafe`)
7189 * [`str::is_char_boundary`]
7190 * [`<*const T>::as_ref`]
7191 * [`<*mut T>::as_ref`]
7192 * [`<*mut T>::as_mut`]
7193 * [`AsciiExt::make_ascii_uppercase`]
7194 * [`AsciiExt::make_ascii_lowercase`]
7195 * [`char::decode_utf16`]
7196 * [`char::DecodeUtf16`]
7197 * [`char::DecodeUtf16Error`]
7198 * [`char::DecodeUtf16Error::unpaired_surrogate`]
7199 * [`BTreeSet::take`]
7200 * [`BTreeSet::replace`]
7201 * [`BTreeSet::get`]
7202 * [`HashSet::take`]
7203 * [`HashSet::replace`]
7204 * [`HashSet::get`]
7205 * [`OsString::with_capacity`]
7206 * [`OsString::clear`]
7207 * [`OsString::capacity`]
7208 * [`OsString::reserve`]
7209 * [`OsString::reserve_exact`]
7210 * [`OsStr::is_empty`]
7211 * [`OsStr::len`]
7212 * [`std::os::unix::thread`]
7213 * [`RawPthread`]
7214 * [`JoinHandleExt`]
7215 * [`JoinHandleExt::as_pthread_t`]
7216 * [`JoinHandleExt::into_pthread_t`]
7217 * [`HashSet::hasher`]
7218 * [`HashMap::hasher`]
7219 * [`CommandExt::exec`]
7220 * [`File::try_clone`]
7221 * [`SocketAddr::set_ip`]
7222 * [`SocketAddr::set_port`]
7223 * [`SocketAddrV4::set_ip`]
7224 * [`SocketAddrV4::set_port`]
7225 * [`SocketAddrV6::set_ip`]
7226 * [`SocketAddrV6::set_port`]
7227 * [`SocketAddrV6::set_flowinfo`]
7228 * [`SocketAddrV6::set_scope_id`]
7229 * [`slice::copy_from_slice`]
7230 * [`ptr::read_volatile`]
7231 * [`ptr::write_volatile`]
7232 * [`OpenOptions::create_new`]
7233 * [`TcpStream::set_nodelay`]
7234 * [`TcpStream::nodelay`]
7235 * [`TcpStream::set_ttl`]
7236 * [`TcpStream::ttl`]
7237 * [`TcpStream::set_only_v6`]
7238 * [`TcpStream::only_v6`]
7239 * [`TcpStream::take_error`]
7240 * [`TcpStream::set_nonblocking`]
7241 * [`TcpListener::set_ttl`]
7242 * [`TcpListener::ttl`]
7243 * [`TcpListener::set_only_v6`]
7244 * [`TcpListener::only_v6`]
7245 * [`TcpListener::take_error`]
7246 * [`TcpListener::set_nonblocking`]
7247 * [`UdpSocket::set_broadcast`]
7248 * [`UdpSocket::broadcast`]
7249 * [`UdpSocket::set_multicast_loop_v4`]
7250 * [`UdpSocket::multicast_loop_v4`]
7251 * [`UdpSocket::set_multicast_ttl_v4`]
7252 * [`UdpSocket::multicast_ttl_v4`]
7253 * [`UdpSocket::set_multicast_loop_v6`]
7254 * [`UdpSocket::multicast_loop_v6`]
7255 * [`UdpSocket::set_multicast_ttl_v6`]
7256 * [`UdpSocket::multicast_ttl_v6`]
7257 * [`UdpSocket::set_ttl`]
7258 * [`UdpSocket::ttl`]
7259 * [`UdpSocket::set_only_v6`]
7260 * [`UdpSocket::only_v6`]
7261 * [`UdpSocket::join_multicast_v4`]
7262 * [`UdpSocket::join_multicast_v6`]
7263 * [`UdpSocket::leave_multicast_v4`]
7264 * [`UdpSocket::leave_multicast_v6`]
7265 * [`UdpSocket::take_error`]
7266 * [`UdpSocket::connect`]
7267 * [`UdpSocket::send`]
7268 * [`UdpSocket::recv`]
7269 * [`UdpSocket::set_nonblocking`]
7270
7271 Libraries
7272 ---------
7273
7274 * [`std::sync::Once` is poisoned if its initialization function
7275   fails][1.9o].
7276 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
7277 * [Most types implement `fmt::Debug`][1.9db].
7278 * [The default buffer size used by `BufReader` and `BufWriter` was
7279   reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
7280   used by other languages.
7281 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
7282   `Duration` additionally implements `*=` and `/=`][1.9ta].
7283 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
7284 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
7285 * [`Chain` implements `BufRead`][1.9ch].
7286 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
7287
7288 Cargo
7289 -----
7290
7291 * [Cargo can now run concurrently][1.9cc].
7292 * [Top-level overrides allow specific revisions of crates to be
7293   overridden through the entire crate graph][1.9ct].  This is intended
7294   to make upgrades easier for large projects, by allowing crates to be
7295   forked temporarily until they've been upgraded and republished.
7296 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
7297 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
7298   on the commandline][1.9cf]. `rustc` arguments can also be specified
7299   in the `build.rustflags` configuration key.
7300
7301 Performance
7302 -----------
7303
7304 * [The time complexity of comparing variables for equivalence during type
7305   unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
7306   to major compilation time improvement in some scenarios.
7307 * [`ToString` is specialized for `str`, giving it the same performance
7308   as `to_owned`][1.9ts].
7309 * [Spawning processes with `Command::output` no longer creates extra
7310   threads][1.9sp].
7311 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
7312   for C-like enums][1.9cl].
7313
7314 Misc
7315 ----
7316
7317 * [Passing the `--quiet` flag to a test runner will produce
7318   much-abbreviated output][1.9q].
7319 * The Rust Project now publishes std binaries for the
7320   `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
7321   `i586-pc-windows-msvc` targets.
7322
7323 Compatibility Notes
7324 -------------------
7325
7326 * [`std::sync::Once` is poisoned if its initialization function
7327   fails][1.9o].
7328 * [It is illegal to define methods with the same name in overlapping
7329   inherent `impl` blocks][1.9sn].
7330 * [`fn` item types are zero sized, and each `fn` names a unique
7331   type][1.9fn]. This will break code that transmutes `fn`s, so calling
7332   `transmute` on a `fn` type will generate a warning for a few cycles,
7333   then will be converted to an error.
7334 * [Improvements to const evaluation may trigger new errors when integer
7335   literals are out of range][1.9ce].
7336
7337
7338 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
7339 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
7340 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
7341 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
7342 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
7343 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
7344 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
7345 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
7346 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
7347 [1.9db]: https://github.com/rust-lang/rust/pull/32054
7348 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
7349 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
7350 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
7351 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
7352 [1.9o]: https://github.com/rust-lang/rust/pull/32325
7353 [1.9q]: https://github.com/rust-lang/rust/pull/31887
7354 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
7355 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
7356 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
7357 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
7358 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
7359 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
7360 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
7361 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
7362 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
7363 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
7364 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
7365 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
7366 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
7367 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
7368 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
7369 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
7370 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
7371 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
7372 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
7373 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
7374 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
7375 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
7376 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
7377 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
7378 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
7379 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
7380 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
7381 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
7382 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
7383 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
7384 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
7385 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
7386 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
7387 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
7388 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
7389 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
7390 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
7391 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
7392 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
7393 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
7394 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
7395 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
7396 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
7397 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
7398 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
7399 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
7400 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
7401 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
7402 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
7403 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
7404 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
7405 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
7406 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
7407 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
7408 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
7409 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
7410 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
7411 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
7412 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
7413 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
7414 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
7415 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
7416 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
7417 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
7418 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
7419 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
7420 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
7421 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
7422 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
7423 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
7424 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
7425 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
7426 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
7427 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
7428 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
7429 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
7430 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
7431 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
7432 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
7433 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
7434 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
7435 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
7436 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
7437 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
7438 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
7439 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
7440 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
7441 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
7442 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
7443 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
7444 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
7445 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
7446 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
7447 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
7448
7449
7450 Version 1.8.0 (2016-04-14)
7451 ==========================
7452
7453 Language
7454 --------
7455
7456 * Rust supports overloading of compound assignment statements like
7457   `+=` by implementing the [`AddAssign`], [`SubAssign`],
7458   [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
7459   [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
7460   traits. [RFC 953].
7461 * Empty structs can be defined with braces, as in `struct Foo { }`, in
7462   addition to the non-braced form, `struct Foo;`. [RFC 218].
7463
7464 Libraries
7465 ---------
7466
7467 * Stabilized APIs:
7468   * [`str::encode_utf16`] (renamed from `utf16_units`)
7469   * [`str::EncodeUtf16`] (renamed from `Utf16Units`)
7470   * [`Ref::map`]
7471   * [`RefMut::map`]
7472   * [`ptr::drop_in_place`]
7473   * [`time::Instant`]
7474   * [`time::SystemTime`]
7475   * [`Instant::now`]
7476   * [`Instant::duration_since`] (renamed from `duration_from_earlier`)
7477   * [`Instant::elapsed`]
7478   * [`SystemTime::now`]
7479   * [`SystemTime::duration_since`] (renamed from `duration_from_earlier`)
7480   * [`SystemTime::elapsed`]
7481   * Various `Add`/`Sub` impls for `Time` and `SystemTime`
7482   * [`SystemTimeError`]
7483   * [`SystemTimeError::duration`]
7484   * Various impls for `SystemTimeError`
7485   * [`UNIX_EPOCH`]
7486   * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
7487     [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
7488     [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
7489 * [The `write!` and `writeln!` macros correctly emit errors if any of
7490   their arguments can't be formatted][1.8w].
7491 * [Various I/O functions support large files on 32-bit Linux][1.8l].
7492 * [The Unix-specific `raw` modules, which contain a number of
7493   redefined C types are deprecated][1.8r], including `os::raw::unix`,
7494   `os::raw::macos`, and `os::raw::linux`. These modules defined types
7495   such as `ino_t` and `dev_t`. The inconsistency of these definitions
7496   across platforms was making it difficult to implement `std`
7497   correctly. Those that need these definitions should use the `libc`
7498   crate. [RFC 1415].
7499 * The Unix-specific `MetadataExt` traits, including
7500   `os::unix::fs::MetadataExt`, which expose values such as inode
7501   numbers [no longer return platform-specific types][1.8r], but
7502   instead return widened integers. [RFC 1415].
7503 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
7504 * [Atomic loads and stores are not volatile][1.8a].
7505 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
7506
7507 Performance
7508 -----------
7509
7510 * [Inlining hash functions lead to a 3% compile-time improvement in
7511   some workloads][1.8h].
7512 * When using jemalloc, its symbols are [unprefixed so that it
7513   overrides the libc malloc implementation][1.8h]. This means that for
7514   rustc, LLVM is now using jemalloc, which results in a 6%
7515   compile-time improvement on a specific workload.
7516 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
7517
7518 Misc
7519 ----
7520
7521 * [32-bit MSVC builds finally implement unwinding][1.8ms].
7522   i686-pc-windows-msvc is now considered a tier-1 platform.
7523 * [The `--print targets` flag prints a list of supported targets][1.8t].
7524 * [The `--print cfg` flag prints the `cfg`s defined for the current
7525   target][1.8cf].
7526 * [`rustc` can be built with an new Cargo-based build system, written
7527   in Rust][1.8b].  It will eventually replace Rust's Makefile-based
7528   build system. To enable it configure with `configure --rustbuild`.
7529 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
7530   variants while also indicating the total number of missing variants
7531   if more than 3][1.8m].
7532 * [Executable stacks are disabled on Linux and BSD][1.8nx].
7533 * The Rust Project now publishes binary releases of the standard
7534   library for a number of tier-2 targets:
7535   `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
7536   `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
7537   `x86_64-rumprun-netbsd`. These can be installed with
7538   tools such as [multirust][1.8mr].
7539
7540 Cargo
7541 -----
7542
7543 * [`cargo init` creates a new Cargo project in the current
7544   directory][1.8ci].  It is otherwise like `cargo new`.
7545 * [Cargo has configuration keys for `-v` and
7546   `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
7547   `[term]` section of `.cargo/config`.
7548 * [Configuration keys that evaluate to strings or integers can be set
7549   via environment variables][1.8ce]. For example the `build.jobs` key
7550   can be set via `CARGO_BUILD_JOBS`. Environment variables take
7551   precedence over config files.
7552 * [Target-specific dependencies support Rust `cfg` syntax for
7553   describing targets][1.8cfg] so that dependencies for multiple
7554   targets can be specified together. [RFC 1361].
7555 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
7556   `RUSTDOC` take precedence over the `build.target-dir`,
7557   `build.rustc`, and `build.rustdoc` configuration values][1.8cv].
7558 * [The child process tree is killed on Windows when Cargo is
7559   killed][1.8ck].
7560 * [The `build.target` configuration value sets the target platform,
7561   like `--target`][1.8ct].
7562
7563 Compatibility Notes
7564 -------------------
7565
7566 * [Unstable compiler flags have been further restricted][1.8u]. Since
7567   1.0 `-Z` flags have been considered unstable, and other flags that
7568   were considered unstable additionally required passing `-Z
7569   unstable-options` to access. Unlike unstable language and library
7570   features though, these options have been accessible on the stable
7571   release channel. Going forward, *new unstable flags will not be
7572   available on the stable release channel*, and old unstable flags
7573   will warn about their usage. In the future, all unstable flags will
7574   be unavailable on the stable release channel.
7575 * [It is no longer possible to `match` on empty enum variants using
7576   the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
7577 * The Unix-specific `MetadataExt` traits, including
7578   `os::unix::fs::MetadataExt`, which expose values such as inode
7579   numbers [no longer return platform-specific types][1.8r], but
7580   instead return widened integers. [RFC 1415].
7581 * [Modules sourced from the filesystem cannot appear within arbitrary
7582   blocks, but only within other modules][1.8mf].
7583 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
7584 * On Unix, [stack overflow triggers a runtime abort instead of a
7585   SIGSEGV][1.8so].
7586 * [`Command::spawn` and its equivalents return an error if any of
7587   its command-line arguments contain interior `NUL`s][1.8n].
7588 * [Tuple and unit enum variants from other crates are in the type
7589   namespace][1.8tn].
7590 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
7591   type instead of `.a` files][1.8st]. Additionally, for the MSVC
7592   toolchain, `rustc` emits import libraries named `foo.dll.lib`
7593   instead of `foo.lib`.
7594
7595
7596 [1.8a]: https://github.com/rust-lang/rust/pull/30962
7597 [1.8b]: https://github.com/rust-lang/rust/pull/31123
7598 [1.8c]: https://github.com/rust-lang/rust/pull/31530
7599 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
7600 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
7601 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
7602 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
7603 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
7604 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
7605 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
7606 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
7607 [1.8cv]: https://github.com/rust-lang/cargo/issues/2365
7608 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
7609 [1.8h]: https://github.com/rust-lang/rust/pull/31460
7610 [1.8l]: https://github.com/rust-lang/rust/pull/31668
7611 [1.8m]: https://github.com/rust-lang/rust/pull/31020
7612 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
7613 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
7614 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
7615 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
7616 [1.8n]: https://github.com/rust-lang/rust/pull/31056
7617 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
7618 [1.8r]: https://github.com/rust-lang/rust/pull/31551
7619 [1.8so]: https://github.com/rust-lang/rust/pull/31333
7620 [1.8st]: https://github.com/rust-lang/rust/pull/29520
7621 [1.8t]: https://github.com/rust-lang/rust/pull/31358
7622 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
7623 [1.8u]: https://github.com/rust-lang/rust/pull/31793
7624 [1.8v]: https://github.com/rust-lang/rust/pull/31757
7625 [1.8w]: https://github.com/rust-lang/rust/pull/31904
7626 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
7627 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
7628 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
7629 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
7630 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
7631 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
7632 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
7633 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
7634 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
7635 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
7636 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
7637 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
7638 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
7639 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
7640 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
7641 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
7642 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
7643 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
7644 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
7645 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
7646 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
7647 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
7648 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
7649 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
7650 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
7651 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
7652 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
7653 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
7654 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
7655 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
7656
7657
7658 Version 1.7.0 (2016-03-03)
7659 ==========================
7660
7661 Libraries
7662 ---------
7663
7664 * Stabilized APIs
7665   * `Path`
7666     * [`Path::strip_prefix`] (renamed from relative_from)
7667     * [`path::StripPrefixError`] (new error type returned from strip_prefix)
7668   * `Ipv4Addr`
7669     * [`Ipv4Addr::is_loopback`]
7670     * [`Ipv4Addr::is_private`]
7671     * [`Ipv4Addr::is_link_local`]
7672     * [`Ipv4Addr::is_multicast`]
7673     * [`Ipv4Addr::is_broadcast`]
7674     * [`Ipv4Addr::is_documentation`]
7675   * `Ipv6Addr`
7676     * [`Ipv6Addr::is_unspecified`]
7677     * [`Ipv6Addr::is_loopback`]
7678     * [`Ipv6Addr::is_multicast`]
7679   * `Vec`
7680     * [`Vec::as_slice`]
7681     * [`Vec::as_mut_slice`]
7682   * `String`
7683     * [`String::as_str`]
7684     * [`String::as_mut_str`]
7685   * Slices
7686     * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
7687     be the same length
7688     * `<[T]>::`[`sort_by_key`]
7689   * checked, saturated, and overflowing operations
7690     * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
7691     * [`i32::saturating_mul`]
7692     * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
7693     * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
7694     * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
7695     * [`u32::saturating_mul`]
7696     * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
7697     * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
7698     * and checked, saturated, and overflowing operations for other primitive types
7699   * FFI
7700     * [`ffi::IntoStringError`]
7701     * [`CString::into_string`]
7702     * [`CString::into_bytes`]
7703     * [`CString::into_bytes_with_nul`]
7704     * `From<CString> for Vec<u8>`
7705   * `IntoStringError`
7706     * [`IntoStringError::into_cstring`]
7707     * [`IntoStringError::utf8_error`]
7708     * `Error for IntoStringError`
7709   * Hashing
7710     * [`std::hash::BuildHasher`]
7711     * [`BuildHasher::Hasher`]
7712     * [`BuildHasher::build_hasher`]
7713     * [`std::hash::BuildHasherDefault`]
7714     * [`HashMap::with_hasher`]
7715     * [`HashMap::with_capacity_and_hasher`]
7716     * [`HashSet::with_hasher`]
7717     * [`HashSet::with_capacity_and_hasher`]
7718     * [`std::collections::hash_map::RandomState`]
7719     * [`RandomState::new`]
7720 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
7721   ASCII input][1.7utf8]. This means that creating `String`s and `str`s
7722   from bytes is faster.
7723 * [The performance of `LineWriter` (and thus `io::stdout`) was
7724   improved by using `memchr` to search for newlines][1.7m].
7725 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
7726   `f64` variants were stabilized previously.
7727 * [`BTreeMap` was rewritten to use less memory and improve the performance
7728   of insertion and iteration, the latter by as much as 5x][1.7bm].
7729 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
7730   covariant over their contained type][1.7bt].
7731 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
7732   over their contained type][1.7ll].
7733 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
7734   searching methods.
7735 * [`Any` is implemented for unsized types][1.7a].
7736 * [`Hash` is implemented for `Duration`][1.7h].
7737
7738 Misc
7739 ----
7740
7741 * [When running tests with `--test`, rustdoc will pass `--cfg`
7742   arguments to the compiler][1.7dt].
7743 * [The compiler is built with RPATH information by default][1.7rpa].
7744   This means that it will be possible to run `rustc` when installed in
7745   unusual configurations without configuring the dynamic linker search
7746   path explicitly.
7747 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
7748   any RPATH entries (emitted with `-C rpath`) *not* take precedence
7749   over `LD_LIBRARY_PATH`.
7750
7751 Cargo
7752 -----
7753
7754 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
7755   any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
7756 * [The `rerun-if-changed` build script directive no longer causes the
7757   build script to incorrectly run twice in certain scenarios][1.7rr].
7758
7759 Compatibility Notes
7760 -------------------
7761
7762 * Soundness fixes to the interactions between associated types and
7763   lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
7764   code that violates the new rules. This is a significant change that
7765   is known to break existing code, so it has emitted warnings for the
7766   new error cases since 1.4 to give crate authors time to adapt. The
7767   details of what is changing are subtle; read the RFC for more.
7768 * [Several bugs in the compiler's visibility calculations were
7769   fixed][1.7v]. Since this was found to break significant amounts of
7770   code, the new errors will be emitted as warnings for several release
7771   cycles, under the `private_in_public` lint.
7772 * Defaulted type parameters were accidentally accepted in positions
7773   that were not intended. In this release, [defaulted type parameters
7774   appearing outside of type definitions will generate a
7775   warning][1.7d], which will become an error in future releases.
7776 * [Parsing "." as a float results in an error instead of 0][1.7p].
7777   That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
7778 * [Borrows of closure parameters may not outlive the closure][1.7bc].
7779
7780 [1.7a]: https://github.com/rust-lang/rust/pull/30928
7781 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
7782 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
7783 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
7784 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
7785 [1.7d]: https://github.com/rust-lang/rust/pull/30724
7786 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
7787 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
7788 [1.7f]: https://github.com/rust-lang/rust/pull/30672
7789 [1.7h]: https://github.com/rust-lang/rust/pull/30818
7790 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
7791 [1.7m]: https://github.com/rust-lang/rust/pull/30381
7792 [1.7p]: https://github.com/rust-lang/rust/pull/30681
7793 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
7794 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
7795 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
7796 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
7797 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
7798 [1.7v]: https://github.com/rust-lang/rust/pull/29973
7799 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
7800 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
7801 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
7802 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
7803 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
7804 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
7805 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
7806 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
7807 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
7808 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
7809 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
7810 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
7811 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
7812 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
7813 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
7814 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
7815 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
7816 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
7817 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
7818 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
7819 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
7820 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
7821 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
7822 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
7823 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
7824 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
7825 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
7826 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
7827 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
7828 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
7829 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
7830 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
7831 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
7832 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
7833 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
7834 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
7835 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
7836 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
7837 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
7838 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
7839 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
7840 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
7841 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
7842 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
7843 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
7844 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
7845 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
7846 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
7847 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
7848 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
7849 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
7850 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
7851 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
7852 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
7853 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
7854 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
7855 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
7856 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
7857 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
7858 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
7859
7860
7861 Version 1.6.0 (2016-01-21)
7862 ==========================
7863
7864 Language
7865 --------
7866
7867 * The `#![no_std]` attribute causes a crate to not be linked to the
7868   standard library, but only the [core library][1.6co], as described
7869   in [RFC 1184]. The core library defines common types and traits but
7870   has no platform dependencies whatsoever, and is the basis for Rust
7871   software in environments that cannot support a full port of the
7872   standard library, such as operating systems. Most of the core
7873   library is now stable.
7874
7875 Libraries
7876 ---------
7877
7878 * Stabilized APIs:
7879   [`Read::read_exact`],
7880   [`ErrorKind::UnexpectedEof`] (renamed from `UnexpectedEOF`),
7881   [`fs::DirBuilder`], [`fs::DirBuilder::new`],
7882   [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
7883   [`os::unix::fs::DirBuilderExt`],
7884   [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
7885   [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
7886   [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
7887   [`collections::hash_map::Drain`],
7888   [`collections::hash_map::HashMap::drain`],
7889   [`collections::hash_set::Drain`],
7890   [`collections::hash_set::HashSet::drain`],
7891   [`collections::binary_heap::Drain`],
7892   [`collections::binary_heap::BinaryHeap::drain`],
7893   [`Vec::extend_from_slice`] (renamed from `push_all`),
7894   [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
7895   [`RwLock::into_inner`],
7896   [`Iterator::min_by_key`] (renamed from `min_by`),
7897   [`Iterator::max_by_key`] (renamed from `max_by`).
7898 * The [core library][1.6co] is stable, as are most of its APIs.
7899 * [The `assert_eq!` macro supports arguments that don't implement
7900   `Sized`][1.6ae], such as arrays. In this way it behaves more like
7901   `assert!`.
7902 * Several timer functions that take duration in milliseconds [are
7903   deprecated in favor of those that take `Duration`][1.6ms]. These
7904   include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
7905   `thread::park_timeout_ms`.
7906 * The algorithm by which `Vec` reserves additional elements was
7907   [tweaked to not allocate excessive space][1.6a] while still growing
7908   exponentially.
7909 * `From` conversions are [implemented from integers to floats][1.6f]
7910   in cases where the conversion is lossless. Thus they are not
7911   implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
7912   or `f64`. They are also not implemented for `isize` and `usize`
7913   because the implementations would be platform-specific. `From` is
7914   also implemented from `f32` to `f64`.
7915 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
7916 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
7917 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
7918 * [`BinaryHeap` was refactored][1.6bh] for modest performance
7919   improvements.
7920 * Sorting slices that are already sorted [is 50% faster in some
7921   cases][1.6s].
7922
7923 Cargo
7924 -----
7925
7926 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
7927 * Cargo build scripts can specify their dependencies by emitting the
7928   [`rerun-if-changed`][1.6rr] key.
7929 * crates.io will reject publication of crates with dependencies that
7930   have a wildcard version constraint. Crates with wildcard
7931   dependencies were seen to cause a variety of problems, as described
7932   in [RFC 1241]. Since 1.5 publication of such crates has emitted a
7933   warning.
7934 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
7935   release folder.  A variety of artifacts that Cargo failed to clean
7936   are now correctly deleted.
7937
7938 Misc
7939 ----
7940
7941 * The `unreachable_code` lint [warns when a function call's argument
7942   diverges][1.6dv].
7943 * The parser indicates [failures that may be caused by
7944   confusingly-similar Unicode characters][1.6uc]
7945 * Certain macro errors [are reported at definition time][1.6m], not
7946   expansion.
7947
7948 Compatibility Notes
7949 -------------------
7950
7951 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
7952   environment variable when locating crates. This was a pre-cargo
7953   feature for integrating with the package manager that was
7954   accidentally never removed.
7955 * [A number of bugs were fixed in the privacy checker][1.6p] that
7956   could cause previously-accepted code to break.
7957 * [Modules and unit/tuple structs may not share the same name][1.6ts].
7958 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
7959   struct pattern syntax (`Foo(..)`) can no longer be used to match
7960   unit structs. This is a warning now, but will become an error in
7961   future releases. Patterns that share the same name as a const are
7962   now an error.
7963 * A bug was fixed that causes [rustc not to apply default type
7964   parameters][1.6xc] when resolving certain method implementations of
7965   traits defined in other crates.
7966
7967 [1.6a]: https://github.com/rust-lang/rust/pull/29454
7968 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
7969 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
7970 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
7971 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
7972 [1.6co]: http://doc.rust-lang.org/core/index.html
7973 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
7974 [1.6f]: https://github.com/rust-lang/rust/pull/29129
7975 [1.6m]: https://github.com/rust-lang/rust/pull/29828
7976 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
7977 [1.6p]: https://github.com/rust-lang/rust/pull/29726
7978 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
7979 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
7980 [1.6s]: https://github.com/rust-lang/rust/pull/29675
7981 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
7982 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
7983 [1.6us]: https://github.com/rust-lang/rust/pull/29383
7984 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
7985 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
7986 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
7987 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
7988 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
7989 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
7990 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
7991 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
7992 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
7993 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
7994 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
7995 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
7996 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
7997 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
7998 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
7999 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
8000 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
8001 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
8002 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
8003 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
8004 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
8005 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
8006 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
8007 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
8008 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
8009 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
8010 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
8011 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
8012 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
8013 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
8014
8015
8016 Version 1.5.0 (2015-12-10)
8017 ==========================
8018
8019 * ~700 changes, numerous bugfixes
8020
8021 Highlights
8022 ----------
8023
8024 * Stabilized APIs:
8025   [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
8026   [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
8027   [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
8028   [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
8029   [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
8030   [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
8031   [`Formatter::sign_minus`], [`Formatter::sign_plus`],
8032   [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
8033   [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
8034   [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
8035   [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
8036   [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
8037   [`Path::read_link`], [`Path::symlink_metadata`],
8038   [`Utf8Error::valid_up_to`], [`Vec::resize`],
8039   [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
8040   [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
8041   [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
8042   [`slice::split_first_mut`], [`slice::split_first`],
8043   [`slice::split_last_mut`], [`slice::split_last`],
8044   [`char::from_u32_unchecked`], [`fs::canonicalize`],
8045   [`str::MatchIndices`], [`str::RMatchIndices`],
8046   [`str::match_indices`], [`str::rmatch_indices`],
8047   [`str::slice_mut_unchecked`], [`string::ParseError`].
8048 * Rust applications hosted on crates.io can be installed locally to
8049   `~/.cargo/bin` with the [`cargo install`] command. Among other
8050   things this makes it easier to augment Cargo with new subcommands:
8051   when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
8052   invoked as `cargo foo`.
8053 * Crates with wildcard (`*`) dependencies will [emit warnings when
8054   published][1.5w]. In 1.6 it will no longer be possible to publish
8055   crates with wildcard dependencies.
8056
8057 Breaking Changes
8058 ----------------
8059
8060 * The rules determining when a particular lifetime must outlive
8061   a particular value (known as '[dropck]') have been [modified
8062   to not rely on parametricity][1.5p].
8063 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
8064   and `Arc`][1.5a]. Because these smart pointer types implement
8065   `Deref`, this causes breakage in cases where the interior type
8066   contains methods of the same name.
8067 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
8068   that they could drop their content. Soundness fix.
8069 * All method invocations are [properly checked][1.5wf1] for
8070   [well-formedness][1.5wf2]. Soundness fix.
8071 * Traits whose supertraits contain `Self` are [not object
8072   safe][1.5o]. Soundness fix.
8073 * Target specifications support a [`no_default_libraries`][1.5nd]
8074   setting that controls whether `-nodefaultlibs` is passed to the
8075   linker, and in turn the `is_like_windows` setting no longer affects
8076   the `-nodefaultlibs` flag.
8077 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
8078 * The `#[inline]` and `#[repr]` attributes [can only appear
8079   in valid locations][1.5at].
8080 * Native libraries linked from the local crate are [passed to
8081   the linker before native libraries from upstream crates][1.5nl].
8082 * Two rarely-used attributes, `#[no_debug]` and
8083   `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
8084 * Negation of unsigned integers, which has been a warning for
8085   several releases, [is now behind a feature gate and will
8086   generate errors][1.5nu].
8087 * The parser accidentally accepted visibility modifiers on
8088   enum variants, a bug [which has been fixed][1.5ev].
8089 * [A bug was fixed that allowed `use` statements to import unstable
8090   features][1.5use].
8091
8092 Language
8093 --------
8094
8095 * When evaluating expressions at compile-time that are not
8096   compile-time constants (const-evaluating expressions in non-const
8097   contexts), incorrect code such as overlong bitshifts and arithmetic
8098   overflow will [generate a warning instead of an error][1.5ce],
8099   delaying the error until runtime. This will allow the
8100   const-evaluator to be expanded in the future backwards-compatibly.
8101 * The `improper_ctypes` lint [no longer warns about using `isize` and
8102   `usize` in FFI][1.5ict].
8103
8104 Libraries
8105 ---------
8106
8107 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
8108   invariant][1.5c].
8109 * `Default` is [implemented for mutable slices][1.5d].
8110 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
8111 * There are now `From` conversions [between floating point
8112   types][1.5f] where the conversions are lossless.
8113 * There are now `From` conversions [between integer types][1.5i] where
8114   the conversions are lossless.
8115 * [`fs::Metadata` implements `Clone`][1.5fs].
8116 * The `parse` method [accepts a leading "+" when parsing
8117   integers][1.5pi].
8118 * [`AsMut` is implemented for `Vec`][1.5am].
8119 * The `clone_from` implementations for `String` and `BinaryHeap` [have
8120   been optimized][1.5cf] and no longer rely on the default impl.
8121 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
8122   `unsafe extern "C"` function types now [implement `Clone`,
8123   `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
8124   `fmt::Debug` for up to 12 arguments][1.5fp].
8125 * [Dropping `Vec`s is much faster in unoptimized builds when the
8126   element types don't implement `Drop`][1.5dv].
8127 * A bug that caused in incorrect behavior when [combining `VecDeque`
8128   with zero-sized types][1.5vdz] was resolved.
8129 * [`PartialOrd` for slices is faster][1.5po].
8130
8131 Miscellaneous
8132 -------------
8133
8134 * [Crate metadata size was reduced by 20%][1.5md].
8135 * [Improvements to code generation reduced the size of libcore by 3.3
8136   MB and rustc's memory usage by 18MB][1.5m].
8137 * [Improvements to deref translation increased performance in
8138   unoptimized builds][1.5dr].
8139 * Various errors in trait resolution [are deduplicated to only be
8140   reported once][1.5te].
8141 * Rust has preliminary [support for rumprun kernels][1.5rr].
8142 * Rust has preliminary [support for NetBSD on amd64][1.5na].
8143
8144 [1.5use]: https://github.com/rust-lang/rust/pull/28364
8145 [1.5po]: https://github.com/rust-lang/rust/pull/28436
8146 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
8147 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
8148 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
8149 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
8150 [1.5md]: https://github.com/rust-lang/rust/pull/28521
8151 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
8152 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
8153 [1.5na]: https://github.com/rust-lang/rust/pull/28543
8154 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
8155 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
8156 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
8157 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
8158 [1.5te]: https://github.com/rust-lang/rust/pull/28645
8159 [1.5at]: https://github.com/rust-lang/rust/pull/28650
8160 [1.5am]: https://github.com/rust-lang/rust/pull/28663
8161 [1.5m]: https://github.com/rust-lang/rust/pull/28778
8162 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
8163 [1.5a]: https://github.com/rust-lang/rust/pull/28811
8164 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
8165 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
8166 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
8167 [1.5i]: https://github.com/rust-lang/rust/pull/28921
8168 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
8169 [1.5f]: https://github.com/rust-lang/rust/pull/29129
8170 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
8171 [1.5s]: https://github.com/rust-lang/rust/pull/29190
8172 [1.5d]: https://github.com/rust-lang/rust/pull/29245
8173 [1.5o]: https://github.com/rust-lang/rust/pull/29259
8174 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
8175 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8176 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
8177 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
8178 [1.5c]: https://github.com/rust-lang/rust/pull/29110
8179 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
8180 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
8181 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
8182 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
8183 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
8184 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
8185 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
8186 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
8187 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
8188 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
8189 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
8190 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
8191 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
8192 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
8193 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
8194 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
8195 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
8196 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
8197 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
8198 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
8199 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
8200 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
8201 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
8202 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
8203 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
8204 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
8205 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
8206 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
8207 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
8208 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
8209 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
8210 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
8211 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
8212 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
8213 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
8214 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
8215 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
8216 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
8217 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
8218 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
8219 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
8220 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
8221 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
8222 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
8223 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
8224 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
8225 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
8226 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
8227 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
8228 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
8229 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
8230 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
8231 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
8232 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
8233
8234 Version 1.4.0 (2015-10-29)
8235 ==========================
8236
8237 * ~1200 changes, numerous bugfixes
8238
8239 Highlights
8240 ----------
8241
8242 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
8243   GNU) are now supported and recommended for use.
8244
8245 Breaking Changes
8246 ----------------
8247
8248 * [Several changes have been made to fix type soundness and improve
8249   the behavior of associated types][sound]. See [RFC 1214]. Although
8250   we have mostly introduced these changes as warnings this release, to
8251   become errors next release, there are still some scenarios that will
8252   see immediate breakage.
8253 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
8254   line breaks in addition to `\n`][crlf].
8255 * [Loans of `'static` lifetime extend to the end of a function][stat].
8256 * [`str::parse` no longer introduces avoidable rounding error when
8257   parsing floating point numbers. Together with earlier changes to
8258   float formatting/output, "round trips" like f.to_string().parse()
8259   now preserve the value of f exactly. Additionally, leading plus
8260   signs are now accepted][fp3].
8261
8262
8263 Language
8264 --------
8265
8266 * `use` statements that import multiple items [can now rename
8267   them][i], as in `use foo::{bar as kitten, baz as puppy}`.
8268 * [Binops work correctly on fat pointers][binfat].
8269 * `pub extern crate`, which does not behave as expected, [issues a
8270   warning][pec] until a better solution is found.
8271
8272 Libraries
8273 ---------
8274
8275 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
8276   [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
8277   [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
8278   [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
8279   [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
8280   `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
8281   `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
8282   [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
8283   [`String::into_boxed_str`], [`TcpStream::read_timeout`],
8284   [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
8285   [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
8286   [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
8287   [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
8288   [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
8289   [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
8290   [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
8291   [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
8292   [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
8293   [`thread::sleep`].
8294 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
8295   `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
8296   `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
8297   `f64::from_str_radix`.
8298 * [Reverse-searching strings is faster with the 'two-way'
8299   algorithm][s].
8300 * [`std::io::copy` allows `?Sized` arguments][cc].
8301 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
8302   [override `count`, `nth` and `last` with an O(1)
8303   implementation][it].
8304 * [`Default` is implemented for arrays up to `[T; 32]`][d].
8305 * [`IntoRawFd` has been added to the Unix-specific prelude,
8306   `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
8307   prelude][pr].
8308 * [`Extend<String>` and `FromIterator<String` are both implemented for
8309   `String`][es].
8310 * [`IntoIterator` is implemented for references to `Option` and
8311   `Result`][into2].
8312 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
8313   Copy`][ext] as part of [RFC 839]. This will cause type inference
8314   breakage in rare situations.
8315 * [`BinaryHeap` implements `Debug`][bh2].
8316 * [`Borrow` and `BorrowMut` are implemented for fixed-size
8317   arrays][bm].
8318 * [`extern fn`s with the "Rust" and "C" ABIs implement common
8319   traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
8320 * [String comparison is faster][faststr].
8321 * `&mut T` where `T: std::fmt::Write` [also implements
8322   `std::fmt::Write`][mutw].
8323 * [A stable regression in `VecDeque::push_back` and other
8324   capacity-altering methods that caused panics for zero-sized types
8325   was fixed][vd].
8326 * [Function pointers implement traits for up to 12 parameters][fp2].
8327
8328 Miscellaneous
8329 -------------
8330
8331 * The compiler [no longer uses the 'morestack' feature to prevent
8332   stack overflow][mm]. Instead it uses guard pages and stack
8333   probes (though stack probes are not yet implemented on any platform
8334   but Windows).
8335 * [The compiler matches traits faster when projections are involved][p].
8336 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
8337   `usize`][ffi].
8338 * [Cargo now displays useful information about what its doing during
8339   `cargo update`][cu].
8340
8341 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
8342 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
8343 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
8344 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
8345 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
8346 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
8347 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
8348 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
8349 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
8350 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
8351 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
8352 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
8353 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
8354 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
8355 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
8356 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
8357 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
8358 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
8359 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
8360 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
8361 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
8362 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
8363 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
8364 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
8365 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
8366 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
8367 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
8368 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
8369 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
8370 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
8371 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
8372 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
8373 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
8374 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
8375 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
8376 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
8377 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
8378 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
8379 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
8380 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
8381 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
8382 [bh2]: https://github.com/rust-lang/rust/pull/28156
8383 [binfat]: https://github.com/rust-lang/rust/pull/28270
8384 [bm]: https://github.com/rust-lang/rust/pull/28197
8385 [cc]: https://github.com/rust-lang/rust/pull/27531
8386 [crlf]: https://github.com/rust-lang/rust/pull/28034
8387 [cu]: https://github.com/rust-lang/cargo/pull/1931
8388 [d]: https://github.com/rust-lang/rust/pull/27825
8389 [dep]: https://github.com/rust-lang/rust/pull/28339
8390 [es]: https://github.com/rust-lang/rust/pull/27956
8391 [ext]: https://github.com/rust-lang/rust/pull/28094
8392 [faststr]: https://github.com/rust-lang/rust/pull/28338
8393 [ffi]: https://github.com/rust-lang/rust/pull/28779
8394 [fp]: https://github.com/rust-lang/rust/pull/28268
8395 [fp2]: https://github.com/rust-lang/rust/pull/28560
8396 [fp3]: https://github.com/rust-lang/rust/pull/27307
8397 [i]: https://github.com/rust-lang/rust/pull/27451
8398 [into2]: https://github.com/rust-lang/rust/pull/28039
8399 [it]: https://github.com/rust-lang/rust/pull/27652
8400 [mm]: https://github.com/rust-lang/rust/pull/27338
8401 [mutw]: https://github.com/rust-lang/rust/pull/28368
8402 [sound]: https://github.com/rust-lang/rust/pull/27641
8403 [p]: https://github.com/rust-lang/rust/pull/27866
8404 [pec]: https://github.com/rust-lang/rust/pull/28486
8405 [pr]: https://github.com/rust-lang/rust/pull/27896
8406 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
8407 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8408 [s]: https://github.com/rust-lang/rust/pull/27474
8409 [stab]: https://github.com/rust-lang/rust/pull/28339
8410 [stat]: https://github.com/rust-lang/rust/pull/28321
8411 [vd]: https://github.com/rust-lang/rust/pull/28494
8412
8413 Version 1.3.0 (2015-09-17)
8414 ==============================
8415
8416 * ~900 changes, numerous bugfixes
8417
8418 Highlights
8419 ----------
8420
8421 * The [new object lifetime defaults][nold] have been [turned
8422   on][nold2] after a cycle of warnings about the change. Now types
8423   like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
8424   being interpreted as `&'a Box<Trait+'a>` to `&'a
8425   Box<Trait+'static>`.
8426 * [The Rustonomicon][nom] is a new book in the official documentation
8427   that dives into writing unsafe Rust.
8428 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
8429   timekeeping is employed by other std APIs, as well as out-of-tree
8430   time crates.
8431
8432 Breaking Changes
8433 ----------------
8434
8435 * The [new object lifetime defaults][nold] have been [turned
8436   on][nold2] after a cycle of warnings about the change.
8437 * There is a known [regression][lr] in how object lifetime elision is
8438   interpreted, the proper solution for which is undetermined.
8439 * The `#[prelude_import]` attribute, an internal implementation
8440   detail, was accidentally stabilized previously. [It has been put
8441   behind the `prelude_import` feature gate][pi]. This change is
8442   believed to break no existing code.
8443 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
8444   [more sane for dynamically sized types][dst3]. Code that relied on
8445   the previous behavior is thought to be broken.
8446 * The `dropck` rules, which checks that destructors can't access
8447   destroyed values, [have been updated][dropck] to match the
8448   [RFC][dropckrfc]. This fixes some soundness holes, and as such will
8449   cause some previously-compiling code to no longer build.
8450
8451 Language
8452 --------
8453
8454 * The [new object lifetime defaults][nold] have been [turned
8455   on][nold2] after a cycle of warnings about the change.
8456 * Semicolons may [now follow types and paths in
8457   macros](https://github.com/rust-lang/rust/pull/27000).
8458 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
8459   [more sane for dynamically sized types][dst3]. Code that relied on
8460   the previous behavior is not known to exist, and suspected to be
8461   broken.
8462 * `'static` variables [may now be recursive][st].
8463 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
8464   implementations correctly.
8465 * The `dropck` rules, which checks that destructors can't access
8466   destroyed values, [have been updated][dropck] to match the
8467   [RFC][dropckrfc].
8468
8469 Libraries
8470 ---------
8471
8472 * The [`Duration`] API, [has been stabilized][ds], as well as the
8473   `std::time` module, which presently contains only `Duration`.
8474 * `Box<str>` and `Box<[T]>` both implement `Clone`.
8475 * The owned C string, [`CString`], implements [`Borrow`] and the
8476   borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
8477   these allow C strings to be borrowed and cloned in generic code.
8478 * [`CStr`] implements [`Debug`].
8479 * [`AtomicPtr`] implements [`Debug`].
8480 * [`Error`] trait objects [can be downcast to their concrete types][e]
8481   in many common configurations, using the [`is`], [`downcast`],
8482   [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
8483   [`Any`] trait.
8484 * Searching for substrings now [employs the two-way algorithm][search]
8485   instead of doing a naive search. This gives major speedups to a
8486   number of methods, including [`contains`][sc], [`find`][sf],
8487   [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
8488   [`ends_with`][sew] are also faster.
8489 * The performance of `PartialEq` for slices is [much faster][ps].
8490 * The [`Hash`] trait offers the default method, [`hash_slice`], which
8491   is overridden and optimized by the implementations for scalars.
8492 * The [`Hasher`] trait now has a number of specialized `write_*`
8493   methods for primitive types, for efficiency.
8494 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
8495   methods for accessing the 'inner error', if any: [`get_ref`][iegr],
8496   [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
8497   of [`std::error::Error::cause`][iec] also delegates to the inner
8498   error.
8499 * [`process::Child`][pc] gained the [`id`] method, which returns a
8500   `u32` representing the platform-specific process identifier.
8501 * The [`connect`] method on slices is deprecated, replaced by the new
8502   [`join`] method (note that both of these are on the *unstable*
8503   [`SliceConcatExt`] trait, but through the magic of the prelude are
8504   available to stable code anyway).
8505 * The [`Div`] operator is implemented for [`Wrapping`] types.
8506 * [`DerefMut` is implemented for `String`][dms].
8507 * Performance of SipHash (the default hasher for `HashMap`) is
8508   [better for long data][sh].
8509 * [`AtomicPtr`] implements [`Send`].
8510 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
8511   are now [specialized to use uninitialized buffers for increased
8512   performance][rte].
8513 * Lifetime parameters of foreign functions [are now resolved
8514   properly][f].
8515
8516 Misc
8517 ----
8518
8519 * Rust can now, with some coercion, [produce programs that run on
8520   Windows XP][xp], though XP is not considered a supported platform.
8521 * Porting Rust on Windows from the GNU toolchain to MSVC continues
8522   ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
8523   recommended for use in 1.3, though should be fully-functional
8524   in the [64-bit 1.4 beta][b14].
8525 * On Fedora-based systems installation will [properly configure the
8526   dynamic linker][fl].
8527 * The compiler gained many new extended error descriptions, which can
8528   be accessed with the `--explain` flag.
8529 * The `dropck` pass, which checks that destructors can't access
8530   destroyed values, [has been rewritten][dropck]. This fixes some
8531   soundness holes, and as such will cause some previously-compiling
8532   code to no longer build.
8533 * `rustc` now uses [LLVM to write archive files where possible][ar].
8534   Eventually this will eliminate the compiler's dependency on the ar
8535   utility.
8536 * Rust has [preliminary support for i686 FreeBSD][fb] (it has long
8537   supported FreeBSD on x86_64).
8538 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
8539   [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
8540   more strict.
8541 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
8542   will kill the process instead of leaking][nlp].
8543
8544 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
8545 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
8546 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
8547 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
8548 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
8549 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
8550 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
8551 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
8552 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
8553 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
8554 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
8555 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
8556 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
8557 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
8558 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
8559 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
8560 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
8561 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
8562 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
8563 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
8564 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
8565 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
8566 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
8567 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
8568 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
8569 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
8570 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
8571 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
8572 [ar]: https://github.com/rust-lang/rust/pull/26926
8573 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
8574 [dms]: https://github.com/rust-lang/rust/pull/26241
8575 [dropck]: https://github.com/rust-lang/rust/pull/27261
8576 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
8577 [ds]: https://github.com/rust-lang/rust/pull/26818
8578 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
8579 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
8580 [dst3]: https://github.com/rust-lang/rust/pull/27351
8581 [e]: https://github.com/rust-lang/rust/pull/24793
8582 [f]: https://github.com/rust-lang/rust/pull/26588
8583 [fb]: https://github.com/rust-lang/rust/pull/26959
8584 [fl]: https://github.com/rust-lang/rust-installer/pull/41
8585 [hs]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
8586 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
8587 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
8588 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
8589 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
8590 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
8591 [lic]: https://github.com/rust-lang/rust/pull/26583
8592 [lnu]: https://github.com/rust-lang/rust/pull/27026
8593 [lr]: https://github.com/rust-lang/rust/issues/27248
8594 [lum]: https://github.com/rust-lang/rust/pull/26378
8595 [lur]: https://github.com/rust-lang/rust/pull/26783
8596 [nlp]: https://github.com/rust-lang/rust/pull/27176
8597 [nold2]: https://github.com/rust-lang/rust/pull/27045
8598 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
8599 [nom]: http://doc.rust-lang.org/nightly/nomicon/
8600 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
8601 [pi]: https://github.com/rust-lang/rust/pull/26699
8602 [ps]: https://github.com/rust-lang/rust/pull/26884
8603 [rte]: https://github.com/rust-lang/rust/pull/26950
8604 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
8605 [search]: https://github.com/rust-lang/rust/pull/26327
8606 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
8607 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
8608 [sh]: https://github.com/rust-lang/rust/pull/27280
8609 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
8610 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
8611 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
8612 [st]: https://github.com/rust-lang/rust/pull/26630
8613 [win1]: https://github.com/rust-lang/rust/pull/26569
8614 [win2]: https://github.com/rust-lang/rust/pull/26741
8615 [win3]: https://github.com/rust-lang/rust/pull/26741
8616 [win4]: https://github.com/rust-lang/rust/pull/27210
8617 [xp]: https://github.com/rust-lang/rust/pull/26569
8618
8619 Version 1.2.0 (2015-08-07)
8620 ==========================
8621
8622 * ~1200 changes, numerous bugfixes
8623
8624 Highlights
8625 ----------
8626
8627 * [Dynamically-sized-type coercions][dst] allow smart pointer types
8628   like `Rc` to contain types without a fixed size, arrays and trait
8629   objects, finally enabling use of `Rc<[T]>` and completing the
8630   implementation of DST.
8631 * [Parallel codegen][parcodegen] is now working again, which can
8632   substantially speed up large builds in debug mode; It also gets
8633   another ~33% speedup when bootstrapping on a 4 core machine (using 8
8634   jobs). It's not enabled by default, but will be "in the near
8635   future". It can be activated with the `-C codegen-units=N` flag to
8636   `rustc`.
8637 * This is the first release with [experimental support for linking
8638   with the MSVC linker and lib C on Windows (instead of using the GNU
8639   variants via MinGW)][win]. It is yet recommended only for the most
8640   intrepid Rustaceans.
8641 * Benchmark compilations are showing a 30% improvement in
8642   bootstrapping over 1.1.
8643
8644 Breaking Changes
8645 ----------------
8646
8647 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
8648   unicode case mapping, which is a previously-planned change in
8649   behavior and considered a bugfix.
8650 * [`mem::align_of`] now specifies [the *minimum alignment* for
8651   T][align], which is usually the alignment programs are interested
8652   in, and the same value reported by clang's
8653   `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
8654   break real code.
8655 * [The `#[packed]` attribute is no longer silently accepted by the
8656   compiler][packed]. This attribute did nothing and code that
8657   mentioned it likely did not work as intended.
8658 * Associated type defaults are [now behind the
8659   `associated_type_defaults` feature gate][ad]. In 1.1 associated type
8660   defaults *did not work*, but could be mentioned syntactically. As
8661   such this breakage has minimal impact.
8662
8663 Language
8664 --------
8665
8666 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
8667   matching against dereferenceable values.
8668
8669 Libraries
8670 ---------
8671
8672 * The [`Extend`] trait, which grows a collection from an iterator, is
8673   implemented over iterators of references, for `String`, `Vec`,
8674   `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
8675   `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
8676 * The [`iter::once`] function returns an iterator that yields a single
8677   element, and [`iter::empty`] returns an iterator that yields no
8678   elements.
8679 * The [`matches`] and [`rmatches`] methods on `str` return iterators
8680   over substring matches.
8681 * [`Cell`] and [`RefCell`] both implement `Eq`.
8682 * A number of methods for wrapping arithmetic are added to the
8683   integral types, [`wrapping_div`], [`wrapping_rem`],
8684   [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
8685   addition to the existing [`wrapping_add`], [`wrapping_sub`], and
8686   [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
8687   type.. It is illegal for the default arithmetic operations in Rust
8688   to overflow; the desire to wrap must be explicit.
8689 * The `{:#?}` formatting specifier [displays the alternate,
8690   pretty-printed][debugfmt] form of the `Debug` formatter. This
8691   feature was actually introduced prior to 1.0 with little
8692   fanfare.
8693 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
8694   for writing data to formatted strings, similar to [`io::Write`].
8695 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
8696   [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
8697   are used by code generators to emit implementations of [`Debug`].
8698 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
8699   methods that convert case, following Unicode case mapping.
8700 * It is now easier to handle poisoned locks. The [`PoisonError`]
8701   type, returned by failing lock operations, exposes `into_inner`,
8702   `get_ref`, and `get_mut`, which all give access to the inner lock
8703   guard, and allow the poisoned lock to continue to operate. The
8704   `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
8705   poisoned lock without attempting to take the lock.
8706 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
8707   [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
8708   On Windows the `FromRawHandle` trait is implemented for `Stdio`,
8709   and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
8710   `ChildStderr`.
8711 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
8712   malformed input.
8713
8714 Misc
8715 ----
8716
8717 * `rustc` employs smarter heuristics for guessing at [typos].
8718 * `rustc` emits more efficient code for [no-op conversions between
8719   unsafe pointers][nop].
8720 * Fat pointers are now [passed in pairs of immediate arguments][fat],
8721   resulting in faster compile times and smaller code.
8722
8723 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
8724 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
8725 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
8726 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
8727 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
8728 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
8729 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
8730 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
8731 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
8732 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
8733 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
8734 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
8735 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
8736 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
8737 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
8738 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
8739 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
8740 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
8741 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
8742 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
8743 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
8744 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
8745 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
8746 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
8747 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
8748 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
8749 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
8750 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
8751 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
8752 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
8753 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
8754 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
8755 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
8756 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
8757 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
8758 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
8759 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
8760 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
8761 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
8762 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
8763 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
8764 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
8765 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
8766 [align]: https://github.com/rust-lang/rust/pull/25646
8767 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
8768 [typos]: https://github.com/rust-lang/rust/pull/26087
8769 [nop]: https://github.com/rust-lang/rust/pull/26336
8770 [fat]: https://github.com/rust-lang/rust/pull/26411
8771 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
8772 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
8773 [packed]: https://github.com/rust-lang/rust/pull/25541
8774 [ad]: https://github.com/rust-lang/rust/pull/27382
8775 [win]: https://github.com/rust-lang/rust/pull/25350
8776
8777 Version 1.1.0 (2015-06-25)
8778 =========================
8779
8780 * ~850 changes, numerous bugfixes
8781
8782 Highlights
8783 ----------
8784
8785 * The [`std::fs` module has been expanded][fs] to expand the set of
8786   functionality exposed:
8787   * `DirEntry` now supports optimizations like `file_type` and `metadata` which
8788     don't incur a syscall on some platforms.
8789   * A `symlink_metadata` function has been added.
8790   * The `fs::Metadata` structure now lowers to its OS counterpart, providing
8791     access to all underlying information.
8792 * The compiler now contains extended explanations of many errors. When an error
8793   with an explanation occurs the compiler suggests using the `--explain` flag
8794   to read the explanation. Error explanations are also [available online][err-index].
8795 * Thanks to multiple [improvements][sk] to [type checking][pre], as
8796   well as other work, the time to bootstrap the compiler decreased by
8797   32%.
8798
8799 Libraries
8800 ---------
8801
8802 * The [`str::split_whitespace`] method splits a string on unicode
8803   whitespace boundaries.
8804 * On both Windows and Unix, new extension traits provide conversion of
8805   I/O types to and from the underlying system handles. On Unix, these
8806   traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
8807   and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
8808   `TcpListener`, and `UpdSocket`. Further implementations for
8809   `std::process` will be stabilized later.
8810 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
8811   Windows, symlinks can be created with
8812   `std::os::windows::symlink_dir` and
8813   `std::os::windows::symlink_file`.
8814 * The `mpsc::Receiver` type can now be converted into an iterator with
8815   `into_iter` on the [`IntoIterator`] trait.
8816 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
8817   implementation of the [`From`] trait.
8818 * The `Debug` implementation for `RangeFull` [creates output that is
8819   more consistent with other implementations][rf].
8820 * [`Debug` is implemented for `File`][file].
8821 * The `Default` implementation for `Arc` [no longer requires `Sync +
8822   Send`][arc].
8823 * [The `Iterator` methods `count`, `nth`, and `last` have been
8824   overridden for slices to have O(1) performance instead of O(n)][si].
8825 * Incorrect handling of paths on Windows has been improved in both the
8826   compiler and the standard library.
8827 * [`AtomicPtr` gained a `Default` implementation][ap].
8828 * In accordance with Rust's policy on arithmetic overflow `abs` now
8829   [panics on overflow when debug assertions are enabled][abs].
8830 * The [`Cloned`] iterator, which was accidentally left unstable for
8831   1.0 [has been stabilized][c].
8832 * The [`Incoming`] iterator, which iterates over incoming TCP
8833   connections, and which was accidentally unnamable in 1.0, [is now
8834   properly exported][inc].
8835 * [`BinaryHeap`] no longer corrupts itself [when functions called by
8836   `sift_up` or `sift_down` panic][bh].
8837 * The [`split_off`] method of `LinkedList` [no longer corrupts
8838   the list in certain scenarios][ll].
8839
8840 Misc
8841 ----
8842
8843 * Type checking performance [has improved notably][sk] with
8844   [multiple improvements][pre].
8845 * The compiler [suggests code changes][ch] for more errors.
8846 * rustc and it's build system have experimental support for [building
8847   toolchains against MUSL][m] instead of glibc on Linux.
8848 * The compiler defines the `target_env` cfg value, which is used for
8849   distinguishing toolchains that are otherwise for the same
8850   platform. Presently this is set to `gnu` for common GNU Linux
8851   targets and for MinGW targets, and `musl` for MUSL Linux targets.
8852 * The [`cargo rustc`][crc] command invokes a build with custom flags
8853   to rustc.
8854 * [Android executables are always position independent][pie].
8855 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
8856   with `Drop`][drop].
8857
8858 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
8859 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
8860 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
8861 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
8862 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
8863 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
8864 [rf]: https://github.com/rust-lang/rust/pull/24491
8865 [err-index]: https://doc.rust-lang.org/error-index.html
8866 [sk]: https://github.com/rust-lang/rust/pull/24615
8867 [pre]: https://github.com/rust-lang/rust/pull/25323
8868 [file]: https://github.com/rust-lang/rust/pull/24598
8869 [ch]: https://github.com/rust-lang/rust/pull/24683
8870 [arc]: https://github.com/rust-lang/rust/pull/24695
8871 [si]: https://github.com/rust-lang/rust/pull/24701
8872 [ap]: https://github.com/rust-lang/rust/pull/24834
8873 [m]: https://github.com/rust-lang/rust/pull/24777
8874 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
8875 [crc]: https://github.com/rust-lang/cargo/pull/1568
8876 [pie]: https://github.com/rust-lang/rust/pull/24953
8877 [abs]: https://github.com/rust-lang/rust/pull/25441
8878 [c]: https://github.com/rust-lang/rust/pull/25496
8879 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
8880 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
8881 [inc]: https://github.com/rust-lang/rust/pull/25522
8882 [bh]: https://github.com/rust-lang/rust/pull/25856
8883 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
8884 [ll]: https://github.com/rust-lang/rust/pull/26022
8885 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
8886 [drop]: https://github.com/rust-lang/rust/pull/24935
8887
8888 Version 1.0.0 (2015-05-15)
8889 ========================
8890
8891 * ~1500 changes, numerous bugfixes
8892
8893 Highlights
8894 ----------
8895
8896 * The vast majority of the standard library is now `#[stable]`. It is
8897   no longer possible to use unstable features with a stable build of
8898   the compiler.
8899 * Many popular crates on [crates.io] now work on the stable release
8900   channel.
8901 * Arithmetic on basic integer types now [checks for overflow in debug
8902   builds][overflow].
8903
8904 Language
8905 --------
8906
8907 * Several [restrictions have been added to trait coherence][coh] in
8908   order to make it easier for upstream authors to change traits
8909   without breaking downstream code.
8910 * Digits of binary and octal literals are [lexed more eagerly][lex] to
8911   improve error messages and macro behavior. For example, `0b1234` is
8912   now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
8913 * Trait bounds [are always invariant][inv], eliminating the need for
8914   the `PhantomFn` and `MarkerTrait` lang items, which have been
8915   removed.
8916 * ["-" is no longer a valid character in crate names][cr], the `extern crate
8917   "foo" as bar` syntax has been replaced with `extern crate foo as
8918   bar`, and Cargo now automatically translates "-" in *package* names
8919   to underscore for the crate name.
8920 * [Lifetime shadowing is an error][lt].
8921 * [`Send` no longer implies `'static`][send-rfc].
8922 * [UFCS now supports trait-less associated paths][moar-ufcs] like
8923   `MyType::default()`.
8924 * Primitive types [now have inherent methods][prim-inherent],
8925   obviating the need for extension traits like `SliceExt`.
8926 * Methods with `Self: Sized` in their `where` clause are [considered
8927   object-safe][self-sized], allowing many extension traits like
8928   `IteratorExt` to be merged into the traits they extended.
8929 * You can now [refer to associated types][assoc-where] whose
8930   corresponding trait bounds appear only in a `where` clause.
8931 * The final bits of [OIBIT landed][oibit-final], meaning that traits
8932   like `Send` and `Sync` are now library-defined.
8933 * A [Reflect trait][reflect] was introduced, which means that
8934   downcasting via the `Any` trait is effectively limited to concrete
8935   types. This helps retain the potentially-important "parametricity"
8936   property: generic code cannot behave differently for different type
8937   arguments except in minor ways.
8938 * The `unsafe_destructor` feature is now deprecated in favor of the
8939   [new `dropck`][dropck]. This change is a major reduction in unsafe
8940   code.
8941
8942 Libraries
8943 ---------
8944
8945 * The `thread_local` module [has been renamed to `std::thread`][th].
8946 * The methods of `IteratorExt` [have been moved to the `Iterator`
8947   trait itself][ie].
8948 * Several traits that implement Rust's conventions for type
8949   conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
8950   [centralized in the `std::convert` module][con].
8951 * The `FromError` trait [was removed in favor of `From`][fe].
8952 * The basic sleep function [has moved to
8953   `std::thread::sleep_ms`][slp].
8954 * The `splitn` function now takes an `n` parameter that represents the
8955   number of items yielded by the returned iterator [instead of the
8956   number of 'splits'][spl].
8957 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
8958 * [Derived implementations of `PartialOrd` now order enums according
8959   to their explicitly-assigned discriminants][po].
8960 * [Methods for searching strings are generic over `Pattern`s][pat],
8961   implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
8962   some others.
8963 * [In method resolution, object methods are resolved before inherent
8964   methods][meth].
8965 * [`String::from_str` has been deprecated in favor of the `From` impl,
8966   `String::from`][sf].
8967 * [`io::Error` implements `Sync`][ios].
8968 * [The `words` method on `&str` has been replaced with
8969   `split_whitespace`][sw], to avoid answering the tricky question, 'what is
8970   a word?'
8971 * The new path and IO modules are complete and `#[stable]`. This
8972   was the major library focus for this cycle.
8973 * The path API was [revised][path-normalize] to normalize `.`,
8974   adjusting the tradeoffs in favor of the most common usage.
8975 * A large number of remaining APIs in `std` were also stabilized
8976   during this cycle; about 75% of the non-deprecated API surface
8977   is now stable.
8978 * The new [string pattern API][string-pattern] landed, which makes
8979   the string slice API much more internally consistent and flexible.
8980 * A new set of [generic conversion traits][conversion] replaced
8981   many existing ad hoc traits.
8982 * Generic numeric traits were [completely removed][num-traits]. This
8983   was made possible thanks to inherent methods for primitive types,
8984   and the removal gives maximal flexibility for designing a numeric
8985   hierarchy in the future.
8986 * The `Fn` traits are now related via [inheritance][fn-inherit]
8987   and provide ergonomic [blanket implementations][fn-blanket].
8988 * The `Index` and `IndexMut` traits were changed to
8989   [take the index by value][index-value], enabling code like
8990   `hash_map["string"]` to work.
8991 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
8992   `Copy` data is known to be `Clone` as well.
8993
8994 Misc
8995 ----
8996
8997 * Many errors now have extended explanations that can be accessed with
8998   the `--explain` flag to `rustc`.
8999 * Many new examples have been added to the standard library
9000   documentation.
9001 * rustdoc has received a number of improvements focused on completion
9002   and polish.
9003 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
9004 * Much headway was made on ecosystem-wide CI, making it possible
9005   to [compare builds for breakage][ci-compare].
9006
9007
9008 [crates.io]: http://crates.io
9009 [clo]: https://github.com/rust-lang/rust/pull/24034
9010 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
9011 [con]: https://github.com/rust-lang/rust/pull/23875
9012 [cr]: https://github.com/rust-lang/rust/pull/23419
9013 [fe]: https://github.com/rust-lang/rust/pull/23879
9014 [ie]: https://github.com/rust-lang/rust/pull/23300
9015 [inv]: https://github.com/rust-lang/rust/pull/23938
9016 [ios]: https://github.com/rust-lang/rust/pull/24133
9017 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
9018 [lt]: https://github.com/rust-lang/rust/pull/24057
9019 [meth]: https://github.com/rust-lang/rust/pull/24056
9020 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
9021 [po]: https://github.com/rust-lang/rust/pull/24270
9022 [sf]: https://github.com/rust-lang/rust/pull/24517
9023 [slp]: https://github.com/rust-lang/rust/pull/23949
9024 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
9025 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
9026 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
9027 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
9028 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
9029 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
9030 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
9031 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
9032 [self-sized]: https://github.com/rust-lang/rust/pull/22301
9033 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
9034 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
9035 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
9036 [reflect]: https://github.com/rust-lang/rust/pull/23712
9037 [conversion]: https://github.com/rust-lang/rfcs/pull/529
9038 [num-traits]: https://github.com/rust-lang/rust/pull/23549
9039 [index-value]: https://github.com/rust-lang/rust/pull/23601
9040 [dropck]: https://github.com/rust-lang/rfcs/pull/769
9041 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
9042 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
9043 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
9044 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
9045 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
9046
9047
9048 Version 1.0.0-alpha.2 (2015-02-20)
9049 =====================================
9050
9051 * ~1300 changes, numerous bugfixes
9052
9053 * Highlights
9054
9055     * The various I/O modules were [overhauled][io-rfc] to reduce
9056       unnecessary abstractions and provide better interoperation with
9057       the underlying platform. The old `io` module remains temporarily
9058       at `std::old_io`.
9059     * The standard library now [participates in feature gating][feat],
9060       so use of unstable libraries now requires a `#![feature(...)]`
9061       attribute. The impact of this change is [described on the
9062       forum][feat-forum]. [RFC][feat-rfc].
9063
9064 * Language
9065
9066     * `for` loops [now operate on the `IntoIterator` trait][into],
9067       which eliminates the need to call `.iter()`, etc. to iterate
9068       over collections. There are some new subtleties to remember
9069       though regarding what sort of iterators various types yield, in
9070       particular that `for foo in bar { }` yields values from a move
9071       iterator, destroying the original collection. [RFC][into-rfc].
9072     * Objects now have [default lifetime bounds][obj], so you don't
9073       have to write `Box<Trait+'static>` when you don't care about
9074       storing references. [RFC][obj-rfc].
9075     * In types that implement `Drop`, [lifetimes must outlive the
9076       value][drop]. This will soon make it possible to safely
9077       implement `Drop` for types where `#[unsafe_destructor]` is now
9078       required. Read the [gorgeous RFC][drop-rfc] for details.
9079     * The fully qualified <T as Trait>::X syntax lets you set the Self
9080       type for a trait method or associated type. [RFC][ufcs-rfc].
9081     * References to types that implement `Deref<U>` now [automatically
9082       coerce to references][deref] to the dereferenced type `U`,
9083       e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
9084       should eliminate many unsightly uses of `&*`, as when converting
9085       from references to vectors into references to
9086       slices. [RFC][deref-rfc].
9087     * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
9088       `|:|`) is obsolete and closure kind is inferred from context.
9089     * [`Self` is a keyword][Self].
9090
9091 * Libraries
9092
9093     * The `Show` and `String` formatting traits [have been
9094       renamed][fmt] to `Debug` and `Display` to more clearly reflect
9095       their related purposes. Automatically getting a string
9096       conversion to use with `format!("{:?}", something_to_debug)` is
9097       now written `#[derive(Debug)]`.
9098     * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
9099       OsStr}`, provide strings in platform-specific encodings for easier
9100       interop with system APIs. [RFC][osstr-rfc].
9101     * The `boxed::into_raw` and `Box::from_raw` functions [convert
9102       between `Box<T>` and `*mut T`][boxraw], a common pattern for
9103       creating raw pointers.
9104
9105 * Tooling
9106
9107     * Certain long error messages of the form 'expected foo found bar'
9108       are now [split neatly across multiple
9109       lines][multiline]. Examples in the PR.
9110     * On Unix Rust can be [uninstalled][un] by running
9111       `/usr/local/lib/rustlib/uninstall.sh`.
9112     * The `#[rustc_on_unimplemented]` attribute, requiring the
9113       'on_unimplemented' feature, lets rustc [display custom error
9114       messages when a trait is expected to be implemented for a type
9115       but is not][onun].
9116
9117 * Misc
9118
9119     * Rust is tested against a [LALR grammar][lalr], which parses
9120       almost all the Rust files that rustc does.
9121
9122 [boxraw]: https://github.com/rust-lang/rust/pull/21318
9123 [close]: https://github.com/rust-lang/rust/pull/21843
9124 [deref]: https://github.com/rust-lang/rust/pull/21351
9125 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
9126 [drop]: https://github.com/rust-lang/rust/pull/21972
9127 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9128 [feat]: https://github.com/rust-lang/rust/pull/21248
9129 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
9130 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
9131 [fmt]: https://github.com/rust-lang/rust/pull/21457
9132 [into]: https://github.com/rust-lang/rust/pull/20790
9133 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
9134 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9135 [lalr]: https://github.com/rust-lang/rust/pull/21452
9136 [multiline]: https://github.com/rust-lang/rust/pull/19870
9137 [obj]: https://github.com/rust-lang/rust/pull/22230
9138 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
9139 [onun]: https://github.com/rust-lang/rust/pull/20889
9140 [osstr]: https://github.com/rust-lang/rust/pull/21488
9141 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9142 [Self]: https://github.com/rust-lang/rust/pull/22158
9143 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
9144 [un]: https://github.com/rust-lang/rust/pull/22256
9145
9146
9147 Version 1.0.0-alpha (2015-01-09)
9148 ==================================
9149
9150   * ~2400 changes, numerous bugfixes
9151
9152   * Highlights
9153
9154     * The language itself is considered feature complete for 1.0,
9155       though there will be many usability improvements and bugfixes
9156       before the final release.
9157     * Nearly 50% of the public API surface of the standard library has
9158       been declared 'stable'. Those interfaces are unlikely to change
9159       before 1.0.
9160     * The long-running debate over integer types has been
9161       [settled][ints]: Rust will ship with types named `isize` and
9162       `usize`, rather than `int` and `uint`, for pointer-sized
9163       integers. Guidelines will be rolled out during the alpha cycle.
9164     * Most crates that are not `std` have been moved out of the Rust
9165       distribution into the Cargo ecosystem so they can evolve
9166       separately and don't need to be stabilized as quickly, including
9167       'time', 'getopts', 'num', 'regex', and 'term'.
9168     * Documentation continues to be expanded with more API coverage, more
9169       examples, and more in-depth explanations. The guides have been
9170       consolidated into [The Rust Programming Language][trpl].
9171     * "[Rust By Example][rbe]" is now maintained by the Rust team.
9172     * All official Rust binary installers now come with [Cargo], the
9173       Rust package manager.
9174
9175 * Language
9176
9177     * Closures have been [completely redesigned][unboxed] to be
9178       implemented in terms of traits, can now be used as generic type
9179       bounds and thus monomorphized and inlined, or via an opaque
9180       pointer (boxed) as in the old system. The new system is often
9181       referred to as 'unboxed' closures.
9182     * Traits now support [associated types][assoc], allowing families
9183       of related types to be defined together and used generically in
9184       powerful ways.
9185     * Enum variants are [namespaced by their type names][enum].
9186     * [`where` clauses][where] provide a more versatile and attractive
9187       syntax for specifying generic bounds, though the previous syntax
9188       remains valid.
9189     * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
9190       numeric types.
9191     * Rust [no longer has a runtime][rt] of any description, and only
9192       supports OS threads, not green threads.
9193     * At long last, Rust has been overhauled for 'dynamically-sized
9194       types' ([DST]), which integrates 'fat pointers' (object types,
9195       arrays, and `str`) more deeply into the type system, making it
9196       more consistent.
9197     * Rust now has a general [range syntax][range], `i..j`, `i..`, and
9198       `..j` that produce range types and which, when combined with the
9199       `Index` operator and multidispatch, leads to a convenient slice
9200       notation, `[i..j]`.
9201     * The new range syntax revealed an ambiguity in the fixed-length
9202       array syntax, so now fixed length arrays [are written `[T;
9203       N]`][arrays].
9204     * The `Copy` trait is no longer implemented automatically. Unsafe
9205       pointers no longer implement `Sync` and `Send` so types
9206       containing them don't automatically either. `Sync` and `Send`
9207       are now 'unsafe traits' so one can "forcibly" implement them via
9208       `unsafe impl` if a type confirms to the requirements for them
9209       even though the internals do not (e.g. structs containing unsafe
9210       pointers like `Arc`). These changes are intended to prevent some
9211       footguns and are collectively known as [opt-in built-in
9212       traits][oibit] (though `Sync` and `Send` will soon become pure
9213       library types unknown to the compiler).
9214     * Operator traits now take their operands [by value][ops], and
9215       comparison traits can use multidispatch to compare one type
9216       against multiple other types, allowing e.g. `String` to be
9217       compared with `&str`.
9218     * `if let` and `while let` are no longer feature-gated.
9219     * Rust has adopted a more [uniform syntax for escaping unicode
9220       characters][unicode].
9221     * `macro_rules!` [has been declared stable][mac]. Though it is a
9222       flawed system it is sufficiently popular that it must be usable
9223       for 1.0. Effort has gone into [future-proofing][mac-future] it
9224       in ways that will allow other macro systems to be developed in
9225       parallel, and won't otherwise impact the evolution of the
9226       language.
9227     * The prelude has been [pared back significantly][prelude] such
9228       that it is the minimum necessary to support the most pervasive
9229       code patterns, and through [generalized where clauses][where]
9230       many of the prelude extension traits have been consolidated.
9231     * Rust's rudimentary reflection [has been removed][refl], as it
9232       incurred too much code generation for little benefit.
9233     * [Struct variants][structvars] are no longer feature-gated.
9234     * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
9235       known as 'higher-ranked trait bounds', this crucially allows
9236       unboxed closures to work.
9237     * Macros invocations surrounded by parens or square brackets and
9238       not terminated by a semicolon are [parsed as
9239       expressions][macros], which makes expressions like `vec![1i32,
9240       2, 3].len()` work as expected.
9241     * Trait objects now implement their traits automatically, and
9242       traits that can be coerced to objects now must be [object
9243       safe][objsafe].
9244     * Automatically deriving traits is now done with `#[derive(...)]`
9245       not `#[deriving(...)]` for [consistency with other naming
9246       conventions][derive].
9247     * Importing the containing module or enum at the same time as
9248       items or variants they contain is [now done with `self` instead
9249       of `mod`][self], as in use `foo::{self, bar}`
9250     * Glob imports are no longer feature-gated.
9251     * The `box` operator and `box` patterns have been feature-gated
9252       pending a redesign. For now unique boxes should be allocated
9253       like other containers, with `Box::new`.
9254
9255 * Libraries
9256
9257     * A [series][coll1] of [efforts][coll2] to establish
9258       [conventions][coll3] for collections types has resulted in API
9259       improvements throughout the standard library.
9260     * New [APIs for error handling][err] provide ergonomic interop
9261       between error types, and [new conventions][err-conv] describe
9262       more clearly the recommended error handling strategies in Rust.
9263     * The `fail!` macro has been renamed to [`panic!`][panic] so that
9264       it is easier to discuss failure in the context of error handling
9265       without making clarifications as to whether you are referring to
9266       the 'fail' macro or failure more generally.
9267     * On Linux, `OsRng` prefers the new, more reliable `getrandom`
9268       syscall when available.
9269     * The 'serialize' crate has been renamed 'rustc-serialize' and
9270       moved out of the distribution to Cargo. Although it is widely
9271       used now, it is expected to be superseded in the near future.
9272     * The `Show` formatter, typically implemented with
9273       `#[derive(Show)]` is [now requested with the `{:?}`
9274       specifier][show] and is intended for use by all types, for uses
9275       such as `println!` debugging. The new `String` formatter must be
9276       implemented by hand, uses the `{}` specifier, and is intended
9277       for full-fidelity conversions of things that can logically be
9278       represented as strings.
9279
9280 * Tooling
9281
9282     * [Flexible target specification][flex] allows rustc's code
9283       generation to be configured to support otherwise-unsupported
9284       platforms.
9285     * Rust comes with rust-gdb and rust-lldb scripts that launch their
9286       respective debuggers with Rust-appropriate pretty-printing.
9287     * The Windows installation of Rust is distributed with the
9288       MinGW components currently required to link binaries on that
9289       platform.
9290
9291 * Misc
9292
9293     * Nullable enum optimizations have been extended to more types so
9294       that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
9295       space than the inner types themselves.
9296     * Work has begun on supporting AArch64.
9297
9298 [Cargo]: https://crates.io
9299 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
9300 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
9301 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
9302 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
9303 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
9304 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
9305 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
9306 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
9307 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
9308 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
9309 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
9310 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
9311 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
9312 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
9313 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
9314 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
9315 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
9316 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
9317 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
9318 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
9319 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
9320 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
9321 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
9322 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
9323 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
9324 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
9325 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
9326 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
9327 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
9328 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
9329 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
9330 [trpl]: https://doc.rust-lang.org/book/index.html
9331 [rbe]: http://rustbyexample.com/
9332
9333
9334 Version 0.12.0 (2014-10-09)
9335 =============================
9336
9337   * ~1900 changes, numerous bugfixes
9338
9339   * Highlights
9340
9341     * The introductory documentation (now called The Rust Guide) has
9342       been completely rewritten, as have a number of supplementary
9343       guides.
9344     * Rust's package manager, Cargo, continues to improve and is
9345       sometimes considered to be quite awesome.
9346     * Many API's in `std` have been reviewed and updated for
9347       consistency with the in-development Rust coding
9348       guidelines. The standard library documentation tracks
9349       stabilization progress.
9350     * Minor libraries have been moved out-of-tree to the rust-lang org
9351       on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
9352       be installed with Cargo.
9353     * Lifetime elision allows lifetime annotations to be left off of
9354       function declarations in many common scenarios.
9355     * Rust now works on 64-bit Windows.
9356
9357   * Language
9358     * Indexing can be overloaded with the `Index` and `IndexMut`
9359       traits.
9360     * The `if let` construct takes a branch only if the `let` pattern
9361       matches, currently behind the 'if_let' feature gate.
9362     * 'where clauses', a more flexible syntax for specifying trait
9363       bounds that is more aesthetic, have been added for traits and
9364       free functions. Where clauses will in the future make it
9365       possible to constrain associated types, which would be
9366       impossible with the existing syntax.
9367     * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
9368       the 'slicing_syntax' feature gate, and can be overloaded with
9369       the `Slice` or `SliceMut` traits.
9370     * The syntax for matching of sub-slices has been changed to use a
9371       postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
9372       consistency with other uses of `..` and to future-proof
9373       potential additional uses of the syntax.
9374     * The syntax for matching inclusive ranges in patterns has changed
9375       from `0..3` to `0...4` to be consistent with the exclusive range
9376       syntax for slicing.
9377     * Matching of sub-slices in non-tail positions (e.g.  `[a.., b,
9378       c]`) has been put behind the 'advanced_slice_patterns' feature
9379       gate and may be removed in the future.
9380     * Components of tuples and tuple structs can be extracted using
9381       the `value.0` syntax, currently behind the `tuple_indexing`
9382       feature gate.
9383     * The `#[crate_id]` attribute is no longer supported; versioning
9384       is handled by the package manager.
9385     * Renaming crate imports are now written `extern crate foo as bar`
9386       instead of `extern crate bar = foo`.
9387     * Renaming use statements are now written `use foo as bar` instead
9388       of `use bar = foo`.
9389     * `let` and `match` bindings and argument names in macros are now
9390       hygienic.
9391     * The new, more efficient, closure types ('unboxed closures') have
9392       been added under a feature gate, 'unboxed_closures'. These will
9393       soon replace the existing closure types, once higher-ranked
9394       trait lifetimes are added to the language.
9395     * `move` has been added as a keyword, for indicating closures
9396       that capture by value.
9397     * Mutation and assignment is no longer allowed in pattern guards.
9398     * Generic structs and enums can now have trait bounds.
9399     * The `Share` trait is now called `Sync` to free up the term
9400       'shared' to refer to 'shared reference' (the default reference
9401       type.
9402     * Dynamically-sized types have been mostly implemented,
9403       unifying the behavior of fat-pointer types with the rest of the
9404       type system.
9405     * As part of dynamically-sized types, the `Sized` trait has been
9406       introduced, which qualifying types implement by default, and
9407       which type parameters expect by default. To specify that a type
9408       parameter does not need to be sized, write `<Sized? T>`. Most
9409       types are `Sized`, notable exceptions being unsized arrays
9410       (`[T]`) and trait types.
9411     * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
9412     * Lifetime bounds can now be applied to type parameters and object
9413       types.
9414     * The old, reference counted GC type, `Gc<T>` which was once
9415       denoted by the `@` sigil, has finally been removed. GC will be
9416       revisited in the future.
9417
9418   * Libraries
9419     * Library documentation has been improved for a number of modules.
9420     * Bit-vectors, collections::bitv has been modernized.
9421     * The url crate is deprecated in favor of
9422       http://github.com/servo/rust-url, which can be installed with
9423       Cargo.
9424     * Most I/O stream types can be cloned and subsequently closed from
9425       a different thread.
9426     * A `std::time::Duration` type has been added for use in I/O
9427       methods that rely on timers, as well as in the 'time' crate's
9428       `Timespec` arithmetic.
9429     * The runtime I/O abstraction layer that enabled the green thread
9430       scheduler to do non-thread-blocking I/O has been removed, along
9431       with the libuv-based implementation employed by the green thread
9432       scheduler. This will greatly simplify the future I/O work.
9433     * `collections::btree` has been rewritten to have a more
9434       idiomatic and efficient design.
9435
9436   * Tooling
9437     * rustdoc output now indicates the stability levels of API's.
9438     * The `--crate-name` flag can specify the name of the crate
9439       being compiled, like `#[crate_name]`.
9440     * The `-C metadata` specifies additional metadata to hash into
9441       symbol names, and `-C extra-filename` specifies additional
9442       information to put into the output filename, for use by the
9443       package manager for versioning.
9444     * debug info generation has continued to improve and should be
9445       more reliable under both gdb and lldb.
9446     * rustc has experimental support for compiling in parallel
9447       using the `-C codegen-units` flag.
9448     * rustc no longer encodes rpath information into binaries by
9449       default.
9450
9451   * Misc
9452     * Stack usage has been optimized with LLVM lifetime annotations.
9453     * Official Rust binaries on Linux are more compatible with older
9454       kernels and distributions, built on CentOS 5.10.
9455
9456
9457 Version 0.11.0 (2014-07-02)
9458 ==========================
9459
9460   * ~1700 changes, numerous bugfixes
9461
9462   * Language
9463     * ~[T] has been removed from the language. This type is superseded by
9464       the Vec<T> type.
9465     * ~str has been removed from the language. This type is superseded by
9466       the String type.
9467     * ~T has been removed from the language. This type is superseded by the
9468       Box<T> type.
9469     * @T has been removed from the language. This type is superseded by the
9470       standard library's std::gc::Gc<T> type.
9471     * Struct fields are now all private by default.
9472     * Vector indices and shift amounts are both required to be a `uint`
9473       instead of any integral type.
9474     * Byte character, byte string, and raw byte string literals are now all
9475       supported by prefixing the normal literal with a `b`.
9476     * Multiple ABIs are no longer allowed in an ABI string
9477     * The syntax for lifetimes on closures/procedures has been tweaked
9478       slightly: `<'a>|A, B|: 'b + K -> T`
9479     * Floating point modulus has been removed from the language; however it
9480       is still provided by a library implementation.
9481     * Private enum variants are now disallowed.
9482     * The `priv` keyword has been removed from the language.
9483     * A closure can no longer be invoked through a &-pointer.
9484     * The `use foo, bar, baz;` syntax has been removed from the language.
9485     * The transmute intrinsic no longer works on type parameters.
9486     * Statics now allow blocks/items in their definition.
9487     * Trait bounds are separated from objects with + instead of : now.
9488     * Objects can no longer be read while they are mutably borrowed.
9489     * The address of a static is now marked as insignificant unless the
9490       #[inline(never)] attribute is placed it.
9491     * The #[unsafe_destructor] attribute is now behind a feature gate.
9492     * Struct literals are no longer allowed in ambiguous positions such as
9493       if, while, match, and for..in.
9494     * Declaration of lang items and intrinsics are now feature-gated by
9495       default.
9496     * Integral literals no longer default to `int`, and floating point
9497       literals no longer default to `f64`. Literals must be suffixed with an
9498       appropriate type if inference cannot determine the type of the
9499       literal.
9500     * The Box<T> type is no longer implicitly borrowed to &mut T.
9501     * Procedures are now required to not capture borrowed references.
9502
9503   * Libraries
9504     * The standard library is now a "facade" over a number of underlying
9505       libraries. This means that development on the standard library should
9506       be speedier due to smaller crates, as well as a clearer line between
9507       all dependencies.
9508     * A new library, libcore, lives under the standard library's facade
9509       which is Rust's "0-assumption" library, suitable for embedded and
9510       kernel development for example.
9511     * A regex crate has been added to the standard distribution. This crate
9512       includes statically compiled regular expressions.
9513     * The unwrap/unwrap_err methods on Result require a Show bound for
9514       better error messages.
9515     * The return types of the std::comm primitives have been centralized
9516       around the Result type.
9517     * A number of I/O primitives have gained the ability to time out their
9518       operations.
9519     * A number of I/O primitives have gained the ability to close their
9520       reading/writing halves to cancel pending operations.
9521     * Reverse iterator methods have been removed in favor of `rev()` on
9522       their forward-iteration counterparts.
9523     * A bitflags! macro has been added to enable easy interop with C and
9524       management of bit flags.
9525     * A debug_assert! macro is now provided which is disabled when
9526       `--cfg ndebug` is passed to the compiler.
9527     * A graphviz crate has been added for creating .dot files.
9528     * The std::cast module has been migrated into std::mem.
9529     * The std::local_data api has been migrated from freestanding functions
9530       to being based on methods.
9531     * The Pod trait has been renamed to Copy.
9532     * jemalloc has been added as the default allocator for types.
9533     * The API for allocating memory has been changed to use proper alignment
9534       and sized deallocation
9535     * Connecting a TcpStream or binding a TcpListener is now based on a
9536       string address and a u16 port. This allows connecting to a hostname as
9537       opposed to an IP.
9538     * The Reader trait now contains a core method, read_at_least(), which
9539       correctly handles many repeated 0-length reads.
9540     * The process-spawning API is now centered around a builder-style
9541       Command struct.
9542     * The :? printing qualifier has been moved from the standard library to
9543       an external libdebug crate.
9544     * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
9545       have been renamed to Eq/Ord.
9546     * The select/plural methods have been removed from format!. The escapes
9547       for { and } have also changed from \{ and \} to {{ and }},
9548       respectively.
9549     * The TaskBuilder API has been re-worked to be a true builder, and
9550       extension traits for spawning native/green tasks have been added.
9551
9552   * Tooling
9553     * All breaking changes to the language or libraries now have their
9554       commit message annotated with `[breaking-change]` to allow for easy
9555       discovery of breaking changes.
9556     * The compiler will now try to suggest how to annotate lifetimes if a
9557       lifetime-related error occurs.
9558     * Debug info continues to be improved greatly with general bug fixes and
9559       better support for situations like link time optimization (LTO).
9560     * Usage of syntax extensions when cross-compiling has been fixed.
9561     * Functionality equivalent to GCC & Clang's -ffunction-sections,
9562       -fdata-sections and --gc-sections has been enabled by default
9563     * The compiler is now stricter about where it will load module files
9564       from when a module is declared via `mod foo;`.
9565     * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
9566       Syntax extensions are now discovered via a "plugin registrar" type
9567       which will be extended in the future to other various plugins.
9568     * Lints have been restructured to allow for dynamically loadable lints.
9569     * A number of rustdoc improvements:
9570       * The HTML output has been visually redesigned.
9571       * Markdown is now powered by hoedown instead of sundown.
9572       * Searching heuristics have been greatly improved.
9573       * The search index has been reduced in size by a great amount.
9574       * Cross-crate documentation via `pub use` has been greatly improved.
9575       * Primitive types are now hyperlinked and documented.
9576     * Documentation has been moved from static.rust-lang.org/doc to
9577       doc.rust-lang.org
9578     * A new sandbox, play.rust-lang.org, is available for running and
9579       sharing rust code examples on-line.
9580     * Unused attributes are now more robustly warned about.
9581     * The dead_code lint now warns about unused struct fields.
9582     * Cross-compiling to iOS is now supported.
9583     * Cross-compiling to mipsel is now supported.
9584     * Stability attributes are now inherited by default and no longer apply
9585       to intra-crate usage, only inter-crate usage.
9586     * Error message related to non-exhaustive match expressions have been
9587       greatly improved.
9588
9589
9590 Version 0.10 (2014-04-03)
9591 =========================
9592
9593   * ~1500 changes, numerous bugfixes
9594
9595   * Language
9596     * A new RFC process is now in place for modifying the language.
9597     * Patterns with `@`-pointers have been removed from the language.
9598     * Patterns with unique vectors (`~[T]`) have been removed from the
9599       language.
9600     * Patterns with unique strings (`~str`) have been removed from the
9601       language.
9602     * `@str` has been removed from the language.
9603     * `@[T]` has been removed from the language.
9604     * `@self` has been removed from the language.
9605     * `@Trait` has been removed from the language.
9606     * Headers on `~` allocations which contain `@` boxes inside the type for
9607       reference counting have been removed.
9608     * The semantics around the lifetimes of temporary expressions have changed,
9609       see #3511 and #11585 for more information.
9610     * Cross-crate syntax extensions are now possible, but feature gated. See
9611       #11151 for more information. This includes both `macro_rules!` macros as
9612       well as syntax extensions such as `format!`.
9613     * New lint modes have been added, and older ones have been turned on to be
9614       warn-by-default.
9615       * Unnecessary parentheses
9616       * Uppercase statics
9617       * Camel Case types
9618       * Uppercase variables
9619       * Publicly visible private types
9620       * `#[deriving]` with raw pointers
9621     * Unsafe functions can no longer be coerced to closures.
9622     * Various obscure macros such as `log_syntax!` are now behind feature gates.
9623     * The `#[simd]` attribute is now behind a feature gate.
9624     * Visibility is no longer allowed on `extern crate` statements, and
9625       unnecessary visibility (`priv`) is no longer allowed on `use` statements.
9626     * Trailing commas are now allowed in argument lists and tuple patterns.
9627     * The `do` keyword has been removed, it is now a reserved keyword.
9628     * Default type parameters have been implemented, but are feature gated.
9629     * Borrowed variables through captures in closures are now considered soundly.
9630     * `extern mod` is now `extern crate`
9631     * The `Freeze` trait has been removed.
9632     * The `Share` trait has been added for types that can be shared among
9633       threads.
9634     * Labels in macros are now hygienic.
9635     * Expression/statement macro invocations can be delimited with `{}` now.
9636     * Treatment of types allowed in `static mut` locations has been tweaked.
9637     * The `*` and `.` operators are now overloadable through the `Deref` and
9638       `DerefMut` traits.
9639     * `~Trait` and `proc` no longer have `Send` bounds by default.
9640     * Partial type hints are now supported with the `_` type marker.
9641     * An `Unsafe` type was introduced for interior mutability. It is now
9642       considered undefined to transmute from `&T` to `&mut T` without using the
9643       `Unsafe` type.
9644     * The #[linkage] attribute was implemented for extern statics/functions.
9645     * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
9646     * `Pod` was renamed to `Copy`.
9647
9648   * Libraries
9649     * The `libextra` library has been removed. It has now been decomposed into
9650       component libraries with smaller and more focused nuggets of
9651       functionality. The full list of libraries can be found on the
9652       documentation index page.
9653     * std: `std::condition` has been removed. All I/O errors are now propagated
9654       through the `Result` type. In order to assist with error handling, a
9655       `try!` macro for unwrapping errors with an early return and a lint for
9656       unused results has been added. See #12039 for more information.
9657     * std: The `vec` module has been renamed to `slice`.
9658     * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
9659       This will become the only growable vector in the future.
9660     * std: `std::io` now has more public re-exports. Types such as `BufferedReader`
9661       are now found at `std::io::BufferedReader` instead of
9662       `std::io::buffered::BufferedReader`.
9663     * std: `print` and `println` are no longer in the prelude, the `print!` and
9664       `println!` macros are intended to be used instead.
9665     * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
9666       attempts to statically prevent cycles.
9667     * std: The standard distribution is adopting the policy of pushing failure
9668       to the user rather than failing in libraries. Many functions (such as
9669       `slice::last()`) now return `Option<T>` instead of `T` + failing.
9670     * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
9671       deriving mode: `#[deriving(Show)]`.
9672     * std: `ToStr` is now implemented for all types implementing `Show`.
9673     * std: The formatting trait methods now take `&self` instead of `&T`
9674     * std: The `invert()` method on iterators has been renamed to `rev()`
9675     * std: `std::num` has seen a reduction in the genericity of its traits,
9676       consolidating functionality into a few core traits.
9677     * std: Backtraces are now printed on task failure if the environment
9678       variable `RUST_BACKTRACE` is present.
9679     * std: Naming conventions for iterators have been standardized. More details
9680       can be found on the wiki's style guide.
9681     * std: `eof()` has been removed from the `Reader` trait. Specific types may
9682       still implement the function.
9683     * std: Networking types are now cloneable to allow simultaneous reads/writes.
9684     * std: `assert_approx_eq!` has been removed
9685     * std: The `e` and `E` formatting specifiers for floats have been added to
9686       print them in exponential notation.
9687     * std: The `Times` trait has been removed
9688     * std: Indications of variance and opting out of builtin bounds is done
9689       through marker types in `std::kinds::marker` now
9690     * std: `hash` has been rewritten, `IterBytes` has been removed, and
9691       `#[deriving(Hash)]` is now possible.
9692     * std: `SharedChan` has been removed, `Sender` is now cloneable.
9693     * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
9694     * std: `Chan::new` is now `channel()`.
9695     * std: A new synchronous channel type has been implemented.
9696     * std: A `select!` macro is now provided for selecting over `Receiver`s.
9697     * std: `hashmap` and `trie` have been moved to `libcollections`
9698     * std: `run` has been rolled into `io::process`
9699     * std: `assert_eq!` now uses `{}` instead of `{:?}`
9700     * std: The equality and comparison traits have seen some reorganization.
9701     * std: `rand` has moved to `librand`.
9702     * std: `to_{lower,upper}case` has been implemented for `char`.
9703     * std: Logging has been moved to `liblog`.
9704     * collections: `HashMap` has been rewritten for higher performance and less
9705       memory usage.
9706     * native: The default runtime is now `libnative`. If `libgreen` is desired,
9707       it can be booted manually. The runtime guide has more information and
9708       examples.
9709     * native: All I/O functionality except signals has been implemented.
9710     * green: Task spawning with `libgreen` has been optimized with stack caching
9711       and various trimming of code.
9712     * green: Tasks spawned by `libgreen` now have an unmapped guard page.
9713     * sync: The `extra::sync` module has been updated to modern rust (and moved
9714       to the `sync` library), tweaking and improving various interfaces while
9715       dropping redundant functionality.
9716     * sync: A new `Barrier` type has been added to the `sync` library.
9717     * sync: An efficient mutex for native and green tasks has been implemented.
9718     * serialize: The `base64` module has seen some improvement. It treats
9719       newlines better, has non-string error values, and has seen general
9720       cleanup.
9721     * fourcc: A `fourcc!` macro was introduced
9722     * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
9723       hexadecimal literal.
9724
9725   * Tooling
9726     * `rustpkg` has been deprecated and removed from the main repository. Its
9727       replacement, `cargo`, is under development.
9728     * Nightly builds of rust are now available
9729     * The memory usage of rustc has been improved many times throughout this
9730       release cycle.
9731     * The build process supports disabling rpath support for the rustc binary
9732       itself.
9733     * Code generation has improved in some cases, giving more information to the
9734       LLVM optimization passes to enable more extensive optimizations.
9735     * Debuginfo compatibility with lldb on OSX has been restored.
9736     * The master branch is now gated on an android bot, making building for
9737       android much more reliable.
9738     * Output flags have been centralized into one `--emit` flag.
9739     * Crate type flags have been centralized into one `--crate-type` flag.
9740     * Codegen flags have been consolidated behind a `-C` flag.
9741     * Linking against outdated crates now has improved error messages.
9742     * Error messages with lifetimes will often suggest how to annotate the
9743       function to fix the error.
9744     * Many more types are documented in the standard library, and new guides
9745       were written.
9746     * Many `rustdoc` improvements:
9747       * code blocks are syntax highlighted.
9748       * render standalone markdown files.
9749       * the --test flag tests all code blocks by default.
9750       * exported macros are displayed.
9751       * re-exported types have their documentation inlined at the location of the
9752         first re-export.
9753       * search works across crates that have been rendered to the same output
9754         directory.
9755
9756
9757 Version 0.9 (2014-01-09)
9758 ==========================
9759
9760    * ~1800 changes, numerous bugfixes
9761
9762    * Language
9763       * The `float` type has been removed. Use `f32` or `f64` instead.
9764       * A new facility for enabling experimental features (feature gating) has
9765         been added, using the crate-level `#[feature(foo)]` attribute.
9766       * Managed boxes (@) are now behind a feature gate
9767         (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
9768         standard library's `Gc` or `Rc` types instead.
9769       * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
9770       * Jumping back to the top of a loop is now done with `continue` instead of
9771         `loop`.
9772       * Strings can no longer be mutated through index assignment.
9773       * Raw strings can be created via the basic `r"foo"` syntax or with matched
9774         hash delimiters, as in `r###"foo"###`.
9775       * `~fn` is now written `proc (args) -> retval { ... }` and may only be
9776         called once.
9777       * The `&fn` type is now written `|args| -> ret` to match the literal form.
9778       * `@fn`s have been removed.
9779       * `do` only works with procs in order to make it obvious what the cost
9780         of `do` is.
9781       * Single-element tuple-like structs can no longer be dereferenced to
9782         obtain the inner value. A more comprehensive solution for overloading
9783         the dereference operator will be provided in the future.
9784       * The `#[link(...)]` attribute has been replaced with
9785         `#[crate_id = "name#vers"]`.
9786       * Empty `impl`s must be terminated with empty braces and may not be
9787         terminated with a semicolon.
9788       * Keywords are no longer allowed as lifetime names; the `self` lifetime
9789         no longer has any special meaning.
9790       * The old `fmt!` string formatting macro has been removed.
9791       * `printf!` and `printfln!` (old-style formatting) removed in favor of
9792         `print!` and `println!`.
9793       * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
9794       * The `extern mod foo (name = "bar")` syntax has been removed. Use
9795         `extern mod foo = "bar"` instead.
9796       * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
9797       * Macros can have attributes.
9798       * Macros can expand to items with attributes.
9799       * Macros can expand to multiple items.
9800       * The `asm!` macro is feature-gated (`#[feature(asm)]`).
9801       * Comments may be nested.
9802       * Values automatically coerce to trait objects they implement, without
9803         an explicit `as`.
9804       * Enum discriminants are no longer an entire word but as small as needed to
9805         contain all the variants. The `repr` attribute can be used to override
9806         the discriminant size, as in `#[repr(int)]` for integer-sized, and
9807         `#[repr(C)]` to match C enums.
9808       * Non-string literals are not allowed in attributes (they never worked).
9809       * The FFI now supports variadic functions.
9810       * Octal numeric literals, as in `0o7777`.
9811       * The `concat!` syntax extension performs compile-time string concatenation.
9812       * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
9813         removed as Rust no longer uses segmented stacks.
9814       * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
9815       * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
9816         not `*`; ignoring remaining fields of a struct is also done with `..`,
9817         not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
9818       * `rustc` supports the "win64" calling convention via `extern "win64"`.
9819       * `rustc` supports the "system" calling convention, which defaults to the
9820         preferred convention for the target platform, "stdcall" on 32-bit Windows,
9821         "C" elsewhere.
9822       * The `type_overflow` lint (default: warn) checks literals for overflow.
9823       * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
9824       * The `attribute_usage` lint (default: warn) warns about unknown
9825         attributes.
9826       * The `unknown_features` lint (default: warn) warns about unknown
9827         feature gates.
9828       * The `dead_code` lint (default: warn) checks for dead code.
9829       * Rust libraries can be linked statically to one another
9830       * `#[link_args]` is behind the `link_args` feature gate.
9831       * Native libraries are now linked with `#[link(name = "foo")]`
9832       * Native libraries can be statically linked to a rust crate
9833         (`#[link(name = "foo", kind = "static")]`).
9834       * Native OS X frameworks are now officially supported
9835         (`#[link(name = "foo", kind = "framework")]`).
9836       * The `#[thread_local]` attribute creates thread-local (not task-local)
9837         variables. Currently behind the `thread_local` feature gate.
9838       * The `return` keyword may be used in closures.
9839       * Types that can be copied via a memcpy implement the `Pod` kind.
9840       * The `cfg` attribute can now be used on struct fields and enum variants.
9841
9842    * Libraries
9843       * std: The `option` and `result` API's have been overhauled to make them
9844         simpler, more consistent, and more composable.
9845       * std: The entire `std::io` module has been replaced with one that is
9846         more comprehensive and that properly interfaces with the underlying
9847         scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
9848         implemented.
9849       * std: `io::util` contains a number of useful implementations of
9850         `Reader` and `Writer`, including `NullReader`, `NullWriter`,
9851         `ZeroReader`, `TeeReader`.
9852       * std: The reference counted pointer type `extra::rc` moved into std.
9853       * std: The `Gc` type in the `gc` module will replace `@` (it is currently
9854         just a wrapper around it).
9855       * std: The `Either` type has been removed.
9856       * std: `fmt::Default` can be implemented for any type to provide default
9857         formatting to the `format!` macro, as in `format!("{}", myfoo)`.
9858       * std: The `rand` API continues to be tweaked.
9859       * std: The `rust_begin_unwind` function, useful for inserting breakpoints
9860         on failure in gdb, is now named `rust_fail`.
9861       * std: The `each_key` and `each_value` methods on `HashMap` have been
9862         replaced by the `keys` and `values` iterators.
9863       * std: Functions dealing with type size and alignment have moved from the
9864         `sys` module to the `mem` module.
9865       * std: The `path` module was written and API changed.
9866       * std: `str::from_utf8` has been changed to cast instead of allocate.
9867       * std: `starts_with` and `ends_with` methods added to vectors via the
9868         `ImmutableEqVector` trait, which is in the prelude.
9869       * std: Vectors can be indexed with the `get_opt` method, which returns `None`
9870         if the index is out of bounds.
9871       * std: Task failure no longer propagates between tasks, as the model was
9872         complex, expensive, and incompatible with thread-based tasks.
9873       * std: The `Any` type can be used for dynamic typing.
9874       * std: `~Any` can be passed to the `fail!` macro and retrieved via
9875         `task::try`.
9876       * std: Methods that produce iterators generally do not have an `_iter`
9877         suffix now.
9878       * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
9879         roots (mutable fields, etc.). Use instead of e.g. `@mut`.
9880       * std: `util::ignore` renamed to `prelude::drop`.
9881       * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
9882         trait.
9883       * std: `vec::raw` has seen a lot of cleanup and API changes.
9884       * std: The standard library no longer includes any C++ code, and very
9885         minimal C, eliminating the dependency on libstdc++.
9886       * std: Runtime scheduling and I/O functionality has been factored out into
9887         extensible interfaces and is now implemented by two different crates:
9888         libnative, for native threading and I/O; and libgreen, for green threading
9889         and I/O. This paves the way for using the standard library in more limited
9890         embedded environments.
9891       * std: The `comm` module has been rewritten to be much faster, have a
9892         simpler, more consistent API, and to work for both native and green
9893         threading.
9894       * std: All libuv dependencies have been moved into the rustuv crate.
9895       * native: New implementations of runtime scheduling on top of OS threads.
9896       * native: New native implementations of TCP, UDP, file I/O, process spawning,
9897         and other I/O.
9898       * green: The green thread scheduler and message passing types are almost
9899         entirely lock-free.
9900       * extra: The `flatpipes` module had bitrotted and was removed.
9901       * extra: All crypto functions have been removed and Rust now has a policy of
9902         not reimplementing crypto in the standard library. In the future crypto
9903         will be provided by external crates with bindings to established libraries.
9904       * extra: `c_vec` has been modernized.
9905       * extra: The `sort` module has been removed. Use the `sort` method on
9906         mutable slices.
9907
9908    * Tooling
9909       * The `rust` and `rusti` commands have been removed, due to lack of
9910         maintenance.
9911       * `rustdoc` was completely rewritten.
9912       * `rustdoc` can test code examples in documentation.
9913       * `rustpkg` can test packages with the argument, 'test'.
9914       * `rustpkg` supports arbitrary dependencies, including C libraries.
9915       * `rustc`'s support for generating debug info is improved again.
9916       * `rustc` has better error reporting for unbalanced delimiters.
9917       * `rustc`'s JIT support was removed due to bitrot.
9918       * Executables and static libraries can be built with LTO (-Z lto)
9919       * `rustc` adds a `--dep-info` flag for communicating dependencies to
9920         build tools.
9921
9922
9923 Version 0.8 (2013-09-26)
9924 ============================
9925
9926    * ~2200 changes, numerous bugfixes
9927
9928    * Language
9929       * The `for` loop syntax has changed to work with the `Iterator` trait.
9930       * At long last, unwinding works on Windows.
9931       * Default methods are ready for use.
9932       * Many trait inheritance bugs fixed.
9933       * Owned and borrowed trait objects work more reliably.
9934       * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
9935       * rustc can omit emission of code for the `debug!` macro if it is passed
9936         `--cfg ndebug`
9937       * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
9938         for foo.rs, then foo/mod.rs, and will generate an error when both are
9939         present.
9940       * Strings no longer contain trailing nulls. The new `std::c_str` module
9941         provides new mechanisms for converting to C strings.
9942       * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
9943       * The FFI has been overhauled such that foreign functions are called directly,
9944         instead of through a stack-switching wrapper.
9945       * Calling a foreign function must be done through a Rust function with the
9946         `#[fixed_stack_segment]` attribute.
9947       * The `externfn!` macro can be used to declare both a foreign function and
9948         a `#[fixed_stack_segment]` wrapper at once.
9949       * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
9950       * `unsafe` is no longer allowed on extern fns - they are all unsafe.
9951       * `priv` is disallowed everywhere except for struct fields and enum variants.
9952       * `&T` (besides `&'static T`) is no longer allowed in `@T`.
9953       * `ref` bindings in irrefutable patterns work correctly now.
9954       * `char` is now prevented from containing invalid code points.
9955       * Casting to `bool` is no longer allowed.
9956       * `\0` is now accepted as an escape in chars and strings.
9957       * `yield` is a reserved keyword.
9958       * `typeof` is a reserved keyword.
9959       * Crates may be imported by URL with `extern mod foo = "url";`.
9960       * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
9961       * Static vectors can be initialized with repeating elements,
9962         e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
9963       * Static structs can be initialized with functional record update,
9964         e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
9965       * `cfg!` can be used to conditionally execute code based on the crate
9966         configuration, similarly to `#[cfg(...)]`.
9967       * The `unnecessary_qualification` lint detects unneeded module
9968         prefixes (default: allow).
9969       * Arithmetic operations have been implemented on the SIMD types in
9970         `std::unstable::simd`.
9971       * Exchange allocation headers were removed, reducing memory usage.
9972       * `format!` implements a completely new, extensible, and higher-performance
9973         string formatting system. It will replace `fmt!`.
9974       * `print!` and `println!` write formatted strings (using the `format!`
9975         extension) to stdout.
9976       * `write!` and `writeln!` write formatted strings (using the `format!`
9977         extension) to the new Writers in `std::rt::io`.
9978       * The library section in which a function or static is placed may
9979         be specified with `#[link_section = "..."]`.
9980       * The `proto!` syntax extension for defining bounded message protocols
9981         was removed.
9982       * `macro_rules!` is hygienic for `let` declarations.
9983       * The `#[export_name]` attribute specifies the name of a symbol.
9984       * `unreachable!` can be used to indicate unreachable code, and fails
9985         if executed.
9986
9987    * Libraries
9988       * std: Transitioned to the new runtime, written in Rust.
9989       * std: Added an experimental I/O library, `rt::io`, based on the new
9990         runtime.
9991       * std: A new generic `range` function was added to the prelude, replacing
9992         `uint::range` and friends.
9993       * std: `range_rev` no longer exists. Since range is an iterator it can be
9994         reversed with `range(lo, hi).invert()`.
9995       * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
9996         renamed to `unwrap_or`.
9997       * std: The `iterator` module was renamed to `iter`.
9998       * std: Integral types now support the `checked_add`, `checked_sub`, and
9999         `checked_mul` operations for detecting overflow.
10000       * std: Many methods in `str`, `vec`, `option, `result` were renamed for
10001         consistency.
10002       * std: Methods are standardizing on conventions for casting methods:
10003         `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
10004         and cheap casts.
10005       * std: The `CString` type in `c_str` provides new ways to convert to and
10006         from C strings.
10007       * std: `DoubleEndedIterator` can yield elements in two directions.
10008       * std: The `mut_split` method on vectors partitions an `&mut [T]` into
10009         two splices.
10010       * std: `str::from_bytes` renamed to `str::from_utf8`.
10011       * std: `pop_opt` and `shift_opt` methods added to vectors.
10012       * std: The task-local data interface no longer uses @, and keys are
10013         no longer function pointers.
10014       * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
10015       * std: Added `SharedPort` to `comm`.
10016       * std: `Eq` has a default method for `ne`; only `eq` is required
10017         in implementations.
10018       * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
10019         is required in implementations.
10020       * std: `is_utf8` performance is improved, impacting many string functions.
10021       * std: `os::MemoryMap` provides cross-platform mmap.
10022       * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
10023         are not 'in-bounds' are considered undefined.
10024       * std: Many freestanding functions in `vec` removed in favor of methods.
10025       * std: Many freestanding functions on scalar types removed in favor of
10026         methods.
10027       * std: Many options to task builders were removed since they don't make
10028         sense in the new scheduler design.
10029       * std: More containers implement `FromIterator` so can be created by the
10030         `collect` method.
10031       * std: More complete atomic types in `unstable::atomics`.
10032       * std: `comm::PortSet` removed.
10033       * std: Mutating methods in the `Set` and `Map` traits have been moved into
10034         the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
10035         `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
10036         default implementations.
10037       * std: Various `from_str` functions were removed in favor of a generic
10038         `from_str` which is available in the prelude.
10039       * std: `util::unreachable` removed in favor of the `unreachable!` macro.
10040       * extra: `dlist`, the doubly-linked list was modernized.
10041       * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
10042       * extra: Added `glob` module, replacing `std::os::glob`.
10043       * extra: `rope` was removed.
10044       * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
10045       * extra: `net`, and `timer` were removed. The experimental replacements
10046         are `std::rt::io::net` and `std::rt::io::timer`.
10047       * extra: Iterators implemented for `SmallIntMap`.
10048       * extra: Iterators implemented for `Bitv` and `BitvSet`.
10049       * extra: `SmallIntSet` removed. Use `BitvSet`.
10050       * extra: Performance of JSON parsing greatly improved.
10051       * extra: `semver` updated to SemVer 2.0.0.
10052       * extra: `term` handles more terminals correctly.
10053       * extra: `dbg` module removed.
10054       * extra: `par` module removed.
10055       * extra: `future` was cleaned up, with some method renames.
10056       * extra: Most free functions in `getopts` were converted to methods.
10057
10058    * Other
10059       * rustc's debug info generation (`-Z debug-info`) is greatly improved.
10060       * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
10061         similarly to gcc's `--march` flag.
10062       * rustc's performance compiling small crates is much better.
10063       * rustpkg has received many improvements.
10064       * rustpkg supports git tags as package IDs.
10065       * rustpkg builds into target-specific directories so it can be used for
10066         cross-compiling.
10067       * The number of concurrent test tasks is controlled by the environment
10068         variable RUST_TEST_TASKS.
10069       * The test harness can now report metrics for benchmarks.
10070       * All tools have man pages.
10071       * Programs compiled with `--test` now support the `-h` and `--help` flags.
10072       * The runtime uses jemalloc for allocations.
10073       * Segmented stacks are temporarily disabled as part of the transition to
10074         the new runtime. Stack overflows are possible!
10075       * A new documentation backend, rustdoc_ng, is available for use. It is
10076         still invoked through the normal `rustdoc` command.
10077
10078
10079 Version 0.7 (2013-07-03)
10080 =======================
10081
10082    * ~2000 changes, numerous bugfixes
10083
10084    * Language
10085       * `impl`s no longer accept a visibility qualifier. Put them on methods
10086         instead.
10087       * The borrow checker has been rewritten with flow-sensitivity, fixing
10088         many bugs and inconveniences.
10089       * The `self` parameter no longer implicitly means `&'self self`,
10090         and can be explicitly marked with a lifetime.
10091       * Overloadable compound operators (`+=`, etc.) have been temporarily
10092         removed due to bugs.
10093       * The `for` loop protocol now requires `for`-iterators to return `bool`
10094         so they compose better.
10095       * The `Durable` trait is replaced with the `'static` bounds.
10096       * Trait default methods work more often.
10097       * Structs with the `#[packed]` attribute have byte alignment and
10098         no padding between fields.
10099       * Type parameters bound by `Copy` must now be copied explicitly with
10100         the `copy` keyword.
10101       * It is now illegal to move out of a dereferenced unsafe pointer.
10102       * `Option<~T>` is now represented as a nullable pointer.
10103       * `@mut` does dynamic borrow checks correctly.
10104       * The `main` function is only detected at the topmost level of the crate.
10105         The `#[main]` attribute is still valid anywhere.
10106       * Struct fields may no longer be mutable. Use inherited mutability.
10107       * The `#[no_send]` attribute makes a type that would otherwise be
10108         `Send`, not.
10109       * The `#[no_freeze]` attribute makes a type that would otherwise be
10110         `Freeze`, not.
10111       * Unbounded recursion will abort the process after reaching the limit
10112         specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
10113       * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
10114         are never implicitly copyable.
10115       * `#[static_assert]` makes compile-time assertions about static bools.
10116       * At long last, 'argument modes' no longer exist.
10117       * The rarely used `use mod` statement no longer exists.
10118
10119    * Syntax extensions
10120       * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
10121         argument list.
10122       * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
10123         `Rand`, `Zero` and `ToStr` can all be automatically derived with
10124         `#[deriving(...)]`.
10125       * The `bytes!` macro returns a vector of bytes for string, u8, char,
10126         and unsuffixed integer literals.
10127
10128    * Libraries
10129       * The `core` crate was renamed to `std`.
10130       * The `std` crate was renamed to `extra`.
10131       * More and improved documentation.
10132       * std: `iterator` module for external iterator objects.
10133       * Many old-style (internal, higher-order function) iterators replaced by
10134         implementations of `Iterator`.
10135       * std: Many old internal vector and string iterators,
10136         incl. `any`, `all`. removed.
10137       * std: The `finalize` method of `Drop` renamed to `drop`.
10138       * std: The `drop` method now takes `&mut self` instead of `&self`.
10139       * std: The prelude no longer re-exports any modules, only types and traits.
10140       * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
10141         `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
10142       * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
10143         `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
10144       * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
10145         `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
10146       * std: Many types implement `Clone`.
10147       * std: `path` type renamed to `Path`.
10148       * std: `mut` module and `Mut` type removed.
10149       * std: Many standalone functions removed in favor of methods and iterators
10150         in `vec`, `str`. In the future methods will also work as functions.
10151       * std: `reinterpret_cast` removed. Use `transmute`.
10152       * std: ascii string handling in `std::ascii`.
10153       * std: `Rand` is implemented for ~/@.
10154       * std: `run` module for spawning processes overhauled.
10155       * std: Various atomic types added to `unstable::atomic`.
10156       * std: Various types implement `Zero`.
10157       * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
10158       * std: Borrowed pointer functions moved from `ptr` to `borrow`.
10159       * std: Added `os::mkdir_recursive`.
10160       * std: Added `os::glob` function performs filesystems globs.
10161       * std: `FuzzyEq` renamed to `ApproxEq`.
10162       * std: `Map` now defines `pop` and `swap` methods.
10163       * std: `Cell` constructors converted to static methods.
10164       * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
10165       * extra: `flate` module moved from `std` to `extra`.
10166       * extra: `fileinput` module for iterating over a series of files.
10167       * extra: `Complex` number type and `complex` module.
10168       * extra: `Rational` number type and `rational` module.
10169       * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
10170       * extra: `term` uses terminfo now, is more correct.
10171       * extra: `arc` functions converted to methods.
10172       * extra: Implementation of fixed output size variations of SHA-2.
10173
10174    * Tooling
10175       * `unused_variables` lint mode for unused variables (default: warn).
10176       * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
10177         (default: warn).
10178       * `unused_mut` lint mode for identifying unused `mut` qualifiers
10179         (default: warn).
10180       * `dead_assignment` lint mode for unread variables (default: warn).
10181       * `unnecessary_allocation` lint mode detects some heap allocations that are
10182         immediately borrowed so could be written without allocating (default: warn).
10183       * `missing_doc` lint mode (default: allow).
10184       * `unreachable_code` lint mode (default: warn).
10185       * The `rusti` command has been rewritten and a number of bugs addressed.
10186       * rustc outputs in color on more terminals.
10187       * rustc accepts a `--link-args` flag to pass arguments to the linker.
10188       * rustc accepts a `-Z print-link-args` flag for debugging linkage.
10189       * Compiling with `-g` will make the binary record information about
10190         dynamic borrowcheck failures for debugging.
10191       * rustdoc has a nicer stylesheet.
10192       * Various improvements to rustdoc.
10193       * Improvements to rustpkg (see the detailed release notes).
10194
10195
10196 Version 0.6 (2013-04-03)
10197 ========================
10198
10199    * ~2100 changes, numerous bugfixes
10200
10201    * Syntax changes
10202       * The self type parameter in traits is now spelled `Self`
10203       * The `self` parameter in trait and impl methods must now be explicitly
10204         named (for example: `fn f(&self) { }`). Implicit self is deprecated.
10205       * Static methods no longer require the `static` keyword and instead
10206         are distinguished by the lack of a `self` parameter
10207       * Replaced the `Durable` trait with the `'static` lifetime
10208       * The old closure type syntax with the trailing sigil has been
10209         removed in favor of the more consistent leading sigil
10210       * `super` is a keyword, and may be prefixed to paths
10211       * Trait bounds are separated with `+` instead of whitespace
10212       * Traits are implemented with `impl Trait for Type`
10213         instead of `impl Type: Trait`
10214       * Lifetime syntax is now `&'l foo` instead of `&l/foo`
10215       * The `export` keyword has finally been removed
10216       * The `move` keyword has been removed (see "Semantic changes")
10217       * The interior mutability qualifier on vectors, `[mut T]`, has been
10218         removed. Use `&mut [T]`, etc.
10219       * `mut` is no longer valid in `~mut T`. Use inherited mutability
10220       * `fail` is no longer a keyword. Use `fail!()`
10221       * `assert` is no longer a keyword. Use `assert!()`
10222       * `log` is no longer a keyword. use `debug!`, etc.
10223       * 1-tuples may be represented as `(T,)`
10224       * Struct fields may no longer be `mut`. Use inherited mutability,
10225         `@mut T`, `core::mut` or `core::cell`
10226       * `extern mod { ... }` is no longer valid syntax for foreign
10227         function modules. Use extern blocks: `extern { ... }`
10228       * Newtype enums removed. Use tuple-structs.
10229       * Trait implementations no longer support visibility modifiers
10230       * Pattern matching over vectors improved and expanded
10231       * `const` renamed to `static` to correspond to lifetime name,
10232         and make room for future `static mut` unsafe mutable globals.
10233       * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
10234       * `Clone` implementations can be automatically generated with
10235         `#[deriving(Clone)]`
10236       * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
10237         instead of `foo as Bar`.
10238       * Fixed length vector types are now written as `[int, .. 3]`
10239         instead of `[int * 3]`.
10240       * Fixed length vector types can express the length as a constant
10241         expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
10242
10243    * Semantic changes
10244       * Types with owned pointers or custom destructors move by default,
10245         eliminating the `move` keyword
10246       * All foreign functions are considered unsafe
10247       * &mut is now unaliasable
10248       * Writes to borrowed @mut pointers are prevented dynamically
10249       * () has size 0
10250       * The name of the main function can be customized using #[main]
10251       * The default type of an inferred closure is &fn instead of @fn
10252       * `use` statements may no longer be "chained" - they cannot import
10253         identifiers imported by previous `use` statements
10254       * `use` statements are crate relative, importing from the "top"
10255         of the crate by default. Paths may be prefixed with `super::`
10256         or `self::` to change the search behavior.
10257       * Method visibility is inherited from the implementation declaration
10258       * Structural records have been removed
10259       * Many more types can be used in static items, including enums
10260         'static-lifetime pointers and vectors
10261       * Pattern matching over vectors improved and expanded
10262       * Typechecking of closure types has been overhauled to
10263         improve inference and eliminate unsoundness
10264       * Macros leave scope at the end of modules, unless that module is
10265         tagged with #[macro_escape]
10266
10267    * Libraries
10268       * Added big integers to `std::bigint`
10269       * Removed `core::oldcomm` module
10270       * Added pipe-based `core::comm` module
10271       * Numeric traits have been reorganized under `core::num`
10272       * `vec::slice` finally returns a slice
10273       * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
10274       * Containers reorganized around traits in `core::container`
10275       * `core::dvec` removed, `~[T]` is a drop-in replacement
10276       * `core::send_map` renamed to `core::hashmap`
10277       * `std::map` removed; replaced with `core::hashmap`
10278       * `std::treemap` reimplemented as an owned balanced tree
10279       * `std::deque` and `std::smallintmap` reimplemented as owned containers
10280       * `core::trie` added as a fast ordered map for integer keys
10281       * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
10282       * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
10283         overload the comparison operators, whereas `TotalOrd` is used
10284         by certain container types
10285
10286    * Other
10287       * Replaced the 'cargo' package manager with 'rustpkg'
10288       * Added all-purpose 'rust' tool
10289       * `rustc --test` now supports benchmarks with the `#[bench]` attribute
10290       * rustc now *attempts* to offer spelling suggestions
10291       * Improved support for ARM and Android
10292       * Preliminary MIPS backend
10293       * Improved foreign function ABI implementation for x86, x86_64
10294       * Various memory usage improvements
10295       * Rust code may be embedded in foreign code under limited circumstances
10296       * Inline assembler supported by new asm!() syntax extension.
10297
10298
10299 Version 0.5 (2012-12-21)
10300 ===========================
10301
10302    * ~900 changes, numerous bugfixes
10303
10304    * Syntax changes
10305       * Removed `<-` move operator
10306       * Completed the transition from the `#fmt` extension syntax to `fmt!`
10307       * Removed old fixed length vector syntax - `[T]/N`
10308       * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
10309       * Macros may now expand to items and statements
10310       * `a.b()` is always parsed as a method call, never as a field projection
10311       * `Eq` and `IterBytes` implementations can be automatically generated
10312         with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
10313       * Removed the special crate language for `.rc` files
10314       * Function arguments may consist of any irrefutable pattern
10315
10316    * Semantic changes
10317       * `&` and `~` pointers may point to objects
10318       * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
10319       * Enum variants may be structs
10320       * Destructors can be added to all nominal types with the Drop trait
10321       * Structs and nullary enum variants may be constants
10322       * Values that cannot be implicitly copied are now automatically moved
10323         without writing `move` explicitly
10324       * `&T` may now be coerced to `*T`
10325       * Coercions happen in `let` statements as well as function calls
10326       * `use` statements now take crate-relative paths
10327       * The module and type namespaces have been merged so that static
10328         method names can be resolved under the trait in which they are
10329         declared
10330
10331    * Improved support for language features
10332       * Trait inheritance works in many scenarios
10333       * More support for explicit self arguments in methods - `self`, `&self`
10334         `@self`, and `~self` all generally work as expected
10335       * Static methods work in more situations
10336       * Experimental: Traits may declare default methods for the implementations
10337         to use
10338
10339    * Libraries
10340       * New condition handling system in `core::condition`
10341       * Timsort added to `std::sort`
10342       * New priority queue, `std::priority_queue`
10343       * Pipes for serializable types, `std::flatpipes'
10344       * Serialization overhauled to be trait-based
10345       * Expanded `getopts` definitions
10346       * Moved futures to `std`
10347       * More functions are pure now
10348       * `core::comm` renamed to `oldcomm`. Still deprecated
10349       * `rustdoc` and `cargo` are libraries now
10350
10351    * Misc
10352       * Added a preliminary REPL, `rusti`
10353       * License changed from MIT to dual MIT/APL2
10354
10355
10356 Version 0.4 (2012-10-15)
10357 ==========================
10358
10359    * ~2000 changes, numerous bugfixes
10360
10361    * Syntax
10362       * All keywords are now strict and may not be used as identifiers anywhere
10363       * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
10364         'of', 'with', 'to', 'class'.
10365       * Classes are replaced with simpler structs
10366       * Explicit method self types
10367       * `ret` became `return` and `alt` became `match`
10368       * `import` is now `use`; `use is now `extern mod`
10369       * `extern mod { ... }` is now `extern { ... }`
10370       * `use mod` is the recommended way to import modules
10371       * `pub` and `priv` replace deprecated export lists
10372       * The syntax of `match` pattern arms now uses fat arrow (=>)
10373       * `main` no longer accepts an args vector; use `os::args` instead
10374
10375    * Semantics
10376       * Trait implementations are now coherent, ala Haskell typeclasses
10377       * Trait methods may be static
10378       * Argument modes are deprecated
10379       * Borrowed pointers are much more mature and recommended for use
10380       * Strings and vectors in the static region are stored in constant memory
10381       * Typestate was removed
10382       * Resolution rewritten to be more reliable
10383       * Support for 'dual-mode' data structures (freezing and thawing)
10384
10385    * Libraries
10386       * Most binary operators can now be overloaded via the traits in
10387         `core::ops'
10388       * `std::net::url` for representing URLs
10389       * Sendable hash maps in `core::send_map`
10390       * `core::task' gained a (currently unsafe) task-local storage API
10391
10392    * Concurrency
10393       * An efficient new intertask communication primitive called the pipe,
10394         along with a number of higher-level channel types, in `core::pipes`
10395       * `std::arc`, an atomically reference counted, immutable, shared memory
10396         type
10397       * `std::sync`, various exotic synchronization tools based on arcs and pipes
10398       * Futures are now based on pipes and sendable
10399       * More robust linked task failure
10400       * Improved task builder API
10401
10402    * Other
10403       * Improved error reporting
10404       * Preliminary JIT support
10405       * Preliminary work on precise GC
10406       * Extensive architectural improvements to rustc
10407       * Begun a transition away from buggy C++-based reflection (shape) code to
10408         Rust-based (visitor) code
10409       * All hash functions and tables converted to secure, randomized SipHash
10410
10411
10412 Version 0.3  (2012-07-12)
10413 ========================
10414
10415    * ~1900 changes, numerous bugfixes
10416
10417    * New coding conveniences
10418       * Integer-literal suffix inference
10419       * Per-item control over warnings, errors
10420       * #[cfg(windows)] and #[cfg(unix)] attributes
10421       * Documentation comments
10422       * More compact closure syntax
10423       * 'do' expressions for treating higher-order functions as
10424         control structures
10425       * *-patterns (wildcard extended to all constructor fields)
10426
10427    * Semantic cleanup
10428       * Name resolution pass and exhaustiveness checker rewritten
10429       * Region pointers and borrow checking supersede alias
10430         analysis
10431       * Init-ness checking is now provided by a region-based liveness
10432         pass instead of the typestate pass; same for last-use analysis
10433       * Extensive work on region pointers
10434
10435    * Experimental new language features
10436       * Slices and fixed-size, interior-allocated vectors
10437       * #!-comments for lang versioning, shell execution
10438       * Destructors and iface implementation for classes;
10439         type-parameterized classes and class methods
10440       * 'const' type kind for types that can be used to implement
10441         shared-memory concurrency patterns
10442
10443    * Type reflection
10444
10445    * Removal of various obsolete features
10446       * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
10447                  'crust', 'native' (now 'extern'), 'cont' (now 'again')
10448
10449       * Constructs: do-while loops ('do' repurposed), fn binding,
10450                     resources (replaced by destructors)
10451
10452    * Compiler reorganization
10453       * Syntax-layer of compiler split into separate crate
10454       * Clang (from LLVM project) integrated into build
10455       * Typechecker split into sub-modules
10456
10457    * New library code
10458       * New time functions
10459       * Extension methods for many built-in types
10460       * Arc: atomic-refcount read-only / exclusive-use shared cells
10461       * Par: parallel map and search routines
10462       * Extensive work on libuv interface
10463       * Much vector code moved to libraries
10464       * Syntax extensions: #line, #col, #file, #mod, #stringify,
10465         #include, #include_str, #include_bin
10466
10467    * Tool improvements
10468       * Cargo automatically resolves dependencies
10469
10470
10471 Version 0.2  (2012-03-29)
10472 =========================
10473
10474    * >1500 changes, numerous bugfixes
10475
10476    * New docs and doc tooling
10477
10478    * New port: FreeBSD x86_64
10479
10480    * Compilation model enhancements
10481       * Generics now specialized, multiply instantiated
10482       * Functions now inlined across separate crates
10483
10484    * Scheduling, stack and threading fixes
10485       * Noticeably improved message-passing performance
10486       * Explicit schedulers
10487       * Callbacks from C
10488       * Helgrind clean
10489
10490    * Experimental new language features
10491       * Operator overloading
10492       * Region pointers
10493       * Classes
10494
10495    * Various language extensions
10496       * C-callback function types: 'crust fn ...'
10497       * Infinite-loop construct: 'loop { ... }'
10498       * Shorten 'mutable' to 'mut'
10499       * Required mutable-local qualifier: 'let mut ...'
10500       * Basic glob-exporting: 'export foo::*;'
10501       * Alt now exhaustive, 'alt check' for runtime-checked
10502       * Block-function form of 'for' loop, with 'break' and 'ret'.
10503
10504    * New library code
10505       * AST quasi-quote syntax extension
10506       * Revived libuv interface
10507       * New modules: core::{future, iter}, std::arena
10508       * Merged per-platform std::{os*, fs*} to core::{libc, os}
10509       * Extensive cleanup, regularization in libstd, libcore
10510
10511
10512 Version 0.1  (2012-01-20)
10513 ===============================
10514
10515    * Most language features work, including:
10516       * Unique pointers, unique closures, move semantics
10517       * Interface-constrained generics
10518       * Static interface dispatch
10519       * Stack growth
10520       * Multithread task scheduling
10521       * Typestate predicates
10522       * Failure unwinding, destructors
10523       * Pattern matching and destructuring assignment
10524       * Lightweight block-lambda syntax
10525       * Preliminary macro-by-example
10526
10527    * Compiler works with the following configurations:
10528       * Linux: x86 and x86_64 hosts and targets
10529       * macOS: x86 and x86_64 hosts and targets
10530       * Windows: x86 hosts and targets
10531
10532    * Cross compilation / multi-target configuration supported.
10533
10534    * Preliminary API-documentation and package-management tools included.
10535
10536 Known issues:
10537
10538    * Documentation is incomplete.
10539
10540    * Performance is below intended target.
10541
10542    * Standard library APIs are subject to extensive change, reorganization.
10543
10544    * Language-level versioning is not yet operational - future code will
10545      break unexpectedly.