1 Version 1.60.0 (2022-04-07)
2 ==========================
6 - [Stabilize `#[cfg(panic = "...")]` for either `"unwind"` or `"abort"`.][93658]
7 - [Stabilize `#[cfg(target_has_atomic = "...")]` for each integer size and `"ptr"`.][93824]
11 - [Enable combining `+crt-static` and `relocation-model=pic` on `x86_64-unknown-linux-gnu`][86374]
12 - [Fixes wrong `unreachable_pub` lints on nested and glob public reexport][87487]
13 - [Stabilize `-Z instrument-coverage` as `-C instrument-coverage`][90132]
14 - [Implement raw-dylib support for windows-gnu][90782]
15 - [Stabilize `-Z print-link-args` as `--print link-args`][91606]
16 - [`mips64-openwrt-linux-musl`: Add Tier 3 target][92300]
17 - [Add new target `armv7-unknown-linux-uclibceabi` (softfloat)][92383]
18 - [Fix invalid removal of newlines from doc comments][92357]
19 - [Add kernel target for RustyHermit][92670]
20 - [Deny mixing bin crate type with lib crate types][92933]
21 - [Make rustc use `RUST_BACKTRACE=full` by default][93566]
22 - [Upgrade to LLVM 14][93577]
26 - [Guarantee call order for `sort_by_cached_key`][89621]
27 - [Improve `Duration::try_from_secs_f32`/`f64` accuracy by directly processing exponent and mantissa][90247]
28 - [Switch all libraries to the 2021 edition][92068]
29 - [Make `Instant::{duration_since, elapsed, sub}` saturating and remove workarounds][89926]
30 - [Change PhantomData type for `BuildHasherDefault` (and more)][92630]
34 - [`Arc::new_cyclic`][arc_new_cyclic]
35 - [`Rc::new_cyclic`][rc_new_cyclic]
36 - [`slice::EscapeAscii`][slice_escape_ascii]
37 - [`<[u8]>::escape_ascii`][slice_u8_escape_ascii]
38 - [`u8::escape_ascii`][u8_escape_ascii]
39 - [`Vec::spare_capacity_mut`][vec_spare_capacity_mut]
40 - [`MaybeUninit::assume_init_drop`][assume_init_drop]
41 - [`MaybeUninit::assume_init_read`][assume_init_read]
42 - [`i8::abs_diff`][i8_abs_diff]
43 - [`i16::abs_diff`][i16_abs_diff]
44 - [`i32::abs_diff`][i32_abs_diff]
45 - [`i64::abs_diff`][i64_abs_diff]
46 - [`i128::abs_diff`][i128_abs_diff]
47 - [`isize::abs_diff`][isize_abs_diff]
48 - [`u8::abs_diff`][u8_abs_diff]
49 - [`u16::abs_diff`][u16_abs_diff]
50 - [`u32::abs_diff`][u32_abs_diff]
51 - [`u64::abs_diff`][u64_abs_diff]
52 - [`u128::abs_diff`][u128_abs_diff]
53 - [`usize::abs_diff`][usize_abs_diff]
54 - [`Display for io::ErrorKind`][display_error_kind]
55 - [`From<u8> for ExitCode`][from_u8_exit_code]
56 - [`Not for !` (the "never" type)][not_never]
57 - [_Op_`Assign<$t> for Wrapping<$t>`][wrapping_assign_ops]
58 - [`arch::is_aarch64_feature_detected!`][is_aarch64_feature_detected]
62 - [Print executable name on `cargo test --no-run`.][cargo/9959]
63 - [Port cargo from `toml-rs` to `toml_edit`][cargo/10086]
64 - [Stabilize `-Ztimings` as `--timings`][cargo/10245]
65 - [Accept more `cargo:rustc-link-arg-*` types from build script output.][cargo/10274]
66 - [cargo-new should not add ignore rule on Cargo.lock inside subdirs][cargo/10379]
70 - [Add manifest docs fallback for tier-2 platforms.][92800]
71 - [Drop rustc-docs from complete profile][93742]
72 - [bootstrap: tidy up flag handling for llvm build][93918]
76 - [Remove compiler-rt linking hack on Android][83822]
77 - [Remove deprecated LLVM-style inline assembly][92816]
78 - [Reject unsupported naked functions][93153]
79 - [Remove deprecated `--host` arg for cargo search and publish cmds][cargo/10327]
84 These changes provide no direct user facing benefits, but represent significant
85 improvements to the internals and overall performance of rustc
88 <!-- TODO: anything to highlight? -->
90 [83822]: https://github.com/rust-lang/rust/pull/83822
91 [86374]: https://github.com/rust-lang/rust/pull/86374
92 [87487]: https://github.com/rust-lang/rust/pull/87487
93 [89621]: https://github.com/rust-lang/rust/pull/89621
94 [89926]: https://github.com/rust-lang/rust/pull/89926
95 [90132]: https://github.com/rust-lang/rust/pull/90132
96 [90247]: https://github.com/rust-lang/rust/pull/90247
97 [90782]: https://github.com/rust-lang/rust/pull/90782
98 [91606]: https://github.com/rust-lang/rust/pull/91606
99 [92068]: https://github.com/rust-lang/rust/pull/92068
100 [92300]: https://github.com/rust-lang/rust/pull/92300
101 [92357]: https://github.com/rust-lang/rust/pull/92357
102 [92383]: https://github.com/rust-lang/rust/pull/92383
103 [92630]: https://github.com/rust-lang/rust/pull/92630
104 [92670]: https://github.com/rust-lang/rust/pull/92670
105 [92800]: https://github.com/rust-lang/rust/pull/92800
106 [92816]: https://github.com/rust-lang/rust/pull/92816
107 [92933]: https://github.com/rust-lang/rust/pull/92933
108 [93153]: https://github.com/rust-lang/rust/pull/93153
109 [93566]: https://github.com/rust-lang/rust/pull/93566
110 [93577]: https://github.com/rust-lang/rust/pull/93577
111 [93658]: https://github.com/rust-lang/rust/pull/93658
112 [93742]: https://github.com/rust-lang/rust/pull/93742
113 [93824]: https://github.com/rust-lang/rust/pull/93824
114 [93918]: https://github.com/rust-lang/rust/pull/93918
116 [cargo/9959]: https://github.com/rust-lang/cargo/pull/9959
117 [cargo/10086]: https://github.com/rust-lang/cargo/pull/10086
118 [cargo/10245]: https://github.com/rust-lang/cargo/pull/10245
119 [cargo/10274]: https://github.com/rust-lang/cargo/pull/10274
120 [cargo/10379]: https://github.com/rust-lang/cargo/pull/10379
121 [cargo/10327]: https://github.com/rust-lang/cargo/pull/10327
123 [arc_new_cyclic]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.new_cyclic
124 [rc_new_cyclic]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.new_cyclic
125 [slice_escape_ascii]: https://doc.rust-lang.org/stable/std/slice/struct.EscapeAscii.html
126 [slice_u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.escape_ascii
127 [u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.escape_ascii
128 [vec_spare_capacity_mut]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.spare_capacity_mut
129 [assume_init_drop]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_drop
130 [assume_init_read]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_read
131 [i8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.abs_diff
132 [i16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.abs_diff
133 [i32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.abs_diff
134 [i64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.abs_diff
135 [i128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.abs_diff
136 [isize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.abs_diff
137 [u8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.abs_diff
138 [u16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.abs_diff
139 [u32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.abs_diff
140 [u64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.abs_diff
141 [u128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.abs_diff
142 [usize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.abs_diff
143 [display_error_kind]: https://doc.rust-lang.org/stable/std/io/enum.ErrorKind.html#impl-Display
144 [from_u8_exit_code]: https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html#impl-From%3Cu8%3E
145 [not_never]: https://doc.rust-lang.org/stable/std/primitive.never.html#impl-Not
146 [wrapping_assign_ops]: https://doc.rust-lang.org/stable/std/num/struct.Wrapping.html#trait-implementations
147 [is_aarch64_feature_detected]: https://doc.rust-lang.org/stable/std/arch/macro.is_aarch64_feature_detected.html
149 Version 1.59.0 (2022-02-24)
150 ==========================
155 - [Stabilize default arguments for const parameters and remove the ordering restriction for type and const parameters][90207]
156 - [Stabilize destructuring assignment][90521]
157 - [Relax private in public lint on generic bounds and where clauses of trait impls][90586]
158 - [Stabilize asm! and global_asm! for x86, x86_64, ARM, Aarch64, and RISC-V][91728]
163 - [Stabilize new symbol mangling format, leaving it opt-in (-Csymbol-mangling-version=v0)][90128]
164 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
165 - [Fix sparc64 ABI for aggregates with floating point members][91003]
166 - [Warn when a `#[test]`-like built-in attribute macro is present multiple times.][91172]
167 - [Add support for riscv64gc-unknown-freebsd][91284]
168 - [Stabilize `-Z emit-future-incompat` as `--json future-incompat`][91535]
169 - [Soft disable incremental compilation][94124]
171 This release disables incremental compilation, unless the user has explicitly
172 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
173 This is due to a known and relatively frequently occurring bug in incremental
174 compilation, which causes builds to issue internal compiler errors. This
175 particular bug is already fixed on nightly, but that fix has not yet rolled out
176 to stable and is deemed too risky for a direct stable backport.
178 As always, we encourage users to test with nightly and report bugs so that we
179 can track failures and fix issues earlier.
181 See [94124] for more details.
183 [94124]: https://github.com/rust-lang/rust/issues/94124
188 - [Remove unnecessary bounds for some Hash{Map,Set} methods][91593]
193 - [`std::thread::available_parallelism`][available_parallelism]
194 - [`Result::copied`][result-copied]
195 - [`Result::cloned`][result-cloned]
196 - [`arch::asm!`][asm]
197 - [`arch::global_asm!`][global_asm]
198 - [`ops::ControlFlow::is_break`][is_break]
199 - [`ops::ControlFlow::is_continue`][is_continue]
200 - [`TryFrom<char> for u8`][try_from_char_u8]
201 - [`char::TryFromCharError`][try_from_char_err]
202 implementing `Clone`, `Debug`, `Display`, `PartialEq`, `Copy`, `Eq`, `Error`
204 - [`NonZeroU8::is_power_of_two`][is_power_of_two8]
205 - [`NonZeroU16::is_power_of_two`][is_power_of_two16]
206 - [`NonZeroU32::is_power_of_two`][is_power_of_two32]
207 - [`NonZeroU64::is_power_of_two`][is_power_of_two64]
208 - [`NonZeroU128::is_power_of_two`][is_power_of_two128]
209 - [`NonZeroUsize::is_power_of_two`][is_power_of_two_usize]
210 - [`DoubleEndedIterator for ToLowercase`][lowercase]
211 - [`DoubleEndedIterator for ToUppercase`][uppercase]
212 - [`TryFrom<&mut [T]> for [T; N]`][tryfrom_ref_arr]
213 - [`UnwindSafe for Once`][unwindsafe_once]
214 - [`RefUnwindSafe for Once`][refunwindsafe_once]
215 - [armv8 neon intrinsics for aarch64][stdarch/1266]
219 - [`mem::MaybeUninit::as_ptr`][muninit_ptr]
220 - [`mem::MaybeUninit::assume_init`][muninit_init]
221 - [`mem::MaybeUninit::assume_init_ref`][muninit_init_ref]
222 - [`ffi::CStr::from_bytes_with_nul_unchecked`][cstr_from_bytes]
227 - [Stabilize the `strip` profile option][cargo/10088]
228 - [Stabilize future-incompat-report][cargo/10165]
229 - [Support abbreviating `--release` as `-r`][cargo/10133]
230 - [Support `term.quiet` configuration][cargo/10152]
231 - [Remove `--host` from cargo {publish,search,login}][cargo/10145]
236 - [Refactor weak symbols in std::sys::unix][90846]
237 This may add new, versioned, symbols when building with a newer glibc, as the
238 standard library uses weak linkage rather than dynamically attempting to load
239 certain symbols at runtime.
240 - [Deprecate crate_type and crate_name nested inside `#![cfg_attr]`][83744]
241 This adds a future compatibility lint to supporting the use of cfg_attr
242 wrapping either crate_type or crate_name specification within Rust files;
243 it is recommended that users migrate to setting the equivalent command line
245 - [Remove effect of `#[no_link]` attribute on name resolution][92034]
246 This may expose new names, leading to conflicts with preexisting names in a
247 given namespace and a compilation failure.
248 - [Cargo will document libraries before binaries.][cargo/10172]
249 - [Respect doc=false in dependencies, not just the root crate][cargo/10201]
250 - [Weaken guarantee around advancing underlying iterators in zip][83791]
251 - [Make split_inclusive() on an empty slice yield an empty output][89825]
252 - [Update std::env::temp_dir to use GetTempPath2 on Windows when available.][89999]
253 - [unreachable! was updated to match other formatting macro behavior on Rust 2021][92137]
258 These changes provide no direct user facing benefits, but represent significant
259 improvements to the internals and overall performance of rustc
262 - [Fix many cases of normalization-related ICEs][91255]
263 - [Replace dominators algorithm with simple Lengauer-Tarjan][85013]
264 - [Store liveness in interval sets for region inference][90637]
266 - [Remove `in_band_lifetimes` from the compiler and standard library, in preparation for removing this
267 unstable feature.][91867]
269 [91867]: https://github.com/rust-lang/rust/issues/91867
270 [83744]: https://github.com/rust-lang/rust/pull/83744/
271 [83791]: https://github.com/rust-lang/rust/pull/83791/
272 [85013]: https://github.com/rust-lang/rust/pull/85013/
273 [89825]: https://github.com/rust-lang/rust/pull/89825/
274 [89999]: https://github.com/rust-lang/rust/pull/89999/
275 [90128]: https://github.com/rust-lang/rust/pull/90128/
276 [90207]: https://github.com/rust-lang/rust/pull/90207/
277 [90521]: https://github.com/rust-lang/rust/pull/90521/
278 [90586]: https://github.com/rust-lang/rust/pull/90586/
279 [90637]: https://github.com/rust-lang/rust/pull/90637/
280 [90833]: https://github.com/rust-lang/rust/pull/90833/
281 [90846]: https://github.com/rust-lang/rust/pull/90846/
282 [91003]: https://github.com/rust-lang/rust/pull/91003/
283 [91172]: https://github.com/rust-lang/rust/pull/91172/
284 [91255]: https://github.com/rust-lang/rust/pull/91255/
285 [91284]: https://github.com/rust-lang/rust/pull/91284/
286 [91535]: https://github.com/rust-lang/rust/pull/91535/
287 [91593]: https://github.com/rust-lang/rust/pull/91593/
288 [91728]: https://github.com/rust-lang/rust/pull/91728/
289 [91878]: https://github.com/rust-lang/rust/pull/91878/
290 [91896]: https://github.com/rust-lang/rust/pull/91896/
291 [91926]: https://github.com/rust-lang/rust/pull/91926/
292 [91984]: https://github.com/rust-lang/rust/pull/91984/
293 [92020]: https://github.com/rust-lang/rust/pull/92020/
294 [92034]: https://github.com/rust-lang/rust/pull/92034/
295 [92137]: https://github.com/rust-lang/rust/pull/92137/
296 [92483]: https://github.com/rust-lang/rust/pull/92483/
297 [cargo/10088]: https://github.com/rust-lang/cargo/pull/10088/
298 [cargo/10133]: https://github.com/rust-lang/cargo/pull/10133/
299 [cargo/10145]: https://github.com/rust-lang/cargo/pull/10145/
300 [cargo/10152]: https://github.com/rust-lang/cargo/pull/10152/
301 [cargo/10165]: https://github.com/rust-lang/cargo/pull/10165/
302 [cargo/10172]: https://github.com/rust-lang/cargo/pull/10172/
303 [cargo/10201]: https://github.com/rust-lang/cargo/pull/10201/
304 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269/
306 [cstr_from_bytes]: https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked
307 [muninit_ptr]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.as_ptr
308 [muninit_init]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init
309 [muninit_init_ref]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
310 [unwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-UnwindSafe
311 [refunwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-RefUnwindSafe
312 [tryfrom_ref_arr]: https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html#impl-TryFrom%3C%26%27_%20mut%20%5BT%5D%3E
313 [lowercase]: https://doc.rust-lang.org/stable/std/char/struct.ToLowercase.html#impl-DoubleEndedIterator
314 [uppercase]: https://doc.rust-lang.org/stable/std/char/struct.ToUppercase.html#impl-DoubleEndedIterator
315 [try_from_char_err]: https://doc.rust-lang.org/stable/std/char/struct.TryFromCharError.html
316 [available_parallelism]: https://doc.rust-lang.org/stable/std/thread/fn.available_parallelism.html
317 [result-copied]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.copied
318 [result-cloned]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.cloned
319 [asm]: https://doc.rust-lang.org/stable/core/arch/macro.asm.html
320 [global_asm]: https://doc.rust-lang.org/stable/core/arch/macro.global_asm.html
321 [is_break]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_break
322 [is_continue]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_continue
323 [try_from_char_u8]: https://doc.rust-lang.org/stable/std/primitive.char.html#impl-TryFrom%3Cchar%3E
324 [zip]: https://doc.rust-lang.org/stable/std/iter/fn.zip.html
325 [is_power_of_two8]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU8.html#method.is_power_of_two
326 [is_power_of_two16]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU16.html#method.is_power_of_two
327 [is_power_of_two32]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU32.html#method.is_power_of_two
328 [is_power_of_two64]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU64.html#method.is_power_of_two
329 [is_power_of_two128]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU128.html#method.is_power_of_two
330 [is_power_of_two_usize]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroUsize.html#method.is_power_of_two
331 [stdarch/1266]: https://github.com/rust-lang/stdarch/pull/1266
333 Version 1.58.1 (2022-01-19)
334 ===========================
336 * Fix race condition in `std::fs::remove_dir_all` ([CVE-2022-21658])
337 * [Handle captured arguments in the `useless_format` Clippy lint][clippy/8295]
338 * [Move `non_send_fields_in_send_ty` Clippy lint to nursery][clippy/8075]
339 * [Fix wrong error message displayed when some imports are missing][91254]
340 * [Fix rustfmt not formatting generated files from stdin][92912]
342 [CVE-2022-21658]: https://www.cve.org/CVERecord?id=CVE-2022-21658
343 [91254]: https://github.com/rust-lang/rust/pull/91254
344 [92912]: https://github.com/rust-lang/rust/pull/92912
345 [clippy/8075]: https://github.com/rust-lang/rust-clippy/pull/8075
346 [clippy/8295]: https://github.com/rust-lang/rust-clippy/pull/8295
348 Version 1.58.0 (2022-01-13)
349 ==========================
354 - [Format strings can now capture arguments simply by writing `{ident}` in the string.][90473] This works in all macros accepting format strings. Support for this in `panic!` (`panic!("{ident}")`) requires the 2021 edition; panic invocations in previous editions that appear to be trying to use this will result in a warning lint about not having the intended effect.
355 - [`*const T` pointers can now be dereferenced in const contexts.][89551]
356 - [The rules for when a generic struct implements `Unsize` have been relaxed.][90417]
361 - [Add LLVM CFI support to the Rust compiler][89652]
362 - [Stabilize -Z strip as -C strip][90058]. Note that while release builds already don't add debug symbols for the code you compile, the compiled standard library that ships with Rust includes debug symbols, so you may want to use the `strip` option to remove these symbols to produce smaller release binaries. Note that this release only includes support in rustc, not directly in cargo.
363 - [Add support for LLVM coverage mapping format versions 5 and 6][91207]
364 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
365 - [Update the minimum external LLVM to 12][90175]
366 - [Add `x86_64-unknown-none` at Tier 3*][89062]
367 - [Build musl dist artifacts with debuginfo enabled][90733]. When building release binaries using musl, you may want to use the newly stabilized strip option to remove these debug symbols, reducing the size of your binaries.
368 - [Don't abort compilation after giving a lint error][87337]
369 - [Error messages point at the source of trait bound obligations in more places][89580]
371 \* Refer to Rust's [platform support page][platform-support-doc] for more
372 information on Rust's tiered platform support.
377 - [All remaining functions in the standard library have `#[must_use]` annotations where appropriate][89692], producing a warning when ignoring their return value. This helps catch mistakes such as expecting a function to mutate a value in place rather than return a new value.
378 - [Paths are automatically canonicalized on Windows for operations that support it][89174]
379 - [Re-enable debug checks for `copy` and `copy_nonoverlapping`][90041]
380 - [Implement `RefUnwindSafe` for `Rc<T>`][87467]
381 - [Make RSplit<T, P>: Clone not require T: Clone][90117]
382 - [Implement `Termination` for `Result<Infallible, E>`][88601]. This allows writing `fn main() -> Result<Infallible, ErrorType>`, for a program whose successful exits never involve returning from `main` (for instance, a program that calls `exit`, or that uses `exec` to run another program).
387 - [`Metadata::is_symlink`]
388 - [`Path::is_symlink`]
389 - [`{integer}::saturating_div`]
390 - [`Option::unwrap_unchecked`]
391 - [`Result::unwrap_unchecked`]
392 - [`Result::unwrap_err_unchecked`]
395 These APIs are now usable in const contexts:
398 - [`Duration::checked_add`]
399 - [`Duration::saturating_add`]
400 - [`Duration::checked_sub`]
401 - [`Duration::saturating_sub`]
402 - [`Duration::checked_mul`]
403 - [`Duration::saturating_mul`]
404 - [`Duration::checked_div`]
409 - [Add --message-format for install command][cargo/10107]
410 - [Warn when alias shadows external subcommand][cargo/10082]
415 - [Show all Deref implementations recursively in rustdoc][90183]
416 - [Use computed visibility in rustdoc][88447]
421 - [Try all stable method candidates first before trying unstable ones][90329]. This change ensures that adding new nightly-only methods to the Rust standard library will not break code invoking methods of the same name from traits outside the standard library.
422 - Windows: [`std::process::Command` will no longer search the current directory for executables.][87704]
423 - [All proc-macro backward-compatibility lints are now deny-by-default.][88041]
424 - [proc_macro: Append .0 to unsuffixed float if it would otherwise become int token][90297]
425 - [Refactor weak symbols in std::sys::unix][90846]. This optimizes accesses to glibc functions, by avoiding the use of dlopen. This does not increase the [minimum expected version of glibc](https://doc.rust-lang.org/nightly/rustc/platform-support.html). However, software distributions that use symbol versions to detect library dependencies, and which take weak symbols into account in that analysis, may detect rust binaries as requiring newer versions of glibc.
426 - [rustdoc now rejects some unexpected semicolons in doctests][91026]
431 These changes provide no direct user facing benefits, but represent significant
432 improvements to the internals and overall performance of rustc
435 - [Implement coherence checks for negative trait impls][90104]
436 - [Add rustc lint, warning when iterating over hashmaps][89558]
437 - [Optimize live point computation][90491]
438 - [Enable verification for 1/32nd of queries loaded from disk][90361]
439 - [Implement version of normalize_erasing_regions that allows for normalization failure][91255]
441 [87337]: https://github.com/rust-lang/rust/pull/87337/
442 [87467]: https://github.com/rust-lang/rust/pull/87467/
443 [87704]: https://github.com/rust-lang/rust/pull/87704/
444 [88041]: https://github.com/rust-lang/rust/pull/88041/
445 [88447]: https://github.com/rust-lang/rust/pull/88447/
446 [88601]: https://github.com/rust-lang/rust/pull/88601/
447 [89062]: https://github.com/rust-lang/rust/pull/89062/
448 [89174]: https://github.com/rust-lang/rust/pull/89174/
449 [89551]: https://github.com/rust-lang/rust/pull/89551/
450 [89558]: https://github.com/rust-lang/rust/pull/89558/
451 [89580]: https://github.com/rust-lang/rust/pull/89580/
452 [89652]: https://github.com/rust-lang/rust/pull/89652/
453 [90041]: https://github.com/rust-lang/rust/pull/90041/
454 [90058]: https://github.com/rust-lang/rust/pull/90058/
455 [90104]: https://github.com/rust-lang/rust/pull/90104/
456 [90117]: https://github.com/rust-lang/rust/pull/90117/
457 [90175]: https://github.com/rust-lang/rust/pull/90175/
458 [90183]: https://github.com/rust-lang/rust/pull/90183/
459 [90297]: https://github.com/rust-lang/rust/pull/90297/
460 [90329]: https://github.com/rust-lang/rust/pull/90329/
461 [90361]: https://github.com/rust-lang/rust/pull/90361/
462 [90417]: https://github.com/rust-lang/rust/pull/90417/
463 [90473]: https://github.com/rust-lang/rust/pull/90473/
464 [90491]: https://github.com/rust-lang/rust/pull/90491/
465 [90733]: https://github.com/rust-lang/rust/pull/90733/
466 [90833]: https://github.com/rust-lang/rust/pull/90833/
467 [90846]: https://github.com/rust-lang/rust/pull/90846/
468 [91026]: https://github.com/rust-lang/rust/pull/91026/
469 [91207]: https://github.com/rust-lang/rust/pull/91207/
470 [91255]: https://github.com/rust-lang/rust/pull/91255/
471 [cargo/10082]: https://github.com/rust-lang/cargo/pull/10082/
472 [cargo/10107]: https://github.com/rust-lang/cargo/pull/10107/
473 [`Metadata::is_symlink`]: https://doc.rust-lang.org/stable/std/fs/struct.Metadata.html#method.is_symlink
474 [`Path::is_symlink`]: https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.is_symlink
475 [`{integer}::saturating_div`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.saturating_div
476 [`Option::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unwrap_unchecked
477 [`Result::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_unchecked
478 [`Result::unwrap_err_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_err_unchecked
479 [`File::options`]: https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.options
480 [`Duration::new`]: https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.new
482 Version 1.57.0 (2021-12-02)
483 ==========================
488 - [Macro attributes may follow `#[derive]` and will see the original (pre-`cfg`) input.][87220]
489 - [Accept curly-brace macros in expressions, like `m!{ .. }.method()` and `m!{ .. }?`.][88690]
490 - [Allow panicking in constant evaluation.][89508]
491 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
496 - [Create more accurate debuginfo for vtables.][89597]
497 - [Add `armv6k-nintendo-3ds` at Tier 3\*.][88529]
498 - [Add `armv7-unknown-linux-uclibceabihf` at Tier 3\*.][88952]
499 - [Add `m68k-unknown-linux-gnu` at Tier 3\*.][88321]
500 - [Add SOLID targets at Tier 3\*:][86191] `aarch64-kmc-solid_asp3`, `armv7a-kmc-solid_asp3-eabi`, `armv7a-kmc-solid_asp3-eabihf`
502 \* Refer to Rust's [platform support page][platform-support-doc] for more
503 information on Rust's tiered platform support.
508 - [Avoid allocations and copying in `Vec::leak`][89337]
509 - [Add `#[repr(i8)]` to `Ordering`][89507]
510 - [Optimize `File::read_to_end` and `read_to_string`][89582]
511 - [Update to Unicode 14.0][89614]
512 - [Many more functions are marked `#[must_use]`][89692], producing a warning
513 when ignoring their return value. This helps catch mistakes such as expecting
514 a function to mutate a value in place rather than return a new value.
519 - [`[T; N]::as_mut_slice`][`array::as_mut_slice`]
520 - [`[T; N]::as_slice`][`array::as_slice`]
521 - [`collections::TryReserveError`]
522 - [`HashMap::try_reserve`]
523 - [`HashSet::try_reserve`]
524 - [`String::try_reserve`]
525 - [`String::try_reserve_exact`]
526 - [`Vec::try_reserve`]
527 - [`Vec::try_reserve_exact`]
528 - [`VecDeque::try_reserve`]
529 - [`VecDeque::try_reserve_exact`]
530 - [`Iterator::map_while`]
532 - [`proc_macro::is_available`]
533 - [`Command::get_program`]
534 - [`Command::get_args`]
535 - [`Command::get_envs`]
536 - [`Command::get_current_dir`]
540 These APIs are now usable in const contexts:
542 - [`hint::unreachable_unchecked`]
547 - [Stabilize custom profiles][cargo/9943]
552 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
553 This will break some builds that set `#![deny(dead_code)]`.
557 These changes provide no direct user facing benefits, but represent significant
558 improvements to the internals and overall performance of rustc
561 - [Added an experimental backend for codegen with `libgccjit`.][87260]
563 [85200]: https://github.com/rust-lang/rust/pull/85200/
564 [86191]: https://github.com/rust-lang/rust/pull/86191/
565 [87220]: https://github.com/rust-lang/rust/pull/87220/
566 [87260]: https://github.com/rust-lang/rust/pull/87260/
567 [88321]: https://github.com/rust-lang/rust/pull/88321/
568 [88529]: https://github.com/rust-lang/rust/pull/88529/
569 [88690]: https://github.com/rust-lang/rust/pull/88690/
570 [88952]: https://github.com/rust-lang/rust/pull/88952/
571 [89337]: https://github.com/rust-lang/rust/pull/89337/
572 [89507]: https://github.com/rust-lang/rust/pull/89507/
573 [89508]: https://github.com/rust-lang/rust/pull/89508/
574 [89582]: https://github.com/rust-lang/rust/pull/89582/
575 [89597]: https://github.com/rust-lang/rust/pull/89597/
576 [89614]: https://github.com/rust-lang/rust/pull/89614/
577 [89692]: https://github.com/rust-lang/rust/issues/89692/
578 [cargo/9943]: https://github.com/rust-lang/cargo/pull/9943/
579 [`array::as_mut_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_mut_slice
580 [`array::as_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_slice
581 [`collections::TryReserveError`]: https://doc.rust-lang.org/std/collections/struct.TryReserveError.html
582 [`HashMap::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_map/struct.HashMap.html#method.try_reserve
583 [`HashSet::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_set/struct.HashSet.html#method.try_reserve
584 [`String::try_reserve`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve
585 [`String::try_reserve_exact`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve_exact
586 [`Vec::try_reserve`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve
587 [`Vec::try_reserve_exact`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve_exact
588 [`VecDeque::try_reserve`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve
589 [`VecDeque::try_reserve_exact`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve_exact
590 [`Iterator::map_while`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.map_while
591 [`iter::MapWhile`]: https://doc.rust-lang.org/std/iter/struct.MapWhile.html
592 [`proc_macro::is_available`]: https://doc.rust-lang.org/proc_macro/fn.is_available.html
593 [`Command::get_program`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program
594 [`Command::get_args`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_args
595 [`Command::get_envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_envs
596 [`Command::get_current_dir`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_current_dir
597 [`CommandArgs`]: https://doc.rust-lang.org/std/process/struct.CommandArgs.html
598 [`CommandEnvs`]: https://doc.rust-lang.org/std/process/struct.CommandEnvs.html
600 Version 1.56.1 (2021-11-01)
601 ===========================
603 - New lints to detect the presence of bidirectional-override Unicode
604 codepoints in the compiled source code ([CVE-2021-42574])
606 [CVE-2021-42574]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42574
608 Version 1.56.0 (2021-10-21)
609 ========================
614 - [The 2021 Edition is now stable.][rust#88100]
615 See [the edition guide][rust-2021-edition-guide] for more details.
616 - [The pattern in `binding @ pattern` can now also introduce new bindings.][rust#85305]
617 - [Union field access is permitted in `const fn`.][rust#85769]
619 [rust-2021-edition-guide]: https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html
624 - [Upgrade to LLVM 13.][rust#87570]
625 - [Support memory, address, and thread sanitizers on aarch64-unknown-freebsd.][rust#88023]
626 - [Allow specifying a deployment target version for all iOS targets][rust#87699]
627 - [Warnings can be forced on with `--force-warn`.][rust#87472]
628 This feature is primarily intended for usage by `cargo fix`, rather than end users.
629 - [Promote `aarch64-apple-ios-sim` to Tier 2\*.][rust#87760]
630 - [Add `powerpc-unknown-freebsd` at Tier 3\*.][rust#87370]
631 - [Add `riscv32imc-esp-espidf` at Tier 3\*.][rust#87666]
633 \* Refer to Rust's [platform support page][platform-support-doc] for more
634 information on Rust's tiered platform support.
639 - [Allow writing of incomplete UTF-8 sequences via stdout/stderr on Windows.][rust#83342]
640 The Windows console still requires valid Unicode, but this change allows
641 splitting a UTF-8 character across multiple write calls. This allows, for
642 instance, programs that just read and write data buffers (e.g. copying a file
643 to stdout) without regard for Unicode or character boundaries.
644 - [Prefer `AtomicU{64,128}` over Mutex for Instant backsliding protection.][rust#83093]
645 For this use case, atomics scale much better under contention.
646 - [Implement `Extend<(A, B)>` for `(Extend<A>, Extend<B>)`][rust#85835]
647 - [impl Default, Copy, Clone for std::io::Sink and std::io::Empty][rust#86744]
648 - [`impl From<[(K, V); N]>` for all collections.][rust#84111]
649 - [Remove `P: Unpin` bound on impl Future for Pin.][rust#81363]
650 - [Treat invalid environment variable names as non-existent.][rust#86183]
651 Previously, the environment functions would panic if given a variable name
652 with an internal null character or equal sign (`=`). Now, these functions will
653 just treat such names as non-existent variables, since the OS cannot represent
654 the existence of a variable with such a name.
659 - [`std::os::unix::fs::chroot`]
660 - [`UnsafeCell::raw_get`]
661 - [`BufWriter::into_parts`]
662 - [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]
663 These APIs were previously stable in `std`, but are now also available in `core`.
665 - [`String::shrink_to`]
666 - [`OsString::shrink_to`]
667 - [`PathBuf::shrink_to`]
668 - [`BinaryHeap::shrink_to`]
669 - [`VecDeque::shrink_to`]
670 - [`HashMap::shrink_to`]
671 - [`HashSet::shrink_to`]
673 These APIs are now usable in const contexts:
675 - [`std::mem::transmute`]
676 - [`[T]::first`][`slice::first`]
677 - [`[T]::split_first`][`slice::split_first`]
678 - [`[T]::last`][`slice::last`]
679 - [`[T]::split_last`][`slice::split_last`]
684 - [Cargo supports specifying a minimum supported Rust version in Cargo.toml.][`rust-version`]
685 This has no effect at present on dependency version selection.
686 We encourage crates to specify their minimum supported Rust version, and we encourage CI systems
687 that support Rust code to include a crate's specified minimum version in the test matrix for that
693 - [Update to new argument parsing rules on Windows.][rust#87580]
694 This adjusts Rust's standard library to match the behavior of the standard
695 libraries for C/C++. The rules have changed slightly over time, and this PR
696 brings us to the latest set of rules (changed in 2008).
697 - [Disallow the aapcs calling convention on aarch64][rust#88399]
698 This was already not supported by LLVM; this change surfaces this lack of
699 support with a better error message.
700 - [Make `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` warn by default][rust#87385]
701 - [Warn when an escaped newline skips multiple lines.][rust#87671]
702 - [Calls to `libc::getpid` / `std::process::id` from `Command::pre_exec`
703 may return different values on glibc <= 2.24.][rust#81825]
704 Rust now invokes the `clone3` system call directly, when available, to use new functionality
705 available via that system call. Older versions of glibc cache the result of `getpid`, and only
706 update that cache when calling glibc's clone/fork functions, so a direct system call bypasses
707 that cache update. glibc 2.25 and newer no longer cache `getpid` for exactly this reason.
711 These changes provide no direct user facing benefits, but represent significant
712 improvements to the internals and overall performance of rustc
715 - [LLVM is compiled with PGO in published x86_64-unknown-linux-gnu artifacts.][rust#88069]
716 This improves the performance of most Rust builds.
717 - [Unify representation of macros in internal data structures.][rust#88019]
718 This change fixes a host of bugs with the handling of macros by the compiler,
721 [`std::os::unix::fs::chroot`]: https://doc.rust-lang.org/stable/std/os/unix/fs/fn.chroot.html
722 [`UnsafeCell::raw_get`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.raw_get
723 [`BufWriter::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.BufWriter.html#method.into_parts
724 [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]: https://github.com/rust-lang/rust/pull/84662
725 [`Vec::shrink_to`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.shrink_to
726 [`String::shrink_to`]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.shrink_to
727 [`OsString::shrink_to`]: https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.shrink_to
728 [`PathBuf::shrink_to`]: https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.shrink_to
729 [`BinaryHeap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.BinaryHeap.html#method.shrink_to
730 [`VecDeque::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.shrink_to
731 [`HashMap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_map/struct.HashMap.html#method.shrink_to
732 [`HashSet::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_set/struct.HashSet.html#method.shrink_to
733 [`std::mem::transmute`]: https://doc.rust-lang.org/stable/std/mem/fn.transmute.html
734 [`slice::first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.first
735 [`slice::split_first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_first
736 [`slice::last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.last
737 [`slice::split_last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_last
738 [`rust-version`]: https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field
739 [rust#87671]: https://github.com/rust-lang/rust/pull/87671
740 [rust#86183]: https://github.com/rust-lang/rust/pull/86183
741 [rust#87385]: https://github.com/rust-lang/rust/pull/87385
742 [rust#88100]: https://github.com/rust-lang/rust/pull/88100
743 [rust#85305]: https://github.com/rust-lang/rust/pull/85305
744 [rust#88069]: https://github.com/rust-lang/rust/pull/88069
745 [rust#87472]: https://github.com/rust-lang/rust/pull/87472
746 [rust#87699]: https://github.com/rust-lang/rust/pull/87699
747 [rust#87570]: https://github.com/rust-lang/rust/pull/87570
748 [rust#88023]: https://github.com/rust-lang/rust/pull/88023
749 [rust#87760]: https://github.com/rust-lang/rust/pull/87760
750 [rust#87370]: https://github.com/rust-lang/rust/pull/87370
751 [rust#87580]: https://github.com/rust-lang/rust/pull/87580
752 [rust#83342]: https://github.com/rust-lang/rust/pull/83342
753 [rust#83093]: https://github.com/rust-lang/rust/pull/83093
754 [rust#85835]: https://github.com/rust-lang/rust/pull/85835
755 [rust#86744]: https://github.com/rust-lang/rust/pull/86744
756 [rust#81363]: https://github.com/rust-lang/rust/pull/81363
757 [rust#84111]: https://github.com/rust-lang/rust/pull/84111
758 [rust#85769]: https://github.com/rust-lang/rust/pull/85769#issuecomment-854363720
759 [rust#88399]: https://github.com/rust-lang/rust/pull/88399
760 [rust#81825]: https://github.com/rust-lang/rust/pull/81825#issuecomment-808406918
761 [rust#88019]: https://github.com/rust-lang/rust/pull/88019
762 [rust#87666]: https://github.com/rust-lang/rust/pull/87666
764 Version 1.55.0 (2021-09-09)
765 ============================
769 - [You can now write open "from" range patterns (`X..`), which will start at `X` and
770 will end at the maximum value of the integer.][83918]
771 - [You can now explicitly import the prelude of different editions
772 through `std::prelude` (e.g. `use std::prelude::rust_2021::*;`).][86294]
776 - [Added tier 3\* support for `powerpc64le-unknown-freebsd`.][83572]
778 \* Refer to Rust's [platform support page][platform-support-doc] for more
779 information on Rust's tiered platform support.
784 - [Updated std's float parsing to use the Eisel-Lemire algorithm.][86761]
785 These improvements should in general provide faster string parsing of floats,
786 no longer reject certain valid floating point values, and reduce
787 the produced code size for non-stripped artifacts.
788 - [`string::Drain` now implements `AsRef<str>` and `AsRef<[u8]>`.][86858]
795 - [`IntoInnerError::into_error`]
796 - [`IntoInnerError::into_parts`]
797 - [`MaybeUninit::assume_init_mut`]
798 - [`MaybeUninit::assume_init_ref`]
799 - [`MaybeUninit::write`]
801 - [`ops::ControlFlow`]
803 - [`x86::_bittestandcomplement`]
804 - [`x86::_bittestandreset`]
805 - [`x86::_bittestandset`]
806 - [`x86_64::_bittest64`]
807 - [`x86_64::_bittestandcomplement64`]
808 - [`x86_64::_bittestandreset64`]
809 - [`x86_64::_bittestandset64`]
811 The following previously stable functions are now `const`.
813 - [`str::from_utf8_unchecked`]
818 - [Cargo will now deduplicate compiler diagnostics to the terminal when invoking
819 rustc in parallel such as when using `cargo test`.][cargo/9675]
820 - [The package definition in `cargo metadata` now includes the `"default_run"`
821 field from the manifest.][cargo/9550]
822 - [Added `cargo d` as an alias for `cargo doc`.][cargo/9680]
823 - [Added `{lib}` as formatting option for `cargo tree` to print the `"lib_name"`
824 of packages.][cargo/9663]
828 - [Added "Go to item on exact match" search option.][85876]
829 - [The "Implementors" section on traits no longer shows redundant
830 method definitions.][85970]
831 - [Trait implementations are toggled open by default.][86260] This should make the
832 implementations more searchable by tools like `CTRL+F` in your browser.
833 - [Intra-doc links should now correctly resolve associated items (e.g. methods)
834 through type aliases.][86334]
835 - [Traits which are marked with `#[doc(hidden)]` will no longer appear in the
836 "Trait Implementations" section.][86513]
841 - [std functions that return an `io::Error` will no longer use the
842 `ErrorKind::Other` variant.][85746] This is to better reflect that these
843 kinds of errors could be categorised [into newer more specific `ErrorKind`
844 variants][79965], and that they do not represent a user error.
845 - [Using environment variable names with `process::Command` on Windows now
846 behaves as expected.][85270] Previously using envionment variables with
847 `Command` would cause them to be ASCII-uppercased.
848 - [Rustdoc will now warn on using rustdoc lints that aren't prefixed
849 with `rustdoc::`][86849]
850 - `RUSTFLAGS` is no longer set for build scripts. Build scripts
851 should use `CARGO_ENCODED_RUSTFLAGS` instead. See the
852 [documentation](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts)
855 [86849]: https://github.com/rust-lang/rust/pull/86849
856 [86513]: https://github.com/rust-lang/rust/pull/86513
857 [86334]: https://github.com/rust-lang/rust/pull/86334
858 [86260]: https://github.com/rust-lang/rust/pull/86260
859 [85970]: https://github.com/rust-lang/rust/pull/85970
860 [85876]: https://github.com/rust-lang/rust/pull/85876
861 [83572]: https://github.com/rust-lang/rust/pull/83572
862 [86294]: https://github.com/rust-lang/rust/pull/86294
863 [86858]: https://github.com/rust-lang/rust/pull/86858
864 [86761]: https://github.com/rust-lang/rust/pull/86761
865 [85746]: https://github.com/rust-lang/rust/pull/85746
866 [85270]: https://github.com/rust-lang/rust/pull/85270
867 [83918]: https://github.com/rust-lang/rust/pull/83918
868 [79965]: https://github.com/rust-lang/rust/pull/79965
869 [cargo/9663]: https://github.com/rust-lang/cargo/pull/9663
870 [cargo/9675]: https://github.com/rust-lang/cargo/pull/9675
871 [cargo/9550]: https://github.com/rust-lang/cargo/pull/9550
872 [cargo/9680]: https://github.com/rust-lang/cargo/pull/9680
873 [`array::map`]: https://doc.rust-lang.org/stable/std/primitive.array.html#method.map
874 [`Bound::cloned`]: https://doc.rust-lang.org/stable/std/ops/enum.Bound.html#method.cloned
875 [`Drain::as_str`]: https://doc.rust-lang.org/stable/std/string/struct.Drain.html#method.as_str
876 [`IntoInnerError::into_error`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_error
877 [`IntoInnerError::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_parts
878 [`MaybeUninit::assume_init_mut`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_mut
879 [`MaybeUninit::assume_init_ref`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
880 [`MaybeUninit::write`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.write
881 [`ops::ControlFlow`]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html
882 [`str::from_utf8_unchecked`]: https://doc.rust-lang.org/stable/std/str/fn.from_utf8_unchecked.html
883 [`x86::_bittest`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittest.html
884 [`x86::_bittestandcomplement`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandcomplement.html
885 [`x86::_bittestandreset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandreset.html
886 [`x86::_bittestandset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandset.html
887 [`x86_64::_bittest64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittest64.html
888 [`x86_64::_bittestandcomplement64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandcomplement64.html
889 [`x86_64::_bittestandreset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandreset64.html
890 [`x86_64::_bittestandset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandset64.html
893 Version 1.54.0 (2021-07-29)
894 ============================
897 -----------------------
899 - [You can now use macros for values in some built-in attributes.][83366]
900 This primarily allows you to call macros within the `#[doc]` attribute. For
901 example, to include external documentation in your crate, you can now write
904 #![doc = include_str!("README.md")]
907 - [You can now cast between unsized slice types (and types which contain
908 unsized slices) in `const fn`.][85078]
909 - [You can now use multiple generic lifetimes with `impl Trait` where the
910 lifetimes don't explicitly outlive another.][84701] In code this means
911 that you can now have `impl Trait<'a, 'b>` where as before you could
912 only have `impl Trait<'a, 'b> where 'b: 'a`.
915 -----------------------
917 - [Rustc will now search for custom JSON targets in
918 `/lib/rustlib/<target-triple>/target.json` where `/` is the "sysroot"
919 directory.][83800] You can find your sysroot directory by running
920 `rustc --print sysroot`.
921 - [Added `wasm` as a `target_family` for WebAssembly platforms.][84072]
922 - [You can now use `#[target_feature]` on safe functions when targeting
923 WebAssembly platforms.][84988]
924 - [Improved debugger output for enums on Windows MSVC platforms.][85292]
925 - [Added tier 3\* support for `bpfel-unknown-none`
926 and `bpfeb-unknown-none`.][79608]
927 - [`-Zmutable-noalias=yes`][82834] is enabled by default when using LLVM 12 or above.
929 \* Refer to Rust's [platform support page][platform-support-doc] for more
930 information on Rust's tiered platform support.
933 -----------------------
935 - [`panic::panic_any` will now `#[track_caller]`.][85745]
936 - [Added `OutOfMemory` as a variant of `io::ErrorKind`.][84744]
937 - [ `proc_macro::Literal` now implements `FromStr`.][84717]
938 - [The implementations of vendor intrinsics in core::arch have been
939 significantly refactored.][83278] The main user-visible changes are
940 a 50% reduction in the size of libcore.rlib and stricter validation
941 of constant operands passed to intrinsics. The latter is technically
942 a breaking change, but allows Rust to more closely match the C vendor
948 - [`BTreeMap::into_keys`]
949 - [`BTreeMap::into_values`]
950 - [`HashMap::into_keys`]
951 - [`HashMap::into_values`]
953 - [`VecDeque::binary_search`]
954 - [`VecDeque::binary_search_by`]
955 - [`VecDeque::binary_search_by_key`]
956 - [`VecDeque::partition_point`]
961 - [Added the `--prune <spec>` option to `cargo-tree` to remove a package from
962 the dependency graph.][cargo/9520]
963 - [Added the `--depth` option to `cargo-tree` to print only to a certain depth
964 in the tree ][cargo/9499]
965 - [Added the `no-proc-macro` value to `cargo-tree --edges` to hide procedural
966 macro dependencies.][cargo/9488]
967 - [A new environment variable named `CARGO_TARGET_TMPDIR` is available.][cargo/9375]
968 This variable points to a directory that integration tests and benches
969 can use as a "scratchpad" for testing filesystem operations.
973 - [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
974 - [Previously unsound code is no longer permitted where different constructors in branches
975 could require different lifetimes.][85574]
976 - As previously mentioned the [`std::arch` instrinsics now uses stricter const checking][83278]
977 than before and may reject some previously accepted code.
978 - [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
979 when compiled with `codegen-units = 1`.][86063]
981 [85574]: https://github.com/rust-lang/rust/issues/85574
982 [86831]: https://github.com/rust-lang/rust/issues/86831
983 [86063]: https://github.com/rust-lang/rust/issues/86063
984 [79608]: https://github.com/rust-lang/rust/pull/79608
985 [84988]: https://github.com/rust-lang/rust/pull/84988
986 [84701]: https://github.com/rust-lang/rust/pull/84701
987 [84072]: https://github.com/rust-lang/rust/pull/84072
988 [85745]: https://github.com/rust-lang/rust/pull/85745
989 [84744]: https://github.com/rust-lang/rust/pull/84744
990 [85078]: https://github.com/rust-lang/rust/pull/85078
991 [84717]: https://github.com/rust-lang/rust/pull/84717
992 [83800]: https://github.com/rust-lang/rust/pull/83800
993 [83366]: https://github.com/rust-lang/rust/pull/83366
994 [83278]: https://github.com/rust-lang/rust/pull/83278
995 [85292]: https://github.com/rust-lang/rust/pull/85292
996 [82834]: https://github.com/rust-lang/rust/pull/82834
997 [cargo/9520]: https://github.com/rust-lang/cargo/pull/9520
998 [cargo/9499]: https://github.com/rust-lang/cargo/pull/9499
999 [cargo/9488]: https://github.com/rust-lang/cargo/pull/9488
1000 [cargo/9375]: https://github.com/rust-lang/cargo/pull/9375
1001 [`BTreeMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_keys
1002 [`BTreeMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_values
1003 [`HashMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_keys
1004 [`HashMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_values
1005 [`arch::wasm32`]: https://doc.rust-lang.org/core/arch/wasm32/index.html
1006 [`VecDeque::binary_search`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search
1007 [`VecDeque::binary_search_by`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by
1009 [`VecDeque::binary_search_by_key`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by_key
1011 [`VecDeque::partition_point`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.partition_point
1013 Version 1.53.0 (2021-06-17)
1014 ============================
1017 -----------------------
1018 - [You can now use unicode for identifiers.][83799] This allows multilingual
1019 identifiers but still doesn't allow glyphs that are not considered characters
1020 such as `◆` or `🦀`. More specifically you can now use any identifier that
1021 matches the UAX #31 "Unicode Identifier and Pattern Syntax" standard. This
1022 is the same standard as languages like Python, however Rust uses NFC
1023 normalization which may be different from other languages.
1024 - [You can now specify "or patterns" inside pattern matches.][79278]
1025 Previously you could only use `|` (OR) on complete patterns. E.g.
1029 matches!(x, Some(1) | Some(2));
1031 matches!(x, Some(1 | 2));
1033 - [Added the `:pat_param` `macro_rules!` matcher.][83386] This matcher
1034 has the same semantics as the `:pat` matcher. This is to allow `:pat`
1035 to change semantics to being a pattern fragment in a future edition.
1038 -----------------------
1039 - [Updated the minimum external LLVM version to LLVM 10.][83387]
1040 - [Added Tier 3\* support for the `wasm64-unknown-unknown` target.][80525]
1041 - [Improved debuginfo for closures and async functions on Windows MSVC.][83941]
1043 \* Refer to Rust's [platform support page][platform-support-doc] for more
1044 information on Rust's tiered platform support.
1047 -----------------------
1048 - [Abort messages will now forward to `android_set_abort_message` on
1049 Android platforms when available.][81469]
1050 - [`slice::IterMut<'_, T>` now implements `AsRef<[T]>`][82771]
1051 - [Arrays of any length now implement `IntoIterator`.][84147]
1052 Currently calling `.into_iter()` as a method on an array will
1053 return `impl Iterator<Item=&T>`, but this may change in a
1054 future edition to change `Item` to `T`. Calling `IntoIterator::into_iter`
1055 directly on arrays will provide `impl Iterator<Item=T>` as expected.
1056 - [`leading_zeros`, and `trailing_zeros` are now available on all
1057 `NonZero` integer types.][84082]
1058 - [`{f32, f64}::from_str` now parse and print special values
1059 (`NaN`, `-0`) according to IEEE 754.][78618]
1060 - [You can now index into slices using `(Bound<usize>, Bound<usize>)`.][77704]
1061 - [Add the `BITS` associated constant to all numeric types.][82565]
1065 - [`AtomicBool::fetch_update`]
1066 - [`AtomicPtr::fetch_update`]
1067 - [`BTreeMap::retain`]
1068 - [`BTreeSet::retain`]
1069 - [`BufReader::seek_relative`]
1070 - [`DebugStruct::non_exhaustive`]
1072 - [`Duration::ZERO`]
1073 - [`Duration::is_zero`]
1074 - [`Duration::saturating_add`]
1075 - [`Duration::saturating_mul`]
1076 - [`Duration::saturating_sub`]
1077 - [`ErrorKind::Unsupported`]
1078 - [`Option::insert`]
1079 - [`Ordering::is_eq`]
1080 - [`Ordering::is_ge`]
1081 - [`Ordering::is_gt`]
1082 - [`Ordering::is_le`]
1083 - [`Ordering::is_lt`]
1084 - [`Ordering::is_ne`]
1085 - [`OsStr::is_ascii`]
1086 - [`OsStr::make_ascii_lowercase`]
1087 - [`OsStr::make_ascii_uppercase`]
1088 - [`OsStr::to_ascii_lowercase`]
1089 - [`OsStr::to_ascii_uppercase`]
1090 - [`Peekable::peek_mut`]
1091 - [`Rc::decrement_strong_count`]
1092 - [`Rc::increment_strong_count`]
1093 - [`Vec::extend_from_within`]
1094 - [`array::from_mut`]
1095 - [`array::from_ref`]
1096 - [`cmp::max_by_key`]
1098 - [`cmp::min_by_key`]
1100 - [`f32::is_subnormal`]
1101 - [`f64::is_subnormal`]
1104 -----------------------
1105 - [Cargo now supports git repositories where the default `HEAD` branch is not
1106 "master".][cargo/9392] This also includes a switch to the version 3 `Cargo.lock` format
1107 which can handle default branches correctly.
1108 - [macOS targets now default to `unpacked` split-debuginfo.][cargo/9298]
1109 - [The `authors` field is no longer included in `Cargo.toml` for new
1110 projects.][cargo/9282]
1113 -----------------------
1114 - [Added the `rustdoc::bare_urls` lint that warns when you have URLs
1115 without hyperlinks.][81764]
1119 - [Implement token-based handling of attributes during expansion][82608]
1120 - [`Ipv4::from_str` will now reject octal format IP addresses in addition
1121 to rejecting hexadecimal IP addresses.][83652] The octal format can lead
1122 to confusion and potential security vulnerabilities and [is no
1123 longer recommended][ietf6943].
1124 - [The added `BITS` constant may conflict with external definitions.][85667]
1125 In particular, this was known to be a problem in the `lexical-core` crate,
1126 but they have published fixes for semantic versions 0.4 through 0.7. To
1127 update this dependency alone, use `cargo update -p lexical-core`.
1128 - Incremental compilation remains off by default, unless one uses the `RUSTC_FORCE_INCREMENTAL=1` environment variable added in 1.52.1.
1132 These changes provide no direct user facing benefits, but represent significant
1133 improvements to the internals and overall performance of rustc and
1136 - [Rework the `std::sys::windows::alloc` implementation.][83065]
1137 - [rustdoc: Don't enter an infer_ctxt in get_blanket_impls for impls that aren't blanket impls.][82864]
1138 - [rustdoc: Only look at blanket impls in `get_blanket_impls`][83681]
1139 - [Rework rustdoc const type][82873]
1141 [85667]: https://github.com/rust-lang/rust/pull/85667
1142 [83386]: https://github.com/rust-lang/rust/pull/83386
1143 [82771]: https://github.com/rust-lang/rust/pull/82771
1144 [84147]: https://github.com/rust-lang/rust/pull/84147
1145 [84082]: https://github.com/rust-lang/rust/pull/84082
1146 [83799]: https://github.com/rust-lang/rust/pull/83799
1147 [83681]: https://github.com/rust-lang/rust/pull/83681
1148 [83652]: https://github.com/rust-lang/rust/pull/83652
1149 [83387]: https://github.com/rust-lang/rust/pull/83387
1150 [82873]: https://github.com/rust-lang/rust/pull/82873
1151 [82864]: https://github.com/rust-lang/rust/pull/82864
1152 [82608]: https://github.com/rust-lang/rust/pull/82608
1153 [82565]: https://github.com/rust-lang/rust/pull/82565
1154 [80525]: https://github.com/rust-lang/rust/pull/80525
1155 [79278]: https://github.com/rust-lang/rust/pull/79278
1156 [78618]: https://github.com/rust-lang/rust/pull/78618
1157 [77704]: https://github.com/rust-lang/rust/pull/77704
1158 [83941]: https://github.com/rust-lang/rust/pull/83941
1159 [83065]: https://github.com/rust-lang/rust/pull/83065
1160 [81764]: https://github.com/rust-lang/rust/pull/81764
1161 [81469]: https://github.com/rust-lang/rust/pull/81469
1162 [cargo/9298]: https://github.com/rust-lang/cargo/pull/9298
1163 [cargo/9282]: https://github.com/rust-lang/cargo/pull/9282
1164 [cargo/9392]: https://github.com/rust-lang/cargo/pull/9392
1165 [`AtomicBool::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicBool.html#method.fetch_update
1166 [`AtomicPtr::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html#method.fetch_update
1167 [`BTreeMap::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.retain
1168 [`BTreeSet::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.retain
1169 [`BufReader::seek_relative`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.seek_relative
1170 [`DebugStruct::non_exhaustive`]: https://doc.rust-lang.org/std/fmt/struct.DebugStruct.html#method.finish_non_exhaustive
1171 [`Duration::MAX`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.MAX
1172 [`Duration::ZERO`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.ZERO
1173 [`Duration::is_zero`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.is_zero
1174 [`Duration::saturating_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_add
1175 [`Duration::saturating_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_mul
1176 [`Duration::saturating_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_sub
1177 [`ErrorKind::Unsupported`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.Unsupported
1178 [`Option::insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.insert
1179 [`Ordering::is_eq`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_eq
1180 [`Ordering::is_ge`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ge
1181 [`Ordering::is_gt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_gt
1182 [`Ordering::is_le`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_le
1183 [`Ordering::is_lt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_lt
1184 [`Ordering::is_ne`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ne
1185 [`OsStr::is_ascii`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.is_ascii
1186 [`OsStr::make_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_lowercase
1187 [`OsStr::make_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_uppercase
1188 [`OsStr::to_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_lowercase
1189 [`OsStr::to_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_uppercase
1190 [`Peekable::peek_mut`]: https://doc.rust-lang.org/std/iter/struct.Peekable.html#method.peek_mut
1191 [`Rc::decrement_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1192 [`Rc::increment_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1193 [`Vec::extend_from_within`]: https://doc.rust-lang.org/beta/std/vec/struct.Vec.html#method.extend_from_within
1194 [`array::from_mut`]: https://doc.rust-lang.org/beta/std/array/fn.from_mut.html
1195 [`array::from_ref`]: https://doc.rust-lang.org/beta/std/array/fn.from_ref.html
1196 [`cmp::max_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by_key.html
1197 [`cmp::max_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by.html
1198 [`cmp::min_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by_key.html
1199 [`cmp::min_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by.html
1200 [`f32::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1201 [`f64::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1202 [ietf6943]: https://datatracker.ietf.org/doc/html/rfc6943#section-3.1.1
1205 Version 1.52.1 (2021-05-10)
1206 ============================
1208 This release disables incremental compilation, unless the user has explicitly
1209 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
1211 This is due to the widespread, and frequently occurring, breakage encountered by
1212 Rust users due to newly enabled incremental verification in 1.52.0. Notably,
1213 Rust users **should** upgrade to 1.52.0 or 1.52.1: the bugs that are detected by
1214 newly added incremental verification are still present in past stable versions,
1215 and are not yet fixed on any channel. These bugs can lead to miscompilation of
1218 These problems only affect incremental builds, so release builds with Cargo
1219 should not be affected unless the user has explicitly opted into incremental.
1220 Debug and check builds are affected.
1222 See [84970] for more details.
1224 [84970]: https://github.com/rust-lang/rust/issues/84970
1226 Version 1.52.0 (2021-05-06)
1227 ============================
1231 - [Added the `unsafe_op_in_unsafe_fn` lint, which checks whether the unsafe code
1232 in an `unsafe fn` is wrapped in a `unsafe` block.][79208] This lint
1233 is allowed by default, and may become a warning or hard error in a
1235 - [You can now cast mutable references to arrays to a pointer of the same type as
1236 the element.][81479]
1240 - [Upgraded the default LLVM to LLVM 12.][81451]
1242 Added tier 3\* support for the following targets.
1244 - [`s390x-unknown-linux-musl`][82166]
1245 - [`riscv32gc-unknown-linux-musl` & `riscv64gc-unknown-linux-musl`][82202]
1246 - [`powerpc-unknown-openbsd`][82733]
1248 \* Refer to Rust's [platform support page][platform-support-doc] for more
1249 information on Rust's tiered platform support.
1253 - [`OsString` now implements `Extend` and `FromIterator`.][82121]
1254 - [`cmp::Reverse` now has `#[repr(transparent)]` representation.][81879]
1255 - [`Arc<impl Error>` now implements `error::Error`.][80553]
1256 - [All integer division and remainder operations are now `const`.][80962]
1260 - [`Arguments::as_str`]
1262 - [`char::REPLACEMENT_CHARACTER`]
1263 - [`char::UNICODE_VERSION`]
1264 - [`char::decode_utf16`]
1265 - [`char::from_digit`]
1266 - [`char::from_u32_unchecked`]
1267 - [`char::from_u32`]
1268 - [`slice::partition_point`]
1269 - [`str::rsplit_once`]
1270 - [`str::split_once`]
1272 The following previously stable APIs are now `const`.
1274 - [`char::len_utf8`]
1275 - [`char::len_utf16`]
1276 - [`char::to_ascii_uppercase`]
1277 - [`char::to_ascii_lowercase`]
1278 - [`char::eq_ignore_ascii_case`]
1279 - [`u8::to_ascii_uppercase`]
1280 - [`u8::to_ascii_lowercase`]
1281 - [`u8::eq_ignore_ascii_case`]
1285 - [Rustdoc lints are now treated as a tool lint, meaning that
1286 lints are now prefixed with `rustdoc::` (e.g. `#[warn(rustdoc::broken_intra_doc_links)]`).][80527]
1287 Using the old style is still allowed, and will become a warning in
1289 - [Rustdoc now supports argument files.][82261]
1290 - [Rustdoc now generates smart punctuation for documentation.][79423]
1291 - [You can now use "task lists" in Rustdoc Markdown.][81766] E.g.
1299 - [You can now pass multiple filters to tests.][81356] E.g.
1300 `cargo test -- foo bar` will run all tests that match `foo` and `bar`.
1301 - [Rustup now distributes PDB symbols for the `std` library on Windows,
1302 allowing you to see `std` symbols when debugging.][82218]
1306 These changes provide no direct user facing benefits, but represent significant
1307 improvements to the internals and overall performance of rustc and
1310 - [Check the result cache before the DepGraph when ensuring queries][81855]
1311 - [Try fast_reject::simplify_type in coherence before doing full check][81744]
1312 - [Only store a LocalDefId in some HIR nodes][81611]
1313 - [Store HIR attributes in a side table][79519]
1317 - [Cargo build scripts are now forbidden from setting `RUSTC_BOOTSTRAP`.][cargo/9181]
1318 - [Removed support for the `x86_64-rumprun-netbsd` target.][82594]
1319 - [Deprecated the `x86_64-sun-solaris` target in favor of `x86_64-pc-solaris`.][82216]
1320 - [Rustdoc now only accepts `,`, ` `, and `\t` as delimiters for specifying
1321 languages in code blocks.][78429]
1322 - [Rustc now catches more cases of `pub_use_of_private_extern_crate`][80763]
1323 - [Changes in how proc macros handle whitespace may lead to panics when used
1324 with older `proc-macro-hack` versions. A `cargo update` should be sufficient to fix this in all cases.][84136]
1325 - [Turn `#[derive]` into a regular macro attribute][79078]
1327 [84136]: https://github.com/rust-lang/rust/issues/84136
1328 [80763]: https://github.com/rust-lang/rust/pull/80763
1329 [82166]: https://github.com/rust-lang/rust/pull/82166
1330 [82121]: https://github.com/rust-lang/rust/pull/82121
1331 [81879]: https://github.com/rust-lang/rust/pull/81879
1332 [82261]: https://github.com/rust-lang/rust/pull/82261
1333 [82218]: https://github.com/rust-lang/rust/pull/82218
1334 [82216]: https://github.com/rust-lang/rust/pull/82216
1335 [82202]: https://github.com/rust-lang/rust/pull/82202
1336 [81855]: https://github.com/rust-lang/rust/pull/81855
1337 [81766]: https://github.com/rust-lang/rust/pull/81766
1338 [81744]: https://github.com/rust-lang/rust/pull/81744
1339 [81611]: https://github.com/rust-lang/rust/pull/81611
1340 [81479]: https://github.com/rust-lang/rust/pull/81479
1341 [81451]: https://github.com/rust-lang/rust/pull/81451
1342 [81356]: https://github.com/rust-lang/rust/pull/81356
1343 [80962]: https://github.com/rust-lang/rust/pull/80962
1344 [80553]: https://github.com/rust-lang/rust/pull/80553
1345 [80527]: https://github.com/rust-lang/rust/pull/80527
1346 [79519]: https://github.com/rust-lang/rust/pull/79519
1347 [79423]: https://github.com/rust-lang/rust/pull/79423
1348 [79208]: https://github.com/rust-lang/rust/pull/79208
1349 [78429]: https://github.com/rust-lang/rust/pull/78429
1350 [82733]: https://github.com/rust-lang/rust/pull/82733
1351 [82594]: https://github.com/rust-lang/rust/pull/82594
1352 [79078]: https://github.com/rust-lang/rust/pull/79078
1353 [cargo/9181]: https://github.com/rust-lang/cargo/pull/9181
1354 [`char::MAX`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.MAX
1355 [`char::REPLACEMENT_CHARACTER`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.REPLACEMENT_CHARACTER
1356 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.UNICODE_VERSION
1357 [`char::decode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.decode_utf16
1358 [`char::from_u32`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32
1359 [`char::from_u32_unchecked`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32_unchecked
1360 [`char::from_digit`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_digit
1361 [`Peekable::next_if`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if
1362 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_eq
1363 [`Arguments::as_str`]: https://doc.rust-lang.org/stable/std/fmt/struct.Arguments.html#method.as_str
1364 [`str::split_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_once
1365 [`str::rsplit_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.rsplit_once
1366 [`slice::partition_point`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.partition_point
1367 [`char::len_utf8`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf8
1368 [`char::len_utf16`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf16
1369 [`char::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_uppercase
1370 [`char::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_lowercase
1371 [`char::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.eq_ignore_ascii_case
1372 [`u8::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_uppercase
1373 [`u8::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_lowercase
1374 [`u8::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.eq_ignore_ascii_case
1376 Version 1.51.0 (2021-03-25)
1377 ============================
1381 - [You can now parameterize items such as functions, traits, and `struct`s by constant
1382 values in addition to by types and lifetimes.][79135] Also known as "const generics"
1383 E.g. you can now write the following. Note: Only values of primitive integers,
1384 `bool`, or `char` types are currently permitted.
1386 struct GenericArray<T, const LENGTH: usize> {
1390 impl<T, const LENGTH: usize> GenericArray<T, LENGTH> {
1391 const fn last(&self) -> Option<&T> {
1395 Some(&self.inner[LENGTH - 1])
1405 - [Added the `-Csplit-debuginfo` codegen option for macOS platforms.][79570]
1406 This option controls whether debug information is split across multiple files
1407 or packed into a single file. **Note** This option is unstable on other platforms.
1408 - [Added tier 3\* support for `aarch64_be-unknown-linux-gnu`,
1409 `aarch64-unknown-linux-gnu_ilp32`, and `aarch64_be-unknown-linux-gnu_ilp32` targets.][81455]
1410 - [Added tier 3 support for `i386-unknown-linux-gnu` and `i486-unknown-linux-gnu` targets.][80662]
1411 - [The `target-cpu=native` option will now detect individual features of CPUs.][80749]
1413 \* Refer to Rust's [platform support page][platform-support-doc] for more
1414 information on Rust's tiered platform support.
1419 - [`Box::downcast` is now also implemented for any `dyn Any + Send + Sync` object.][80945]
1420 - [`str` now implements `AsMut<str>`.][80279]
1421 - [`u64` and `u128` now implement `From<char>`.][79502]
1422 - [`Error` is now implemented for `&T` where `T` implements `Error`.][75180]
1423 - [`Poll::{map_ok, map_err}` are now implemented for `Poll<Option<Result<T, E>>>`.][80968]
1424 - [`unsigned_abs` is now implemented for all signed integer types.][80959]
1425 - [`io::Empty` now implements `io::Seek`.][78044]
1426 - [`rc::Weak<T>` and `sync::Weak<T>`'s methods such as `as_ptr` are now implemented for
1427 `T: ?Sized` types.][80764]
1428 - [`Div` and `Rem` by their `NonZero` variant is now implemented for all unsigned integers.][79134]
1434 - [`Arc::decrement_strong_count`]
1435 - [`Arc::increment_strong_count`]
1436 - [`Once::call_once_force`]
1437 - [`Peekable::next_if_eq`]
1438 - [`Peekable::next_if`]
1439 - [`Seek::stream_position`]
1440 - [`array::IntoIter`]
1441 - [`panic::panic_any`]
1443 - [`ptr::addr_of_mut!`]
1444 - [`slice::fill_with`]
1445 - [`slice::split_inclusive_mut`]
1446 - [`slice::split_inclusive`]
1447 - [`slice::strip_prefix`]
1448 - [`slice::strip_suffix`]
1449 - [`str::split_inclusive`]
1450 - [`sync::OnceState`]
1452 - [`VecDeque::range`]
1453 - [`VecDeque::range_mut`]
1457 - [Added the `split-debuginfo` profile option to control the -Csplit-debuginfo
1458 codegen option.][cargo/9112]
1459 - [Added the `resolver` field to `Cargo.toml` to enable the new feature resolver
1460 and CLI option behavior.][cargo/8997] Version 2 of the feature resolver will try
1461 to avoid unifying features of dependencies where that unification could be unwanted.
1462 Such as using the same dependency with a `std` feature in a build scripts and
1463 proc-macros, while using the `no-std` feature in the final binary. See the
1464 [Cargo book documentation][feature-resolver@2.0] for more information on the feature.
1469 - [Rustdoc will now include documentation for methods available from _nested_ `Deref` traits.][80653]
1470 - [You can now provide a `--default-theme` flag which sets the default theme to use for
1471 documentation.][79642]
1473 Various improvements to intra-doc links:
1475 - [You can link to non-path primitives such as `slice`.][80181]
1476 - [You can link to associated items.][74489]
1477 - [You can now include generic parameters when linking to items, like `Vec<T>`.][76934]
1481 - [You can now pass `--include-ignored` to tests (e.g. with
1482 `cargo test -- --include-ignored`) to include testing tests marked `#[ignore]`.][80053]
1487 - [WASI platforms no longer use the `wasm-bindgen` ABI, and instead use the wasm32 ABI.][79998]
1488 - [`rustc` no longer promotes division, modulo and indexing operations to `const` that
1490 - [The minimum version of glibc for the following platforms has been bumped to version 2.31
1491 for the distributed artifacts.][81521]
1492 - `armv5te-unknown-linux-gnueabi`
1493 - `sparc64-unknown-linux-gnu`
1494 - `thumbv7neon-unknown-linux-gnueabihf`
1495 - `armv7-unknown-linux-gnueabi`
1496 - `x86_64-unknown-linux-gnux32`
1497 - [`atomic::spin_loop_hint` has been deprecated.][80966] It's recommended to use `hint::spin_loop` instead.
1502 - [Consistently avoid constructing optimized MIR when not doing codegen][80718]
1504 [79135]: https://github.com/rust-lang/rust/pull/79135
1505 [74489]: https://github.com/rust-lang/rust/pull/74489
1506 [76934]: https://github.com/rust-lang/rust/pull/76934
1507 [79570]: https://github.com/rust-lang/rust/pull/79570
1508 [80181]: https://github.com/rust-lang/rust/pull/80181
1509 [79642]: https://github.com/rust-lang/rust/pull/79642
1510 [80945]: https://github.com/rust-lang/rust/pull/80945
1511 [80279]: https://github.com/rust-lang/rust/pull/80279
1512 [80053]: https://github.com/rust-lang/rust/pull/80053
1513 [79502]: https://github.com/rust-lang/rust/pull/79502
1514 [75180]: https://github.com/rust-lang/rust/pull/75180
1515 [81521]: https://github.com/rust-lang/rust/pull/81521
1516 [80968]: https://github.com/rust-lang/rust/pull/80968
1517 [80959]: https://github.com/rust-lang/rust/pull/80959
1518 [80718]: https://github.com/rust-lang/rust/pull/80718
1519 [80653]: https://github.com/rust-lang/rust/pull/80653
1520 [80579]: https://github.com/rust-lang/rust/pull/80579
1521 [79998]: https://github.com/rust-lang/rust/pull/79998
1522 [78044]: https://github.com/rust-lang/rust/pull/78044
1523 [81455]: https://github.com/rust-lang/rust/pull/81455
1524 [80764]: https://github.com/rust-lang/rust/pull/80764
1525 [80749]: https://github.com/rust-lang/rust/pull/80749
1526 [80662]: https://github.com/rust-lang/rust/pull/80662
1527 [79134]: https://github.com/rust-lang/rust/pull/79134
1528 [80966]: https://github.com/rust-lang/rust/pull/80966
1529 [cargo/8997]: https://github.com/rust-lang/cargo/pull/8997
1530 [cargo/9112]: https://github.com/rust-lang/cargo/pull/9112
1531 [feature-resolver@2.0]: https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
1532 [`Once::call_once_force`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.call_once_force
1533 [`sync::OnceState`]: https://doc.rust-lang.org/stable/std/sync/struct.OnceState.html
1534 [`panic::panic_any`]: https://doc.rust-lang.org/stable/std/panic/fn.panic_any.html
1535 [`slice::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1536 [`slice::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1537 [`Arc::increment_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.increment_strong_count
1538 [`Arc::decrement_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.decrement_strong_count
1539 [`slice::fill_with`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.fill_with
1540 [`ptr::addr_of!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of.html
1541 [`ptr::addr_of_mut!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of_mut.html
1542 [`array::IntoIter`]: https://doc.rust-lang.org/nightly/std/array/struct.IntoIter.html
1543 [`slice::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive
1544 [`slice::split_inclusive_mut`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive_mut
1545 [`str::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_inclusive
1546 [`task::Wake`]: https://doc.rust-lang.org/nightly/std/task/trait.Wake.html
1547 [`Seek::stream_position`]: https://doc.rust-lang.org/nightly/std/io/trait.Seek.html#method.stream_position
1548 [`Peekable::next_if`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if
1549 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if_eq
1550 [`VecDeque::range`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range
1551 [`VecDeque::range_mut`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range_mut
1553 Version 1.50.0 (2021-02-11)
1554 ============================
1557 -----------------------
1558 - [You can now use `const` values for `x` in `[x; N]` array expressions.][79270]
1559 This has been technically possible since 1.38.0, as it was unintentionally stabilized.
1560 - [Assignments to `ManuallyDrop<T>` union fields are now considered safe.][78068]
1563 -----------------------
1564 - [Added tier 3\* support for the `armv5te-unknown-linux-uclibceabi` target.][78142]
1565 - [Added tier 3 support for the `aarch64-apple-ios-macabi` target.][77484]
1566 - [The `x86_64-unknown-freebsd` is now built with the full toolset.][79484]
1567 - [Dropped support for all cloudabi targets.][78439]
1569 \* Refer to Rust's [platform support page][platform-support-doc] for more
1570 information on Rust's tiered platform support.
1573 -----------------------
1575 - [`proc_macro::Punct` now implements `PartialEq<char>`.][78636]
1576 - [`ops::{Index, IndexMut}` are now implemented for fixed sized arrays of any length.][74989]
1577 - [On Unix platforms, the `std::fs::File` type now has a "niche" of `-1`.][74699]
1578 This value cannot be a valid file descriptor, and now means `Option<File>` takes
1579 up the same amount of space as `File`.
1585 - [`btree_map::Entry::or_insert_with_key`]
1588 - [`hash_map::Entry::or_insert_with_key`]
1592 - [`UnsafeCell::get_mut`]
1594 The following previously stable methods are now `const`.
1596 - [`IpAddr::is_ipv4`]
1597 - [`IpAddr::is_ipv6`]
1598 - [`IpAddr::is_unspecified`]
1599 - [`IpAddr::is_loopback`]
1600 - [`IpAddr::is_multicast`]
1601 - [`Ipv4Addr::octets`]
1602 - [`Ipv4Addr::is_loopback`]
1603 - [`Ipv4Addr::is_private`]
1604 - [`Ipv4Addr::is_link_local`]
1605 - [`Ipv4Addr::is_multicast`]
1606 - [`Ipv4Addr::is_broadcast`]
1607 - [`Ipv4Addr::is_documentation`]
1608 - [`Ipv4Addr::to_ipv6_compatible`]
1609 - [`Ipv4Addr::to_ipv6_mapped`]
1610 - [`Ipv6Addr::segments`]
1611 - [`Ipv6Addr::is_unspecified`]
1612 - [`Ipv6Addr::is_loopback`]
1613 - [`Ipv6Addr::is_multicast`]
1614 - [`Ipv6Addr::to_ipv4`]
1617 - [`Layout::from_size_align`]
1618 - `pow` for all integer types.
1619 - `checked_pow` for all integer types.
1620 - `saturating_pow` for all integer types.
1621 - `wrapping_pow` for all integer types.
1622 - `next_power_of_two` for all unsigned integer types.
1623 - `checked_next_power_of_two` for all unsigned integer types.
1626 -----------------------
1628 - [Added the `[build.rustc-workspace-wrapper]` option.][cargo/8976]
1629 This option sets a wrapper to execute instead of `rustc`, for workspace members only.
1630 - [`cargo:rerun-if-changed` will now, if provided a directory, scan the entire
1631 contents of that directory for changes.][cargo/8973]
1632 - [Added the `--workspace` flag to the `cargo update` command.][cargo/8725]
1637 - [The search results tab and the help button are focusable with keyboard in rustdoc.][79896]
1638 - [Running tests will now print the total time taken to execute.][75752]
1643 - [The `compare_and_swap` method on atomics has been deprecated.][79261] It's
1644 recommended to use the `compare_exchange` and `compare_exchange_weak` methods instead.
1645 - [Changes in how `TokenStream`s are checked have fixed some cases where you could write
1646 unhygenic `macro_rules!` macros.][79472]
1647 - [`#![test]` as an inner attribute is now considered unstable like other inner macro
1648 attributes, and reports an error by default through the `soft_unstable` lint.][79003]
1649 - [Overriding a `forbid` lint at the same level that it was set is now a hard error.][78864]
1650 - [You can no longer intercept `panic!` calls by supplying your own macro.][78343] It's
1651 recommended to use the `#[panic_handler]` attribute to provide your own implementation.
1652 - [Semi-colons after item statements (e.g. `struct Foo {};`) now produce a warning.][78296]
1654 [74989]: https://github.com/rust-lang/rust/pull/74989
1655 [79261]: https://github.com/rust-lang/rust/pull/79261
1656 [79896]: https://github.com/rust-lang/rust/pull/79896
1657 [79484]: https://github.com/rust-lang/rust/pull/79484
1658 [79472]: https://github.com/rust-lang/rust/pull/79472
1659 [79270]: https://github.com/rust-lang/rust/pull/79270
1660 [79003]: https://github.com/rust-lang/rust/pull/79003
1661 [78864]: https://github.com/rust-lang/rust/pull/78864
1662 [78636]: https://github.com/rust-lang/rust/pull/78636
1663 [78439]: https://github.com/rust-lang/rust/pull/78439
1664 [78343]: https://github.com/rust-lang/rust/pull/78343
1665 [78296]: https://github.com/rust-lang/rust/pull/78296
1666 [78068]: https://github.com/rust-lang/rust/pull/78068
1667 [75752]: https://github.com/rust-lang/rust/pull/75752
1668 [74699]: https://github.com/rust-lang/rust/pull/74699
1669 [78142]: https://github.com/rust-lang/rust/pull/78142
1670 [77484]: https://github.com/rust-lang/rust/pull/77484
1671 [cargo/8976]: https://github.com/rust-lang/cargo/pull/8976
1672 [cargo/8973]: https://github.com/rust-lang/cargo/pull/8973
1673 [cargo/8725]: https://github.com/rust-lang/cargo/pull/8725
1674 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv4
1675 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv6
1676 [`IpAddr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_unspecified
1677 [`IpAddr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_loopback
1678 [`IpAddr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_multicast
1679 [`Ipv4Addr::octets`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.octets
1680 [`Ipv4Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_loopback
1681 [`Ipv4Addr::is_private`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_private
1682 [`Ipv4Addr::is_link_local`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_link_local
1683 [`Ipv4Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_multicast
1684 [`Ipv4Addr::is_broadcast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_broadcast
1685 [`Ipv4Addr::is_documentation`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_documentation
1686 [`Ipv4Addr::to_ipv6_compatible`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_compatible
1687 [`Ipv4Addr::to_ipv6_mapped`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_mapped
1688 [`Ipv6Addr::segments`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.segments
1689 [`Ipv6Addr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_unspecified
1690 [`Ipv6Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_loopback
1691 [`Ipv6Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_multicast
1692 [`Ipv6Addr::to_ipv4`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.to_ipv4
1693 [`Layout::align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.align
1694 [`Layout::from_size_align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.from_size_align
1695 [`Layout::size`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.size
1696 [`Ord::clamp`]: https://doc.rust-lang.org/stable/std/cmp/trait.Ord.html#method.clamp
1697 [`RefCell::take`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.take
1698 [`UnsafeCell::get_mut`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.get_mut
1699 [`bool::then`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then
1700 [`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
1701 [`f32::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.clamp
1702 [`f64::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.clamp
1703 [`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
1704 [`slice::fill`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.fill
1707 Version 1.49.0 (2020-12-31)
1708 ============================
1711 -----------------------
1713 - [Unions can now implement `Drop`, and you can now have a field in a union
1714 with `ManuallyDrop<T>`.][77547]
1715 - [You can now cast uninhabited enums to integers.][76199]
1716 - [You can now bind by reference and by move in patterns.][76119] This
1717 allows you to selectively borrow individual components of a type. E.g.
1725 let person = Person {
1726 name: String::from("Alice"),
1730 // `name` is moved out of person, but `age` is referenced.
1731 let Person { name, ref age } = person;
1732 println!("{} {}", name, age);
1736 -----------------------
1738 - [Added tier 1\* support for `aarch64-unknown-linux-gnu`.][78228]
1739 - [Added tier 2 support for `aarch64-apple-darwin`.][75991]
1740 - [Added tier 2 support for `aarch64-pc-windows-msvc`.][75914]
1741 - [Added tier 3 support for `mipsel-unknown-none`.][78676]
1742 - [Raised the minimum supported LLVM version to LLVM 9.][78848]
1743 - [Output from threads spawned in tests is now captured.][78227]
1744 - [Change os and vendor values to "none" and "unknown" for some targets][78951]
1746 \* Refer to Rust's [platform support page][platform-support-doc] for more
1747 information on Rust's tiered platform support.
1750 -----------------------
1752 - [`RangeInclusive` now checks for exhaustion when calling `contains` and indexing.][78109]
1753 - [`ToString::to_string` now no longer shrinks the internal buffer in the default implementation.][77997]
1758 - [`slice::select_nth_unstable`]
1759 - [`slice::select_nth_unstable_by`]
1760 - [`slice::select_nth_unstable_by_key`]
1762 The following previously stable methods are now `const`.
1764 - [`Poll::is_ready`]
1765 - [`Poll::is_pending`]
1768 -----------------------
1769 - [Building a crate with `cargo-package` should now be independently reproducible.][cargo/8864]
1770 - [`cargo-tree` now marks proc-macro crates.][cargo/8765]
1771 - [Added `CARGO_PRIMARY_PACKAGE` build-time environment variable.][cargo/8758] This
1772 variable will be set if the crate being built is one the user selected to build, either
1773 with `-p` or through defaults.
1774 - [You can now use glob patterns when specifying packages & targets.][cargo/8752]
1780 - [Demoted `i686-unknown-freebsd` from host tier 2 to target tier 2 support.][78746]
1781 - [Macros that end with a semi-colon are now treated as statements even if they expand to nothing.][78376]
1782 - [Rustc will now check for the validity of some built-in attributes on enum variants.][77015]
1783 Previously such invalid or unused attributes could be ignored.
1784 - Leading whitespace is stripped more uniformly in documentation comments, which may change behavior. You
1785 read [this post about the changes][rustdoc-ws-post] for more details.
1786 - [Trait bounds are no longer inferred for associated types.][79904]
1790 These changes provide no direct user facing benefits, but represent significant
1791 improvements to the internals and overall performance of rustc and
1794 - [rustc's internal crates are now compiled using the `initial-exec` Thread
1795 Local Storage model.][78201]
1796 - [Calculate visibilities once in resolve.][78077]
1797 - [Added `system` to the `llvm-libunwind` bootstrap config option.][77703]
1798 - [Added `--color` for configuring terminal color support to bootstrap.][79004]
1801 [75991]: https://github.com/rust-lang/rust/pull/75991
1802 [78951]: https://github.com/rust-lang/rust/pull/78951
1803 [78848]: https://github.com/rust-lang/rust/pull/78848
1804 [78746]: https://github.com/rust-lang/rust/pull/78746
1805 [78376]: https://github.com/rust-lang/rust/pull/78376
1806 [78228]: https://github.com/rust-lang/rust/pull/78228
1807 [78227]: https://github.com/rust-lang/rust/pull/78227
1808 [78201]: https://github.com/rust-lang/rust/pull/78201
1809 [78109]: https://github.com/rust-lang/rust/pull/78109
1810 [78077]: https://github.com/rust-lang/rust/pull/78077
1811 [77997]: https://github.com/rust-lang/rust/pull/77997
1812 [77703]: https://github.com/rust-lang/rust/pull/77703
1813 [77547]: https://github.com/rust-lang/rust/pull/77547
1814 [77015]: https://github.com/rust-lang/rust/pull/77015
1815 [76199]: https://github.com/rust-lang/rust/pull/76199
1816 [76119]: https://github.com/rust-lang/rust/pull/76119
1817 [75914]: https://github.com/rust-lang/rust/pull/75914
1818 [79004]: https://github.com/rust-lang/rust/pull/79004
1819 [78676]: https://github.com/rust-lang/rust/pull/78676
1820 [79904]: https://github.com/rust-lang/rust/issues/79904
1821 [cargo/8864]: https://github.com/rust-lang/cargo/pull/8864
1822 [cargo/8765]: https://github.com/rust-lang/cargo/pull/8765
1823 [cargo/8758]: https://github.com/rust-lang/cargo/pull/8758
1824 [cargo/8752]: https://github.com/rust-lang/cargo/pull/8752
1825 [`slice::select_nth_unstable`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable
1826 [`slice::select_nth_unstable_by`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by
1827 [`slice::select_nth_unstable_by_key`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by_key
1828 [`Poll::is_ready`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_ready
1829 [`Poll::is_pending`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_pending
1830 [rustdoc-ws-post]: https://blog.guillaume-gomez.fr/articles/2020-11-11+New+doc+comment+handling+in+rustdoc
1832 Version 1.48.0 (2020-11-19)
1833 ==========================
1838 - [The `unsafe` keyword is now syntactically permitted on modules.][75857] This
1839 is still rejected *semantically*, but can now be parsed by procedural macros.
1843 - [Stabilised the `-C link-self-contained=<yes|no>` compiler flag.][76158] This tells
1844 `rustc` whether to link its own C runtime and libraries or to rely on a external
1845 linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.)
1846 - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386]
1847 Note: If you're using cargo you must explicitly pass the `--target` flag.
1848 - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420]
1850 \* Refer to Rust's [platform support page][platform-support-doc] for more
1851 information on Rust's tiered platform support.
1855 - [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`,
1856 and `&Stderr`.][76275]
1857 - [All arrays of any length now implement `TryFrom<Vec<T>>`.][76310]
1858 - [The `matches!` macro now supports having a trailing comma.][74880]
1859 - [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194]
1860 - [The `RefCell::{replace, replace_with, clone}` methods now all use `#[track_caller]`.][77055]
1864 - [`slice::as_ptr_range`]
1865 - [`slice::as_mut_ptr_range`]
1866 - [`VecDeque::make_contiguous`]
1867 - [`future::pending`]
1870 The following previously stable methods are now `const fn`'s:
1872 - [`Option::is_some`]
1873 - [`Option::is_none`]
1874 - [`Option::as_ref`]
1876 - [`Result::is_err`]
1877 - [`Result::as_ref`]
1878 - [`Ordering::reverse`]
1879 - [`Ordering::then`]
1886 - [You can now link to items in `rustdoc` using the intra-doc link
1887 syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate
1888 a link to `std::future`'s documentation. See ["Linking to items by
1889 name"][intradoc-links] for more information.
1890 - [You can now specify `#[doc(alias = "<alias>")]` on items to add search aliases
1891 when searching through `rustdoc`'s UI.][75740]
1895 - [Promotion of references to `'static` lifetime inside `const fn` now follows the
1896 same rules as inside a `fn` body.][75502] In particular, `&foo()` will not be
1897 promoted to `'static` lifetime any more inside `const fn`s.
1898 - [Associated type bindings on trait objects are now verified to meet the bounds
1899 declared on the trait when checking that they implement the trait.][27675]
1900 - [When trait bounds on associated types or opaque types are ambiguous, the
1901 compiler no longer makes an arbitrary choice on which bound to use.][54121]
1902 - [Fixed recursive nonterminals not being expanded in macros during
1903 pretty-print/reparse check.][77153] This may cause errors if your macro wasn't
1904 correctly handling recursive nonterminal tokens.
1905 - [`&mut` references to non zero-sized types are no longer promoted.][75585]
1906 - [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]`
1907 in places where they have no effect.][73461]
1908 - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in
1909 `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166]
1910 - [`mem::uninitialized` will now panic if any inner types inside a struct or enum
1911 disallow zero-initialization.][71274]
1912 - [`#[target_feature]` will now error if used in a place where it has no effect.][78143]
1913 - [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212]
1914 Note: This behaviour is not guaranteed and is still considered undefined behaviour,
1915 see the [`catch_unwind`] documentation for further information.
1921 These changes provide no direct user facing benefits, but represent significant
1922 improvements to the internals and overall performance of rustc and
1925 - [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
1926 You can continue building with `make` by setting `ninja=false` in
1928 - [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
1929 - [Made `ensure_sufficient_stack()` non-generic][76680]
1931 [78143]: https://github.com/rust-lang/rust/issues/78143
1932 [76680]: https://github.com/rust-lang/rust/pull/76680/
1933 [76030]: https://github.com/rust-lang/rust/pull/76030/
1934 [70212]: https://github.com/rust-lang/rust/pull/70212/
1935 [27675]: https://github.com/rust-lang/rust/issues/27675/
1936 [54121]: https://github.com/rust-lang/rust/issues/54121/
1937 [71274]: https://github.com/rust-lang/rust/pull/71274/
1938 [77386]: https://github.com/rust-lang/rust/pull/77386/
1939 [77153]: https://github.com/rust-lang/rust/pull/77153/
1940 [77055]: https://github.com/rust-lang/rust/pull/77055/
1941 [76275]: https://github.com/rust-lang/rust/pull/76275/
1942 [76310]: https://github.com/rust-lang/rust/pull/76310/
1943 [76420]: https://github.com/rust-lang/rust/pull/76420/
1944 [76158]: https://github.com/rust-lang/rust/pull/76158/
1945 [75857]: https://github.com/rust-lang/rust/pull/75857/
1946 [75585]: https://github.com/rust-lang/rust/pull/75585/
1947 [75740]: https://github.com/rust-lang/rust/pull/75740/
1948 [75502]: https://github.com/rust-lang/rust/pull/75502/
1949 [74880]: https://github.com/rust-lang/rust/pull/74880/
1950 [74922]: https://github.com/rust-lang/rust/pull/74922/
1951 [74430]: https://github.com/rust-lang/rust/pull/74430/
1952 [74194]: https://github.com/rust-lang/rust/pull/74194/
1953 [73461]: https://github.com/rust-lang/rust/pull/73461/
1954 [73166]: https://github.com/rust-lang/rust/pull/73166/
1955 [intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
1956 [`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
1957 [`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some
1958 [`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none
1959 [`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref
1960 [`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok
1961 [`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err
1962 [`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref
1963 [`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse
1964 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
1965 [`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range
1966 [`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range
1967 [`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous
1968 [`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html
1969 [`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html
1972 Version 1.47.0 (2020-10-08)
1973 ==========================
1977 - [Closures will now warn when not used.][74869]
1981 - [Stabilized the `-C control-flow-guard` codegen option][73893], which enables
1982 [Control Flow Guard][1.47.0-cfg] for Windows platforms, and is ignored on other
1984 - [Upgraded to LLVM 11.][73526]
1985 - [Added tier 3\* support for the `thumbv4t-none-eabi` target.][74419]
1986 - [Upgrade the FreeBSD toolchain to version 11.4][75204]
1987 - [`RUST_BACKTRACE`'s output is now more compact.][75048]
1989 \* Refer to Rust's [platform support page][platform-support-doc] for more
1990 information on Rust's tiered platform support.
1994 - [`CStr` now implements `Index<RangeFrom<usize>>`.][74021]
1995 - [Traits in `std`/`core` are now implemented for arrays of any length, not just
1996 those of length less than 33.][74060]
1997 - [`ops::RangeFull` and `ops::Range` now implement Default.][73197]
1998 - [`panic::Location` now implements `Copy`, `Clone`, `Eq`, `Hash`, `Ord`,
1999 `PartialEq`, and `PartialOrd`.][73583]
2003 - [`Ident::new_raw`]
2004 - [`Range::is_empty`]
2005 - [`RangeInclusive::is_empty`]
2006 - [`Result::as_deref`]
2007 - [`Result::as_deref_mut`]
2009 - [`pointer::offset_from`]
2013 The following previously stable APIs have now been made const.
2015 - [The `new` method for all `NonZero` integers.][73858]
2016 - [The `checked_add`,`checked_sub`,`checked_mul`,`checked_neg`, `checked_shl`,
2017 `checked_shr`, `saturating_add`, `saturating_sub`, and `saturating_mul`
2018 methods for all integers.][73858]
2019 - [The `checked_abs`, `saturating_abs`, `saturating_neg`, and `signum` for all
2020 signed integers.][73858]
2021 - [The `is_ascii_alphabetic`, `is_ascii_uppercase`, `is_ascii_lowercase`,
2022 `is_ascii_alphanumeric`, `is_ascii_digit`, `is_ascii_hexdigit`,
2023 `is_ascii_punctuation`, `is_ascii_graphic`, `is_ascii_whitespace`, and
2024 `is_ascii_control` methods for `char` and `u8`.][73858]
2028 - [`build-dependencies` are now built with opt-level 0 by default.][cargo/8500]
2029 You can override this by setting the following in your `Cargo.toml`.
2031 [profile.release.build-override]
2034 - [`cargo-help` will now display man pages for commands rather just the
2035 `--help` text.][cargo/8456]
2036 - [`cargo-metadata` now emits a `test` field indicating if a target has
2037 tests enabled.][cargo/8478]
2038 - [`workspace.default-members` now respects `workspace.exclude`.][cargo/8485]
2039 - [`cargo-publish` will now use an alternative registry by default if it's the
2040 only registry specified in `package.publish`.][cargo/8571]
2044 - [Added a help button beside Rustdoc's searchbar that explains rustdoc's
2045 type based search.][75366]
2046 - [Added the Ayu theme to rustdoc.][71237]
2050 - [Bumped the minimum supported Emscripten version to 1.39.20.][75716]
2051 - [Fixed a regression parsing `{} && false` in tail expressions.][74650]
2052 - [Added changes to how proc-macros are expanded in `macro_rules!` that should
2053 help to preserve more span information.][73084] These changes may cause
2054 compiliation errors if your macro was unhygenic or didn't correctly handle
2056 - [Moved support for the CloudABI target to tier 3.][75568]
2057 - [`linux-gnu` targets now require minimum kernel 2.6.32 and glibc 2.11.][74163]
2058 - [Added the `rustc-docs` component.][75560] This allows you to install
2059 and read the documentation for the compiler internal APIs. (Currently only
2060 available for `x86_64-unknown-linux-gnu`.)
2065 - [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.
2067 [1.47.0-cfg]: https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard
2068 [75048]: https://github.com/rust-lang/rust/pull/75048/
2069 [74163]: https://github.com/rust-lang/rust/pull/74163/
2070 [71237]: https://github.com/rust-lang/rust/pull/71237/
2071 [74869]: https://github.com/rust-lang/rust/pull/74869/
2072 [73858]: https://github.com/rust-lang/rust/pull/73858/
2073 [75716]: https://github.com/rust-lang/rust/pull/75716/
2074 [75560]: https://github.com/rust-lang/rust/pull/75560/
2075 [75568]: https://github.com/rust-lang/rust/pull/75568/
2076 [75366]: https://github.com/rust-lang/rust/pull/75366/
2077 [75204]: https://github.com/rust-lang/rust/pull/75204/
2078 [74650]: https://github.com/rust-lang/rust/pull/74650/
2079 [74419]: https://github.com/rust-lang/rust/pull/74419/
2080 [73964]: https://github.com/rust-lang/rust/pull/73964/
2081 [74021]: https://github.com/rust-lang/rust/pull/74021/
2082 [74060]: https://github.com/rust-lang/rust/pull/74060/
2083 [73893]: https://github.com/rust-lang/rust/pull/73893/
2084 [73526]: https://github.com/rust-lang/rust/pull/73526/
2085 [73583]: https://github.com/rust-lang/rust/pull/73583/
2086 [73084]: https://github.com/rust-lang/rust/pull/73084/
2087 [73197]: https://github.com/rust-lang/rust/pull/73197/
2088 [cargo/8456]: https://github.com/rust-lang/cargo/pull/8456/
2089 [cargo/8478]: https://github.com/rust-lang/cargo/pull/8478/
2090 [cargo/8485]: https://github.com/rust-lang/cargo/pull/8485/
2091 [cargo/8500]: https://github.com/rust-lang/cargo/pull/8500/
2092 [cargo/8571]: https://github.com/rust-lang/cargo/pull/8571/
2093 [`Ident::new_raw`]: https://doc.rust-lang.org/nightly/proc_macro/struct.Ident.html#method.new_raw
2094 [`Range::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.Range.html#method.is_empty
2095 [`RangeInclusive::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html#method.is_empty
2096 [`Result::as_deref_mut`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref_mut
2097 [`Result::as_deref`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref
2098 [`Vec::leak`]: https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.leak
2099 [`f32::TAU`]: https://doc.rust-lang.org/nightly/std/f32/consts/constant.TAU.html
2100 [`f64::TAU`]: https://doc.rust-lang.org/nightly/std/f64/consts/constant.TAU.html
2101 [`pointer::offset_from`]: https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset_from
2104 Version 1.46.0 (2020-08-27)
2105 ==========================
2109 - [`if`, `match`, and `loop` expressions can now be used in const functions.][72437]
2110 - [Additionally you are now also able to coerce and cast to slices (`&[T]`) in
2111 const functions.][73862]
2112 - [The `#[track_caller]` attribute can now be added to functions to use the
2113 function's caller's location information for panic messages.][72445]
2114 - [Recursively indexing into tuples no longer needs parentheses.][71322] E.g.
2115 `x.0.0` over `(x.0).0`.
2116 - [`mem::transmute` can now be used in statics and constants.][72920] **Note**
2117 You currently can't use `mem::transmute` in constant functions.
2121 - [You can now use the `cdylib` target on Apple iOS and tvOS platforms.][73516]
2122 - [Enabled static "Position Independent Executables" by default
2123 for `x86_64-unknown-linux-musl`.][70740]
2127 - [`mem::forget` is now a `const fn`.][73887]
2128 - [`String` now implements `From<char>`.][73466]
2129 - [The `leading_ones`, and `trailing_ones` methods have been stabilised for all
2130 integer types.][73032]
2131 - [`vec::IntoIter<T>` now implements `AsRef<[T]>`.][72583]
2132 - [All non-zero integer types (`NonZeroU8`) now implement `TryFrom` for their
2133 zero-able equivalent (e.g. `TryFrom<u8>`).][72717]
2134 - [`&[T]` and `&mut [T]` now implement `PartialEq<Vec<T>>`.][71660]
2135 - [`(String, u16)` now implements `ToSocketAddrs`.][73007]
2136 - [`vec::Drain<'_, T>` now implements `AsRef<[T]>`.][72584]
2141 - [`vec::Drain::as_slice`]
2145 Added a number of new environment variables that are now available when
2146 compiling your crate.
2148 - [`CARGO_BIN_NAME` and `CARGO_CRATE_NAME`][cargo/8270] Providing the name of
2149 the specific binary being compiled and the name of the crate.
2150 - [`CARGO_PKG_LICENSE`][cargo/8325] The license from the manifest of the package.
2151 - [`CARGO_PKG_LICENSE_FILE`][cargo/8387] The path to the license file.
2155 - [The target configuration option `abi_blacklist` has been renamed
2156 to `unsupported_abis`.][74150] The old name will still continue to work.
2157 - [Rustc will now warn if you cast a C-like enum that implements `Drop`.][72331]
2158 This was previously accepted but will become a hard error in a future release.
2159 - [Rustc will fail to compile if you have a struct with
2160 `#[repr(i128)]` or `#[repr(u128)]`.][74109] This representation is currently only
2162 - [Tokens passed to `macro_rules!` are now always captured.][73293] This helps
2163 ensure that spans have the correct information, and may cause breakage if you
2164 were relying on receiving spans with dummy information.
2165 - [The InnoSetup installer for Windows is no longer available.][72569] This was
2166 a legacy installer that was replaced by a MSI installer a few years ago but
2167 was still being built.
2168 - [`{f32, f64}::asinh` now returns the correct values for negative numbers.][72486]
2169 - [Rustc will no longer accept overlapping trait implementations that only
2170 differ in how the lifetime was bound.][72493]
2171 - [Rustc now correctly relates the lifetime of an existential associated
2172 type.][71896] This fixes some edge cases where `rustc` would erroneously allow
2173 you to pass a shorter lifetime than expected.
2174 - [Rustc now dynamically links to `libz` (also called `zlib`) on Linux.][74420]
2175 The library will need to be installed for `rustc` to work, even though we
2176 expect it to be already available on most systems.
2177 - [Tests annotated with `#[should_panic]` are broken on ARMv7 while running
2179 - [Pretty printing of some tokens in procedural macros changed.][75453] The
2180 exact output returned by rustc's pretty printing is an unstable
2181 implementation detail: we recommend any macro relying on it to switch to a
2182 more robust parsing system.
2184 [75453]: https://github.com/rust-lang/rust/issues/75453/
2185 [74820]: https://github.com/rust-lang/rust/issues/74820/
2186 [74420]: https://github.com/rust-lang/rust/issues/74420/
2187 [74109]: https://github.com/rust-lang/rust/pull/74109/
2188 [74150]: https://github.com/rust-lang/rust/pull/74150/
2189 [73862]: https://github.com/rust-lang/rust/pull/73862/
2190 [73887]: https://github.com/rust-lang/rust/pull/73887/
2191 [73466]: https://github.com/rust-lang/rust/pull/73466/
2192 [73516]: https://github.com/rust-lang/rust/pull/73516/
2193 [73293]: https://github.com/rust-lang/rust/pull/73293/
2194 [73007]: https://github.com/rust-lang/rust/pull/73007/
2195 [73032]: https://github.com/rust-lang/rust/pull/73032/
2196 [72920]: https://github.com/rust-lang/rust/pull/72920/
2197 [72569]: https://github.com/rust-lang/rust/pull/72569/
2198 [72583]: https://github.com/rust-lang/rust/pull/72583/
2199 [72584]: https://github.com/rust-lang/rust/pull/72584/
2200 [72717]: https://github.com/rust-lang/rust/pull/72717/
2201 [72437]: https://github.com/rust-lang/rust/pull/72437/
2202 [72445]: https://github.com/rust-lang/rust/pull/72445/
2203 [72486]: https://github.com/rust-lang/rust/pull/72486/
2204 [72493]: https://github.com/rust-lang/rust/pull/72493/
2205 [72331]: https://github.com/rust-lang/rust/pull/72331/
2206 [71896]: https://github.com/rust-lang/rust/pull/71896/
2207 [71660]: https://github.com/rust-lang/rust/pull/71660/
2208 [71322]: https://github.com/rust-lang/rust/pull/71322/
2209 [70740]: https://github.com/rust-lang/rust/pull/70740/
2210 [cargo/8270]: https://github.com/rust-lang/cargo/pull/8270/
2211 [cargo/8325]: https://github.com/rust-lang/cargo/pull/8325/
2212 [cargo/8387]: https://github.com/rust-lang/cargo/pull/8387/
2213 [`Option::zip`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.zip
2214 [`vec::Drain::as_slice`]: https://doc.rust-lang.org/stable/std/vec/struct.Drain.html#method.as_slice
2217 Version 1.45.2 (2020-08-03)
2218 ==========================
2220 * [Fix bindings in tuple struct patterns][74954]
2221 * [Fix track_caller integration with trait objects][74784]
2223 [74954]: https://github.com/rust-lang/rust/issues/74954
2224 [74784]: https://github.com/rust-lang/rust/issues/74784
2227 Version 1.45.1 (2020-07-30)
2228 ==========================
2230 * [Fix const propagation with references.][73613]
2231 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2232 * [Avoid spurious implicit region bound.][74509]
2233 * [Install clippy on x.py install][74457]
2235 [73613]: https://github.com/rust-lang/rust/pull/73613
2236 [73078]: https://github.com/rust-lang/rust/issues/73078
2237 [74509]: https://github.com/rust-lang/rust/pull/74509
2238 [74457]: https://github.com/rust-lang/rust/pull/74457
2241 Version 1.45.0 (2020-07-16)
2242 ==========================
2246 - [Out of range float to int conversions using `as` has been defined as a saturating
2247 conversion.][71269] This was previously undefined behaviour, but you can use the
2248 `{f64, f32}::to_int_unchecked` methods to continue using the current behaviour, which
2249 may be desirable in rare performance sensitive situations.
2250 - [`mem::Discriminant<T>` now uses `T`'s discriminant type instead of always
2251 using `u64`.][70705]
2252 - [Function like procedural macros can now be used in expression, pattern, and statement
2253 positions.][68717] This means you can now use a function-like procedural macro
2254 anywhere you can use a declarative (`macro_rules!`) macro.
2258 - [You can now override individual target features through the `target-feature`
2259 flag.][72094] E.g. `-C target-feature=+avx2 -C target-feature=+fma` is now
2260 equivalent to `-C target-feature=+avx2,+fma`.
2261 - [Added the `force-unwind-tables` flag.][69984] This option allows
2262 rustc to always generate unwind tables regardless of panic strategy.
2263 - [Added the `embed-bitcode` flag.][71716] This codegen flag allows rustc
2264 to include LLVM bitcode into generated `rlib`s (this is on by default).
2265 - [Added the `tiny` value to the `code-model` codegen flag.][72397]
2266 - [Added tier 3 support\* for the `mipsel-sony-psp` target.][72062]
2267 - [Added tier 3 support for the `thumbv7a-uwp-windows-msvc` target.][72133]
2268 - [Upgraded to LLVM 10.][67759]
2270 \* Refer to Rust's [platform support page][platform-support-doc] for more
2271 information on Rust's tiered platform support.
2276 - [`net::{SocketAddr, SocketAddrV4, SocketAddrV6}` now implements `PartialOrd`
2278 - [`proc_macro::TokenStream` now implements `Default`.][72234]
2279 - [You can now use `char` with
2280 `ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeTo}` to iterate over
2281 a range of codepoints.][72413] E.g.
2282 you can now write the following;
2284 for ch in 'a'..='z' {
2288 // Prints "abcdefghijklmnopqrstuvwxyz"
2290 - [`OsString` now implements `FromStr`.][71662]
2291 - [The `saturating_neg` method has been added to all signed integer primitive
2292 types, and the `saturating_abs` method has been added for all integer
2293 primitive types.][71886]
2294 - [`Arc<T>`, `Rc<T>` now implement `From<Cow<'_, T>>`, and `Box` now
2295 implements `From<Cow>` when `T` is `[T: Copy]`, `str`, `CStr`, `OsStr`,
2297 - [`Box<[T]>` now implements `From<[T; N]>`.][71095]
2298 - [`BitOr` and `BitOrAssign` are implemented for all `NonZero`
2299 integer types.][69813]
2300 - [The `fetch_min`, and `fetch_max` methods have been added to all atomic
2301 integer types.][72324]
2302 - [The `fetch_update` method has been added to all atomic integer types.][71843]
2307 - [`BTreeMap::remove_entry`]
2309 - [`rc::Weak::as_ptr`]
2310 - [`rc::Weak::from_raw`]
2311 - [`rc::Weak::into_raw`]
2312 - [`str::strip_prefix`]
2313 - [`str::strip_suffix`]
2314 - [`sync::Weak::as_ptr`]
2315 - [`sync::Weak::from_raw`]
2316 - [`sync::Weak::into_raw`]
2317 - [`char::UNICODE_VERSION`]
2318 - [`Span::resolved_at`]
2319 - [`Span::located_at`]
2320 - [`Span::mixed_site`]
2321 - [`unix::process::CommandExt::arg0`]
2326 - [Cargo uses the `embed-bitcode` flag to optimize disk usage and build
2331 - [Rustdoc now supports strikethrough text in Markdown.][71928] E.g.
2332 `~~outdated information~~` becomes "~~outdated information~~".
2333 - [Added an emoji to Rustdoc's deprecated API message.][72014]
2337 - [Trying to self initialize a static value (that is creating a value using
2338 itself) is unsound and now causes a compile error.][71140]
2339 - [`{f32, f64}::powi` now returns a slightly different value on Windows.][73420]
2340 This is due to changes in LLVM's intrinsics which `{f32, f64}::powi` uses.
2341 - [Rustdoc's CLI's extra error exit codes have been removed.][71900] These were
2342 previously undocumented and not intended for public use. Rustdoc still provides
2343 a non-zero exit code on errors.
2344 - [Rustc's `lto` flag is incompatible with the new `embed-bitcode=no`.][71848]
2345 This may cause issues if LTO is enabled through `RUSTFLAGS` or `cargo rustc`
2346 flags while cargo is adding `embed-bitcode` itself. The recommended way to
2347 control LTO is with Cargo profiles, either in `Cargo.toml` or `.cargo/config`,
2348 or by setting `CARGO_PROFILE_<name>_LTO` in the environment.
2352 - [Make clippy a git subtree instead of a git submodule][70655]
2353 - [Unify the undo log of all snapshot types][69464]
2355 [71848]: https://github.com/rust-lang/rust/issues/71848/
2356 [73420]: https://github.com/rust-lang/rust/issues/73420/
2357 [72324]: https://github.com/rust-lang/rust/pull/72324/
2358 [71843]: https://github.com/rust-lang/rust/pull/71843/
2359 [71886]: https://github.com/rust-lang/rust/pull/71886/
2360 [72234]: https://github.com/rust-lang/rust/pull/72234/
2361 [72239]: https://github.com/rust-lang/rust/pull/72239/
2362 [72397]: https://github.com/rust-lang/rust/pull/72397/
2363 [72413]: https://github.com/rust-lang/rust/pull/72413/
2364 [72014]: https://github.com/rust-lang/rust/pull/72014/
2365 [72062]: https://github.com/rust-lang/rust/pull/72062/
2366 [72094]: https://github.com/rust-lang/rust/pull/72094/
2367 [72133]: https://github.com/rust-lang/rust/pull/72133/
2368 [67759]: https://github.com/rust-lang/rust/pull/67759/
2369 [71900]: https://github.com/rust-lang/rust/pull/71900/
2370 [71928]: https://github.com/rust-lang/rust/pull/71928/
2371 [71662]: https://github.com/rust-lang/rust/pull/71662/
2372 [71716]: https://github.com/rust-lang/rust/pull/71716/
2373 [71447]: https://github.com/rust-lang/rust/pull/71447/
2374 [71269]: https://github.com/rust-lang/rust/pull/71269/
2375 [71095]: https://github.com/rust-lang/rust/pull/71095/
2376 [71140]: https://github.com/rust-lang/rust/pull/71140/
2377 [70655]: https://github.com/rust-lang/rust/pull/70655/
2378 [70705]: https://github.com/rust-lang/rust/pull/70705/
2379 [69984]: https://github.com/rust-lang/rust/pull/69984/
2380 [69813]: https://github.com/rust-lang/rust/pull/69813/
2381 [69464]: https://github.com/rust-lang/rust/pull/69464/
2382 [68717]: https://github.com/rust-lang/rust/pull/68717/
2383 [cargo/8066]: https://github.com/rust-lang/cargo/pull/8066
2384 [`Arc::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.as_ptr
2385 [`BTreeMap::remove_entry`]: https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.remove_entry
2386 [`Rc::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.as_ptr
2387 [`rc::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.as_ptr
2388 [`rc::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.from_raw
2389 [`rc::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.into_raw
2390 [`sync::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.as_ptr
2391 [`sync::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.from_raw
2392 [`sync::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.into_raw
2393 [`str::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_prefix
2394 [`str::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_suffix
2395 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/stable/std/char/constant.UNICODE_VERSION.html
2396 [`Span::resolved_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.resolved_at
2397 [`Span::located_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.located_at
2398 [`Span::mixed_site`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.mixed_site
2399 [`unix::process::CommandExt::arg0`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.arg0
2402 Version 1.44.1 (2020-06-18)
2403 ===========================
2405 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2406 * [Don't hash executable filenames on apple platforms, fixing backtraces.][cargo/8329]
2407 * [Fix crashes when finding backtrace on macOS.][71397]
2408 * [Clippy applies lint levels into different files.][clippy/5356]
2410 [71397]: https://github.com/rust-lang/rust/issues/71397
2411 [73078]: https://github.com/rust-lang/rust/issues/73078
2412 [cargo/8329]: https://github.com/rust-lang/cargo/pull/8329
2413 [clippy/5356]: https://github.com/rust-lang/rust-clippy/issues/5356
2416 Version 1.44.0 (2020-06-04)
2417 ==========================
2421 - [You can now use `async/.await` with `#[no_std]` enabled.][69033]
2422 - [Added the `unused_braces` lint.][70081]
2424 **Syntax-only changes**
2426 - [Expansion-driven outline module parsing][69838]
2431 mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
2436 These are still rejected semantically, so you will likely receive an error but
2437 these changes can be seen and parsed by macros and conditional compilation.
2441 - [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
2442 Additionally when in incremental mode rustc defaults to 256 codegen units.
2443 - [Refactored `catch_unwind` to have zero-cost, unless unwinding is enabled and
2444 a panic is thrown.][67502]
2445 - [Added tier 3\* support for the `aarch64-unknown-none` and
2446 `aarch64-unknown-none-softfloat` targets.][68334]
2447 - [Added tier 3 support for `arm64-apple-tvos` and
2448 `x86_64-apple-tvos` targets.][68191]
2453 - [Special cased `vec![]` to map directly to `Vec::new()`.][70632] This allows
2454 `vec![]` to be able to be used in `const` contexts.
2455 - [`convert::Infallible` now implements `Hash`.][70281]
2456 - [`OsString` now implements `DerefMut` and `IndexMut` returning
2457 a `&mut OsStr`.][70048]
2458 - [Unicode 13 is now supported.][69929]
2459 - [`String` now implements `From<&mut str>`.][69661]
2460 - [`IoSlice` now implements `Copy`.][69403]
2461 - [`Vec<T>` now implements `From<[T; N]>`.][68692] Where `N` is at most 32.
2462 - [`proc_macro::LexError` now implements `fmt::Display` and `Error`.][68899]
2463 - [`from_le_bytes`, `to_le_bytes`, `from_be_bytes`, `to_be_bytes`,
2464 `from_ne_bytes`, and `to_ne_bytes` methods are now `const` for all
2465 integer types.][69373]
2469 - [`PathBuf::with_capacity`]
2470 - [`PathBuf::capacity`]
2471 - [`PathBuf::clear`]
2472 - [`PathBuf::reserve`]
2473 - [`PathBuf::reserve_exact`]
2474 - [`PathBuf::shrink_to_fit`]
2475 - [`f32::to_int_unchecked`]
2476 - [`f64::to_int_unchecked`]
2477 - [`Layout::align_to`]
2478 - [`Layout::pad_to_align`]
2480 - [`Layout::extend`]
2484 - [Added the `cargo tree` command which will print a tree graph of
2485 your dependencies.][cargo/8062] E.g.
2487 mdbook v0.3.2 (/Users/src/rust/mdbook)
2489 │ ├── html5ever v0.24.0
2491 │ │ │ └── cfg-if v0.1.9
2493 │ │ └── markup5ever v0.9.0
2494 │ │ ├── log v0.4.8 (*)
2496 │ │ │ └── phf_shared v0.7.24
2497 │ │ │ ├── siphasher v0.2.3
2498 │ │ │ └── unicase v1.4.2
2499 │ │ │ [build-dependencies]
2500 │ │ │ └── version_check v0.1.5
2503 You can also display dependencies on multiple versions of the same crate with
2504 `cargo tree -d` (short for `cargo tree --duplicates`).
2508 - [Rustdoc now allows you to specify `--crate-version` to have rustdoc include
2509 the version in the sidebar.][69494]
2513 - [Rustc now correctly generates static libraries on Windows GNU targets with
2514 the `.a` extension, rather than the previous `.lib`.][70937]
2515 - [Removed the `-C no_integrated_as` flag from rustc.][70345]
2516 - [The `file_name` property in JSON output of macro errors now points the actual
2517 source file rather than the previous format of `<NAME macros>`.][70969]
2518 **Note:** this may not point to a file that actually exists on the user's system.
2519 - [The minimum required external LLVM version has been bumped to LLVM 8.][71147]
2520 - [`mem::{zeroed, uninitialised}` will now panic when used with types that do
2521 not allow zero initialization such as `NonZeroU8`.][66059] This was
2522 previously a warning.
2523 - [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
2524 operator has been defined as a saturating operation.][71269] This was previously
2525 undefined behaviour, but you can use the `{f64, f32}::to_int_unchecked` methods to
2526 continue using the current behaviour, which may be desirable in rare performance
2527 sensitive situations.
2531 These changes provide no direct user facing benefits, but represent significant
2532 improvements to the internals and overall performance of rustc and
2535 - [dep_graph Avoid allocating a set on when the number reads are small.][69778]
2536 - [Replace big JS dict with JSON parsing.][71250]
2538 [69373]: https://github.com/rust-lang/rust/pull/69373/
2539 [66059]: https://github.com/rust-lang/rust/pull/66059/
2540 [68191]: https://github.com/rust-lang/rust/pull/68191/
2541 [68899]: https://github.com/rust-lang/rust/pull/68899/
2542 [71147]: https://github.com/rust-lang/rust/pull/71147/
2543 [71250]: https://github.com/rust-lang/rust/pull/71250/
2544 [70937]: https://github.com/rust-lang/rust/pull/70937/
2545 [70969]: https://github.com/rust-lang/rust/pull/70969/
2546 [70632]: https://github.com/rust-lang/rust/pull/70632/
2547 [70281]: https://github.com/rust-lang/rust/pull/70281/
2548 [70345]: https://github.com/rust-lang/rust/pull/70345/
2549 [70048]: https://github.com/rust-lang/rust/pull/70048/
2550 [70081]: https://github.com/rust-lang/rust/pull/70081/
2551 [70156]: https://github.com/rust-lang/rust/pull/70156/
2552 [71269]: https://github.com/rust-lang/rust/pull/71269/
2553 [69838]: https://github.com/rust-lang/rust/pull/69838/
2554 [69929]: https://github.com/rust-lang/rust/pull/69929/
2555 [69661]: https://github.com/rust-lang/rust/pull/69661/
2556 [69778]: https://github.com/rust-lang/rust/pull/69778/
2557 [69494]: https://github.com/rust-lang/rust/pull/69494/
2558 [69403]: https://github.com/rust-lang/rust/pull/69403/
2559 [69033]: https://github.com/rust-lang/rust/pull/69033/
2560 [68692]: https://github.com/rust-lang/rust/pull/68692/
2561 [68334]: https://github.com/rust-lang/rust/pull/68334/
2562 [67502]: https://github.com/rust-lang/rust/pull/67502/
2563 [cargo/8062]: https://github.com/rust-lang/cargo/pull/8062/
2564 [`PathBuf::with_capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.with_capacity
2565 [`PathBuf::capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.capacity
2566 [`PathBuf::clear`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.clear
2567 [`PathBuf::reserve`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve
2568 [`PathBuf::reserve_exact`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve_exact
2569 [`PathBuf::shrink_to_fit`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.shrink_to_fit
2570 [`f32::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_int_unchecked
2571 [`f64::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_int_unchecked
2572 [`Layout::align_to`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.align_to
2573 [`Layout::pad_to_align`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.pad_to_align
2574 [`Layout::array`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.array
2575 [`Layout::extend`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.extend
2578 Version 1.43.1 (2020-05-07)
2579 ===========================
2581 * [Updated openssl-src to 1.1.1g for CVE-2020-1967.][71430]
2582 * [Fixed the stabilization of AVX-512 features.][71473]
2583 * [Fixed `cargo package --list` not working with unpublished dependencies.][cargo/8151]
2585 [71430]: https://github.com/rust-lang/rust/pull/71430
2586 [71473]: https://github.com/rust-lang/rust/issues/71473
2587 [cargo/8151]: https://github.com/rust-lang/cargo/issues/8151
2590 Version 1.43.0 (2020-04-23)
2591 ==========================
2595 - [Fixed using binary operations with `&{number}` (e.g. `&1.0`) not having
2596 the type inferred correctly.][68129]
2597 - [Attributes such as `#[cfg()]` can now be used on `if` expressions.][69201]
2599 **Syntax only changes**
2600 - [Allow `type Foo: Ord` syntactically.][69361]
2601 - [Fuse associated and extern items up to defaultness.][69194]
2602 - [Syntactically allow `self` in all `fn` contexts.][68764]
2603 - [Merge `fn` syntax + cleanup item parsing.][68728]
2604 - [`item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks.][69366]
2605 For example, you may now write:
2607 macro_rules! mac_trait {
2617 These are still rejected *semantically*, so you will likely receive an error but
2618 these changes can be seen and parsed by macros and
2619 conditional compilation.
2624 - [You can now pass multiple lint flags to rustc to override the previous
2625 flags.][67885] For example; `rustc -D unused -A unused-variables` denies
2626 everything in the `unused` lint group except `unused-variables` which
2627 is explicitly allowed. However, passing `rustc -A unused-variables -D unused` denies
2628 everything in the `unused` lint group **including** `unused-variables` since
2629 the allow flag is specified before the deny flag (and therefore overridden).
2630 - [rustc will now prefer your system MinGW libraries over its bundled libraries
2631 if they are available on `windows-gnu`.][67429]
2632 - [rustc now buffers errors/warnings printed in JSON.][69227]
2636 - [`Arc<[T; N]>`, `Box<[T; N]>`, and `Rc<[T; N]>`, now implement
2637 `TryFrom<Arc<[T]>>`,`TryFrom<Box<[T]>>`, and `TryFrom<Rc<[T]>>`
2638 respectively.][69538] **Note** These conversions are only available when `N`
2640 - [You can now use associated constants on floats and integers directly, rather
2641 than having to import the module.][68952] e.g. You can now write `u32::MAX` or
2642 `f32::NAN` with no imports.
2643 - [`u8::is_ascii` is now `const`.][68984]
2644 - [`String` now implements `AsMut<str>`.][68742]
2645 - [Added the `primitive` module to `std` and `core`.][67637] This module
2646 reexports Rust's primitive types. This is mainly useful in macros
2647 where you want avoid these types being shadowed.
2648 - [Relaxed some of the trait bounds on `HashMap` and `HashSet`.][67642]
2649 - [`string::FromUtf8Error` now implements `Clone + Eq`.][68738]
2653 - [`Once::is_completed`]
2658 - [`iter::once_with`]
2662 - [You can now set config `[profile]`s in your `.cargo/config`, or through
2663 your environment.][cargo/7823]
2664 - [Cargo will now set `CARGO_BIN_EXE_<name>` pointing to a binary's
2665 executable path when running integration tests or benchmarks.][cargo/7697]
2666 `<name>` is the name of your binary as-is e.g. If you wanted the executable
2667 path for a binary named `my-program`you would use `env!("CARGO_BIN_EXE_my-program")`.
2671 - [Certain checks in the `const_err` lint were deemed unrelated to const
2672 evaluation][69185], and have been moved to the `unconditional_panic` and
2673 `arithmetic_overflow` lints.
2678 - [Having trailing syntax in the `assert!` macro is now a hard error.][69548] This
2679 has been a warning since 1.36.0.
2680 - [Fixed `Self` not having the correctly inferred type.][69340] This incorrectly
2681 led to some instances being accepted, and now correctly emits a hard error.
2683 [69340]: https://github.com/rust-lang/rust/pull/69340
2687 These changes provide no direct user facing benefits, but represent significant
2688 improvements to the internals and overall performance of `rustc` and
2691 - [All components are now built with `opt-level=3` instead of `2`.][67878]
2692 - [Improved how rustc generates drop code.][67332]
2693 - [Improved performance from `#[inline]`-ing certain hot functions.][69256]
2694 - [traits: preallocate 2 Vecs of known initial size][69022]
2695 - [Avoid exponential behaviour when relating types][68772]
2696 - [Skip `Drop` terminators for enum variants without drop glue][68943]
2697 - [Improve performance of coherence checks][68966]
2698 - [Deduplicate types in the generator witness][68672]
2699 - [Invert control in struct_lint_level.][68725]
2701 [67332]: https://github.com/rust-lang/rust/pull/67332/
2702 [67429]: https://github.com/rust-lang/rust/pull/67429/
2703 [67637]: https://github.com/rust-lang/rust/pull/67637/
2704 [67642]: https://github.com/rust-lang/rust/pull/67642/
2705 [67878]: https://github.com/rust-lang/rust/pull/67878/
2706 [67885]: https://github.com/rust-lang/rust/pull/67885/
2707 [68129]: https://github.com/rust-lang/rust/pull/68129/
2708 [68672]: https://github.com/rust-lang/rust/pull/68672/
2709 [68725]: https://github.com/rust-lang/rust/pull/68725/
2710 [68728]: https://github.com/rust-lang/rust/pull/68728/
2711 [68738]: https://github.com/rust-lang/rust/pull/68738/
2712 [68742]: https://github.com/rust-lang/rust/pull/68742/
2713 [68764]: https://github.com/rust-lang/rust/pull/68764/
2714 [68772]: https://github.com/rust-lang/rust/pull/68772/
2715 [68943]: https://github.com/rust-lang/rust/pull/68943/
2716 [68952]: https://github.com/rust-lang/rust/pull/68952/
2717 [68966]: https://github.com/rust-lang/rust/pull/68966/
2718 [68984]: https://github.com/rust-lang/rust/pull/68984/
2719 [69022]: https://github.com/rust-lang/rust/pull/69022/
2720 [69185]: https://github.com/rust-lang/rust/pull/69185/
2721 [69194]: https://github.com/rust-lang/rust/pull/69194/
2722 [69201]: https://github.com/rust-lang/rust/pull/69201/
2723 [69227]: https://github.com/rust-lang/rust/pull/69227/
2724 [69548]: https://github.com/rust-lang/rust/pull/69548/
2725 [69256]: https://github.com/rust-lang/rust/pull/69256/
2726 [69361]: https://github.com/rust-lang/rust/pull/69361/
2727 [69366]: https://github.com/rust-lang/rust/pull/69366/
2728 [69538]: https://github.com/rust-lang/rust/pull/69538/
2729 [cargo/7823]: https://github.com/rust-lang/cargo/pull/7823
2730 [cargo/7697]: https://github.com/rust-lang/cargo/pull/7697
2731 [`Once::is_completed`]: https://doc.rust-lang.org/std/sync/struct.Once.html#method.is_completed
2732 [`f32::LOG10_2`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG10_2.html
2733 [`f32::LOG2_10`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG2_10.html
2734 [`f64::LOG10_2`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG10_2.html
2735 [`f64::LOG2_10`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG2_10.html
2736 [`iter::once_with`]: https://doc.rust-lang.org/std/iter/fn.once_with.html
2739 Version 1.42.0 (2020-03-12)
2740 ==========================
2744 - [You can now use the slice pattern syntax with subslices.][67712] e.g.
2746 fn foo(words: &[&str]) {
2748 ["Hello", "World", "!", ..] => println!("Hello World!"),
2749 ["Foo", "Bar", ..] => println!("Baz"),
2750 rest => println!("{:?}", rest),
2754 - [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning
2755 that you can create an enum that has the exact layout and ABI of the type
2757 - [You can now use outer attribute procedural macros on inline modules.][64273]
2758 - [There are some *syntax-only* changes:][67131]
2759 - `default` is syntactically allowed before items in `trait` definitions.
2760 - Items in `impl`s (i.e. `const`s, `type`s, and `fn`s) may syntactically
2761 leave out their bodies in favor of `;`.
2762 - Bounds on associated types in `impl`s are now syntactically allowed
2763 (e.g. `type Foo: Ord;`).
2764 - `...` (the C-variadic type) may occur syntactically directly as the type of
2765 any function parameter.
2767 These are still rejected *semantically*, so you will likely receive an error
2768 but these changes can be seen and parsed by procedural macros and
2769 conditional compilation.
2773 - [Added tier 2\* support for `armv7a-none-eabi`.][68253]
2774 - [Added tier 2 support for `riscv64gc-unknown-linux-gnu`.][68339]
2775 - [`Option::{expect,unwrap}` and
2776 `Result::{expect, expect_err, unwrap, unwrap_err}` now produce panic messages
2777 pointing to the location where they were called, rather than
2778 `core`'s internals. ][67887]
2780 \* Refer to Rust's [platform support page][platform-support-doc] for more
2781 information on Rust's tiered platform support.
2785 - [`iter::Empty<T>` now implements `Send` and `Sync` for any `T`.][68348]
2786 - [`Pin::{map_unchecked, map_unchecked_mut}` no longer require the return type
2787 to implement `Sized`.][67935]
2788 - [`io::Cursor` now derives `PartialEq` and `Eq`.][67233]
2789 - [`Layout::new` is now `const`.][66254]
2790 - [Added Standard Library support for `riscv64gc-unknown-linux-gnu`.][66899]
2795 - [`CondVar::wait_while`]
2796 - [`CondVar::wait_timeout_while`]
2798 - [`DebugMap::value`]
2799 - [`ManuallyDrop::take`]
2801 - [`ptr::slice_from_raw_parts_mut`]
2802 - [`ptr::slice_from_raw_parts`]
2806 - [You no longer need to include `extern crate proc_macro;` to be able to
2807 `use proc_macro;` in the `2018` edition.][cargo/7700]
2811 - [`Error::description` has been deprecated, and its use will now produce a
2812 warning.][66919] It's recommended to use `Display`/`to_string` instead.
2814 [68253]: https://github.com/rust-lang/rust/pull/68253/
2815 [68348]: https://github.com/rust-lang/rust/pull/68348/
2816 [67935]: https://github.com/rust-lang/rust/pull/67935/
2817 [68339]: https://github.com/rust-lang/rust/pull/68339/
2818 [68122]: https://github.com/rust-lang/rust/pull/68122/
2819 [64273]: https://github.com/rust-lang/rust/pull/64273/
2820 [67712]: https://github.com/rust-lang/rust/pull/67712/
2821 [67887]: https://github.com/rust-lang/rust/pull/67887/
2822 [67131]: https://github.com/rust-lang/rust/pull/67131/
2823 [67233]: https://github.com/rust-lang/rust/pull/67233/
2824 [66899]: https://github.com/rust-lang/rust/pull/66899/
2825 [66919]: https://github.com/rust-lang/rust/pull/66919/
2826 [66254]: https://github.com/rust-lang/rust/pull/66254/
2827 [cargo/7700]: https://github.com/rust-lang/cargo/pull/7700
2828 [`DebugMap::key`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.key
2829 [`DebugMap::value`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.value
2830 [`ManuallyDrop::take`]: https://doc.rust-lang.org/stable/std/mem/struct.ManuallyDrop.html#method.take
2831 [`matches!`]: https://doc.rust-lang.org/stable/std/macro.matches.html
2832 [`ptr::slice_from_raw_parts_mut`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts_mut.html
2833 [`ptr::slice_from_raw_parts`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts.html
2834 [`CondVar::wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while
2835 [`CondVar::wait_timeout_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_timeout_while
2838 Version 1.41.1 (2020-02-27)
2839 ===========================
2841 * [Always check types of static items][69145]
2842 * [Always check lifetime bounds of `Copy` impls][69145]
2843 * [Fix miscompilation in callers of `Layout::repeat`][69225]
2845 [69225]: https://github.com/rust-lang/rust/issues/69225
2846 [69145]: https://github.com/rust-lang/rust/pull/69145
2849 Version 1.41.0 (2020-01-30)
2850 ===========================
2855 - [You can now pass type parameters to foreign items when implementing
2856 traits.][65879] E.g. You can now write `impl<T> From<Foo> for Vec<T> {}`.
2857 - [You can now arbitrarily nest receiver types in the `self` position.][64325] E.g. you can
2858 now write `fn foo(self: Box<Box<Self>>) {}`. Previously only `Self`, `&Self`,
2859 `&mut Self`, `Arc<Self>`, `Rc<Self>`, and `Box<Self>` were allowed.
2860 - [You can now use any valid identifier in a `format_args` macro.][66847]
2861 Previously identifiers starting with an underscore were not allowed.
2862 - [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
2863 enum variants.][66183] These are still rejected semantically, but
2864 can be seen and parsed by procedural macros and conditional compilation.
2865 - [You can now define a Rust `extern "C"` function with `Box<T>` and use `T*` as the corresponding
2866 type on the C side.][62514] Please see [the documentation][box-memory-layout] for more information,
2867 including the important caveat about preferring to avoid `Box<T>` in Rust signatures for functions defined in C.
2869 [box-memory-layout]: https://doc.rust-lang.org/std/boxed/index.html#memory-layout
2874 - [Rustc will now warn if you have unused loop `'label`s.][66325]
2875 - [Removed support for the `i686-unknown-dragonfly` target.][67255]
2876 - [Added tier 3 support\* for the `riscv64gc-unknown-linux-gnu` target.][66661]
2877 - [You can now pass an arguments file passing the `@path` syntax
2878 to rustc.][66172] Note that the format differs somewhat from what is
2879 found in other tooling; please see [the documentation][argfile-docs] for
2881 - [You can now provide `--extern` flag without a path, indicating that it is
2882 available from the search path or specified with an `-L` flag.][64882]
2884 \* Refer to Rust's [platform support page][platform-support-doc] for more
2885 information on Rust's tiered platform support.
2887 [argfile-docs]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#path-load-command-line-flags-from-a-path
2892 - [The `core::panic` module is now stable.][66771] It was already stable
2894 - [`NonZero*` numerics now implement `From<NonZero*>` if it's a smaller integer
2895 width.][66277] E.g. `NonZeroU16` now implements `From<NonZeroU8>`.
2896 - [`MaybeUninit<T>` now implements `fmt::Debug`.][65013]
2901 - [`Result::map_or`]
2902 - [`Result::map_or_else`]
2903 - [`std::rc::Weak::weak_count`]
2904 - [`std::rc::Weak::strong_count`]
2905 - [`std::sync::Weak::weak_count`]
2906 - [`std::sync::Weak::strong_count`]
2911 - [Cargo will now document all the private items for binary crates
2912 by default.][cargo/7593]
2913 - [`cargo-install` will now reinstall the package if it detects that it is out
2914 of date.][cargo/7560]
2915 - [Cargo.lock now uses a more git friendly format that should help to reduce
2916 merge conflicts.][cargo/7579]
2917 - [You can now override specific dependencies's build settings][cargo/7591] E.g.
2918 `[profile.dev.package.image] opt-level = 2` sets the `image` crate's
2919 optimisation level to `2` for debug builds. You can also use
2920 `[profile.<profile>.build-override]` to override build scripts and
2926 - [You can now specify `edition` in documentation code blocks to compile the block
2927 for that edition.][66238] E.g. `edition2018` tells rustdoc that the code sample
2928 should be compiled the 2018 edition of Rust.
2929 - [You can now provide custom themes to rustdoc with `--theme`, and check the
2930 current theme with `--check-theme`.][54733]
2931 - [You can use `#[cfg(doc)]` to compile an item when building documentation.][61351]
2936 - [As previously announced 1.41.0 will be the last tier 1 release for 32-bit
2937 Apple targets.][apple-32bit-drop] This means that the source code is still
2938 available to build, but the targets are no longer being tested and release
2939 binaries for those platforms will no longer be distributed by the Rust project.
2940 Please refer to the linked blog post for more information.
2942 [54733]: https://github.com/rust-lang/rust/pull/54733/
2943 [61351]: https://github.com/rust-lang/rust/pull/61351/
2944 [62514]: https://github.com/rust-lang/rust/pull/62514/
2945 [67255]: https://github.com/rust-lang/rust/pull/67255/
2946 [66661]: https://github.com/rust-lang/rust/pull/66661/
2947 [66771]: https://github.com/rust-lang/rust/pull/66771/
2948 [66847]: https://github.com/rust-lang/rust/pull/66847/
2949 [66238]: https://github.com/rust-lang/rust/pull/66238/
2950 [66277]: https://github.com/rust-lang/rust/pull/66277/
2951 [66325]: https://github.com/rust-lang/rust/pull/66325/
2952 [66172]: https://github.com/rust-lang/rust/pull/66172/
2953 [66183]: https://github.com/rust-lang/rust/pull/66183/
2954 [65879]: https://github.com/rust-lang/rust/pull/65879/
2955 [65013]: https://github.com/rust-lang/rust/pull/65013/
2956 [64882]: https://github.com/rust-lang/rust/pull/64882/
2957 [64325]: https://github.com/rust-lang/rust/pull/64325/
2958 [cargo/7560]: https://github.com/rust-lang/cargo/pull/7560/
2959 [cargo/7579]: https://github.com/rust-lang/cargo/pull/7579/
2960 [cargo/7591]: https://github.com/rust-lang/cargo/pull/7591/
2961 [cargo/7593]: https://github.com/rust-lang/cargo/pull/7593/
2962 [`Result::map_or_else`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or_else
2963 [`Result::map_or`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or
2964 [`std::rc::Weak::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.weak_count
2965 [`std::rc::Weak::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.strong_count
2966 [`std::sync::Weak::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.weak_count
2967 [`std::sync::Weak::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.strong_count
2968 [apple-32bit-drop]: https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html
2970 Version 1.40.0 (2019-12-19)
2971 ===========================
2975 - [You can now use tuple `struct`s and tuple `enum` variant's constructors in
2976 `const` contexts.][65188] e.g.
2979 pub struct Point(i32, i32);
2981 const ORIGIN: Point = {
2982 let constructor = Point;
2988 - [You can now mark `struct`s, `enum`s, and `enum` variants with the `#[non_exhaustive]` attribute to
2989 indicate that there may be variants or fields added in the future.][64639]
2990 For example this requires adding a wild-card branch (`_ => {}`) to any match
2991 statements on a non-exhaustive `enum`. [(RFC 2008)]
2992 - [You can now use function-like procedural macros in `extern` blocks and in
2993 type positions.][63931] e.g. `type Generated = macro!();`
2994 - [Function-like and attribute procedural macros can now emit
2995 `macro_rules!` items, so you can now have your macros generate macros.][64035]
2996 - [The `meta` pattern matcher in `macro_rules!` now correctly matches the modern
2997 attribute syntax.][63674] For example `(#[$m:meta])` now matches `#[attr]`,
2998 `#[attr{tokens}]`, `#[attr[tokens]]`, and `#[attr(tokens)]`.
3002 - [Added tier 3 support\* for the
3003 `thumbv7neon-unknown-linux-musleabihf` target.][66103]
3004 - [Added tier 3 support for the
3005 `aarch64-unknown-none-softfloat` target.][64589]
3006 - [Added tier 3 support for the `mips64-unknown-linux-muslabi64`, and
3007 `mips64el-unknown-linux-muslabi64` targets.][65843]
3009 \* Refer to Rust's [platform support page][platform-support-doc] for more
3010 information on Rust's tiered platform support.
3014 - [The `is_power_of_two` method on unsigned numeric types is now a `const` function.][65092]
3018 - [`BTreeMap::get_key_value`]
3019 - [`HashMap::get_key_value`]
3020 - [`Option::as_deref_mut`]
3021 - [`Option::as_deref`]
3022 - [`Option::flatten`]
3023 - [`UdpSocket::peer_addr`]
3024 - [`f32::to_be_bytes`]
3025 - [`f32::to_le_bytes`]
3026 - [`f32::to_ne_bytes`]
3027 - [`f64::to_be_bytes`]
3028 - [`f64::to_le_bytes`]
3029 - [`f64::to_ne_bytes`]
3030 - [`f32::from_be_bytes`]
3031 - [`f32::from_le_bytes`]
3032 - [`f32::from_ne_bytes`]
3033 - [`f64::from_be_bytes`]
3034 - [`f64::from_le_bytes`]
3035 - [`f64::from_ne_bytes`]
3042 - [Cargo will now always display warnings, rather than only on
3043 fresh builds.][cargo/7450]
3044 - [Feature flags (except `--all-features`) passed to a virtual workspace will
3045 now produce an error.][cargo/7507] Previously these flags were ignored.
3046 - [You can now publish `dev-dependencies` without including
3047 a `version`.][cargo/7333]
3051 - [You can now specify the `#[cfg(doctest)]` attribute to include an item only
3052 when running documentation tests with `rustdoc`.][63803]
3056 - [As previously announced, any previous NLL warnings in the 2015 edition are
3057 now hard errors.][64221]
3058 - [The `include!` macro will now warn if it failed to include the
3059 entire file.][64284] The `include!` macro unintentionally only includes the
3060 first _expression_ in a file, and this can be unintuitive. This will become
3061 either a hard error in a future release, or the behavior may be fixed to include all expressions as expected.
3062 - [Using `#[inline]` on function prototypes and consts now emits a warning under
3063 `unused_attribute` lint.][65294] Using `#[inline]` anywhere else inside traits
3064 or `extern` blocks now correctly emits a hard error.
3066 [65294]: https://github.com/rust-lang/rust/pull/65294/
3067 [66103]: https://github.com/rust-lang/rust/pull/66103/
3068 [65843]: https://github.com/rust-lang/rust/pull/65843/
3069 [65188]: https://github.com/rust-lang/rust/pull/65188/
3070 [65092]: https://github.com/rust-lang/rust/pull/65092/
3071 [64589]: https://github.com/rust-lang/rust/pull/64589/
3072 [64639]: https://github.com/rust-lang/rust/pull/64639/
3073 [64221]: https://github.com/rust-lang/rust/pull/64221/
3074 [64284]: https://github.com/rust-lang/rust/pull/64284/
3075 [63931]: https://github.com/rust-lang/rust/pull/63931/
3076 [64035]: https://github.com/rust-lang/rust/pull/64035/
3077 [63674]: https://github.com/rust-lang/rust/pull/63674/
3078 [63803]: https://github.com/rust-lang/rust/pull/63803/
3079 [cargo/7450]: https://github.com/rust-lang/cargo/pull/7450/
3080 [cargo/7507]: https://github.com/rust-lang/cargo/pull/7507/
3081 [cargo/7333]: https://github.com/rust-lang/cargo/pull/7333/
3082 [(rfc 2008)]: https://rust-lang.github.io/rfcs/2008-non-exhaustive.html
3083 [`f32::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_be_bytes
3084 [`f32::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_le_bytes
3085 [`f32::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_ne_bytes
3086 [`f64::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_be_bytes
3087 [`f64::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_le_bytes
3088 [`f64::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_ne_bytes
3089 [`f32::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_be_bytes
3090 [`f32::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_le_bytes
3091 [`f32::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_ne_bytes
3092 [`f64::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_be_bytes
3093 [`f64::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_le_bytes
3094 [`f64::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_ne_bytes
3095 [`option::flatten`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.flatten
3096 [`option::as_deref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref
3097 [`option::as_deref_mut`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref_mut
3098 [`hashmap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.get_key_value
3099 [`btreemap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.get_key_value
3100 [`slice::repeat`]: https://doc.rust-lang.org/std/primitive.slice.html#method.repeat
3101 [`mem::take`]: https://doc.rust-lang.org/std/mem/fn.take.html
3102 [`udpsocket::peer_addr`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peer_addr
3103 [`todo!`]: https://doc.rust-lang.org/std/macro.todo.html
3106 Version 1.39.0 (2019-11-07)
3107 ===========================
3111 - [You can now create `async` functions and blocks with `async fn`, `async move {}`, and
3112 `async {}` respectively, and you can now call `.await` on async expressions.][63209]
3113 - [You can now use certain attributes on function, closure, and function pointer
3114 parameters.][64010] These attributes include `cfg`, `cfg_attr`, `allow`, `warn`,
3115 `deny`, `forbid` as well as inert helper attributes used by procedural macro
3116 attributes applied to items. e.g.
3119 #[cfg(windows)] slice: &[u16],
3120 #[cfg(not(windows))] slice: &[u8],
3125 - [You can now take shared references to bind-by-move patterns in the `if` guards
3126 of `match` arms.][63118] e.g.
3129 let array: Box<[u8; 4]> = Box::new([1, 2, 3, 4]);
3133 // ---- `nums` is bound by move.
3134 if nums.iter().sum::<u8>() == 10
3135 // ^------ `.iter()` implicitly takes a reference to `nums`.
3138 // ----------- Legal as `nums` was bound by move and so we have ownership.
3140 _ => unreachable!(),
3149 - [Added tier 3\* support for the `i686-unknown-uefi` target.][64334]
3150 - [Added tier 3 support for the `sparc64-unknown-openbsd` target.][63595]
3151 - [rustc will now trim code snippets in diagnostics to fit in your terminal.][63402]
3152 **Note** Cargo currently doesn't use this feature. Refer to
3153 [cargo#7315][cargo/7315] to track this feature's progress.
3154 - [You can now pass `--show-output` argument to test binaries to print the
3155 output of successful tests.][62600]
3158 \* Refer to Rust's [platform support page][platform-support-doc] for more
3159 information on Rust's tiered platform support.
3163 - [`Vec::new` and `String::new` are now `const` functions.][64028]
3164 - [`LinkedList::new` is now a `const` function.][63684]
3165 - [`str::len`, `[T]::len` and `str::as_bytes` are now `const` functions.][63770]
3166 - [The `abs`, `wrapping_abs`, and `overflowing_abs` numeric functions are
3167 now `const`.][63786]
3171 - [`Pin::into_inner`]
3172 - [`Instant::checked_duration_since`]
3173 - [`Instant::saturating_duration_since`]
3177 - [You can now publish git dependencies if supplied with a `version`.][cargo/7237]
3178 - [The `--all` flag has been renamed to `--workspace`.][cargo/7241] Using
3179 `--all` is now deprecated.
3183 - [You can now pass `-Clinker` to rustdoc to control the linker used
3184 for compiling doctests.][63834]
3188 - [Code that was previously accepted by the old borrow checker, but rejected by
3189 the NLL borrow checker is now a hard error in Rust 2018.][63565] This was
3190 previously a warning, and will also become a hard error in the Rust 2015
3191 edition in the 1.40.0 release.
3192 - [`rustdoc` now requires `rustc` to be installed and in the same directory to
3193 run tests.][63827] This should improve performance when running a large
3195 - [The `try!` macro will now issue a deprecation warning.][62672] It is
3196 recommended to use the `?` operator instead.
3197 - [`asinh(-0.0)` now correctly returns `-0.0`.][63698] Previously this
3200 [62600]: https://github.com/rust-lang/rust/pull/62600/
3201 [62672]: https://github.com/rust-lang/rust/pull/62672/
3202 [63118]: https://github.com/rust-lang/rust/pull/63118/
3203 [63209]: https://github.com/rust-lang/rust/pull/63209/
3204 [63402]: https://github.com/rust-lang/rust/pull/63402/
3205 [63565]: https://github.com/rust-lang/rust/pull/63565/
3206 [63595]: https://github.com/rust-lang/rust/pull/63595/
3207 [63684]: https://github.com/rust-lang/rust/pull/63684/
3208 [63698]: https://github.com/rust-lang/rust/pull/63698/
3209 [63770]: https://github.com/rust-lang/rust/pull/63770/
3210 [63786]: https://github.com/rust-lang/rust/pull/63786/
3211 [63827]: https://github.com/rust-lang/rust/pull/63827/
3212 [63834]: https://github.com/rust-lang/rust/pull/63834/
3213 [64010]: https://github.com/rust-lang/rust/pull/64010/
3214 [64028]: https://github.com/rust-lang/rust/pull/64028/
3215 [64334]: https://github.com/rust-lang/rust/pull/64334/
3216 [cargo/7237]: https://github.com/rust-lang/cargo/pull/7237/
3217 [cargo/7241]: https://github.com/rust-lang/cargo/pull/7241/
3218 [cargo/7315]: https://github.com/rust-lang/cargo/pull/7315/
3219 [`Pin::into_inner`]: https://doc.rust-lang.org/std/pin/struct.Pin.html#method.into_inner
3220 [`Instant::checked_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_duration_since
3221 [`Instant::saturating_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.saturating_duration_since
3223 Version 1.38.0 (2019-09-26)
3224 ==========================
3228 - [The `#[global_allocator]` attribute can now be used in submodules.][62735]
3229 - [The `#[deprecated]` attribute can now be used on macros.][62042]
3233 - [Added pipelined compilation support to `rustc`.][62766] This will
3234 improve compilation times in some cases. For further information please refer
3235 to the [_"Evaluating pipelined rustc compilation"_][pipeline-internals] thread.
3236 - [Added tier 3\* support for the `aarch64-uwp-windows-msvc`, `i686-uwp-windows-gnu`,
3237 `i686-uwp-windows-msvc`, `x86_64-uwp-windows-gnu`, and
3238 `x86_64-uwp-windows-msvc` targets.][60260]
3239 - [Added tier 3 support for the `armv7-unknown-linux-gnueabi` and
3240 `armv7-unknown-linux-musleabi` targets.][63107]
3241 - [Added tier 3 support for the `hexagon-unknown-linux-musl` target.][62814]
3242 - [Added tier 3 support for the `riscv32i-unknown-none-elf` target.][62784]
3243 - [Upgraded to LLVM 9.][62592]
3245 \* Refer to Rust's [platform support page][platform-support-doc] for more
3246 information on Rust's tiered platform support.
3250 - [`ascii::EscapeDefault` now implements `Clone` and `Display`.][63421]
3251 - [Derive macros for prelude traits (e.g. `Clone`, `Debug`, `Hash`) are now
3252 available at the same path as the trait.][63056] (e.g. The `Clone` derive macro
3253 is available at `std::clone::Clone`). This also makes all built-in macros
3254 available in `std`/`core` root. e.g. `std::include_bytes!`.
3255 - [`str::Chars` now implements `Debug`.][63000]
3256 - [`slice::{concat, connect, join}` now accepts `&[T]` in addition to `&T`.][62528]
3257 - [`*const T` and `*mut T` now implement `marker::Unpin`.][62583]
3258 - [`Arc<[T]>` and `Rc<[T]>` now implement `FromIterator<T>`.][61953]
3259 - [Added euclidean remainder and division operations (`div_euclid`,
3260 `rem_euclid`) to all numeric primitives.][61884] Additionally `checked`,
3261 `overflowing`, and `wrapping` versions are available for all
3263 - [`thread::AccessError` now implements `Clone`, `Copy`, `Eq`, `Error`, and
3264 `PartialEq`.][61491]
3265 - [`iter::{StepBy, Peekable, Take}` now implement `DoubleEndedIterator`.][61457]
3269 - [`<*const T>::cast`]
3270 - [`<*mut T>::cast`]
3271 - [`Duration::as_secs_f32`]
3272 - [`Duration::as_secs_f64`]
3273 - [`Duration::div_f32`]
3274 - [`Duration::div_f64`]
3275 - [`Duration::from_secs_f32`]
3276 - [`Duration::from_secs_f64`]
3277 - [`Duration::mul_f32`]
3278 - [`Duration::mul_f64`]
3279 - [`any::type_name`]
3283 - [Added pipelined compilation support to `cargo`.][cargo/7143]
3284 - [You can now pass the `--features` option multiple times to enable
3285 multiple features.][cargo/7084]
3290 - [Documentation on `pub use` statements is prepended to the documentation of the re-exported item][63048]
3294 - [`rustc` will now warn about some incorrect uses of
3295 `mem::{uninitialized, zeroed}` that are known to cause undefined behaviour.][63346]
3299 - The [`x86_64-unknown-uefi` platform can not be built][62785] with rustc
3301 - The [`armv7-unknown-linux-gnueabihf` platform is known to have
3302 issues][62896] with certain crates such as libc.
3304 [60260]: https://github.com/rust-lang/rust/pull/60260/
3305 [61457]: https://github.com/rust-lang/rust/pull/61457/
3306 [61491]: https://github.com/rust-lang/rust/pull/61491/
3307 [61884]: https://github.com/rust-lang/rust/pull/61884/
3308 [61953]: https://github.com/rust-lang/rust/pull/61953/
3309 [62042]: https://github.com/rust-lang/rust/pull/62042/
3310 [62528]: https://github.com/rust-lang/rust/pull/62528/
3311 [62583]: https://github.com/rust-lang/rust/pull/62583/
3312 [62735]: https://github.com/rust-lang/rust/pull/62735/
3313 [62766]: https://github.com/rust-lang/rust/pull/62766/
3314 [62784]: https://github.com/rust-lang/rust/pull/62784/
3315 [62592]: https://github.com/rust-lang/rust/pull/62592/
3316 [62785]: https://github.com/rust-lang/rust/issues/62785/
3317 [62814]: https://github.com/rust-lang/rust/pull/62814/
3318 [62896]: https://github.com/rust-lang/rust/issues/62896/
3319 [63000]: https://github.com/rust-lang/rust/pull/63000/
3320 [63056]: https://github.com/rust-lang/rust/pull/63056/
3321 [63107]: https://github.com/rust-lang/rust/pull/63107/
3322 [63346]: https://github.com/rust-lang/rust/pull/63346/
3323 [63421]: https://github.com/rust-lang/rust/pull/63421/
3324 [cargo/7084]: https://github.com/rust-lang/cargo/pull/7084/
3325 [cargo/7143]: https://github.com/rust-lang/cargo/pull/7143/
3326 [63048]: https://github.com/rust-lang/rust/pull/63048
3327 [`<*const T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3328 [`<*mut T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3329 [`Duration::as_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f32
3330 [`Duration::as_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f64
3331 [`Duration::div_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f32
3332 [`Duration::div_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f64
3333 [`Duration::from_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f32
3334 [`Duration::from_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f64
3335 [`Duration::mul_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f32
3336 [`Duration::mul_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f64
3337 [`any::type_name`]: https://doc.rust-lang.org/std/any/fn.type_name.html
3338 [platform-support-doc]: https://doc.rust-lang.org/nightly/rustc/platform-support.html
3339 [pipeline-internals]: https://internals.rust-lang.org/t/evaluating-pipelined-rustc-compilation/10199
3341 Version 1.37.0 (2019-08-15)
3342 ==========================
3346 - `#[must_use]` will now warn if the type is contained in a [tuple][61100],
3347 [`Box`][62228], or an [array][62235] and unused.
3348 - [You can now use the `cfg` and `cfg_attr` attributes on
3349 generic parameters.][61547]
3350 - [You can now use enum variants through type alias.][61682] e.g. You can
3351 write the following:
3353 type MyOption = Option<u8>;
3355 fn increment_or_zero(x: MyOption) -> u8 {
3357 MyOption::Some(y) => y + 1,
3358 MyOption::None => 0,
3362 - [You can now use `_` as an identifier for consts.][61347] e.g. You can write
3363 `const _: u32 = 5;`.
3364 - [You can now use `#[repr(align(X)]` on enums.][61229]
3365 - [The `?` Kleene macro operator is now available in the
3366 2015 edition.][60932]
3370 - [You can now enable Profile-Guided Optimization with the `-C profile-generate`
3371 and `-C profile-use` flags.][61268] For more information on how to use profile
3372 guided optimization, please refer to the [rustc book][rustc-book-pgo].
3373 - [The `rust-lldb` wrapper script should now work again.][61827]
3377 - [`mem::MaybeUninit<T>` is now ABI-compatible with `T`.][61802]
3381 - [`BufReader::buffer`]
3382 - [`BufWriter::buffer`]
3383 - [`Cell::from_mut`]
3384 - [`Cell<[T]>::as_slice_of_cells`][`Cell<slice>::as_slice_of_cells`]
3385 - [`DoubleEndedIterator::nth_back`]
3387 - [`Wrapping::reverse_bits`]
3388 - [`i128::reverse_bits`]
3389 - [`i16::reverse_bits`]
3390 - [`i32::reverse_bits`]
3391 - [`i64::reverse_bits`]
3392 - [`i8::reverse_bits`]
3393 - [`isize::reverse_bits`]
3394 - [`slice::copy_within`]
3395 - [`u128::reverse_bits`]
3396 - [`u16::reverse_bits`]
3397 - [`u32::reverse_bits`]
3398 - [`u64::reverse_bits`]
3399 - [`u8::reverse_bits`]
3400 - [`usize::reverse_bits`]
3404 - [`Cargo.lock` files are now included by default when publishing executable crates
3405 with executables.][cargo/7026]
3406 - [You can now specify `default-run="foo"` in `[package]` to specify the
3407 default executable to use for `cargo run`.][cargo/7056]
3414 - [Using `...` for inclusive range patterns will now warn by default.][61342]
3415 Please transition your code to using the `..=` syntax for inclusive
3417 - [Using a trait object without the `dyn` will now warn by default.][61203]
3418 Please transition your code to use `dyn Trait` for trait objects instead.
3420 [62228]: https://github.com/rust-lang/rust/pull/62228/
3421 [62235]: https://github.com/rust-lang/rust/pull/62235/
3422 [61802]: https://github.com/rust-lang/rust/pull/61802/
3423 [61827]: https://github.com/rust-lang/rust/pull/61827/
3424 [61547]: https://github.com/rust-lang/rust/pull/61547/
3425 [61682]: https://github.com/rust-lang/rust/pull/61682/
3426 [61268]: https://github.com/rust-lang/rust/pull/61268/
3427 [61342]: https://github.com/rust-lang/rust/pull/61342/
3428 [61347]: https://github.com/rust-lang/rust/pull/61347/
3429 [61100]: https://github.com/rust-lang/rust/pull/61100/
3430 [61203]: https://github.com/rust-lang/rust/pull/61203/
3431 [61229]: https://github.com/rust-lang/rust/pull/61229/
3432 [60932]: https://github.com/rust-lang/rust/pull/60932/
3433 [cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/
3434 [cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/
3435 [`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer
3436 [`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer
3437 [`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut
3438 [`Cell<slice>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells
3439 [`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back
3440 [`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor
3441 [`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits
3442 [`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits
3443 [`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits
3444 [`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits
3445 [`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits
3446 [`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits
3447 [`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits
3448 [`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within
3449 [`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits
3450 [`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits
3451 [`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits
3452 [`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits
3453 [`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits
3454 [`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits
3455 [rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html
3458 Version 1.36.0 (2019-07-04)
3459 ==========================
3463 - [Non-Lexical Lifetimes are now enabled on the 2015 edition.][59114]
3464 - [The order of traits in trait objects no longer affects the semantics of that
3465 object.][59445] e.g. `dyn Send + fmt::Debug` is now equivalent to
3466 `dyn fmt::Debug + Send`, where this was previously not the case.
3470 - [`HashMap`'s implementation has been replaced with `hashbrown::HashMap` implementation.][58623]
3471 - [`TryFromSliceError` now implements `From<Infallible>`.][60318]
3472 - [`mem::needs_drop` is now available as a const fn.][60364]
3473 - [`alloc::Layout::from_size_align_unchecked` is now available as a const fn.][60370]
3474 - [`String` now implements `BorrowMut<str>`.][60404]
3475 - [`io::Cursor` now implements `Default`.][60234]
3476 - [Both `NonNull::{dangling, cast}` are now const fns.][60244]
3477 - [The `alloc` crate is now stable.][59675] `alloc` allows you to use a subset
3478 of `std` (e.g. `Vec`, `Box`, `Arc`) in `#![no_std]` environments if the
3479 environment has access to heap memory allocation.
3480 - [`String` now implements `From<&String>`.][59825]
3481 - [You can now pass multiple arguments to the `dbg!` macro.][59826] `dbg!` will
3482 return a tuple of each argument when there is multiple arguments.
3483 - [`Result::{is_err, is_ok}` are now `#[must_use]` and will produce a warning if
3488 - [`VecDeque::rotate_left`]
3489 - [`VecDeque::rotate_right`]
3490 - [`Iterator::copied`]
3492 - [`io::IoSliceMut`]
3493 - [`Read::read_vectored`]
3494 - [`Write::write_vectored`]
3495 - [`str::as_mut_ptr`]
3496 - [`mem::MaybeUninit`]
3497 - [`pointer::align_offset`]
3498 - [`future::Future`]
3500 - [`task::RawWaker`]
3501 - [`task::RawWakerVTable`]
3507 - [Cargo will now produce an error if you attempt to use the name of a required dependency as a feature.][cargo/6860]
3508 - [You can now pass the `--offline` flag to run cargo without accessing the network.][cargo/6934]
3510 You can find further change's in [Cargo's 1.36.0 release notes][cargo-1-36-0].
3514 There have been numerous additions and fixes to clippy, see [Clippy's 1.36.0 release notes][clippy-1-36-0] for more details.
3521 - With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no
3522 longer recommended, and will be deprecated in 1.39.0.
3524 [60318]: https://github.com/rust-lang/rust/pull/60318/
3525 [60364]: https://github.com/rust-lang/rust/pull/60364/
3526 [60370]: https://github.com/rust-lang/rust/pull/60370/
3527 [60404]: https://github.com/rust-lang/rust/pull/60404/
3528 [60234]: https://github.com/rust-lang/rust/pull/60234/
3529 [60244]: https://github.com/rust-lang/rust/pull/60244/
3530 [58623]: https://github.com/rust-lang/rust/pull/58623/
3531 [59648]: https://github.com/rust-lang/rust/pull/59648/
3532 [59675]: https://github.com/rust-lang/rust/pull/59675/
3533 [59825]: https://github.com/rust-lang/rust/pull/59825/
3534 [59826]: https://github.com/rust-lang/rust/pull/59826/
3535 [59445]: https://github.com/rust-lang/rust/pull/59445/
3536 [59114]: https://github.com/rust-lang/rust/pull/59114/
3537 [cargo/6860]: https://github.com/rust-lang/cargo/pull/6860/
3538 [cargo/6934]: https://github.com/rust-lang/cargo/pull/6934/
3539 [`VecDeque::rotate_left`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_left
3540 [`VecDeque::rotate_right`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_right
3541 [`Iterator::copied`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#tymethod.copied
3542 [`io::IoSlice`]: https://doc.rust-lang.org/std/io/struct.IoSlice.html
3543 [`io::IoSliceMut`]: https://doc.rust-lang.org/std/io/struct.IoSliceMut.html
3544 [`Read::read_vectored`]: https://doc.rust-lang.org/std/io/trait.Read.html#method.read_vectored
3545 [`Write::write_vectored`]: https://doc.rust-lang.org/std/io/trait.Write.html#method.write_vectored
3546 [`str::as_mut_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_mut_ptr
3547 [`mem::MaybeUninit`]: https://doc.rust-lang.org/std/mem/union.MaybeUninit.html
3548 [`pointer::align_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.align_offset
3549 [`future::Future`]: https://doc.rust-lang.org/std/future/trait.Future.html
3550 [`task::Context`]: https://doc.rust-lang.org/beta/std/task/struct.Context.html
3551 [`task::RawWaker`]: https://doc.rust-lang.org/beta/std/task/struct.RawWaker.html
3552 [`task::RawWakerVTable`]: https://doc.rust-lang.org/beta/std/task/struct.RawWakerVTable.html
3553 [`task::Waker`]: https://doc.rust-lang.org/beta/std/task/struct.Waker.html
3554 [`task::Poll`]: https://doc.rust-lang.org/beta/std/task/enum.Poll.html
3555 [clippy-1-36-0]: https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-136
3556 [cargo-1-36-0]: https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-136-2019-07-04
3559 Version 1.35.0 (2019-05-23)
3560 ==========================
3564 - [`FnOnce`, `FnMut`, and the `Fn` traits are now implemented for `Box<FnOnce>`,
3565 `Box<FnMut>`, and `Box<Fn>` respectively.][59500]
3566 - [You can now coerce closures into unsafe function pointers.][59580] e.g.
3568 unsafe fn call_unsafe(func: unsafe fn()) {
3573 unsafe { call_unsafe(|| {}); }
3580 - [Added the `armv6-unknown-freebsd-gnueabihf` and
3581 `armv7-unknown-freebsd-gnueabihf` targets.][58080]
3582 - [Added the `wasm32-unknown-wasi` target.][59464]
3587 - [`Thread` will now show its ID in `Debug` output.][59460]
3588 - [`StdinLock`, `StdoutLock`, and `StderrLock` now implement `AsRawFd`.][59512]
3589 - [`alloc::System` now implements `Default`.][59451]
3590 - [Expanded `Debug` output (`{:#?}`) for structs now has a trailing comma on the
3592 - [`char::{ToLowercase, ToUppercase}` now
3593 implement `ExactSizeIterator`.][58778]
3594 - [All `NonZero` numeric types now implement `FromStr`.][58717]
3595 - [Removed the `Read` trait bounds
3596 on the `BufReader::{get_ref, get_mut, into_inner}` methods.][58423]
3597 - [You can now call the `dbg!` macro without any parameters to print the file
3598 and line where it is called.][57847]
3599 - [In place ASCII case conversions are now up to 4× faster.][59283]
3600 e.g. `str::make_ascii_lowercase`
3601 - [`hash_map::{OccupiedEntry, VacantEntry}` now implement `Sync`
3608 - [`RefCell::replace_with`]
3609 - [`RefCell::map_split`]
3611 - [`Range::contains`]
3612 - [`RangeFrom::contains`]
3613 - [`RangeTo::contains`]
3614 - [`RangeInclusive::contains`]
3615 - [`RangeToInclusive::contains`]
3616 - [`Option::copied`]
3620 - [You can now set `cargo:rustc-cdylib-link-arg` at build time to pass custom
3621 linker arguments when building a `cdylib`.][cargo/6298] Its usage is highly
3626 - [The Rust toolchain is now available natively for musl based distros.][58575]
3628 [59460]: https://github.com/rust-lang/rust/pull/59460/
3629 [59464]: https://github.com/rust-lang/rust/pull/59464/
3630 [59500]: https://github.com/rust-lang/rust/pull/59500/
3631 [59512]: https://github.com/rust-lang/rust/pull/59512/
3632 [59580]: https://github.com/rust-lang/rust/pull/59580/
3633 [59283]: https://github.com/rust-lang/rust/pull/59283/
3634 [59451]: https://github.com/rust-lang/rust/pull/59451/
3635 [59076]: https://github.com/rust-lang/rust/pull/59076/
3636 [58778]: https://github.com/rust-lang/rust/pull/58778/
3637 [58717]: https://github.com/rust-lang/rust/pull/58717/
3638 [58369]: https://github.com/rust-lang/rust/pull/58369/
3639 [58423]: https://github.com/rust-lang/rust/pull/58423/
3640 [58080]: https://github.com/rust-lang/rust/pull/58080/
3641 [57847]: https://github.com/rust-lang/rust/pull/57847/
3642 [58575]: https://github.com/rust-lang/rust/pull/58575
3643 [cargo/6298]: https://github.com/rust-lang/cargo/pull/6298/
3644 [`f32::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.copysign
3645 [`f64::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.copysign
3646 [`RefCell::replace_with`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.replace_with
3647 [`RefCell::map_split`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.map_split
3648 [`ptr::hash`]: https://doc.rust-lang.org/stable/std/ptr/fn.hash.html
3649 [`Range::contains`]: https://doc.rust-lang.org/std/ops/struct.Range.html#method.contains
3650 [`RangeFrom::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeFrom.html#method.contains
3651 [`RangeTo::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeTo.html#method.contains
3652 [`RangeInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.contains
3653 [`RangeToInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html#method.contains
3654 [`Option::copied`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.copied
3656 Version 1.34.2 (2019-05-14)
3657 ===========================
3659 * [Destabilize the `Error::type_id` function due to a security
3660 vulnerability][60785] ([CVE-2019-12083])
3662 [60785]: https://github.com/rust-lang/rust/pull/60785
3663 [CVE-2019-12083]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12083
3665 Version 1.34.1 (2019-04-25)
3666 ===========================
3668 * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821]
3669 * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844]
3670 * [Fix Clippy panic when checking some macros][clippy/3805]
3672 [clippy/3821]: https://github.com/rust-lang/rust-clippy/pull/3821
3673 [clippy/3844]: https://github.com/rust-lang/rust-clippy/pull/3844
3674 [clippy/3805]: https://github.com/rust-lang/rust-clippy/pull/3805
3676 Version 1.34.0 (2019-04-11)
3677 ==========================
3681 - [You can now use `#[deprecated = "reason"]`][58166] as a shorthand for
3682 `#[deprecated(note = "reason")]`. This was previously allowed by mistake
3684 - [You can now accept token streams in `#[attr()]`,`#[attr[]]`, and
3685 `#[attr{}]` procedural macros.][57367]
3686 - [You can now write `extern crate self as foo;`][57407] to import your
3687 crate's root into the extern prelude.
3692 - [You can now target `riscv64imac-unknown-none-elf` and
3693 `riscv64gc-unknown-none-elf`.][58406]
3694 - [You can now enable linker plugin LTO optimisations with
3695 `-C linker-plugin-lto`.][58057] This allows rustc to compile your Rust code
3696 into LLVM bitcode allowing LLVM to perform LTO optimisations across C/C++ FFI
3698 - [You can now target `powerpc64-unknown-freebsd`.][57809]
3703 - [The trait bounds have been removed on some of `HashMap<K, V, S>`'s and
3704 `HashSet<T, S>`'s basic methods.][58370] Most notably you no longer require
3705 the `Hash` trait to create an iterator.
3706 - [The `Ord` trait bounds have been removed on some of `BinaryHeap<T>`'s basic
3707 methods.][58421] Most notably you no longer require the `Ord` trait to create
3709 - [The methods `overflowing_neg` and `wrapping_neg` are now `const` functions
3710 for all numeric types.][58044]
3711 - [Indexing a `str` is now generic over all types that
3712 implement `SliceIndex<str>`.][57604]
3713 - [`str::trim`, `str::trim_matches`, `str::trim_{start, end}`, and
3714 `str::trim_{start, end}_matches` are now `#[must_use]`][57106] and will
3715 produce a warning if their returning type is unused.
3716 - [The methods `checked_pow`, `saturating_pow`, `wrapping_pow`, and
3717 `overflowing_pow` are now available for all numeric types.][57873] These are
3718 equivalent to methods such as `wrapping_add` for the `pow` operation.
3726 * [`Error::type_id`]
3727 * [`atomic::AtomicI16`]
3728 * [`atomic::AtomicI32`]
3729 * [`atomic::AtomicI64`]
3730 * [`atomic::AtomicI8`]
3731 * [`atomic::AtomicU16`]
3732 * [`atomic::AtomicU32`]
3733 * [`atomic::AtomicU64`]
3734 * [`atomic::AtomicU8`]
3735 * [`convert::Infallible`]
3736 * [`convert::TryFrom`]
3737 * [`convert::TryInto`]
3739 * [`iter::successors`]
3740 * [`num::NonZeroI128`]
3741 * [`num::NonZeroI16`]
3742 * [`num::NonZeroI32`]
3743 * [`num::NonZeroI64`]
3744 * [`num::NonZeroI8`]
3745 * [`num::NonZeroIsize`]
3746 * [`slice::sort_by_cached_key`]
3747 * [`str::escape_debug`]
3748 * [`str::escape_default`]
3749 * [`str::escape_unicode`]
3750 * [`str::split_ascii_whitespace`]
3753 * [`Instant::checked_add`]
3754 * [`Instant::checked_sub`]
3755 * [`SystemTime::checked_add`]
3756 * [`SystemTime::checked_sub`]
3760 - [You can now use alternative registries to crates.io.][cargo/6654]
3764 - [You can now use the `?` operator in your documentation tests without manually
3765 adding `fn main() -> Result<(), _> {}`.][56470]
3769 - [`Command::before_exec` is being replaced by the unsafe method
3770 `Command::pre_exec`][58059] and will be deprecated with Rust 1.37.0.
3771 - [Use of `ATOMIC_{BOOL, ISIZE, USIZE}_INIT` is now deprecated][57425] as you
3772 can now use `const` functions in `static` variables.
3774 [58370]: https://github.com/rust-lang/rust/pull/58370/
3775 [58406]: https://github.com/rust-lang/rust/pull/58406/
3776 [58421]: https://github.com/rust-lang/rust/pull/58421/
3777 [58166]: https://github.com/rust-lang/rust/pull/58166/
3778 [58044]: https://github.com/rust-lang/rust/pull/58044/
3779 [58057]: https://github.com/rust-lang/rust/pull/58057/
3780 [58059]: https://github.com/rust-lang/rust/pull/58059/
3781 [57809]: https://github.com/rust-lang/rust/pull/57809/
3782 [57873]: https://github.com/rust-lang/rust/pull/57873/
3783 [57604]: https://github.com/rust-lang/rust/pull/57604/
3784 [57367]: https://github.com/rust-lang/rust/pull/57367/
3785 [57407]: https://github.com/rust-lang/rust/pull/57407/
3786 [57425]: https://github.com/rust-lang/rust/pull/57425/
3787 [57106]: https://github.com/rust-lang/rust/pull/57106/
3788 [56470]: https://github.com/rust-lang/rust/pull/56470/
3789 [cargo/6654]: https://github.com/rust-lang/cargo/pull/6654/
3790 [`Any::type_id`]: https://doc.rust-lang.org/std/any/trait.Any.html#tymethod.type_id
3791 [`Error::type_id`]: https://doc.rust-lang.org/std/error/trait.Error.html#method.type_id
3792 [`atomic::AtomicI16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI16.html
3793 [`atomic::AtomicI32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI32.html
3794 [`atomic::AtomicI64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI64.html
3795 [`atomic::AtomicI8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI8.html
3796 [`atomic::AtomicU16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU16.html
3797 [`atomic::AtomicU32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU32.html
3798 [`atomic::AtomicU64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html
3799 [`atomic::AtomicU8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html
3800 [`convert::Infallible`]: https://doc.rust-lang.org/std/convert/enum.Infallible.html
3801 [`convert::TryFrom`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html
3802 [`convert::TryInto`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html
3803 [`iter::from_fn`]: https://doc.rust-lang.org/std/iter/fn.from_fn.html
3804 [`iter::successors`]: https://doc.rust-lang.org/std/iter/fn.successors.html
3805 [`num::NonZeroI128`]: https://doc.rust-lang.org/std/num/struct.NonZeroI128.html
3806 [`num::NonZeroI16`]: https://doc.rust-lang.org/std/num/struct.NonZeroI16.html
3807 [`num::NonZeroI32`]: https://doc.rust-lang.org/std/num/struct.NonZeroI32.html
3808 [`num::NonZeroI64`]: https://doc.rust-lang.org/std/num/struct.NonZeroI64.html
3809 [`num::NonZeroI8`]: https://doc.rust-lang.org/std/num/struct.NonZeroI8.html
3810 [`num::NonZeroIsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroIsize.html
3811 [`slice::sort_by_cached_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key
3812 [`str::escape_debug`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_debug
3813 [`str::escape_default`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_default
3814 [`str::escape_unicode`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_unicode
3815 [`str::split_ascii_whitespace`]: https://doc.rust-lang.org/std/primitive.str.html#method.split_ascii_whitespace
3816 [`Instant::checked_add`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_add
3817 [`Instant::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_sub
3818 [`SystemTime::checked_add`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_add
3819 [`SystemTime::checked_sub`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_sub
3822 Version 1.33.0 (2019-02-28)
3823 ==========================
3827 - [You can now use the `cfg(target_vendor)` attribute.][57465] E.g.
3828 `#[cfg(target_vendor="apple")] fn main() { println!("Hello Apple!"); }`
3829 - [Integer patterns such as in a match expression can now be exhaustive.][56362]
3830 E.g. You can have match statement on a `u8` that covers `0..=255` and
3831 you would no longer be required to have a `_ => unreachable!()` case.
3832 - [You can now have multiple patterns in `if let` and `while let`
3833 expressions.][57532] You can do this with the same syntax as a `match`
3843 let state = Creature::Crab("Ferris");
3845 if let Creature::Crab(name) | Creature::Person(name) = state {
3846 println!("This creature's name is: {}", name);
3850 - [You can now have irrefutable `if let` and `while let` patterns.][57535] Using
3851 this feature will by default produce a warning as this behaviour can be
3852 unintuitive. E.g. `if let _ = 5 {}`
3853 - [You can now use `let` bindings, assignments, expression statements,
3854 and irrefutable pattern destructuring in const functions.][57175]
3855 - [You can now call unsafe const functions.][57067] E.g.
3857 const unsafe fn foo() -> i32 { 5 }
3858 const fn bar() -> i32 {
3862 - [You can now specify multiple attributes in a `cfg_attr` attribute.][57332]
3863 E.g. `#[cfg_attr(all(), must_use, optimize)]`
3864 - [You can now specify a specific alignment with the `#[repr(packed)]`
3865 attribute.][57049] E.g. `#[repr(packed(2))] struct Foo(i16, i32);` is a struct
3866 with an alignment of 2 bytes and a size of 6 bytes.
3867 - [You can now import an item from a module as an `_`.][56303] This allows you to
3868 import a trait's impls, and not have the name in the namespace. E.g.
3870 use std::io::Read as _;
3872 // Allowed as there is only one `Read` in the module.
3875 - [You may now use `Rc`, `Arc`, and `Pin` as method receivers][56805].
3879 - [You can now set a linker flavor for `rustc` with the `-Clinker-flavor`
3880 command line argument.][56351]
3881 - [The minimum required LLVM version has been bumped to 6.0.][56642]
3882 - [Added support for the PowerPC64 architecture on FreeBSD.][57615]
3883 - [The `x86_64-fortanix-unknown-sgx` target support has been upgraded to
3884 tier 2 support.][57130] Visit the [platform support][platform-support] page for
3885 information on Rust's platform support.
3886 - [Added support for the `thumbv7neon-linux-androideabi` and
3887 `thumbv7neon-unknown-linux-gnueabihf` targets.][56947]
3888 - [Added support for the `x86_64-unknown-uefi` target.][56769]
3892 - [The methods `overflowing_{add, sub, mul, shl, shr}` are now `const`
3893 functions for all numeric types.][57566]
3894 - [The methods `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
3895 are now `const` functions for all numeric types.][57105]
3896 - [The methods `is_positive` and `is_negative` are now `const` functions for
3897 all signed numeric types.][57105]
3898 - [The `get` method for all `NonZero` types is now `const`.][57167]
3899 - [The methods `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
3900 `swap_bytes`, `from_be`, `from_le`, `to_be`, `to_le` are now `const` for all
3901 numeric types.][57234]
3902 - [`Ipv4Addr::new` is now a `const` function][57234]
3906 - [`unix::FileExt::read_exact_at`]
3907 - [`unix::FileExt::write_all_at`]
3908 - [`Option::transpose`]
3909 - [`Result::transpose`]
3910 - [`convert::identity`]
3913 - [`marker::PhantomPinned`]
3914 - [`Vec::resize_with`]
3915 - [`VecDeque::resize_with`]
3916 - [`Duration::as_millis`]
3917 - [`Duration::as_micros`]
3918 - [`Duration::as_nanos`]
3923 - [You can now publish crates that require a feature flag to compile with
3924 `cargo publish --features` or `cargo publish --all-features`.][cargo/6453]
3925 - [Cargo should now rebuild a crate if a file was modified during the initial
3930 - The methods `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
3931 are now deprecated in the standard library, and their usage will now produce a warning.
3932 Please use the `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}`
3934 - The `Error::cause` method has been deprecated in favor of `Error::source` which supports
3936 - [Libtest no longer creates a new thread for each test when
3937 `--test-threads=1`. It also runs the tests in deterministic order][56243]
3939 [56243]: https://github.com/rust-lang/rust/pull/56243
3940 [56303]: https://github.com/rust-lang/rust/pull/56303/
3941 [56351]: https://github.com/rust-lang/rust/pull/56351/
3942 [56362]: https://github.com/rust-lang/rust/pull/56362
3943 [56642]: https://github.com/rust-lang/rust/pull/56642/
3944 [56769]: https://github.com/rust-lang/rust/pull/56769/
3945 [56805]: https://github.com/rust-lang/rust/pull/56805
3946 [56947]: https://github.com/rust-lang/rust/pull/56947/
3947 [57049]: https://github.com/rust-lang/rust/pull/57049/
3948 [57067]: https://github.com/rust-lang/rust/pull/57067/
3949 [57105]: https://github.com/rust-lang/rust/pull/57105
3950 [57130]: https://github.com/rust-lang/rust/pull/57130/
3951 [57167]: https://github.com/rust-lang/rust/pull/57167/
3952 [57175]: https://github.com/rust-lang/rust/pull/57175/
3953 [57234]: https://github.com/rust-lang/rust/pull/57234/
3954 [57332]: https://github.com/rust-lang/rust/pull/57332/
3955 [57465]: https://github.com/rust-lang/rust/pull/57465/
3956 [57532]: https://github.com/rust-lang/rust/pull/57532/
3957 [57535]: https://github.com/rust-lang/rust/pull/57535/
3958 [57566]: https://github.com/rust-lang/rust/pull/57566/
3959 [57615]: https://github.com/rust-lang/rust/pull/57615/
3960 [cargo/6453]: https://github.com/rust-lang/cargo/pull/6453/
3961 [cargo/6484]: https://github.com/rust-lang/cargo/pull/6484/
3962 [`unix::FileExt::read_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
3963 [`unix::FileExt::write_all_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
3964 [`Option::transpose`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.transpose
3965 [`Result::transpose`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
3966 [`convert::identity`]: https://doc.rust-lang.org/std/convert/fn.identity.html
3967 [`pin::Pin`]: https://doc.rust-lang.org/std/pin/struct.Pin.html
3968 [`marker::Unpin`]: https://doc.rust-lang.org/stable/std/marker/trait.Unpin.html
3969 [`marker::PhantomPinned`]: https://doc.rust-lang.org/nightly/std/marker/struct.PhantomPinned.html
3970 [`Vec::resize_with`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize_with
3971 [`VecDeque::resize_with`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.resize_with
3972 [`Duration::as_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis
3973 [`Duration::as_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_micros
3974 [`Duration::as_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_nanos
3975 [platform-support]: https://forge.rust-lang.org/platform-support.html
3977 Version 1.32.0 (2019-01-17)
3978 ==========================
3983 - [You can now use the `?` operator in macro definitions.][56245] The `?`
3984 operator allows you to specify zero or one repetitions similar to the `*` and
3986 - [Module paths with no leading keyword like `super`, `self`, or `crate`, will
3987 now always resolve to the item (`enum`, `struct`, etc.) available in the
3988 module if present, before resolving to a external crate or an item the prelude.][56759]
3991 enum Color { Red, Green, Blue }
3997 - [You can now match against `PhantomData<T>` types.][55837]
3998 - [You can now match against literals in macros with the `literal`
3999 specifier.][56072] This will match against a literal of any type.
4000 E.g. `1`, `'A'`, `"Hello World"`
4001 - [Self can now be used as a constructor and pattern for unit and tuple structs.][56365] E.g.
4003 struct Point(i32, i32);
4006 pub fn new(x: i32, y: i32) -> Self {
4010 pub fn is_origin(&self) -> bool {
4018 - [Self can also now be used in type definitions.][56366] E.g.
4022 Self: PartialOrd<Self> // can write `Self` instead of `List<T>`
4025 Cons(T, Box<Self>) // likewise here
4028 - [You can now mark traits with `#[must_use]`.][55663] This provides a warning if
4029 a `impl Trait` or `dyn Trait` is returned and unused in the program.
4033 - [The default allocator has changed from jemalloc to the default allocator on
4034 your system.][55238] The compiler itself on Linux & macOS will still use
4035 jemalloc, but programs compiled with it will use the system allocator.
4036 - [Added the `aarch64-pc-windows-msvc` target.][55702]
4040 - [`PathBuf` now implements `FromStr`.][55148]
4041 - [`Box<[T]>` now implements `FromIterator<T>`.][55843]
4042 - [The `dbg!` macro has been stabilized.][56395] This macro enables you to
4043 easily debug expressions in your rust program. E.g.
4046 let b = dbg!(a * 2) + 1;
4047 // ^-- prints: [src/main.rs:4] a * 2 = 4
4051 The following APIs are now `const` functions and can be used in a
4055 - [`UnsafeCell::get`]
4056 - [`char::is_ascii`]
4058 - [`ManuallyDrop::new`]
4059 - [`ManuallyDrop::into_inner`]
4060 - [`RangeInclusive::start`]
4061 - [`RangeInclusive::end`]
4062 - [`NonNull::as_ptr`]
4065 - [`Duration::as_secs`]
4066 - [`Duration::subsec_millis`]
4067 - [`Duration::subsec_micros`]
4068 - [`Duration::subsec_nanos`]
4070 - [`Ipv4Addr::is_unspecified`]
4072 - [`Ipv6Addr::octets`]
4076 - [`i8::to_be_bytes`]
4077 - [`i8::to_le_bytes`]
4078 - [`i8::to_ne_bytes`]
4079 - [`i8::from_be_bytes`]
4080 - [`i8::from_le_bytes`]
4081 - [`i8::from_ne_bytes`]
4082 - [`i16::to_be_bytes`]
4083 - [`i16::to_le_bytes`]
4084 - [`i16::to_ne_bytes`]
4085 - [`i16::from_be_bytes`]
4086 - [`i16::from_le_bytes`]
4087 - [`i16::from_ne_bytes`]
4088 - [`i32::to_be_bytes`]
4089 - [`i32::to_le_bytes`]
4090 - [`i32::to_ne_bytes`]
4091 - [`i32::from_be_bytes`]
4092 - [`i32::from_le_bytes`]
4093 - [`i32::from_ne_bytes`]
4094 - [`i64::to_be_bytes`]
4095 - [`i64::to_le_bytes`]
4096 - [`i64::to_ne_bytes`]
4097 - [`i64::from_be_bytes`]
4098 - [`i64::from_le_bytes`]
4099 - [`i64::from_ne_bytes`]
4100 - [`i128::to_be_bytes`]
4101 - [`i128::to_le_bytes`]
4102 - [`i128::to_ne_bytes`]
4103 - [`i128::from_be_bytes`]
4104 - [`i128::from_le_bytes`]
4105 - [`i128::from_ne_bytes`]
4106 - [`isize::to_be_bytes`]
4107 - [`isize::to_le_bytes`]
4108 - [`isize::to_ne_bytes`]
4109 - [`isize::from_be_bytes`]
4110 - [`isize::from_le_bytes`]
4111 - [`isize::from_ne_bytes`]
4112 - [`u8::to_be_bytes`]
4113 - [`u8::to_le_bytes`]
4114 - [`u8::to_ne_bytes`]
4115 - [`u8::from_be_bytes`]
4116 - [`u8::from_le_bytes`]
4117 - [`u8::from_ne_bytes`]
4118 - [`u16::to_be_bytes`]
4119 - [`u16::to_le_bytes`]
4120 - [`u16::to_ne_bytes`]
4121 - [`u16::from_be_bytes`]
4122 - [`u16::from_le_bytes`]
4123 - [`u16::from_ne_bytes`]
4124 - [`u32::to_be_bytes`]
4125 - [`u32::to_le_bytes`]
4126 - [`u32::to_ne_bytes`]
4127 - [`u32::from_be_bytes`]
4128 - [`u32::from_le_bytes`]
4129 - [`u32::from_ne_bytes`]
4130 - [`u64::to_be_bytes`]
4131 - [`u64::to_le_bytes`]
4132 - [`u64::to_ne_bytes`]
4133 - [`u64::from_be_bytes`]
4134 - [`u64::from_le_bytes`]
4135 - [`u64::from_ne_bytes`]
4136 - [`u128::to_be_bytes`]
4137 - [`u128::to_le_bytes`]
4138 - [`u128::to_ne_bytes`]
4139 - [`u128::from_be_bytes`]
4140 - [`u128::from_le_bytes`]
4141 - [`u128::from_ne_bytes`]
4142 - [`usize::to_be_bytes`]
4143 - [`usize::to_le_bytes`]
4144 - [`usize::to_ne_bytes`]
4145 - [`usize::from_be_bytes`]
4146 - [`usize::from_le_bytes`]
4147 - [`usize::from_ne_bytes`]
4151 - [You can now run `cargo c` as an alias for `cargo check`.][cargo/6218]
4152 - [Usernames are now allowed in alt registry URLs.][cargo/6242]
4156 - [`libproc_macro` has been added to the `rust-src` distribution.][55280]
4160 - [The argument types for AVX's
4161 `_mm256_stream_si256`, `_mm256_stream_pd`, `_mm256_stream_ps`][55610] have
4162 been changed from `*const` to `*mut` as the previous implementation
4166 [55148]: https://github.com/rust-lang/rust/pull/55148/
4167 [55238]: https://github.com/rust-lang/rust/pull/55238/
4168 [55280]: https://github.com/rust-lang/rust/pull/55280/
4169 [55610]: https://github.com/rust-lang/rust/pull/55610/
4170 [55663]: https://github.com/rust-lang/rust/pull/55663/
4171 [55702]: https://github.com/rust-lang/rust/pull/55702/
4172 [55837]: https://github.com/rust-lang/rust/pull/55837/
4173 [55843]: https://github.com/rust-lang/rust/pull/55843/
4174 [56072]: https://github.com/rust-lang/rust/pull/56072/
4175 [56245]: https://github.com/rust-lang/rust/pull/56245/
4176 [56365]: https://github.com/rust-lang/rust/pull/56365/
4177 [56366]: https://github.com/rust-lang/rust/pull/56366/
4178 [56395]: https://github.com/rust-lang/rust/pull/56395/
4179 [56759]: https://github.com/rust-lang/rust/pull/56759/
4180 [cargo/6218]: https://github.com/rust-lang/cargo/pull/6218/
4181 [cargo/6242]: https://github.com/rust-lang/cargo/pull/6242/
4182 [`CStr::as_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.as_ptr
4183 [`Cell::as_ptr`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr
4184 [`Duration::as_secs`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs
4185 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4186 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4187 [`Duration::subsec_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_nanos
4188 [`Ipv4Addr::is_unspecified`]: https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified
4189 [`Ipv6Addr::new`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.new
4190 [`Ipv6Addr::octets`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets
4191 [`ManuallyDrop::into_inner`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.into_inner
4192 [`ManuallyDrop::new`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.new
4193 [`NonNull::as_ptr`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.as_ptr
4194 [`RangeInclusive::end`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
4195 [`RangeInclusive::start`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
4196 [`UnsafeCell::get`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html#method.get
4197 [`slice::as_ptr`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
4198 [`char::is_ascii`]: https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
4199 [`i128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_be_bytes
4200 [`i128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_le_bytes
4201 [`i128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_ne_bytes
4202 [`i128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_be_bytes
4203 [`i128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_le_bytes
4204 [`i128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_ne_bytes
4205 [`i16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
4206 [`i16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
4207 [`i16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_ne_bytes
4208 [`i16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_be_bytes
4209 [`i16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_le_bytes
4210 [`i16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_ne_bytes
4211 [`i32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_be_bytes
4212 [`i32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_le_bytes
4213 [`i32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_ne_bytes
4214 [`i32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_be_bytes
4215 [`i32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_le_bytes
4216 [`i32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_ne_bytes
4217 [`i64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_be_bytes
4218 [`i64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_le_bytes
4219 [`i64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_ne_bytes
4220 [`i64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_be_bytes
4221 [`i64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_le_bytes
4222 [`i64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_ne_bytes
4223 [`i8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_be_bytes
4224 [`i8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_le_bytes
4225 [`i8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_ne_bytes
4226 [`i8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_be_bytes
4227 [`i8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_le_bytes
4228 [`i8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_ne_bytes
4229 [`isize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_be_bytes
4230 [`isize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_le_bytes
4231 [`isize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_ne_bytes
4232 [`isize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_be_bytes
4233 [`isize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_le_bytes
4234 [`isize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_ne_bytes
4235 [`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
4236 [`str::as_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_ptr
4237 [`u128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_be_bytes
4238 [`u128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_le_bytes
4239 [`u128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_ne_bytes
4240 [`u128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_be_bytes
4241 [`u128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_le_bytes
4242 [`u128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_ne_bytes
4243 [`u16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_be_bytes
4244 [`u16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_le_bytes
4245 [`u16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_ne_bytes
4246 [`u16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_be_bytes
4247 [`u16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_le_bytes
4248 [`u16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_ne_bytes
4249 [`u32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_be_bytes
4250 [`u32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_le_bytes
4251 [`u32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_ne_bytes
4252 [`u32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_be_bytes
4253 [`u32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_le_bytes
4254 [`u32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_ne_bytes
4255 [`u64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_be_bytes
4256 [`u64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_le_bytes
4257 [`u64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_ne_bytes
4258 [`u64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_be_bytes
4259 [`u64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_le_bytes
4260 [`u64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_ne_bytes
4261 [`u8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_be_bytes
4262 [`u8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_le_bytes
4263 [`u8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_ne_bytes
4264 [`u8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_be_bytes
4265 [`u8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_le_bytes
4266 [`u8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ne_bytes
4267 [`usize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_be_bytes
4268 [`usize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_le_bytes
4269 [`usize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_ne_bytes
4270 [`usize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_be_bytes
4271 [`usize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_le_bytes
4272 [`usize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_ne_bytes
4275 Version 1.31.1 (2018-12-20)
4276 ===========================
4278 - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562]
4279 - [Fix broken go-to-definition in RLS][rls/1171]
4280 - [Fix infinite loop on hover in RLS][rls/1170]
4282 [56562]: https://github.com/rust-lang/rust/pull/56562
4283 [rls/1171]: https://github.com/rust-lang/rls/issues/1171
4284 [rls/1170]: https://github.com/rust-lang/rls/pull/1170
4286 Version 1.31.0 (2018-12-06)
4287 ==========================
4291 - 🎉 [This version marks the release of the 2018 edition of Rust.][54057] 🎉
4292 - [New lifetime elision rules now allow for eliding lifetimes in functions and
4293 impl headers.][54778] E.g. `impl<'a> Reader for BufReader<'a> {}` can now be
4294 `impl Reader for BufReader<'_> {}`. Lifetimes are still required to be defined
4296 - [You can now define and use `const` functions.][54835] These are currently
4297 a strict minimal subset of the [const fn RFC][RFC-911]. Refer to the
4298 [language reference][const-reference] for what exactly is available.
4299 - [You can now use tool lints, which allow you to scope lints from external
4300 tools using attributes.][54870] E.g. `#[allow(clippy::filter_map)]`.
4301 - [`#[no_mangle]` and `#[export_name]` attributes can now be located anywhere in
4302 a crate, not just in exported functions.][54451]
4303 - [You can now use parentheses in pattern matches.][54497]
4307 - [Updated musl to 1.1.20][54430]
4311 - [You can now convert `num::NonZero*` types to their raw equivalents using the
4312 `From` trait.][54240] E.g. `u8` now implements `From<NonZeroU8>`.
4313 - [You can now convert a `&Option<T>` into `Option<&T>` and `&mut Option<T>`
4314 into `Option<&mut T>` using the `From` trait.][53218]
4315 - [You can now multiply (`*`) a `time::Duration` by a `u32`.][52813]
4320 - [`slice::align_to`]
4321 - [`slice::align_to_mut`]
4322 - [`slice::chunks_exact`]
4323 - [`slice::chunks_exact_mut`]
4324 - [`slice::rchunks`]
4325 - [`slice::rchunks_mut`]
4326 - [`slice::rchunks_exact`]
4327 - [`slice::rchunks_exact_mut`]
4328 - [`Option::replace`]
4332 - [Cargo will now download crates in parallel using HTTP/2.][cargo/6005]
4333 - [You can now rename packages in your Cargo.toml][cargo/6319] We have a guide
4334 on [how to use the `package` key in your dependencies.][cargo-rename-reference]
4336 [52813]: https://github.com/rust-lang/rust/pull/52813/
4337 [53218]: https://github.com/rust-lang/rust/pull/53218/
4338 [54057]: https://github.com/rust-lang/rust/pull/54057/
4339 [54240]: https://github.com/rust-lang/rust/pull/54240/
4340 [54430]: https://github.com/rust-lang/rust/pull/54430/
4341 [54451]: https://github.com/rust-lang/rust/pull/54451/
4342 [54497]: https://github.com/rust-lang/rust/pull/54497/
4343 [54778]: https://github.com/rust-lang/rust/pull/54778/
4344 [54835]: https://github.com/rust-lang/rust/pull/54835/
4345 [54870]: https://github.com/rust-lang/rust/pull/54870/
4346 [RFC-911]: https://github.com/rust-lang/rfcs/pull/911
4347 [`Option::replace`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.replace
4348 [`slice::align_to_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to_mut
4349 [`slice::align_to`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to
4350 [`slice::chunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact_mut
4351 [`slice::chunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact
4352 [`slice::rchunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4353 [`slice::rchunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_exact
4354 [`slice::rchunks_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4355 [`slice::rchunks`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks
4356 [cargo/6005]: https://github.com/rust-lang/cargo/pull/6005/
4357 [cargo/6319]: https://github.com/rust-lang/cargo/pull/6319/
4358 [cargo-rename-reference]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
4359 [const-reference]: https://doc.rust-lang.org/reference/items/functions.html#const-functions
4361 Version 1.30.1 (2018-11-08)
4362 ===========================
4364 - [Fixed overflow ICE in rustdoc][54199]
4365 - [Cap Cargo progress bar width at 60 in MSYS terminals][cargo/6122]
4367 [54199]: https://github.com/rust-lang/rust/pull/54199
4368 [cargo/6122]: https://github.com/rust-lang/cargo/pull/6122
4370 Version 1.30.0 (2018-10-25)
4371 ==========================
4375 - [Procedural macros are now available.][52081] These kinds of macros allow for
4376 more powerful code generation. There is a [new chapter available][proc-macros]
4377 in the Rust Programming Language book that goes further in depth.
4378 - [You can now use keywords as identifiers using the raw identifiers
4379 syntax (`r#`),][53236] e.g. `let r#for = true;`
4380 - [Using anonymous parameters in traits is now deprecated with a warning and
4381 will be a hard error in the 2018 edition.][53272]
4382 - [You can now use `crate` in paths.][54404] This allows you to refer to the
4383 crate root in the path, e.g. `use crate::foo;` refers to `foo` in `src/lib.rs`.
4384 - [Using a external crate no longer requires being prefixed with `::`.][54404]
4385 Previously, using a external crate in a module without a use statement
4386 required `let json = ::serde_json::from_str(foo);` but can now be written
4387 as `let json = serde_json::from_str(foo);`.
4388 - [You can now apply the `#[used]` attribute to static items to prevent the
4389 compiler from optimising them away, even if they appear to be unused,][51363]
4390 e.g. `#[used] static FOO: u32 = 1;`
4391 - [You can now import and reexport macros from other crates with the `use`
4392 syntax.][50911] Macros exported with `#[macro_export]` are now placed into
4393 the root module of the crate. If your macro relies on calling other local
4394 macros, it is recommended to export with the
4395 `#[macro_export(local_inner_macros)]` attribute so users won't have to import
4397 - [You can now catch visibility keywords (e.g. `pub`, `pub(crate)`) in macros
4398 using the `vis` specifier.][53370]
4399 - [Non-macro attributes now allow all forms of literals, not just
4400 strings.][53044] Previously, you would write `#[attr("true")]`, and you can now
4401 write `#[attr(true)]`.
4402 - [You can now specify a function to handle a panic in the Rust runtime with the
4403 `#[panic_handler]` attribute.][51366]
4407 - [Added the `riscv32imc-unknown-none-elf` target.][53822]
4408 - [Added the `aarch64-unknown-netbsd` target][53165]
4409 - [Upgraded to LLVM 8.][53611]
4413 - [`ManuallyDrop` now allows the inner type to be unsized.][53033]
4417 - [`Ipv4Addr::BROADCAST`]
4418 - [`Ipv4Addr::LOCALHOST`]
4419 - [`Ipv4Addr::UNSPECIFIED`]
4420 - [`Ipv6Addr::LOCALHOST`]
4421 - [`Ipv6Addr::UNSPECIFIED`]
4422 - [`Iterator::find_map`]
4424 The following methods are replacement methods for `trim_left`, `trim_right`,
4425 `trim_left_matches`, and `trim_right_matches`, which will be deprecated
4427 - [`str::trim_end_matches`]
4429 - [`str::trim_start_matches`]
4430 - [`str::trim_start`]
4434 - [`cargo run` doesn't require specifying a package in workspaces.][cargo/5877]
4435 - [`cargo doc` now supports `--message-format=json`.][cargo/5878] This is
4436 equivalent to calling `rustdoc --error-format=json`.
4437 - [Cargo will now provide a progress bar for builds.][cargo/5995]
4441 - [`rustdoc` allows you to specify what edition to treat your code as with the
4442 `--edition` option.][54057]
4443 - [`rustdoc` now has the `--color` (specify whether to output color) and
4444 `--error-format` (specify error format, e.g. `json`) options.][53003]
4445 - [We now distribute a `rust-gdbgui` script that invokes `gdbgui` with Rust
4446 debug symbols.][53774]
4447 - [Attributes from Rust tools such as `rustfmt` or `clippy` are now
4448 available,][53459] e.g. `#[rustfmt::skip]` will skip formatting the next item.
4450 [50911]: https://github.com/rust-lang/rust/pull/50911/
4451 [51363]: https://github.com/rust-lang/rust/pull/51363/
4452 [51366]: https://github.com/rust-lang/rust/pull/51366/
4453 [52081]: https://github.com/rust-lang/rust/pull/52081/
4454 [53003]: https://github.com/rust-lang/rust/pull/53003/
4455 [53033]: https://github.com/rust-lang/rust/pull/53033/
4456 [53044]: https://github.com/rust-lang/rust/pull/53044/
4457 [53165]: https://github.com/rust-lang/rust/pull/53165/
4458 [53611]: https://github.com/rust-lang/rust/pull/53611/
4459 [53236]: https://github.com/rust-lang/rust/pull/53236/
4460 [53272]: https://github.com/rust-lang/rust/pull/53272/
4461 [53370]: https://github.com/rust-lang/rust/pull/53370/
4462 [53459]: https://github.com/rust-lang/rust/pull/53459/
4463 [53774]: https://github.com/rust-lang/rust/pull/53774/
4464 [53822]: https://github.com/rust-lang/rust/pull/53822/
4465 [54057]: https://github.com/rust-lang/rust/pull/54057/
4466 [54404]: https://github.com/rust-lang/rust/pull/54404/
4467 [cargo/5877]: https://github.com/rust-lang/cargo/pull/5877/
4468 [cargo/5878]: https://github.com/rust-lang/cargo/pull/5878/
4469 [cargo/5995]: https://github.com/rust-lang/cargo/pull/5995/
4470 [proc-macros]: https://doc.rust-lang.org/nightly/book/2018-edition/ch19-06-macros.html
4472 [`Ipv4Addr::BROADCAST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.BROADCAST
4473 [`Ipv4Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.LOCALHOST
4474 [`Ipv4Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.UNSPECIFIED
4475 [`Ipv6Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.LOCALHOST
4476 [`Ipv6Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.UNSPECIFIED
4477 [`Iterator::find_map`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find_map
4478 [`str::trim_end_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end_matches
4479 [`str::trim_end`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end
4480 [`str::trim_start_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start_matches
4481 [`str::trim_start`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start
4484 Version 1.29.2 (2018-10-11)
4485 ===========================
4487 - [Workaround for an aliasing-related LLVM bug, which caused miscompilation.][54639]
4488 - The `rls-preview` component on the windows-gnu targets has been restored.
4490 [54639]: https://github.com/rust-lang/rust/pull/54639
4493 Version 1.29.1 (2018-09-25)
4494 ===========================
4499 - The standard library's `str::repeat` function contained an out of bounds write
4500 caused by an integer overflow. This has been fixed by deterministically
4501 panicking when an overflow happens.
4503 Thank you to Scott McMurray for responsibly disclosing this vulnerability to
4507 Version 1.29.0 (2018-09-13)
4508 ==========================
4512 - [Bumped minimum LLVM version to 5.0.][51899]
4513 - [Added `powerpc64le-unknown-linux-musl` target.][51619]
4514 - [Added `aarch64-unknown-hermit` and `x86_64-unknown-hermit` targets.][52861]
4515 - [Upgraded to LLVM 7.][51966]
4519 - [`Once::call_once` no longer requires `Once` to be `'static`.][52239]
4520 - [`BuildHasherDefault` now implements `PartialEq` and `Eq`.][52402]
4521 - [`Box<CStr>`, `Box<OsStr>`, and `Box<Path>` now implement `Clone`.][51912]
4522 - [Implemented `PartialEq<&str>` for `OsString` and `PartialEq<OsString>`
4524 - [`Cell<T>` now allows `T` to be unsized.][50494]
4525 - [`SocketAddr` is now stable on Redox.][52656]
4530 - [`Iterator::flatten`]
4535 - [Cargo can silently fix some bad lockfiles.][cargo/5831] You can use
4536 `--locked` to disable this behavior.
4537 - [`cargo-install` will now allow you to cross compile an install
4538 using `--target`.][cargo/5614]
4539 - [Added the `cargo-fix` subcommand to automatically move project code from
4540 2015 edition to 2018.][cargo/5723]
4541 - [`cargo doc` can now optionally document private types using the
4542 `--document-private-items` flag.][cargo/5543]
4546 - [`rustdoc` now has the `--cap-lints` option which demotes all lints above
4547 the specified level to that level.][52354] For example `--cap-lints warn`
4548 will demote `deny` and `forbid` lints to `warn`.
4549 - [`rustc` and `rustdoc` will now have the exit code of `1` if compilation
4550 fails and `101` if there is a panic.][52197]
4551 - [A preview of clippy has been made available through rustup.][51122]
4552 You can install the preview with `rustup component add clippy-preview`.
4556 - [`str::{slice_unchecked, slice_unchecked_mut}` are now deprecated.][51807]
4557 Use `str::get_unchecked(begin..end)` instead.
4558 - [`std::env::home_dir` is now deprecated for its unintuitive behavior.][51656]
4559 Consider using the `home_dir` function from
4560 https://crates.io/crates/dirs instead.
4561 - [`rustc` will no longer silently ignore invalid data in target spec.][52330]
4562 - [`cfg` attributes and `--cfg` command line flags are now more
4563 strictly validated.][53893]
4565 [53893]: https://github.com/rust-lang/rust/pull/53893/
4566 [52861]: https://github.com/rust-lang/rust/pull/52861/
4567 [51966]: https://github.com/rust-lang/rust/pull/51966/
4568 [52656]: https://github.com/rust-lang/rust/pull/52656/
4569 [52239]: https://github.com/rust-lang/rust/pull/52239/
4570 [52330]: https://github.com/rust-lang/rust/pull/52330/
4571 [52354]: https://github.com/rust-lang/rust/pull/52354/
4572 [52402]: https://github.com/rust-lang/rust/pull/52402/
4573 [52197]: https://github.com/rust-lang/rust/pull/52197/
4574 [51807]: https://github.com/rust-lang/rust/pull/51807/
4575 [51899]: https://github.com/rust-lang/rust/pull/51899/
4576 [51912]: https://github.com/rust-lang/rust/pull/51912/
4577 [51619]: https://github.com/rust-lang/rust/pull/51619/
4578 [51656]: https://github.com/rust-lang/rust/pull/51656/
4579 [51178]: https://github.com/rust-lang/rust/pull/51178/
4580 [51122]: https://github.com/rust-lang/rust/pull/51122
4581 [50494]: https://github.com/rust-lang/rust/pull/50494/
4582 [cargo/5543]: https://github.com/rust-lang/cargo/pull/5543
4583 [cargo/5614]: https://github.com/rust-lang/cargo/pull/5614/
4584 [cargo/5723]: https://github.com/rust-lang/cargo/pull/5723/
4585 [cargo/5831]: https://github.com/rust-lang/cargo/pull/5831/
4586 [`Arc::downcast`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.downcast
4587 [`Iterator::flatten`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flatten
4588 [`Rc::downcast`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.downcast
4591 Version 1.28.0 (2018-08-02)
4592 ===========================
4596 - [The `#[repr(transparent)]` attribute is now stable.][51562] This attribute
4597 allows a Rust newtype wrapper (`struct NewType<T>(T);`) to be represented as
4598 the inner type across Foreign Function Interface (FFI) boundaries.
4599 - [The keywords `pure`, `sizeof`, `alignof`, and `offsetof` have been unreserved
4600 and can now be used as identifiers.][51196]
4601 - [The `GlobalAlloc` trait and `#[global_allocator]` attribute are now
4602 stable.][51241] This will allow users to specify a global allocator for
4604 - [Unit test functions marked with the `#[test]` attribute can now return
4605 `Result<(), E: Debug>` in addition to `()`.][51298]
4606 - [The `lifetime` specifier for `macro_rules!` is now stable.][50385] This
4607 allows macros to easily target lifetimes.
4611 - [The `s` and `z` optimisation levels are now stable.][50265] These optimisations
4612 prioritise making smaller binary sizes. `z` is the same as `s` with the
4613 exception that it does not vectorise loops, which typically results in an even
4615 - [The short error format is now stable.][49546] Specified with
4616 `--error-format=short` this option will provide a more compressed output of
4617 rust error messages.
4618 - [Added a lint warning when you have duplicated `macro_export`s.][50143]
4619 - [Reduced the number of allocations in the macro parser.][50855] This can
4620 improve compile times of macro heavy crates on average by 5%.
4624 - [Implemented `Default` for `&mut str`.][51306]
4625 - [Implemented `From<bool>` for all integer and unsigned number types.][50554]
4626 - [Implemented `Extend` for `()`.][50234]
4627 - [The `Debug` implementation of `time::Duration` should now be more easily
4628 human readable.][50364] Previously a `Duration` of one second would printed as
4629 `Duration { secs: 1, nanos: 0 }` and will now be printed as `1s`.
4630 - [Implemented `From<&String>` for `Cow<str>`, `From<&Vec<T>>` for `Cow<[T]>`,
4631 `From<Cow<CStr>>` for `CString`, `From<CString>, From<CStr>, From<&CString>`
4632 for `Cow<CStr>`, `From<OsString>, From<OsStr>, From<&OsString>` for
4633 `Cow<OsStr>`, `From<&PathBuf>` for `Cow<Path>`, and `From<Cow<Path>>`
4634 for `PathBuf`.][50170]
4635 - [Implemented `Shl` and `Shr` for `Wrapping<u128>`
4636 and `Wrapping<i128>`.][50465]
4637 - [`DirEntry::metadata` now uses `fstatat` instead of `lstat` when
4638 possible.][51050] This can provide up to a 40% speed increase.
4639 - [Improved error messages when using `format!`.][50610]
4643 - [`Iterator::step_by`]
4644 - [`Path::ancestors`]
4645 - [`SystemTime::UNIX_EPOCH`]
4646 - [`alloc::GlobalAlloc`]
4648 - [`alloc::LayoutErr`]
4651 - [`alloc::alloc_zeroed`]
4652 - [`alloc::dealloc`]
4653 - [`alloc::realloc`]
4654 - [`alloc::handle_alloc_error`]
4655 - [`btree_map::Entry::or_default`]
4656 - [`fmt::Alignment`]
4657 - [`hash_map::Entry::or_default`]
4658 - [`iter::repeat_with`]
4659 - [`num::NonZeroUsize`]
4660 - [`num::NonZeroU128`]
4661 - [`num::NonZeroU16`]
4662 - [`num::NonZeroU32`]
4663 - [`num::NonZeroU64`]
4664 - [`num::NonZeroU8`]
4665 - [`ops::RangeBounds`]
4666 - [`slice::SliceIndex`]
4667 - [`slice::from_mut`]
4668 - [`slice::from_ref`]
4669 - [`{Any + Send + Sync}::downcast_mut`]
4670 - [`{Any + Send + Sync}::downcast_ref`]
4671 - [`{Any + Send + Sync}::is`]
4675 - [Cargo will now no longer allow you to publish crates with build scripts that
4676 modify the `src` directory.][cargo/5584] The `src` directory in a crate should be
4677 considered to be immutable.
4681 - [The `suggestion_applicability` field in `rustc`'s json output is now
4682 stable.][50486] This will allow dev tools to check whether a code suggestion
4683 would apply to them.
4687 - [Rust will consider trait objects with duplicated constraints to be the same
4688 type as without the duplicated constraint.][51276] For example the below code will
4689 now fail to compile.
4694 fn test(&self) { println!("one"); } //~ ERROR duplicate definitions with name `test`
4697 impl Trait + Send + Send {
4698 fn test(&self) { println!("two"); }
4702 [49546]: https://github.com/rust-lang/rust/pull/49546/
4703 [50143]: https://github.com/rust-lang/rust/pull/50143/
4704 [50170]: https://github.com/rust-lang/rust/pull/50170/
4705 [50234]: https://github.com/rust-lang/rust/pull/50234/
4706 [50265]: https://github.com/rust-lang/rust/pull/50265/
4707 [50364]: https://github.com/rust-lang/rust/pull/50364/
4708 [50385]: https://github.com/rust-lang/rust/pull/50385/
4709 [50465]: https://github.com/rust-lang/rust/pull/50465/
4710 [50486]: https://github.com/rust-lang/rust/pull/50486/
4711 [50554]: https://github.com/rust-lang/rust/pull/50554/
4712 [50610]: https://github.com/rust-lang/rust/pull/50610/
4713 [50855]: https://github.com/rust-lang/rust/pull/50855/
4714 [51050]: https://github.com/rust-lang/rust/pull/51050/
4715 [51196]: https://github.com/rust-lang/rust/pull/51196/
4716 [51241]: https://github.com/rust-lang/rust/pull/51241/
4717 [51276]: https://github.com/rust-lang/rust/pull/51276/
4718 [51298]: https://github.com/rust-lang/rust/pull/51298/
4719 [51306]: https://github.com/rust-lang/rust/pull/51306/
4720 [51562]: https://github.com/rust-lang/rust/pull/51562/
4721 [cargo/5584]: https://github.com/rust-lang/cargo/pull/5584/
4722 [`Iterator::step_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by
4723 [`Path::ancestors`]: https://doc.rust-lang.org/std/path/struct.Path.html#method.ancestors
4724 [`SystemTime::UNIX_EPOCH`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#associatedconstant.UNIX_EPOCH
4725 [`alloc::GlobalAlloc`]: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html
4726 [`alloc::Layout`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html
4727 [`alloc::LayoutErr`]: https://doc.rust-lang.org/std/alloc/struct.LayoutErr.html
4728 [`alloc::System`]: https://doc.rust-lang.org/std/alloc/struct.System.html
4729 [`alloc::alloc`]: https://doc.rust-lang.org/std/alloc/fn.alloc.html
4730 [`alloc::alloc_zeroed`]: https://doc.rust-lang.org/std/alloc/fn.alloc_zeroed.html
4731 [`alloc::dealloc`]: https://doc.rust-lang.org/std/alloc/fn.dealloc.html
4732 [`alloc::realloc`]: https://doc.rust-lang.org/std/alloc/fn.realloc.html
4733 [`alloc::handle_alloc_error`]: https://doc.rust-lang.org/std/alloc/fn.handle_alloc_error.html
4734 [`btree_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.or_default
4735 [`fmt::Alignment`]: https://doc.rust-lang.org/std/fmt/enum.Alignment.html
4736 [`hash_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.or_default
4737 [`iter::repeat_with`]: https://doc.rust-lang.org/std/iter/fn.repeat_with.html
4738 [`num::NonZeroUsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroUsize.html
4739 [`num::NonZeroU128`]: https://doc.rust-lang.org/std/num/struct.NonZeroU128.html
4740 [`num::NonZeroU16`]: https://doc.rust-lang.org/std/num/struct.NonZeroU16.html
4741 [`num::NonZeroU32`]: https://doc.rust-lang.org/std/num/struct.NonZeroU32.html
4742 [`num::NonZeroU64`]: https://doc.rust-lang.org/std/num/struct.NonZeroU64.html
4743 [`num::NonZeroU8`]: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
4744 [`ops::RangeBounds`]: https://doc.rust-lang.org/std/ops/trait.RangeBounds.html
4745 [`slice::SliceIndex`]: https://doc.rust-lang.org/std/slice/trait.SliceIndex.html
4746 [`slice::from_mut`]: https://doc.rust-lang.org/std/slice/fn.from_mut.html
4747 [`slice::from_ref`]: https://doc.rust-lang.org/std/slice/fn.from_ref.html
4748 [`{Any + Send + Sync}::downcast_mut`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_mut-2
4749 [`{Any + Send + Sync}::downcast_ref`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_ref-2
4750 [`{Any + Send + Sync}::is`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.is-2
4752 Version 1.27.2 (2018-07-20)
4753 ===========================
4758 - The borrow checker was fixed to avoid potential unsoundness when using
4759 match ergonomics: [#52213][52213].
4761 [52213]: https://github.com/rust-lang/rust/issues/52213
4763 Version 1.27.1 (2018-07-10)
4764 ===========================
4769 - rustdoc would execute plugins in the /tmp/rustdoc/plugins directory
4770 when running, which enabled executing code as some other user on a
4771 given machine. This release fixes that vulnerability; you can read
4772 more about this on the [blog][rustdoc-sec]. The associated CVE is [CVE-2018-1000622].
4774 Thank you to Red Hat for responsibly disclosing this vulnerability to us.
4779 - The borrow checker was fixed to avoid an additional potential unsoundness when using
4780 match ergonomics: [#51415][51415], [#49534][49534].
4782 [51415]: https://github.com/rust-lang/rust/issues/51415
4783 [49534]: https://github.com/rust-lang/rust/issues/49534
4784 [rustdoc-sec]: https://blog.rust-lang.org/2018/07/06/security-advisory-for-rustdoc.html
4785 [CVE-2018-1000622]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=%20CVE-2018-1000622
4787 Version 1.27.0 (2018-06-21)
4788 ==========================
4792 - [Removed 'proc' from the reserved keywords list.][49699] This allows `proc` to
4793 be used as an identifier.
4794 - [The dyn syntax is now available.][49968] This syntax is equivalent to the
4795 bare `Trait` syntax, and should make it clearer when being used in tandem with
4796 `impl Trait` because it is equivalent to the following syntax:
4797 `&Trait == &dyn Trait`, `&mut Trait == &mut dyn Trait`, and
4798 `Box<Trait> == Box<dyn Trait>`.
4799 - [Attributes on generic parameters such as types and lifetimes are
4800 now stable.][48851] e.g.
4801 `fn foo<#[lifetime_attr] 'a, #[type_attr] T: 'a>() {}`
4802 - [The `#[must_use]` attribute can now also be used on functions as well as
4803 types.][48925] It provides a lint that by default warns users when the
4804 value returned by a function has not been used.
4808 - [Added the `armv5te-unknown-linux-musleabi` target.][50423]
4812 - [SIMD (Single Instruction Multiple Data) on x86/x86_64 is now stable.][49664]
4813 This includes [`arch::x86`] & [`arch::x86_64`] modules which contain
4814 SIMD intrinsics, a new macro called `is_x86_feature_detected!`, the
4815 `#[target_feature(enable="")]` attribute, and adding `target_feature = ""` to
4816 the `cfg` attribute.
4817 - [A lot of methods for `[u8]`, `f32`, and `f64` previously only available in
4818 std are now available in core.][49896]
4819 - [The generic `Rhs` type parameter on `ops::{Shl, ShlAssign, Shr}` now defaults
4821 - [`std::str::replace` now has the `#[must_use]` attribute][50177] to clarify
4822 that the operation isn't done in place.
4823 - [`Clone::clone`, `Iterator::collect`, and `ToOwned::to_owned` now have
4824 the `#[must_use]` attribute][49533] to warn about unused potentially
4825 expensive allocations.
4829 - [`DoubleEndedIterator::rfind`]
4830 - [`DoubleEndedIterator::rfold`]
4831 - [`DoubleEndedIterator::try_rfold`]
4832 - [`Duration::from_micros`]
4833 - [`Duration::from_nanos`]
4834 - [`Duration::subsec_micros`]
4835 - [`Duration::subsec_millis`]
4836 - [`HashMap::remove_entry`]
4837 - [`Iterator::try_fold`]
4838 - [`Iterator::try_for_each`]
4840 - [`Option::filter`]
4841 - [`String::replace_range`]
4842 - [`Take::set_limit`]
4843 - [`hint::unreachable_unchecked`]
4844 - [`os::unix::process::parent_id`]
4845 - [`ptr::swap_nonoverlapping`]
4846 - [`slice::rsplit_mut`]
4848 - [`slice::swap_with_slice`]
4852 - [`cargo-metadata` now includes `authors`, `categories`, `keywords`,
4853 `readme`, and `repository` fields.][cargo/5386]
4854 - [`cargo-metadata` now includes a package's `metadata` table.][cargo/5360]
4855 - [Added the `--target-dir` optional argument.][cargo/5393] This allows you to specify
4856 a different directory than `target` for placing compilation artifacts.
4857 - [Cargo will be adding automatic target inference for binaries, benchmarks,
4858 examples, and tests in the Rust 2018 edition.][cargo/5335] If your project specifies
4859 specific targets, e.g. using `[[bin]]`, and have other binaries in locations
4860 where cargo would infer a binary, Cargo will produce a warning. You can
4861 disable this feature ahead of time by setting any of the following to false:
4862 `autobins`, `autobenches`, `autoexamples`, `autotests`.
4863 - [Cargo will now cache compiler information.][cargo/5359] This can be disabled by
4864 setting `CARGO_CACHE_RUSTC_INFO=0` in your environment.
4868 - [Added “The Rustc book” into the official documentation.][49707]
4869 [“The Rustc book”] documents and teaches how to use the rustc compiler.
4870 - [All books available on `doc.rust-lang.org` are now searchable.][49623]
4874 - [Calling a `CharExt` or `StrExt` method directly on core will no longer
4875 work.][49896] e.g. `::core::prelude::v1::StrExt::is_empty("")` will not
4876 compile, `"".is_empty()` will still compile.
4877 - [`Debug` output on `atomic::{AtomicBool, AtomicIsize, AtomicPtr, AtomicUsize}`
4878 will only print the inner type.][48553] E.g.
4879 `print!("{:?}", AtomicBool::new(true))` will print `true`,
4880 not `AtomicBool(true)`.
4881 - [The maximum number for `repr(align(N))` is now 2²⁹.][50378] Previously you
4882 could enter higher numbers but they were not supported by LLVM. Up to 512MB
4883 alignment should cover all use cases.
4884 - The `.description()` method on the `std::error::Error` trait
4885 [has been soft-deprecated][50163]. It is no longer required to implement it.
4887 [48553]: https://github.com/rust-lang/rust/pull/48553/
4888 [48851]: https://github.com/rust-lang/rust/pull/48851/
4889 [48925]: https://github.com/rust-lang/rust/pull/48925/
4890 [49533]: https://github.com/rust-lang/rust/pull/49533/
4891 [49623]: https://github.com/rust-lang/rust/pull/49623/
4892 [49630]: https://github.com/rust-lang/rust/pull/49630/
4893 [49664]: https://github.com/rust-lang/rust/pull/49664/
4894 [49699]: https://github.com/rust-lang/rust/pull/49699/
4895 [49707]: https://github.com/rust-lang/rust/pull/49707/
4896 [49896]: https://github.com/rust-lang/rust/pull/49896/
4897 [49968]: https://github.com/rust-lang/rust/pull/49968/
4898 [50163]: https://github.com/rust-lang/rust/pull/50163
4899 [50177]: https://github.com/rust-lang/rust/pull/50177/
4900 [50378]: https://github.com/rust-lang/rust/pull/50378/
4901 [50423]: https://github.com/rust-lang/rust/pull/50423/
4902 [cargo/5335]: https://github.com/rust-lang/cargo/pull/5335/
4903 [cargo/5359]: https://github.com/rust-lang/cargo/pull/5359/
4904 [cargo/5360]: https://github.com/rust-lang/cargo/pull/5360/
4905 [cargo/5386]: https://github.com/rust-lang/cargo/pull/5386/
4906 [cargo/5393]: https://github.com/rust-lang/cargo/pull/5393/
4907 [`DoubleEndedIterator::rfind`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfind
4908 [`DoubleEndedIterator::rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfold
4909 [`DoubleEndedIterator::try_rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
4910 [`Duration::from_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_micros
4911 [`Duration::from_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_nanos
4912 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4913 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4914 [`HashMap::remove_entry`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.remove_entry
4915 [`Iterator::try_fold`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_fold
4916 [`Iterator::try_for_each`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
4917 [`NonNull::cast`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.cast
4918 [`Option::filter`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.filter
4919 [`String::replace_range`]: https://doc.rust-lang.org/std/string/struct.String.html#method.replace_range
4920 [`Take::set_limit`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.set_limit
4921 [`hint::unreachable_unchecked`]: https://doc.rust-lang.org/std/hint/fn.unreachable_unchecked.html
4922 [`os::unix::process::parent_id`]: https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html
4923 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
4924 [`ptr::swap_nonoverlapping`]: https://doc.rust-lang.org/std/ptr/fn.swap_nonoverlapping.html
4925 [`slice::rsplit_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit_mut
4926 [`slice::rsplit`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit
4927 [`slice::swap_with_slice`]: https://doc.rust-lang.org/std/primitive.slice.html#method.swap_with_slice
4928 [`arch::x86_64`]: https://doc.rust-lang.org/std/arch/x86_64/index.html
4929 [`arch::x86`]: https://doc.rust-lang.org/std/arch/x86/index.html
4930 [“The Rustc book”]: https://doc.rust-lang.org/rustc
4933 Version 1.26.2 (2018-06-05)
4934 ==========================
4939 - [The borrow checker was fixed to avoid unsoundness when using match ergonomics.][51117]
4941 [51117]: https://github.com/rust-lang/rust/issues/51117
4944 Version 1.26.1 (2018-05-29)
4945 ==========================
4950 - [RLS now works on Windows.][50646]
4951 - [Rustfmt stopped badly formatting text in some cases.][rustfmt/2695]
4957 - [`fn main() -> impl Trait` no longer works for non-Termination
4959 This reverts an accidental stabilization.
4960 - [`NaN > NaN` no longer returns true in const-fn contexts.][50812]
4961 - [Prohibit using turbofish for `impl Trait` in method arguments.][50950]
4963 [50646]: https://github.com/rust-lang/rust/issues/50646
4964 [50656]: https://github.com/rust-lang/rust/pull/50656
4965 [50812]: https://github.com/rust-lang/rust/pull/50812
4966 [50950]: https://github.com/rust-lang/rust/issues/50950
4967 [rustfmt/2695]: https://github.com/rust-lang-nursery/rustfmt/issues/2695
4969 Version 1.26.0 (2018-05-10)
4970 ==========================
4974 - [Closures now implement `Copy` and/or `Clone` if all captured variables
4975 implement either or both traits.][49299]
4976 - [The inclusive range syntax e.g. `for x in 0..=10` is now stable.][47813]
4977 - [The `'_` lifetime is now stable. The underscore lifetime can be used anywhere a
4978 lifetime can be elided.][49458]
4979 - [`impl Trait` is now stable allowing you to have abstract types in returns
4980 or in function parameters.][49255] E.g. `fn foo() -> impl Iterator<Item=u8>` or
4981 `fn open(path: impl AsRef<Path>)`.
4982 - [Pattern matching will now automatically apply dereferences.][49394]
4983 - [128-bit integers in the form of `u128` and `i128` are now stable.][49101]
4984 - [`main` can now return `Result<(), E: Debug>`][49162] in addition to `()`.
4985 - [A lot of operations are now available in a const context.][46882] E.g. You
4986 can now index into constant arrays, reference and dereference into constants,
4987 and use tuple struct constructors.
4988 - [Fixed entry slice patterns are now stable.][48516] E.g.
4990 let points = [1, 2, 3, 4];
4992 [1, 2, 3, 4] => println!("All points were sequential."),
4993 _ => println!("Not all points were sequential."),
5000 - [LLD is now used as the default linker for `wasm32-unknown-unknown`.][48125]
5001 - [Fixed exponential projection complexity on nested types.][48296]
5002 This can provide up to a ~12% reduction in compile times for certain crates.
5003 - [Added the `--remap-path-prefix` option to rustc.][48359] Allowing you
5004 to remap path prefixes outputted by the compiler.
5005 - [Added `powerpc-unknown-netbsd` target.][48281]
5009 - [Implemented `From<u16> for usize` & `From<{u8, i16}> for isize`.][49305]
5010 - [Added hexadecimal formatting for integers with fmt::Debug][48978]
5011 e.g. `assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]")`
5012 - [Implemented `Default, Hash` for `cmp::Reverse`.][48628]
5013 - [Optimized `str::repeat` being 8x faster in large cases.][48657]
5014 - [`ascii::escape_default` is now available in libcore.][48735]
5015 - [Trailing commas are now supported in std and core macros.][48056]
5016 - [Implemented `Copy, Clone` for `cmp::Reverse`][47379]
5017 - [Implemented `Clone` for `char::{ToLowercase, ToUppercase}`.][48629]
5022 - [`*const T::copy_to_nonoverlapping`]
5023 - [`*const T::copy_to`]
5024 - [`*const T::read_unaligned`]
5025 - [`*const T::read_volatile`]
5026 - [`*const T::read`]
5028 - [`*const T::wrapping_add`]
5029 - [`*const T::wrapping_sub`]
5031 - [`*mut T::copy_to_nonoverlapping`]
5032 - [`*mut T::copy_to`]
5033 - [`*mut T::read_unaligned`]
5034 - [`*mut T::read_volatile`]
5036 - [`*mut T::replace`]
5039 - [`*mut T::wrapping_add`]
5040 - [`*mut T::wrapping_sub`]
5041 - [`*mut T::write_bytes`]
5042 - [`*mut T::write_unaligned`]
5043 - [`*mut T::write_volatile`]
5046 - [`FromUtf8Error::as_bytes`]
5047 - [`LocalKey::try_with`]
5048 - [`Option::cloned`]
5049 - [`btree_map::Entry::and_modify`]
5050 - [`fs::read_to_string`]
5053 - [`hash_map::Entry::and_modify`]
5054 - [`iter::FusedIterator`]
5055 - [`ops::RangeInclusive`]
5056 - [`ops::RangeToInclusive`]
5058 - [`slice::rotate_left`]
5059 - [`slice::rotate_right`]
5060 - [`String::retain`]
5065 - [Cargo will now output path to custom commands when `-v` is
5066 passed with `--list`][cargo/5041]
5067 - [The Cargo binary version is now the same as the Rust version][cargo/5083]
5071 - [The second edition of "The Rust Programming Language" book is now recommended
5072 over the first.][48404]
5077 - [aliasing a `Fn` trait as `dyn` no longer works.][48481] E.g. the following
5078 syntax is now invalid.
5080 use std::ops::Fn as dyn;
5081 fn g(_: Box<dyn(std::fmt::Debug)>) {}
5083 - [The result of dereferences are no longer promoted to `'static`.][47408]
5087 const PAIR: &(i32, i32) = &(0, 1);
5088 let _reversed_pair: &'static _ = &(PAIR.1, PAIR.0); // Doesn't work
5091 - [Deprecate `AsciiExt` trait in favor of inherent methods.][49109]
5092 - [`".e0"` will now no longer parse as `0.0` and will instead cause
5094 - [Removed hoedown from rustdoc.][48274]
5095 - [Bounds on higher-kinded lifetimes a hard error.][48326]
5097 [46882]: https://github.com/rust-lang/rust/pull/46882
5098 [47379]: https://github.com/rust-lang/rust/pull/47379
5099 [47408]: https://github.com/rust-lang/rust/pull/47408
5100 [47813]: https://github.com/rust-lang/rust/pull/47813
5101 [48056]: https://github.com/rust-lang/rust/pull/48056
5102 [48125]: https://github.com/rust-lang/rust/pull/48125
5103 [48235]: https://github.com/rust-lang/rust/pull/48235
5104 [48274]: https://github.com/rust-lang/rust/pull/48274
5105 [48281]: https://github.com/rust-lang/rust/pull/48281
5106 [48296]: https://github.com/rust-lang/rust/pull/48296
5107 [48326]: https://github.com/rust-lang/rust/pull/48326
5108 [48359]: https://github.com/rust-lang/rust/pull/48359
5109 [48404]: https://github.com/rust-lang/rust/pull/48404
5110 [48481]: https://github.com/rust-lang/rust/pull/48481
5111 [48516]: https://github.com/rust-lang/rust/pull/48516
5112 [48628]: https://github.com/rust-lang/rust/pull/48628
5113 [48629]: https://github.com/rust-lang/rust/pull/48629
5114 [48657]: https://github.com/rust-lang/rust/pull/48657
5115 [48735]: https://github.com/rust-lang/rust/pull/48735
5116 [48978]: https://github.com/rust-lang/rust/pull/48978
5117 [49101]: https://github.com/rust-lang/rust/pull/49101
5118 [49109]: https://github.com/rust-lang/rust/pull/49109
5119 [49162]: https://github.com/rust-lang/rust/pull/49162
5120 [49255]: https://github.com/rust-lang/rust/pull/49255
5121 [49299]: https://github.com/rust-lang/rust/pull/49299
5122 [49305]: https://github.com/rust-lang/rust/pull/49305
5123 [49394]: https://github.com/rust-lang/rust/pull/49394
5124 [49458]: https://github.com/rust-lang/rust/pull/49458
5125 [`*const T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add
5126 [`*const T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping
5127 [`*const T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to
5128 [`*const T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned
5129 [`*const T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile
5130 [`*const T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read
5131 [`*const T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub
5132 [`*const T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add
5133 [`*const T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub
5134 [`*mut T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add-1
5135 [`*mut T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping-1
5136 [`*mut T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to-1
5137 [`*mut T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned-1
5138 [`*mut T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile-1
5139 [`*mut T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read-1
5140 [`*mut T::replace`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.replace
5141 [`*mut T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub-1
5142 [`*mut T::swap`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.swap
5143 [`*mut T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add-1
5144 [`*mut T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub-1
5145 [`*mut T::write_bytes`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_bytes
5146 [`*mut T::write_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_unaligned
5147 [`*mut T::write_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_volatile
5148 [`*mut T::write`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write
5149 [`Box::leak`]: https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak
5150 [`FromUtf8Error::as_bytes`]: https://doc.rust-lang.org/std/string/struct.FromUtf8Error.html#method.as_bytes
5151 [`LocalKey::try_with`]: https://doc.rust-lang.org/std/thread/struct.LocalKey.html#method.try_with
5152 [`Option::cloned`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.cloned
5153 [`btree_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.and_modify
5154 [`fs::read_to_string`]: https://doc.rust-lang.org/std/fs/fn.read_to_string.html
5155 [`fs::read`]: https://doc.rust-lang.org/std/fs/fn.read.html
5156 [`fs::write`]: https://doc.rust-lang.org/std/fs/fn.write.html
5157 [`hash_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.and_modify
5158 [`iter::FusedIterator`]: https://doc.rust-lang.org/std/iter/trait.FusedIterator.html
5159 [`ops::RangeInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html
5160 [`ops::RangeToInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html
5161 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
5162 [`slice::rotate_left`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_left
5163 [`slice::rotate_right`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_right
5164 [`String::retain`]: https://doc.rust-lang.org/std/string/struct.String.html#method.retain
5165 [cargo/5041]: https://github.com/rust-lang/cargo/pull/5041
5166 [cargo/5083]: https://github.com/rust-lang/cargo/pull/5083
5169 Version 1.25.0 (2018-03-29)
5170 ==========================
5174 - [The `#[repr(align(x))]` attribute is now stable.][47006] [RFC 1358]
5175 - [You can now use nested groups of imports.][47948]
5176 e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};`
5177 - [You can now have `|` at the start of a match arm.][47947] e.g.
5179 enum Foo { A, B, C }
5185 | Foo::B => println!("AB"),
5186 | Foo::C => println!("C"),
5193 - [Upgraded to LLVM 6.][47828]
5194 - [Added `-C lto=val` option.][47521]
5195 - [Added `i586-unknown-linux-musl` target][47282]
5199 - [Impl Send for `process::Command` on Unix.][47760]
5200 - [Impl PartialEq and Eq for `ParseCharError`.][47790]
5201 - [`UnsafeCell::into_inner` is now safe.][47204]
5202 - [Implement libstd for CloudABI.][47268]
5203 - [`Float::{from_bits, to_bits}` is now available in libcore.][46931]
5204 - [Implement `AsRef<Path>` for Component][46985]
5205 - [Implemented `Write` for `Cursor<&mut Vec<u8>>`][46830]
5206 - [Moved `Duration` to libcore.][46666]
5210 - [`Location::column`]
5213 The following functions can now be used in a constant expression.
5214 eg. `static MINUTE: Duration = Duration::from_secs(60);`
5215 - [`Duration::new`][47300]
5216 - [`Duration::from_secs`][47300]
5217 - [`Duration::from_millis`][47300]
5221 - [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
5222 - [`cargo new` now defaults to creating a binary crate, instead of a
5223 library crate.][cargo/5029]
5227 - [Rust by example is now shipped with new releases][46196]
5231 - [Deprecated `net::lookup_host`.][47510]
5232 - [`rustdoc` has switched to pulldown as the default markdown renderer.][47398]
5233 - The borrow checker was sometimes incorrectly permitting overlapping borrows
5234 around indexing operations (see [#47349][47349]). This has been fixed (which also
5235 enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]).
5236 - [Removed deprecated unstable attribute `#[simd]`.][47251]
5238 [33903]: https://github.com/rust-lang/rust/pull/33903
5239 [47947]: https://github.com/rust-lang/rust/pull/47947
5240 [47948]: https://github.com/rust-lang/rust/pull/47948
5241 [47760]: https://github.com/rust-lang/rust/pull/47760
5242 [47790]: https://github.com/rust-lang/rust/pull/47790
5243 [47828]: https://github.com/rust-lang/rust/pull/47828
5244 [47398]: https://github.com/rust-lang/rust/pull/47398
5245 [47510]: https://github.com/rust-lang/rust/pull/47510
5246 [47521]: https://github.com/rust-lang/rust/pull/47521
5247 [47204]: https://github.com/rust-lang/rust/pull/47204
5248 [47251]: https://github.com/rust-lang/rust/pull/47251
5249 [47268]: https://github.com/rust-lang/rust/pull/47268
5250 [47282]: https://github.com/rust-lang/rust/pull/47282
5251 [47300]: https://github.com/rust-lang/rust/pull/47300
5252 [47349]: https://github.com/rust-lang/rust/pull/47349
5253 [46931]: https://github.com/rust-lang/rust/pull/46931
5254 [46985]: https://github.com/rust-lang/rust/pull/46985
5255 [47006]: https://github.com/rust-lang/rust/pull/47006
5256 [46830]: https://github.com/rust-lang/rust/pull/46830
5257 [46095]: https://github.com/rust-lang/rust/pull/46095
5258 [46666]: https://github.com/rust-lang/rust/pull/46666
5259 [46196]: https://github.com/rust-lang/rust/pull/46196
5260 [cargo/5013]: https://github.com/rust-lang/cargo/pull/5013
5261 [cargo/5029]: https://github.com/rust-lang/cargo/pull/5029
5262 [RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358
5263 [`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column
5264 [`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
5267 Version 1.24.1 (2018-03-01)
5268 ==========================
5270 - [Do not abort when unwinding through FFI][48251]
5271 - [Emit UTF-16 files for linker arguments on Windows][48318]
5272 - [Make the error index generator work again][48308]
5273 - [Cargo will warn on Windows 7 if an update is needed][cargo/5069].
5275 [48251]: https://github.com/rust-lang/rust/issues/48251
5276 [48308]: https://github.com/rust-lang/rust/issues/48308
5277 [48318]: https://github.com/rust-lang/rust/issues/48318
5278 [cargo/5069]: https://github.com/rust-lang/cargo/pull/5069
5281 Version 1.24.0 (2018-02-15)
5282 ==========================
5286 - [External `sysv64` ffi is now available.][46528]
5287 eg. `extern "sysv64" fn foo () {}`
5291 - [rustc now uses 16 codegen units by default for release builds.][46910]
5292 For the fastest builds, utilize `codegen-units=1`.
5293 - [Added `armv4t-unknown-linux-gnueabi` target.][47018]
5294 - [Add `aarch64-unknown-openbsd` support][46760]
5298 - [`str::find::<char>` now uses memchr.][46735] This should lead to a 10x
5299 improvement in performance in the majority of cases.
5300 - [`OsStr`'s `Debug` implementation is now lossless and consistent
5301 with Windows.][46798]
5302 - [`time::{SystemTime, Instant}` now implement `Hash`.][46828]
5303 - [impl `From<bool>` for `AtomicBool`][46293]
5304 - [impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`][45990]
5305 - [impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`][45990]
5306 - [impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`][45990]
5307 - [float::from_bits now just uses transmute.][46012] This provides
5308 some optimisations from LLVM.
5309 - [Copied `AsciiExt` methods onto `char`][46077]
5310 - [Remove `T: Sized` requirement on `ptr::is_null()`][46094]
5311 - [impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`][45506]
5312 - [Optimised `f32::{min, max}` to generate more efficient x86 assembly][47080]
5313 - [`[u8]::contains` now uses memchr which provides a 3x speed improvement][46713]
5317 - [`RefCell::replace`]
5319 - [`atomic::spin_loop_hint`]
5321 The following functions can now be used in a constant expression.
5322 eg. `let buffer: [u8; size_of::<usize>()];`, `static COUNTER: AtomicUsize = AtomicUsize::new(1);`
5324 - [`AtomicBool::new`][46287]
5325 - [`AtomicUsize::new`][46287]
5326 - [`AtomicIsize::new`][46287]
5327 - [`AtomicPtr::new`][46287]
5328 - [`Cell::new`][46287]
5329 - [`{integer}::min_value`][46287]
5330 - [`{integer}::max_value`][46287]
5331 - [`mem::size_of`][46287]
5332 - [`mem::align_of`][46287]
5333 - [`ptr::null`][46287]
5334 - [`ptr::null_mut`][46287]
5335 - [`RefCell::new`][46287]
5336 - [`UnsafeCell::new`][46287]
5340 - [Added a `workspace.default-members` config that
5341 overrides implied `--all` in virtual workspaces.][cargo/4743]
5342 - [Enable incremental by default on development builds.][cargo/4817] Also added
5343 configuration keys to `Cargo.toml` and `.cargo/config` to disable on a
5344 per-project or global basis respectively.
5351 - [Floating point types `Debug` impl now always prints a decimal point.][46831]
5352 - [`Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses][46671] This is
5353 in accordance with IETF RFC 4291 §2.2.
5354 - [Unwinding will no longer go past FFI boundaries, and will instead abort.][46833]
5355 - [`Formatter::flags` method is now deprecated.][46284] The `sign_plus`,
5356 `sign_minus`, `alternate`, and `sign_aware_zero_pad` should be used instead.
5357 - [Leading zeros in tuple struct members is now an error][47084]
5358 - [`column!()` macro is one-based instead of zero-based][46977]
5359 - [`fmt::Arguments` can no longer be shared across threads][45198]
5360 - [Access to `#[repr(packed)]` struct fields is now unsafe][44884]
5361 - [Cargo sets a different working directory for the compiler][cargo/4788]
5363 [44884]: https://github.com/rust-lang/rust/pull/44884
5364 [45198]: https://github.com/rust-lang/rust/pull/45198
5365 [45506]: https://github.com/rust-lang/rust/pull/45506
5366 [45990]: https://github.com/rust-lang/rust/pull/45990
5367 [46012]: https://github.com/rust-lang/rust/pull/46012
5368 [46077]: https://github.com/rust-lang/rust/pull/46077
5369 [46094]: https://github.com/rust-lang/rust/pull/46094
5370 [46284]: https://github.com/rust-lang/rust/pull/46284
5371 [46287]: https://github.com/rust-lang/rust/pull/46287
5372 [46293]: https://github.com/rust-lang/rust/pull/46293
5373 [46528]: https://github.com/rust-lang/rust/pull/46528
5374 [46671]: https://github.com/rust-lang/rust/pull/46671
5375 [46713]: https://github.com/rust-lang/rust/pull/46713
5376 [46735]: https://github.com/rust-lang/rust/pull/46735
5377 [46760]: https://github.com/rust-lang/rust/pull/46760
5378 [46798]: https://github.com/rust-lang/rust/pull/46798
5379 [46828]: https://github.com/rust-lang/rust/pull/46828
5380 [46831]: https://github.com/rust-lang/rust/pull/46831
5381 [46833]: https://github.com/rust-lang/rust/pull/46833
5382 [46910]: https://github.com/rust-lang/rust/pull/46910
5383 [46977]: https://github.com/rust-lang/rust/pull/46977
5384 [47018]: https://github.com/rust-lang/rust/pull/47018
5385 [47080]: https://github.com/rust-lang/rust/pull/47080
5386 [47084]: https://github.com/rust-lang/rust/pull/47084
5387 [cargo/4743]: https://github.com/rust-lang/cargo/pull/4743
5388 [cargo/4788]: https://github.com/rust-lang/cargo/pull/4788
5389 [cargo/4817]: https://github.com/rust-lang/cargo/pull/4817
5390 [`RefCell::replace`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.replace
5391 [`RefCell::swap`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.swap
5392 [`atomic::spin_loop_hint`]: https://doc.rust-lang.org/std/sync/atomic/fn.spin_loop_hint.html
5395 Version 1.23.0 (2018-01-04)
5396 ==========================
5400 - [Arbitrary `auto` traits are now permitted in trait objects.][45772]
5401 - [rustc now uses subtyping on the left hand side of binary operations.][45435]
5402 Which should fix some confusing errors in some operations.
5406 - [Enabled `TrapUnreachable` in LLVM which should mitigate the impact of
5407 undefined behavior.][45920]
5408 - [rustc now suggests renaming import if names clash.][45660]
5409 - [Display errors/warnings correctly when there are zero-width or
5410 wide characters.][45711]
5411 - [rustc now avoids unnecessary copies of arguments that are
5412 simple bindings][45380] This should improve memory usage on average by 5-10%.
5413 - [Updated musl used to build musl rustc to 1.1.17][45393]
5417 - [Allow a trailing comma in `assert_eq/ne` macro][45887]
5418 - [Implement Hash for raw pointers to unsized types][45483]
5419 - [impl `From<*mut T>` for `AtomicPtr<T>`][45610]
5420 - [impl `From<usize/isize>` for `AtomicUsize/AtomicIsize`.][45610]
5421 - [Removed the `T: Sync` requirement for `RwLock<T>: Send`][45267]
5422 - [Removed `T: Sized` requirement for `{<*const T>, <*mut T>}::as_ref`
5423 and `<*mut T>::as_mut`][44932]
5424 - [Optimized `Thread::{park, unpark}` implementation][45524]
5425 - [Improved `SliceExt::binary_search` performance.][45333]
5426 - [impl `FromIterator<()>` for `()`][45379]
5427 - [Copied `AsciiExt` trait methods to primitive types.][44042] Use of `AsciiExt`
5435 - [Cargo now supports uninstallation of multiple packages][cargo/4561]
5436 eg. `cargo uninstall foo bar` uninstalls `foo` and `bar`.
5437 - [Added unit test checking to `cargo check`][cargo/4592]
5438 - [Cargo now lets you install a specific version
5439 using `cargo install --version`][cargo/4637]
5443 - [Releases now ship with the Cargo book documentation.][45692]
5444 - [rustdoc now prints rendering warnings on every run.][45324]
5448 - [Changes have been made to type equality to make it more correct,
5449 in rare cases this could break some code.][45853] [Tracking issue for
5450 further information][45852]
5451 - [`char::escape_debug` now uses Unicode 10 over 9.][45571]
5452 - [Upgraded Android SDK to 27, and NDK to r15c.][45580] This drops support for
5453 Android 9, the minimum supported version is Android 14.
5454 - [Bumped the minimum LLVM to 3.9][45326]
5456 [44042]: https://github.com/rust-lang/rust/pull/44042
5457 [44932]: https://github.com/rust-lang/rust/pull/44932
5458 [45267]: https://github.com/rust-lang/rust/pull/45267
5459 [45324]: https://github.com/rust-lang/rust/pull/45324
5460 [45326]: https://github.com/rust-lang/rust/pull/45326
5461 [45333]: https://github.com/rust-lang/rust/pull/45333
5462 [45379]: https://github.com/rust-lang/rust/pull/45379
5463 [45380]: https://github.com/rust-lang/rust/pull/45380
5464 [45393]: https://github.com/rust-lang/rust/pull/45393
5465 [45435]: https://github.com/rust-lang/rust/pull/45435
5466 [45483]: https://github.com/rust-lang/rust/pull/45483
5467 [45524]: https://github.com/rust-lang/rust/pull/45524
5468 [45571]: https://github.com/rust-lang/rust/pull/45571
5469 [45580]: https://github.com/rust-lang/rust/pull/45580
5470 [45610]: https://github.com/rust-lang/rust/pull/45610
5471 [45660]: https://github.com/rust-lang/rust/pull/45660
5472 [45692]: https://github.com/rust-lang/rust/pull/45692
5473 [45711]: https://github.com/rust-lang/rust/pull/45711
5474 [45772]: https://github.com/rust-lang/rust/pull/45772
5475 [45852]: https://github.com/rust-lang/rust/issues/45852
5476 [45853]: https://github.com/rust-lang/rust/pull/45853
5477 [45887]: https://github.com/rust-lang/rust/pull/45887
5478 [45920]: https://github.com/rust-lang/rust/pull/45920
5479 [cargo/4561]: https://github.com/rust-lang/cargo/pull/4561
5480 [cargo/4592]: https://github.com/rust-lang/cargo/pull/4592
5481 [cargo/4637]: https://github.com/rust-lang/cargo/pull/4637
5484 Version 1.22.1 (2017-11-22)
5485 ==========================
5487 - [Update Cargo to fix an issue with macOS 10.13 "High Sierra"][46183]
5489 [46183]: https://github.com/rust-lang/rust/pull/46183
5491 Version 1.22.0 (2017-11-22)
5492 ==========================
5496 - [`non_snake_case` lint now allows extern no-mangle functions][44966]
5497 - [Now accepts underscores in unicode escapes][43716]
5498 - [`T op= &T` now works for numeric types.][44287] eg. `let mut x = 2; x += &8;`
5499 - [types that impl `Drop` are now allowed in `const` and `static` types][44456]
5503 - [rustc now defaults to having 16 codegen units at debug on supported platforms.][45064]
5504 - [rustc will no longer inline in codegen units when compiling for debug][45075]
5505 This should decrease compile times for debug builds.
5506 - [strict memory alignment now enabled on ARMv6][45094]
5507 - [Remove support for the PNaCl target `le32-unknown-nacl`][45041]
5511 - [Allow atomic operations up to 32 bits
5512 on `armv5te_unknown_linux_gnueabi`][44978]
5513 - [`Box<Error>` now impls `From<Cow<str>>`][44466]
5514 - [`std::mem::Discriminant` is now guaranteed to be `Send + Sync`][45095]
5515 - [`fs::copy` now returns the length of the main stream on NTFS.][44895]
5516 - [Properly detect overflow in `Instant += Duration`.][44220]
5517 - [impl `Hasher` for `{&mut Hasher, Box<Hasher>}`][44015]
5518 - [impl `fmt::Debug` for `SplitWhitespace`.][44303]
5519 - [`Option<T>` now impls `Try`][42526] This allows for using `?` with `Option` types.
5526 - [Cargo will now build multi file examples in subdirectories of the `examples`
5527 folder that have a `main.rs` file.][cargo/4496]
5528 - [Changed `[root]` to `[package]` in `Cargo.lock`][cargo/4571] Packages with
5529 the old format will continue to work and can be updated with `cargo update`.
5530 - [Now supports vendoring git repositories][cargo/3992]
5534 - [`libbacktrace` is now available on Apple platforms.][44251]
5535 - [Stabilised the `compile_fail` attribute for code fences in doc-comments.][43949]
5536 This now lets you specify that a given code example will fail to compile.
5540 - [The minimum Android version that rustc can build for has been bumped
5541 to `4.0` from `2.3`][45656]
5542 - [Allowing `T op= &T` for numeric types has broken some type
5543 inference cases][45480]
5546 [42526]: https://github.com/rust-lang/rust/pull/42526
5547 [43716]: https://github.com/rust-lang/rust/pull/43716
5548 [43949]: https://github.com/rust-lang/rust/pull/43949
5549 [44015]: https://github.com/rust-lang/rust/pull/44015
5550 [44220]: https://github.com/rust-lang/rust/pull/44220
5551 [44251]: https://github.com/rust-lang/rust/pull/44251
5552 [44287]: https://github.com/rust-lang/rust/pull/44287
5553 [44303]: https://github.com/rust-lang/rust/pull/44303
5554 [44456]: https://github.com/rust-lang/rust/pull/44456
5555 [44466]: https://github.com/rust-lang/rust/pull/44466
5556 [44895]: https://github.com/rust-lang/rust/pull/44895
5557 [44966]: https://github.com/rust-lang/rust/pull/44966
5558 [44978]: https://github.com/rust-lang/rust/pull/44978
5559 [45041]: https://github.com/rust-lang/rust/pull/45041
5560 [45064]: https://github.com/rust-lang/rust/pull/45064
5561 [45075]: https://github.com/rust-lang/rust/pull/45075
5562 [45094]: https://github.com/rust-lang/rust/pull/45094
5563 [45095]: https://github.com/rust-lang/rust/pull/45095
5564 [45480]: https://github.com/rust-lang/rust/issues/45480
5565 [45656]: https://github.com/rust-lang/rust/pull/45656
5566 [cargo/3992]: https://github.com/rust-lang/cargo/pull/3992
5567 [cargo/4496]: https://github.com/rust-lang/cargo/pull/4496
5568 [cargo/4571]: https://github.com/rust-lang/cargo/pull/4571
5575 Version 1.21.0 (2017-10-12)
5576 ==========================
5580 - [You can now use static references for literals.][43838]
5584 let x: &'static u32 = &0;
5587 - [Relaxed path syntax. Optional `::` before `<` is now allowed in all contexts.][43540]
5590 my_macro!(Vec<i32>::new); // Always worked
5591 my_macro!(Vec::<i32>::new); // Now works
5596 - [Upgraded jemalloc to 4.5.0][43911]
5597 - [Enabled unwinding panics on Redox][43917]
5598 - [Now runs LLVM in parallel during translation phase.][43506]
5599 This should reduce peak memory usage.
5603 - [Generate builtin impls for `Clone` for all arrays and tuples that
5604 are `T: Clone`][43690]
5605 - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459]
5606 - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From<str>`,
5607 `From<String>`, `From<Box<T>> where T: ?Sized`, and `From<Vec<T>>`.][42565]
5612 [`std::mem::discriminant`]
5616 - [You can now call `cargo install` with multiple package names][cargo/4216]
5617 - [Cargo commands inside a virtual workspace will now implicitly
5618 pass `--all`][cargo/4335]
5619 - [Added a `[patch]` section to `Cargo.toml` to handle
5620 prepublication dependencies][cargo/4123] [RFC 1969]
5621 - [`include` & `exclude` fields in `Cargo.toml` now accept gitignore
5622 like patterns][cargo/4270]
5623 - [Added the `--all-targets` option][cargo/4400]
5624 - [Using required dependencies as a feature is now deprecated and emits
5625 a warning][cargo/4364]
5630 - [Cargo docs are moving][43916]
5631 to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo)
5632 - [The rustdoc book is now available][43863]
5633 at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc)
5634 - [Added a preview of RLS has been made available through rustup][44204]
5635 Install with `rustup component add rls-preview`
5636 - [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348]
5637 Previously only showed `std::os::unix`.
5641 - [Changes in method matching against higher-ranked types][43880] This may cause
5642 breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880]
5643 - [rustc's JSON error output's byte position start at top of file.][42973]
5644 Was previously relative to the rustc's internal `CodeMap` struct which
5645 required the unstable library `libsyntax` to correctly use.
5646 - [`unused_results` lint no longer ignores booleans][43728]
5648 [42565]: https://github.com/rust-lang/rust/pull/42565
5649 [42973]: https://github.com/rust-lang/rust/pull/42973
5650 [43348]: https://github.com/rust-lang/rust/pull/43348
5651 [43459]: https://github.com/rust-lang/rust/pull/43459
5652 [43506]: https://github.com/rust-lang/rust/pull/43506
5653 [43540]: https://github.com/rust-lang/rust/pull/43540
5654 [43690]: https://github.com/rust-lang/rust/pull/43690
5655 [43728]: https://github.com/rust-lang/rust/pull/43728
5656 [43838]: https://github.com/rust-lang/rust/pull/43838
5657 [43863]: https://github.com/rust-lang/rust/pull/43863
5658 [43880]: https://github.com/rust-lang/rust/pull/43880
5659 [43911]: https://github.com/rust-lang/rust/pull/43911
5660 [43916]: https://github.com/rust-lang/rust/pull/43916
5661 [43917]: https://github.com/rust-lang/rust/pull/43917
5662 [44204]: https://github.com/rust-lang/rust/pull/44204
5663 [cargo/4123]: https://github.com/rust-lang/cargo/pull/4123
5664 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216
5665 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
5666 [cargo/4335]: https://github.com/rust-lang/cargo/pull/4335
5667 [cargo/4364]: https://github.com/rust-lang/cargo/pull/4364
5668 [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400
5669 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969
5670 [info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902
5671 [`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html
5673 Version 1.20.0 (2017-08-31)
5674 ===========================
5678 - [Associated constants are now stabilised.][42809]
5679 - [A lot of macro bugs are now fixed.][42913]
5684 - [Struct fields are now properly coerced to the expected field type.][42807]
5685 - [Enabled wasm LLVM backend][42571] WASM can now be built with the
5686 `wasm32-experimental-emscripten` target.
5687 - [Changed some of the error messages to be more helpful.][42033]
5688 - [Add support for RELRO(RELocation Read-Only) for platforms that support
5690 - [rustc now reports the total number of errors on compilation failure][43015]
5691 previously this was only the number of errors in the pass that failed.
5692 - [Expansion in rustc has been sped up 29x.][42533]
5693 - [added `msp430-none-elf` target.][43099]
5694 - [rustc will now suggest one-argument enum variant to fix type mismatch when
5696 - [Fixes backtraces on Redox][43228]
5697 - [rustc now identifies different versions of same crate when absolute paths of
5698 different types match in an error message.][42826]
5704 - [Relaxed Debug constraints on `{HashMap,BTreeMap}::{Keys,Values}`.][42854]
5705 - [Impl `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Debug`, `Hash` for unsized
5707 - [Impl `fmt::{Display, Debug}` for `Ref`, `RefMut`, `MutexGuard`,
5708 `RwLockReadGuard`, `RwLockWriteGuard`][42822]
5709 - [Impl `Clone` for `DefaultHasher`.][42799]
5710 - [Impl `Sync` for `SyncSender`.][42397]
5711 - [Impl `FromStr` for `char`][42271]
5712 - [Fixed how `{f32, f64}::{is_sign_negative, is_sign_positive}` handles
5714 - [allow messages in the `unimplemented!()` macro.][42155]
5715 ie. `unimplemented!("Waiting for 1.21 to be stable")`
5716 - [`pub(restricted)` is now supported in the `thread_local!` macro.][43185]
5717 - [Upgrade to Unicode 10.0.0][42999]
5718 - [Reimplemented `{f32, f64}::{min, max}` in Rust instead of using CMath.][42430]
5719 - [Skip the main thread's manual stack guard on Linux][43072]
5720 - [Iterator::nth for `ops::{Range, RangeFrom}` is now done in *O*(1) time][43077]
5721 - [`#[repr(align(N))]` attribute max number is now 2^31 - 1.][43097] This was
5723 - [`{OsStr, Path}::Display` now avoids allocations where possible][42613]
5728 - [`CStr::into_c_string`]
5729 - [`CString::as_c_str`]
5730 - [`CString::into_boxed_c_str`]
5731 - [`Chain::get_mut`]
5732 - [`Chain::get_ref`]
5733 - [`Chain::into_inner`]
5734 - [`Option::get_or_insert_with`]
5735 - [`Option::get_or_insert`]
5736 - [`OsStr::into_os_string`]
5737 - [`OsString::into_boxed_os_str`]
5740 - [`Utf8Error::error_len`]
5741 - [`char::EscapeDebug`]
5742 - [`char::escape_debug`]
5743 - [`compile_error!`]
5744 - [`f32::from_bits`]
5746 - [`f64::from_bits`]
5748 - [`mem::ManuallyDrop`]
5749 - [`slice::sort_unstable_by_key`]
5750 - [`slice::sort_unstable_by`]
5751 - [`slice::sort_unstable`]
5752 - [`str::from_boxed_utf8_unchecked`]
5753 - [`str::as_bytes_mut`]
5754 - [`str::as_bytes_mut`]
5755 - [`str::from_utf8_mut`]
5756 - [`str::from_utf8_unchecked_mut`]
5758 - [`str::get_unchecked_mut`]
5759 - [`str::get_unchecked`]
5761 - [`str::into_boxed_bytes`]
5766 - [Cargo API token location moved from `~/.cargo/config` to
5767 `~/.cargo/credentials`.][cargo/3978]
5768 - [Cargo will now build `main.rs` binaries that are in sub-directories of
5769 `src/bin`.][cargo/4214] ie. Having `src/bin/server/main.rs` and
5770 `src/bin/client/main.rs` generates `target/debug/server` and `target/debug/client`
5771 - [You can now specify version of a binary when installed through
5772 `cargo install` using `--vers`.][cargo/4229]
5773 - [Added `--no-fail-fast` flag to cargo to run all benchmarks regardless of
5774 failure.][cargo/4248]
5775 - [Changed the convention around which file is the crate root.][cargo/4259]
5780 - [Functions with `'static` in their return types will now not be as usable as
5781 if they were using lifetime parameters instead.][42417]
5782 - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now
5783 takes the sign of NaN into account where previously didn't.][42430]
5785 [42033]: https://github.com/rust-lang/rust/pull/42033
5786 [42155]: https://github.com/rust-lang/rust/pull/42155
5787 [42271]: https://github.com/rust-lang/rust/pull/42271
5788 [42397]: https://github.com/rust-lang/rust/pull/42397
5789 [42417]: https://github.com/rust-lang/rust/pull/42417
5790 [42430]: https://github.com/rust-lang/rust/pull/42430
5791 [42431]: https://github.com/rust-lang/rust/pull/42431
5792 [42533]: https://github.com/rust-lang/rust/pull/42533
5793 [42571]: https://github.com/rust-lang/rust/pull/42571
5794 [42613]: https://github.com/rust-lang/rust/pull/42613
5795 [42799]: https://github.com/rust-lang/rust/pull/42799
5796 [42807]: https://github.com/rust-lang/rust/pull/42807
5797 [42809]: https://github.com/rust-lang/rust/pull/42809
5798 [42822]: https://github.com/rust-lang/rust/pull/42822
5799 [42826]: https://github.com/rust-lang/rust/pull/42826
5800 [42854]: https://github.com/rust-lang/rust/pull/42854
5801 [42913]: https://github.com/rust-lang/rust/pull/42913
5802 [42999]: https://github.com/rust-lang/rust/pull/42999
5803 [43011]: https://github.com/rust-lang/rust/pull/43011
5804 [43015]: https://github.com/rust-lang/rust/pull/43015
5805 [43072]: https://github.com/rust-lang/rust/pull/43072
5806 [43077]: https://github.com/rust-lang/rust/pull/43077
5807 [43097]: https://github.com/rust-lang/rust/pull/43097
5808 [43099]: https://github.com/rust-lang/rust/pull/43099
5809 [43170]: https://github.com/rust-lang/rust/pull/43170
5810 [43178]: https://github.com/rust-lang/rust/pull/43178
5811 [43185]: https://github.com/rust-lang/rust/pull/43185
5812 [43228]: https://github.com/rust-lang/rust/pull/43228
5813 [cargo/3978]: https://github.com/rust-lang/cargo/pull/3978
5814 [cargo/4214]: https://github.com/rust-lang/cargo/pull/4214
5815 [cargo/4229]: https://github.com/rust-lang/cargo/pull/4229
5816 [cargo/4248]: https://github.com/rust-lang/cargo/pull/4248
5817 [cargo/4259]: https://github.com/rust-lang/cargo/pull/4259
5818 [`CStr::into_c_string`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.into_c_string
5819 [`CString::as_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.as_c_str
5820 [`CString::into_boxed_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str
5821 [`Chain::get_mut`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_mut
5822 [`Chain::get_ref`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_ref
5823 [`Chain::into_inner`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.into_inner
5824 [`Option::get_or_insert_with`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert_with
5825 [`Option::get_or_insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert
5826 [`OsStr::into_os_string`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.into_os_string
5827 [`OsString::into_boxed_os_str`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.into_boxed_os_str
5828 [`Take::get_mut`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_mut
5829 [`Take::get_ref`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_ref
5830 [`Utf8Error::error_len`]: https://doc.rust-lang.org/std/str/struct.Utf8Error.html#method.error_len
5831 [`char::EscapeDebug`]: https://doc.rust-lang.org/std/char/struct.EscapeDebug.html
5832 [`char::escape_debug`]: https://doc.rust-lang.org/std/primitive.char.html#method.escape_debug
5833 [`compile_error!`]: https://doc.rust-lang.org/std/macro.compile_error.html
5834 [`f32::from_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits
5835 [`f32::to_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_bits
5836 [`f64::from_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_bits
5837 [`f64::to_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_bits
5838 [`mem::ManuallyDrop`]: https://doc.rust-lang.org/std/mem/union.ManuallyDrop.html
5839 [`slice::sort_unstable_by_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by_key
5840 [`slice::sort_unstable_by`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by
5841 [`slice::sort_unstable`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable
5842 [`str::from_boxed_utf8_unchecked`]: https://doc.rust-lang.org/std/str/fn.from_boxed_utf8_unchecked.html
5843 [`str::as_bytes_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_bytes_mut
5844 [`str::from_utf8_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_mut.html
5845 [`str::from_utf8_unchecked_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_unchecked_mut.html
5846 [`str::get_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_mut
5847 [`str::get_unchecked_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked_mut
5848 [`str::get_unchecked`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked
5849 [`str::get`]: https://doc.rust-lang.org/std/primitive.str.html#method.get
5850 [`str::into_boxed_bytes`]: https://doc.rust-lang.org/std/primitive.str.html#method.into_boxed_bytes
5853 Version 1.19.0 (2017-07-20)
5854 ===========================
5859 - [Numeric fields can now be used for creating tuple structs.][41145] [RFC 1506]
5860 For example `struct Point(u32, u32); let x = Point { 0: 7, 1: 0 };`.
5861 - [Macro recursion limit increased to 1024 from 64.][41676]
5862 - [Added lint for detecting unused macros.][41907]
5863 - [`loop` can now return a value with `break`.][42016] [RFC 1624]
5864 For example: `let x = loop { break 7; };`
5865 - [C compatible `union`s are now available.][42068] [RFC 1444] They can only
5866 contain `Copy` types and cannot have a `Drop` implementation.
5867 Example: `union Foo { bar: u8, baz: usize }`
5868 - [Non capturing closures can now be coerced into `fn`s,][42162] [RFC 1558]
5869 Example: `let foo: fn(u8) -> u8 = |v: u8| { v };`
5874 - [Add support for bootstrapping the Rust compiler toolchain on Android.][41370]
5875 - [Change `arm-linux-androideabi` to correspond to the `armeabi`
5876 official ABI.][41656] If you wish to continue targeting the `armeabi-v7a` ABI
5877 you should use `--target armv7-linux-androideabi`.
5878 - [Fixed ICE when removing a source file between compilation sessions.][41873]
5879 - [Minor optimisation of string operations.][42037]
5880 - [Compiler error message is now `aborting due to previous error(s)` instead of
5881 `aborting due to N previous errors`][42150] This was previously inaccurate and
5882 would only count certain kinds of errors.
5883 - [The compiler now supports Visual Studio 2017][42225]
5884 - [The compiler is now built against LLVM 4.0.1 by default][42948]
5885 - [Added a lot][42264] of [new error codes][42302]
5886 - [Added `target-feature=+crt-static` option][37406] [RFC 1721] Which allows
5887 libraries with C Run-time Libraries(CRT) to be statically linked.
5888 - [Fixed various ARM codegen bugs][42740]
5893 - [`String` now implements `FromIterator<Cow<'a, str>>` and
5894 `Extend<Cow<'a, str>>`][41449]
5895 - [`Vec` now implements `From<&mut [T]>`][41530]
5896 - [`Box<[u8]>` now implements `From<Box<str>>`][41258]
5897 - [`SplitWhitespace` now implements `Clone`][41659]
5898 - [`[u8]::reverse` is now 5x faster and `[u16]::reverse` is now
5900 - [`eprint!` and `eprintln!` macros added to prelude.][41192] Same as the `print!`
5901 macros, but for printing to stderr.
5906 - [`OsString::shrink_to_fit`]
5909 - [`thread::ThreadId`]
5914 - [Build scripts can now add environment variables to the environment
5915 the crate is being compiled in.
5916 Example: `println!("cargo:rustc-env=FOO=bar");`][cargo/3929]
5917 - [Subcommands now replace the current process rather than spawning a new
5918 child process][cargo/3970]
5919 - [Workspace members can now accept glob file patterns][cargo/3979]
5920 - [Added `--all` flag to the `cargo bench` subcommand to run benchmarks of all
5921 the members in a given workspace.][cargo/3988]
5922 - [Updated `libssh2-sys` to 0.2.6][cargo/4008]
5923 - [Target directory path is now in the cargo metadata][cargo/4022]
5924 - [Cargo no longer checks out a local working directory for the
5925 crates.io index][cargo/4026] This should provide smaller file size for the
5926 registry, and improve cloning times, especially on Windows machines.
5927 - [Added an `--exclude` option for excluding certain packages when using the
5928 `--all` option][cargo/4031]
5929 - [Cargo will now automatically retry when receiving a 5xx error
5930 from crates.io][cargo/4032]
5931 - [The `--features` option now accepts multiple comma or space
5932 delimited values.][cargo/4084]
5933 - [Added support for custom target specific runners][cargo/3954]
5938 - [Added `rust-windbg.cmd`][39983] for loading rust `.natvis` files in the
5940 - [Rust will now release XZ compressed packages][rust-installer/57]
5941 - [rustup will now prefer to download rust packages with
5942 XZ compression][rustup/1100] over GZip packages.
5943 - [Added the ability to escape `#` in rust documentation][41785] By adding
5944 additional `#`'s ie. `##` is now `#`
5949 - [`MutexGuard<T>` may only be `Sync` if `T` is `Sync`.][41624]
5950 - [`-Z` flags are now no longer allowed to be used on the stable
5951 compiler.][41751] This has been a warning for a year previous to this.
5952 - [As a result of the `-Z` flag change, the `cargo-check` plugin no
5953 longer works][42844]. Users should migrate to the built-in `check`
5954 command, which has been available since 1.16.
5955 - [Ending a float literal with `._` is now a hard error.
5956 Example: `42._` .][41946]
5957 - [Any use of a private `extern crate` outside of its module is now a
5958 hard error.][36886] This was previously a warning.
5959 - [`use ::self::foo;` is now a hard error.][36888] `self` paths are always
5960 relative while the `::` prefix makes a path absolute, but was ignored and the
5961 path was relative regardless.
5962 - [Floating point constants in match patterns is now a hard error][36890]
5963 This was previously a warning.
5964 - [Struct or enum constants that don't derive `PartialEq` & `Eq` used
5965 match patterns is now a hard error][36891] This was previously a warning.
5966 - [Lifetimes named `'_` are no longer allowed.][36892] This was previously
5968 - [From the pound escape, lines consisting of multiple `#`s are
5970 - [It is an error to re-export private enum variants][42460]. This is
5971 known to break a number of crates that depend on an older version of
5973 - [On Windows, if `VCINSTALLDIR` is set incorrectly, `rustc` will try
5974 to use it to find the linker, and the build will fail where it did
5975 not previously][42607]
5977 [36886]: https://github.com/rust-lang/rust/issues/36886
5978 [36888]: https://github.com/rust-lang/rust/issues/36888
5979 [36890]: https://github.com/rust-lang/rust/issues/36890
5980 [36891]: https://github.com/rust-lang/rust/issues/36891
5981 [36892]: https://github.com/rust-lang/rust/issues/36892
5982 [37406]: https://github.com/rust-lang/rust/issues/37406
5983 [39983]: https://github.com/rust-lang/rust/pull/39983
5984 [41145]: https://github.com/rust-lang/rust/pull/41145
5985 [41192]: https://github.com/rust-lang/rust/pull/41192
5986 [41258]: https://github.com/rust-lang/rust/pull/41258
5987 [41370]: https://github.com/rust-lang/rust/pull/41370
5988 [41449]: https://github.com/rust-lang/rust/pull/41449
5989 [41530]: https://github.com/rust-lang/rust/pull/41530
5990 [41624]: https://github.com/rust-lang/rust/pull/41624
5991 [41656]: https://github.com/rust-lang/rust/pull/41656
5992 [41659]: https://github.com/rust-lang/rust/pull/41659
5993 [41676]: https://github.com/rust-lang/rust/pull/41676
5994 [41751]: https://github.com/rust-lang/rust/pull/41751
5995 [41764]: https://github.com/rust-lang/rust/pull/41764
5996 [41785]: https://github.com/rust-lang/rust/pull/41785
5997 [41873]: https://github.com/rust-lang/rust/pull/41873
5998 [41907]: https://github.com/rust-lang/rust/pull/41907
5999 [41946]: https://github.com/rust-lang/rust/pull/41946
6000 [42016]: https://github.com/rust-lang/rust/pull/42016
6001 [42037]: https://github.com/rust-lang/rust/pull/42037
6002 [42068]: https://github.com/rust-lang/rust/pull/42068
6003 [42150]: https://github.com/rust-lang/rust/pull/42150
6004 [42162]: https://github.com/rust-lang/rust/pull/42162
6005 [42225]: https://github.com/rust-lang/rust/pull/42225
6006 [42264]: https://github.com/rust-lang/rust/pull/42264
6007 [42302]: https://github.com/rust-lang/rust/pull/42302
6008 [42460]: https://github.com/rust-lang/rust/issues/42460
6009 [42607]: https://github.com/rust-lang/rust/issues/42607
6010 [42740]: https://github.com/rust-lang/rust/pull/42740
6011 [42844]: https://github.com/rust-lang/rust/issues/42844
6012 [42948]: https://github.com/rust-lang/rust/pull/42948
6013 [RFC 1444]: https://github.com/rust-lang/rfcs/pull/1444
6014 [RFC 1506]: https://github.com/rust-lang/rfcs/pull/1506
6015 [RFC 1558]: https://github.com/rust-lang/rfcs/pull/1558
6016 [RFC 1624]: https://github.com/rust-lang/rfcs/pull/1624
6017 [RFC 1721]: https://github.com/rust-lang/rfcs/pull/1721
6018 [`Command::envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.envs
6019 [`OsString::shrink_to_fit`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.shrink_to_fit
6020 [`cmp::Reverse`]: https://doc.rust-lang.org/std/cmp/struct.Reverse.html
6021 [`thread::ThreadId`]: https://doc.rust-lang.org/std/thread/struct.ThreadId.html
6022 [cargo/3929]: https://github.com/rust-lang/cargo/pull/3929
6023 [cargo/3954]: https://github.com/rust-lang/cargo/pull/3954
6024 [cargo/3970]: https://github.com/rust-lang/cargo/pull/3970
6025 [cargo/3979]: https://github.com/rust-lang/cargo/pull/3979
6026 [cargo/3988]: https://github.com/rust-lang/cargo/pull/3988
6027 [cargo/4008]: https://github.com/rust-lang/cargo/pull/4008
6028 [cargo/4022]: https://github.com/rust-lang/cargo/pull/4022
6029 [cargo/4026]: https://github.com/rust-lang/cargo/pull/4026
6030 [cargo/4031]: https://github.com/rust-lang/cargo/pull/4031
6031 [cargo/4032]: https://github.com/rust-lang/cargo/pull/4032
6032 [cargo/4084]: https://github.com/rust-lang/cargo/pull/4084
6033 [rust-installer/57]: https://github.com/rust-lang/rust-installer/pull/57
6034 [rustup/1100]: https://github.com/rust-lang-nursery/rustup.rs/pull/1100
6037 Version 1.18.0 (2017-06-08)
6038 ===========================
6043 - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to
6044 make the item visible to just that module tree. Also accepts the keyword
6045 `crate` to make something public to the whole crate but not users of the
6046 library. Example: `pub(crate) mod utils;`. [RFC 1422].
6047 - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the
6048 `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665].
6049 - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept
6050 types like `Write + Send`, trailing `+` are now supported in trait objects,
6051 and better error reporting for trait objects starting with `?Sized`.
6052 - [0e+10 is now a valid floating point literal][40589]
6053 - [Now warns if you bind a lifetime parameter to 'static][40734]
6054 - [Tuples, Enum variant fields, and structs with no `repr` attribute or with
6055 `#[repr(Rust)]` are reordered to minimize padding and produce a smaller
6056 representation in some cases.][40377]
6061 - [rustc can now emit mir with `--emit mir`][39891]
6062 - [Improved LLVM IR for trivial functions][40367]
6063 - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723]
6064 - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation
6065 opportunities found through profiling
6066 - [Improved backtrace formatting when panicking][38165]
6071 - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the
6072 iterator hasn't been advanced the original `Vec` is reassembled with no actual
6073 iteration or reallocation.
6074 - [Simplified HashMap Bucket interface][40561] provides performance
6075 improvements for iterating and cloning.
6076 - [Specialize Vec::from_elem to use calloc][40409]
6077 - [Fixed Race condition in fs::create_dir_all][39799]
6078 - [No longer caching stdio on Windows][40516]
6079 - [Optimized insertion sort in slice][40807] insertion sort in some cases
6080 2.50%~ faster and in one case now 12.50% faster.
6081 - [Optimized `AtomicBool::fetch_nand`][41143]
6086 - [`Child::try_wait`]
6087 - [`HashMap::retain`]
6088 - [`HashSet::retain`]
6090 - [`TcpStream::peek`]
6091 - [`UdpSocket::peek`]
6092 - [`UdpSocket::peek_from`]
6097 - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust.
6098 You can now create new cargo projects with Pijul using `cargo new --vcs pijul`
6099 - [Now always emits build script warnings for crates that fail to build][cargo/3847]
6100 - [Added Android build support][cargo/3885]
6101 - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs
6102 of a certain type, for example `cargo build --bins` will build all
6104 - [Added support for haiku][cargo/3952]
6109 - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338]
6110 - [Rust now uses the official cross compiler for NetBSD][40612]
6111 - [rustdoc now accepts `#` at the start of files][40828]
6112 - [Fixed jemalloc support for musl][41168]
6117 - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now
6118 always placed after the sign if it exists and before the digits. With the `#`
6119 flag the zeroes are placed after the prefix and before the digits.
6120 - [Due to the struct field optimisation][40377], using `transmute` on structs
6121 that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has
6122 always been undefined behavior, but is now more likely to break in practice.
6123 - [The refactor of trait object type parsing][40043] fixed a bug where `+` was
6124 receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as
6125 `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send`
6126 - [Overlapping inherent `impl`s are now a hard error][40728]
6127 - [`PartialOrd` and `Ord` must agree on the ordering.][41270]
6128 - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output
6129 `out.asm` and `out.ll` instead of only one of the filetypes.
6130 - [ calling a function that returns `Self` will no longer work][41805] when
6131 the size of `Self` cannot be statically determined.
6132 - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805]
6133 this has caused a few regressions namely:
6135 - Changed the link order of local static/dynamic libraries (respecting the
6136 order on given rather than having the compiler reorder).
6137 - Changed how MinGW is linked, native code linked to dynamic libraries
6138 may require manually linking to the gcc support library (for the native
6141 [38165]: https://github.com/rust-lang/rust/pull/38165
6142 [39799]: https://github.com/rust-lang/rust/pull/39799
6143 [39891]: https://github.com/rust-lang/rust/pull/39891
6144 [40043]: https://github.com/rust-lang/rust/pull/40043
6145 [40241]: https://github.com/rust-lang/rust/pull/40241
6146 [40338]: https://github.com/rust-lang/rust/pull/40338
6147 [40367]: https://github.com/rust-lang/rust/pull/40367
6148 [40377]: https://github.com/rust-lang/rust/pull/40377
6149 [40409]: https://github.com/rust-lang/rust/pull/40409
6150 [40516]: https://github.com/rust-lang/rust/pull/40516
6151 [40556]: https://github.com/rust-lang/rust/pull/40556
6152 [40561]: https://github.com/rust-lang/rust/pull/40561
6153 [40589]: https://github.com/rust-lang/rust/pull/40589
6154 [40612]: https://github.com/rust-lang/rust/pull/40612
6155 [40723]: https://github.com/rust-lang/rust/pull/40723
6156 [40728]: https://github.com/rust-lang/rust/pull/40728
6157 [40731]: https://github.com/rust-lang/rust/pull/40731
6158 [40734]: https://github.com/rust-lang/rust/pull/40734
6159 [40805]: https://github.com/rust-lang/rust/pull/40805
6160 [40807]: https://github.com/rust-lang/rust/pull/40807
6161 [40828]: https://github.com/rust-lang/rust/pull/40828
6162 [40870]: https://github.com/rust-lang/rust/pull/40870
6163 [41085]: https://github.com/rust-lang/rust/pull/41085
6164 [41143]: https://github.com/rust-lang/rust/pull/41143
6165 [41168]: https://github.com/rust-lang/rust/pull/41168
6166 [41270]: https://github.com/rust-lang/rust/issues/41270
6167 [41469]: https://github.com/rust-lang/rust/pull/41469
6168 [41805]: https://github.com/rust-lang/rust/issues/41805
6169 [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md
6170 [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md
6171 [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
6172 [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain
6173 [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain
6174 [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop
6175 [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek
6176 [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from
6177 [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek
6178 [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842
6179 [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847
6180 [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885
6181 [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901
6182 [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952
6185 Version 1.17.0 (2017-04-27)
6186 ===========================
6191 * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
6192 * [Fields of structs may be initialized without duplicating the field/variable
6193 names][39761]. [RFC 1682]
6194 * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
6195 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6196 there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
6197 coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
6198 `'b`. Soundness fix.
6199 * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
6200 * [Static variables may contain references to other statics][40027]
6205 * [Exit quickly on only `--emit dep-info`][40336]
6206 * [Make `-C relocation-model` more correctly determine whether the linker
6207 creates a position-independent executable][40245]
6208 * [Add `-C overflow-checks` to directly control whether integer overflow
6210 * [The rustc type checker now checks items on demand instead of in a single
6211 in-order pass][40008]. This is mostly an internal refactoring in support of
6212 future work, including incremental type checking, but also resolves [RFC
6213 1647], allowing `Self` to appear in `impl` `where` clauses.
6214 * [Optimize vtable loads][39995]
6215 * [Turn off vectorization for Emscripten targets][39990]
6216 * [Provide suggestions for unknown macros imported with `use`][39953]
6217 * [Fix ICEs in path resolution][39939]
6218 * [Strip exception handling code on Emscripten when `panic=abort`][39193]
6219 * [Add clearer error message using `&str + &str`][39116]
6230 * [`Ordering::then`]
6231 * [`Ordering::then_with`]
6232 * [`BTreeMap::range`]
6233 * [`BTreeMap::range_mut`]
6234 * [`collections::Bound`]
6235 * [`process::abort`]
6236 * [`ptr::read_unaligned`]
6237 * [`ptr::write_unaligned`]
6238 * [`Result::expect_err`]
6241 * [`Cell::into_inner`]
6247 * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
6248 * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
6249 * [`String` implements `FromIterator<&char>`][40028]
6250 * `Box` [implements][40009] a number of new conversions:
6251 `From<Box<str>> for String`,
6252 `From<Box<[T]>> for Vec<T>`,
6253 `From<Box<CStr>> for CString`,
6254 `From<Box<OsStr>> for OsString`,
6255 `From<Box<Path>> for PathBuf`,
6256 `Into<Box<str>> for String`,
6257 `Into<Box<[T]>> for Vec<T>`,
6258 `Into<Box<CStr>> for CString`,
6259 `Into<Box<OsStr>> for OsString`,
6260 `Into<Box<Path>> for PathBuf`,
6261 `Default for Box<str>`,
6262 `Default for Box<CStr>`,
6263 `Default for Box<OsStr>`,
6264 `From<&CStr> for Box<CStr>`,
6265 `From<&OsStr> for Box<OsStr>`,
6266 `From<&Path> for Box<Path>`
6267 * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
6268 * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
6269 * [Slightly optimize `slice::sort`][39538]
6270 * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
6271 * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
6272 `Box<str>` implements `From<&str>`][39438]
6273 * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
6274 `From<(I, u16)> where I: Into<IpAddr>`][39372]
6275 * [`format!` estimates the needed capacity before writing a string][39356]
6276 * [Support unprivileged symlink creation in Windows][38921]
6277 * [`PathBuf` implements `Default`][38764]
6278 * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
6279 * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
6280 and poor hash functions.
6285 * [Add `cargo check --all`][cargo/3731]
6286 * [Add an option to ignore SSL revocation checking][cargo/3699]
6287 * [Add `cargo run --package`][cargo/3691]
6288 * [Add `required_features`][cargo/3667]
6289 * [Assume `build.rs` is a build script][cargo/3664]
6290 * [Find workspace via `workspace_root` link in containing member][cargo/3562]
6295 * [Documentation is rendered with mdbook instead of the obsolete, in-tree
6297 * [The "Unstable Book" documents nightly-only features][ubook]
6298 * [Improve the style of the sidebar in rustdoc output][40265]
6299 * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
6300 * [Fix MSP430 breakage due to `i128`][40257]
6301 * [Preliminary Solaris/SPARCv9 support][39903]
6302 * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
6303 run without installing the MSVC runtime.
6304 * [`rustdoc --test` includes file names in test names][39788]
6305 * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
6306 `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
6307 * [Initial support for `aarch64-unknown-freebsd`][39491]
6308 * [Initial support for `i686-unknown-netbsd`][39426]
6309 * [This release no longer includes the old makefile build system][39431]. Rust
6310 is built with a custom build system, written in Rust, and with Cargo.
6311 * [Add Debug implementations for libcollection structs][39002]
6312 * [`TypeId` implements `PartialOrd` and `Ord`][38981]
6313 * [`--test-threads=0` produces an error][38945]
6314 * [`rustup` installs documentation by default][40526]
6315 * [The Rust source includes NatVis visualizations][39843]. These can be used by
6316 WinDbg and Visual Studio to improve the debugging experience.
6321 * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
6322 workaround, either use MSVC 2015 or run vcvars.bat.
6323 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6324 disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
6325 `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
6327 * [`format!` and `Display::to_string` panic if an underlying formatting
6328 implementation returns an error][40117]. Previously the error was silently
6329 ignored. It is incorrect for `write_fmt` to return an error when writing
6331 * [In-tree crates are verified to be unstable][39851]. Previously, some minor
6332 crates were marked stable and could be accessed from the stable toolchain.
6333 * [Rust git source no longer includes vendored crates][39728]. Those that need
6334 to build with vendored crates should build from release tarballs.
6335 * [Fix inert attributes from `proc_macro_derives`][39572]
6336 * [During crate resolution, rustc prefers a crate in the sysroot if two crates
6337 are otherwise identical][39518]. Unlikely to be encountered outside the Rust
6339 * [Fixed bugs around how type inference interacts with dead-code][39485]. The
6340 existing code generally ignores the type of dead-code unless a type-hint is
6341 provided; this can cause surprising inference interactions particularly around
6342 defaulting. The new code uniformly ignores the result type of dead-code.
6343 * [Tuple-struct constructors with private fields are no longer visible][38932]
6344 * [Lifetime parameters that do not appear in the arguments are now considered
6345 early-bound][38897], resolving a soundness bug (#[32330]). The
6346 `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
6348 * [rustdoc: fix doctests with non-feature crate attributes][38161]
6349 * [Make transmuting from fn item types to pointer-sized types a hard
6352 [27787]: https://github.com/rust-lang/rust/issues/27787
6353 [32330]: https://github.com/rust-lang/rust/issues/32330
6354 [34198]: https://github.com/rust-lang/rust/pull/34198
6355 [38161]: https://github.com/rust-lang/rust/pull/38161
6356 [38368]: https://github.com/rust-lang/rust/pull/38368
6357 [38584]: https://github.com/rust-lang/rust/issues/38584
6358 [38661]: https://github.com/rust-lang/rust/pull/38661
6359 [38764]: https://github.com/rust-lang/rust/pull/38764
6360 [38864]: https://github.com/rust-lang/rust/issues/38864
6361 [38897]: https://github.com/rust-lang/rust/pull/38897
6362 [38921]: https://github.com/rust-lang/rust/pull/38921
6363 [38932]: https://github.com/rust-lang/rust/pull/38932
6364 [38945]: https://github.com/rust-lang/rust/pull/38945
6365 [38981]: https://github.com/rust-lang/rust/pull/38981
6366 [39002]: https://github.com/rust-lang/rust/pull/39002
6367 [39116]: https://github.com/rust-lang/rust/pull/39116
6368 [39193]: https://github.com/rust-lang/rust/pull/39193
6369 [39265]: https://github.com/rust-lang/rust/pull/39265
6370 [39356]: https://github.com/rust-lang/rust/pull/39356
6371 [39372]: https://github.com/rust-lang/rust/pull/39372
6372 [39426]: https://github.com/rust-lang/rust/pull/39426
6373 [39431]: https://github.com/rust-lang/rust/pull/39431
6374 [39438]: https://github.com/rust-lang/rust/pull/39438
6375 [39440]: https://github.com/rust-lang/rust/pull/39440
6376 [39485]: https://github.com/rust-lang/rust/pull/39485
6377 [39491]: https://github.com/rust-lang/rust/pull/39491
6378 [39518]: https://github.com/rust-lang/rust/pull/39518
6379 [39538]: https://github.com/rust-lang/rust/pull/39538
6380 [39572]: https://github.com/rust-lang/rust/pull/39572
6381 [39633]: https://github.com/rust-lang/rust/pull/39633
6382 [39642]: https://github.com/rust-lang/rust/pull/39642
6383 [39728]: https://github.com/rust-lang/rust/pull/39728
6384 [39761]: https://github.com/rust-lang/rust/pull/39761
6385 [39788]: https://github.com/rust-lang/rust/pull/39788
6386 [39793]: https://github.com/rust-lang/rust/pull/39793
6387 [39837]: https://github.com/rust-lang/rust/pull/39837
6388 [39843]: https://github.com/rust-lang/rust/pull/39843
6389 [39851]: https://github.com/rust-lang/rust/pull/39851
6390 [39903]: https://github.com/rust-lang/rust/pull/39903
6391 [39939]: https://github.com/rust-lang/rust/pull/39939
6392 [39953]: https://github.com/rust-lang/rust/pull/39953
6393 [39960]: https://github.com/rust-lang/rust/pull/39960
6394 [39990]: https://github.com/rust-lang/rust/pull/39990
6395 [39995]: https://github.com/rust-lang/rust/pull/39995
6396 [40008]: https://github.com/rust-lang/rust/pull/40008
6397 [40009]: https://github.com/rust-lang/rust/pull/40009
6398 [40027]: https://github.com/rust-lang/rust/pull/40027
6399 [40028]: https://github.com/rust-lang/rust/pull/40028
6400 [40037]: https://github.com/rust-lang/rust/pull/40037
6401 [40117]: https://github.com/rust-lang/rust/pull/40117
6402 [40166]: https://github.com/rust-lang/rust/pull/40166
6403 [40245]: https://github.com/rust-lang/rust/pull/40245
6404 [40257]: https://github.com/rust-lang/rust/pull/40257
6405 [40261]: https://github.com/rust-lang/rust/pull/40261
6406 [40265]: https://github.com/rust-lang/rust/pull/40265
6407 [40319]: https://github.com/rust-lang/rust/pull/40319
6408 [40336]: https://github.com/rust-lang/rust/pull/40336
6409 [40526]: https://github.com/rust-lang/rust/pull/40526
6410 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
6411 [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
6412 [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
6413 [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
6414 [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
6415 [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
6416 [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
6417 [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
6418 [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
6419 [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
6420 [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
6421 [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
6422 [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
6423 [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
6424 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
6425 [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
6426 [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
6427 [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
6428 [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
6429 [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
6430 [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
6431 [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
6432 [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
6433 [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
6434 [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
6435 [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
6436 [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
6437 [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
6438 [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
6439 [ubook]: https://doc.rust-lang.org/unstable-book/
6442 Version 1.16.0 (2017-03-16)
6443 ===========================
6448 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6449 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6450 match patterns][38069]
6451 * [Clean up semantics of `self` in an import list][38313]
6452 * [`Self` may appear in `impl` headers][38920]
6453 * [`Self` may appear in struct expressions][39282]
6458 * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
6459 a `.rmeta` file containing only crate metadata][38571]. This can be
6460 used by tools like the Rust Language Service to perform
6461 metadata-only builds.
6462 * [Levenshtein based typo suggestions now work in most places, while
6463 previously they worked only for fields and sometimes for local
6464 variables][38927]. Together with the overhaul of "no
6465 resolution"/"unexpected resolution" errors (#[38154]) they result in
6466 large and systematic improvement in resolution diagnostics.
6467 * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
6469 * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
6470 * [`rustc` no longer attempts to provide "consider using an explicit
6471 lifetime" suggestions][37057]. They were inaccurate.
6476 * [`VecDeque::truncate`]
6477 * [`VecDeque::resize`]
6478 * [`String::insert_str`]
6479 * [`Duration::checked_add`]
6480 * [`Duration::checked_sub`]
6481 * [`Duration::checked_div`]
6482 * [`Duration::checked_mul`]
6485 * [`SocketAddr::is_ipv4`]
6486 * [`SocketAddr::is_ipv6`]
6487 * [`IpAddr::is_ipv4`]
6488 * [`IpAddr::is_ipv6`]
6490 * [`Vec::dedup_by_key`]
6491 * [`Result::unwrap_or_default`]
6492 * [`<*const T>::wrapping_offset`]
6493 * [`<*mut T>::wrapping_offset`]
6494 * `CommandExt::creation_flags`
6495 * [`File::set_permissions`]
6496 * [`String::split_off`]
6501 * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
6502 their argument by `Borrow` parameter][37761]
6503 * [All public types in std implement `Debug`][38006]
6504 * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
6505 * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
6506 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6508 * [std: Fix partial writes in `LineWriter`][38062]
6509 * [std: Clamp max read/write sizes on Unix][38622]
6510 * [Use more specific panic message for `&str` slicing errors][38066]
6511 * [`TcpListener::set_only_v6` is deprecated][38304]. This
6512 functionality cannot be achieved in std currently.
6513 * [`writeln!`, like `println!`, now accepts a form with no string
6514 or formatting arguments, to just print a newline][38469]
6515 * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
6516 * [Reduce the size of static data in `std_unicode::tables`][38781]
6517 * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
6518 `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
6520 * [`Duration` implements `Sum`][38712]
6521 * [`String` implements `ToSocketAddrs`][39048]
6526 * [The `cargo check` command does a type check of a project without
6527 building it][cargo/3296]
6528 * [crates.io will display CI badges from Travis and AppVeyor, if
6529 specified in Cargo.toml][cargo/3546]
6530 * [crates.io will display categories listed in Cargo.toml][cargo/3301]
6531 * [Compilation profiles accept integer values for `debug`, in addition
6532 to `true` and `false`. These are passed to `rustc` as the value to
6533 `-C debuginfo`][cargo/3534]
6534 * [Implement `cargo --version --verbose`][cargo/3604]
6535 * [All builds now output 'dep-info' build dependencies compatible with
6536 make and ninja][cargo/3557]
6537 * [Build all workspace members with `build --all`][cargo/3511]
6538 * [Document all workspace members with `doc --all`][cargo/3515]
6539 * [Path deps outside workspace are not members][cargo/3443]
6544 * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
6545 the path to the Rust implementation][38589]
6546 * [The `armv7-linux-androideabi` target no longer enables NEON
6547 extensions, per Google's ABI guide][38413]
6548 * [The stock standard library can be compiled for Redox OS][38401]
6549 * [Rust has initial SPARC support][38726]. Tier 3. No builds
6551 * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
6553 * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
6558 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6559 match patterns][38069]
6560 * In this release, references to uninhabited types can not be
6561 pattern-matched. This was accidentally allowed in 1.15.
6562 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6563 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6565 * [Clean up semantics of `self` in an import list][38313]
6566 * Reimplemented lifetime elision. This change was almost entirely compatible
6567 with existing code, but it did close a number of small bugs and loopholes,
6568 as well as being more accepting in some other [cases][41105].
6570 [37057]: https://github.com/rust-lang/rust/pull/37057
6571 [37761]: https://github.com/rust-lang/rust/pull/37761
6572 [38006]: https://github.com/rust-lang/rust/pull/38006
6573 [38051]: https://github.com/rust-lang/rust/pull/38051
6574 [38062]: https://github.com/rust-lang/rust/pull/38062
6575 [38622]: https://github.com/rust-lang/rust/pull/38622
6576 [38066]: https://github.com/rust-lang/rust/pull/38066
6577 [38069]: https://github.com/rust-lang/rust/pull/38069
6578 [38131]: https://github.com/rust-lang/rust/pull/38131
6579 [38154]: https://github.com/rust-lang/rust/pull/38154
6580 [38274]: https://github.com/rust-lang/rust/pull/38274
6581 [38304]: https://github.com/rust-lang/rust/pull/38304
6582 [38313]: https://github.com/rust-lang/rust/pull/38313
6583 [38327]: https://github.com/rust-lang/rust/pull/38327
6584 [38401]: https://github.com/rust-lang/rust/pull/38401
6585 [38413]: https://github.com/rust-lang/rust/pull/38413
6586 [38469]: https://github.com/rust-lang/rust/pull/38469
6587 [38559]: https://github.com/rust-lang/rust/pull/38559
6588 [38571]: https://github.com/rust-lang/rust/pull/38571
6589 [38580]: https://github.com/rust-lang/rust/pull/38580
6590 [38589]: https://github.com/rust-lang/rust/pull/38589
6591 [38670]: https://github.com/rust-lang/rust/pull/38670
6592 [38712]: https://github.com/rust-lang/rust/pull/38712
6593 [38726]: https://github.com/rust-lang/rust/pull/38726
6594 [38781]: https://github.com/rust-lang/rust/pull/38781
6595 [38798]: https://github.com/rust-lang/rust/pull/38798
6596 [38909]: https://github.com/rust-lang/rust/pull/38909
6597 [38920]: https://github.com/rust-lang/rust/pull/38920
6598 [38927]: https://github.com/rust-lang/rust/pull/38927
6599 [39048]: https://github.com/rust-lang/rust/pull/39048
6600 [39282]: https://github.com/rust-lang/rust/pull/39282
6601 [39379]: https://github.com/rust-lang/rust/pull/39379
6602 [41105]: https://github.com/rust-lang/rust/issues/41105
6603 [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6604 [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6605 [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
6606 [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
6607 [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
6608 [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
6609 [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
6610 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
6611 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
6612 [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
6613 [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
6614 [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
6615 [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
6616 [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
6617 [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
6618 [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
6619 [`VecDeque::resize`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
6620 [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
6621 [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
6622 [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
6623 [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
6624 [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
6625 [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
6626 [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
6627 [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
6628 [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
6629 [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
6630 [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
6631 [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
6634 Version 1.15.1 (2017-02-09)
6635 ===========================
6637 * [Fix IntoIter::as_mut_slice's signature][39466]
6638 * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
6640 [39466]: https://github.com/rust-lang/rust/pull/39466
6641 [39523]: https://github.com/rust-lang/rust/pull/39523
6644 Version 1.15.0 (2017-02-02)
6645 ===========================
6650 * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
6651 stable. This allows popular code-generating crates like Serde and Diesel to
6652 work ergonomically. [RFC 1681].
6653 * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
6654 with curly braces][36868]. Part of [RFC 1506].
6655 * [A number of minor changes to name resolution have been activated][37127].
6656 They add up to more consistent semantics, allowing for future evolution of
6657 Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6658 details of what is different. The breaking changes here have been transitioned
6659 through the [`legacy_imports`] lint since 1.14, with no known regressions.
6660 * [In `macro_rules`, `path` fragments can now be parsed as type parameter
6662 * [`?Sized` can be used in `where` clauses][37791]
6663 * [There is now a limit on the size of monomorphized types and it can be
6664 modified with the `#![type_size_limit]` crate attribute, similarly to
6665 the `#![recursion_limit]` attribute][37789]
6670 * [On Windows, the compiler will apply dllimport attributes when linking to
6671 extern functions][37973]. Additional attributes and flags can control which
6672 library kind is linked and its name. [RFC 1717].
6673 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6674 * [The `--test` flag works with procedural macro crates][38107]
6675 * [Fix `extern "aapcs" fn` ABI][37814]
6676 * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
6677 * [The `format!` expander recognizes incorrect `printf` and shell-style
6678 formatting directives and suggests the correct format][37613].
6679 * [Only report one error for all unused imports in an import list][37456]
6681 Compiler Performance
6682 --------------------
6684 * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
6685 * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
6686 * [Don't clone in `UnificationTable::probe`][37848]
6687 * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
6688 * [Use small vectors in type walker][37760]
6689 * [Macro expansion performance was improved][37701]
6690 * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
6691 * [Replace FNV with a faster hash function][37229]
6696 * [`std::iter::Iterator::min_by`]
6697 * [`std::iter::Iterator::max_by`]
6698 * [`std::os::*::fs::FileExt`]
6699 * [`std::sync::atomic::Atomic*::get_mut`]
6700 * [`std::sync::atomic::Atomic*::into_inner`]
6701 * [`std::vec::IntoIter::as_slice`]
6702 * [`std::vec::IntoIter::as_mut_slice`]
6703 * [`std::sync::mpsc::Receiver::try_iter`]
6704 * [`std::os::unix::process::CommandExt::before_exec`]
6705 * [`std::rc::Rc::strong_count`]
6706 * [`std::rc::Rc::weak_count`]
6707 * [`std::sync::Arc::strong_count`]
6708 * [`std::sync::Arc::weak_count`]
6709 * [`std::char::encode_utf8`]
6710 * [`std::char::encode_utf16`]
6711 * [`std::cell::Ref::clone`]
6712 * [`std::io::Take::into_inner`]
6717 * [The standard sorting algorithm has been rewritten for dramatic performance
6718 improvements][38192]. It is a hybrid merge sort, drawing influences from
6719 Timsort. Previously it was a naive merge sort.
6720 * [`Iterator::nth` no longer has a `Sized` bound][38134]
6721 * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
6723 * [`chars().count()` is much faster][37888] and so are [`chars().last()`
6724 and `char_indices().last()`][37882]
6725 * [Fix ARM Objective-C ABI in `std::env::args`][38146]
6726 * [Chinese characters display correctly in `fmt::Debug`][37855]
6727 * [Derive `Default` for `Duration`][37699]
6728 * [Support creation of anonymous pipes on WinXP/2k][37677]
6729 * [`mpsc::RecvTimeoutError` implements `Error`][37527]
6730 * [Don't pass overlapped handles to processes][38835]
6735 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6736 environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6737 should instead check the variable at runtime with `std::env`. That the value
6738 was set at build time was a bug, and incorrect when cross-compiling. This
6739 change is known to cause breakage.
6740 * [Add `--all` flag to `cargo test`][cargo/3221]
6741 * [Compile statically against the MSVC CRT][cargo/3363]
6742 * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
6743 * [Link OpenSSL statically on OSX][cargo/3311]
6744 * [Apply new fingerprinting to build dir outputs][cargo/3310]
6745 * [Test for bad path overrides with summaries][cargo/3336]
6746 * [Require `cargo install --vers` to take a semver version][cargo/3338]
6747 * [Fix retrying crate downloads for network errors][cargo/3348]
6748 * [Implement string lookup for `build.rustflags` config key][cargo/3356]
6749 * [Emit more info on --message-format=json][cargo/3319]
6750 * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
6751 * [Don't ignore errors in workspace manifest][cargo/3409]
6752 * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
6757 * [Test runners (binaries built with `--test`) now support a `--list` argument
6758 that lists the tests it contains][38185]
6759 * [Test runners now support a `--exact` argument that makes the test filter
6760 match exactly, instead of matching only a substring of the test name][38181]
6761 * [rustdoc supports a `--playground-url` flag][37763]
6762 * [rustdoc provides more details about `#[should_panic]` errors][37749]
6767 * [The Rust build system is now written in Rust][37817]. The Makefiles may
6768 continue to be used in this release by passing `--disable-rustbuild` to the
6769 configure script, but they will be deleted soon. Note that the new build
6770 system uses a different on-disk layout that will likely affect any scripts
6772 * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
6774 * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
6775 * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
6781 * [A number of minor changes to name resolution have been activated][37127].
6782 They add up to more consistent semantics, allowing for future evolution of
6783 Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6784 details of what is different. The breaking changes here have been transitioned
6785 through the [`legacy_imports`] lint since 1.14, with no known regressions.
6786 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6787 environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6788 should instead check the variable at runtime with `std::env`. That the value
6789 was set at build time was a bug, and incorrect when cross-compiling. This
6790 change is known to cause breakage.
6791 * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
6792 types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
6793 1.10 and is now an error by default. It will become a hard error in the near
6795 * [The semantics relating modules to file system directories are changing in
6796 minor ways][37602]. This is captured in the new `legacy_directory_ownership`
6797 lint, which is a warning in this release, and will become a hard error in the
6799 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6800 * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
6801 the underlying iterator][37834]
6803 ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
6804 [33685]: https://github.com/rust-lang/rust/issues/33685
6805 [36868]: https://github.com/rust-lang/rust/pull/36868
6806 [37127]: https://github.com/rust-lang/rust/pull/37127
6807 [37229]: https://github.com/rust-lang/rust/pull/37229
6808 [37456]: https://github.com/rust-lang/rust/pull/37456
6809 [37527]: https://github.com/rust-lang/rust/pull/37527
6810 [37602]: https://github.com/rust-lang/rust/pull/37602
6811 [37613]: https://github.com/rust-lang/rust/pull/37613
6812 [37615]: https://github.com/rust-lang/rust/pull/37615
6813 [37636]: https://github.com/rust-lang/rust/pull/37636
6814 [37627]: https://github.com/rust-lang/rust/pull/37627
6815 [37642]: https://github.com/rust-lang/rust/pull/37642
6816 [37677]: https://github.com/rust-lang/rust/pull/37677
6817 [37699]: https://github.com/rust-lang/rust/pull/37699
6818 [37701]: https://github.com/rust-lang/rust/pull/37701
6819 [37705]: https://github.com/rust-lang/rust/pull/37705
6820 [37749]: https://github.com/rust-lang/rust/pull/37749
6821 [37760]: https://github.com/rust-lang/rust/pull/37760
6822 [37763]: https://github.com/rust-lang/rust/pull/37763
6823 [37764]: https://github.com/rust-lang/rust/pull/37764
6824 [37789]: https://github.com/rust-lang/rust/pull/37789
6825 [37791]: https://github.com/rust-lang/rust/pull/37791
6826 [37814]: https://github.com/rust-lang/rust/pull/37814
6827 [37817]: https://github.com/rust-lang/rust/pull/37817
6828 [37834]: https://github.com/rust-lang/rust/pull/37834
6829 [37848]: https://github.com/rust-lang/rust/pull/37848
6830 [37855]: https://github.com/rust-lang/rust/pull/37855
6831 [37882]: https://github.com/rust-lang/rust/pull/37882
6832 [37888]: https://github.com/rust-lang/rust/pull/37888
6833 [37973]: https://github.com/rust-lang/rust/pull/37973
6834 [37979]: https://github.com/rust-lang/rust/pull/37979
6835 [38086]: https://github.com/rust-lang/rust/pull/38086
6836 [38107]: https://github.com/rust-lang/rust/pull/38107
6837 [38117]: https://github.com/rust-lang/rust/pull/38117
6838 [38134]: https://github.com/rust-lang/rust/pull/38134
6839 [38146]: https://github.com/rust-lang/rust/pull/38146
6840 [38181]: https://github.com/rust-lang/rust/pull/38181
6841 [38182]: https://github.com/rust-lang/rust/pull/38182
6842 [38185]: https://github.com/rust-lang/rust/pull/38185
6843 [38192]: https://github.com/rust-lang/rust/pull/38192
6844 [38279]: https://github.com/rust-lang/rust/pull/38279
6845 [38835]: https://github.com/rust-lang/rust/pull/38835
6846 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
6847 [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
6848 [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
6849 [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
6850 [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
6851 [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
6852 [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
6853 [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
6854 [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
6855 [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
6856 [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
6857 [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
6858 [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
6859 [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
6860 [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
6861 [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
6862 [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
6863 [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
6864 [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
6865 [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
6866 [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
6867 [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
6868 [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
6869 [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
6870 [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
6871 [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
6872 [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
6873 [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
6874 [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
6875 [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
6876 [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
6877 [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
6878 [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
6879 [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
6880 [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
6881 [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
6882 [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
6885 Version 1.14.0 (2016-12-22)
6886 ===========================
6891 * [`..` matches multiple tuple fields in enum variants, structs
6892 and tuples][36843]. [RFC 1492].
6893 * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
6894 * [`use *` and `use ::*` both glob-import from the crate root][37367]
6895 * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
6896 dereferencing][36822]
6901 * [Mark enums with non-zero discriminant as non-zero][37224]
6902 * [Lower-case `static mut` names are linted like other
6903 statics and consts][37162]
6904 * [Fix ICE on some macros in const integer positions
6905 (e.g. `[u8; m!()]`)][36819]
6906 * [Improve error message and snippet for "did you mean `x`"][36798]
6907 * [Add a panic-strategy field to the target specification][36794]
6908 * [Include LLVM version in `--version --verbose`][37200]
6910 Compile-time Optimizations
6911 --------------------------
6913 * [Improve macro expansion performance][37569]
6914 * [Shrink `Expr_::ExprInlineAsm`][37445]
6915 * [Replace all uses of SHA-256 with BLAKE2b][37439]
6916 * [Reduce the number of bytes hashed by `IchHasher`][37427]
6917 * [Avoid more allocations when compiling html5ever][37373]
6918 * [Use `SmallVector` in `CombineFields::instantiate`][37322]
6919 * [Avoid some allocations in the macro parser][37318]
6920 * [Use a faster deflate setting][37298]
6921 * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
6922 during interning of slices][37270]
6923 * [Optimize `write_metadata`][37267]
6924 * [Don't process obligation forest cycles when stalled][37231]
6925 * [Avoid many `CrateConfig` clones][37161]
6926 * [Optimize `Substs::super_fold_with`][37108]
6927 * [Optimize `ObligationForest`'s `NodeState` handling][36993]
6928 * [Speed up `plug_leaks`][36917]
6933 * [`println!()`, with no arguments, prints newline][36825].
6934 Previously, an empty string was required to achieve the same.
6935 * [`Wrapping` impls standard binary and unary operators, as well as
6936 the `Sum` and `Product` iterators][37356]
6937 * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
6939 * [Improve `fold` performance for `chain`, `cloned`, `map`, and
6940 `VecDeque` iterators][37315]
6941 * [Improve `SipHasher` performance on small values][37312]
6942 * [Add Iterator trait TrustedLen to enable better FromIterator /
6944 * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
6945 * [`ReadDir` implements `Debug`][37221]
6946 * [Implement `RefUnwindSafe` for atomic types][37178]
6947 * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
6948 * [Avoid allocations in `Decoder::read_str`][37064]
6949 * [`io::Error` implements `From<io::ErrorKind>`][37037]
6950 * [Impl `Debug` for raw pointers to unsized data][36880]
6951 * [Don't reuse `HashMap` random seeds][37470]
6952 * [The internal memory layout of `HashMap` is more cache-friendly, for
6953 significant improvements in some operations][36692]
6954 * [`HashMap` uses less memory on 32-bit architectures][36595]
6955 * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
6960 * [Expose rustc cfg values to build scripts][cargo/3243]
6961 * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
6962 * [Fix passing --features when testing multiple packages][cargo/3280]
6963 * [Use a single profile set per workspace][cargo/3249]
6964 * [Load `replace` sections from lock files][cargo/3220]
6965 * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
6970 * [rustup is the recommended Rust installation method][1.14rustup]
6971 * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
6972 S390x. These are [tier 2] platforms and may have major defects. Follow the
6973 instructions on the website to install, or add the targets to an existing
6974 installation with `rustup target add`. The new target triples are:
6975 - `mips-unknown-linux-gnu`
6976 - `mipsel-unknown-linux-gnu`
6977 - `mips64-unknown-linux-gnuabi64`
6978 - `mips64el-unknown-linux-gnuabi64 `
6979 - `powerpc-unknown-linux-gnu`
6980 - `powerpc64-unknown-linux-gnu`
6981 - `powerpc64le-unknown-linux-gnu`
6982 - `s390x-unknown-linux-gnu `
6983 * This release includes target (std) builds for ARM Linux running MUSL
6984 libc. These are [tier 2] platforms and may have major defects. Add the
6985 following triples to an existing rustup installation with `rustup target add`:
6986 - `arm-unknown-linux-musleabi`
6987 - `arm-unknown-linux-musleabihf`
6988 - `armv7-unknown-linux-musleabihf`
6989 * This release includes [experimental support for WebAssembly][1.14wasm], via
6990 the `wasm32-unknown-emscripten` target. This target is known to have major
6991 defects. Please test, report, and fix.
6992 * rustup no longer installs documentation by default. Run `rustup
6993 component add rust-docs` to install.
6994 * [Fix line stepping in debugger][37310]
6995 * [Enable line number debuginfo in releases][37280]
7000 * [Disable jemalloc on aarch64/powerpc/mips][37392]
7001 * [Add support for Fuchsia OS][37313]
7002 * [Detect local-rebuild by only MAJOR.MINOR version][37273]
7007 * [A number of forward-compatibility lints used by the compiler
7008 to gradually introduce language changes have been converted
7009 to deny by default][36894]:
7010 - ["use of inaccessible extern crate erroneously allowed"][36886]
7011 - ["type parameter default erroneously allowed in invalid location"][36887]
7012 - ["detects super or self keywords at the beginning of global path"][36888]
7013 - ["two overlapping inherent impls define an item with the same name
7014 were erroneously allowed"][36889]
7015 - ["floating-point constants cannot be used in patterns"][36890]
7016 - ["constants of struct or enum type can only be used in a pattern if
7017 the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
7018 - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
7019 * [Prohibit patterns in trait methods without bodies][37378]
7020 * [The atomic `Ordering` enum may not be matched exhaustively][37351]
7021 * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
7022 * [The `$crate` macro variable is accepted in fewer locations][37213]
7023 * [Impls specifying extra region requirements beyond the trait
7024 they implement are rejected][37167]
7025 * [Enums may not be unsized][37111]. Unsized enums are intended to
7026 work but never have. For now they are forbidden.
7027 * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
7029 [tier 2]: https://forge.rust-lang.org/platform-support.html
7030 [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
7031 [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
7032 [36430]: https://github.com/rust-lang/rust/pull/36430
7033 [36595]: https://github.com/rust-lang/rust/pull/36595
7034 [36692]: https://github.com/rust-lang/rust/pull/36692
7035 [36767]: https://github.com/rust-lang/rust/pull/36767
7036 [36794]: https://github.com/rust-lang/rust/pull/36794
7037 [36798]: https://github.com/rust-lang/rust/pull/36798
7038 [36819]: https://github.com/rust-lang/rust/pull/36819
7039 [36822]: https://github.com/rust-lang/rust/pull/36822
7040 [36825]: https://github.com/rust-lang/rust/pull/36825
7041 [36843]: https://github.com/rust-lang/rust/pull/36843
7042 [36880]: https://github.com/rust-lang/rust/pull/36880
7043 [36886]: https://github.com/rust-lang/rust/issues/36886
7044 [36887]: https://github.com/rust-lang/rust/issues/36887
7045 [36888]: https://github.com/rust-lang/rust/issues/36888
7046 [36889]: https://github.com/rust-lang/rust/issues/36889
7047 [36890]: https://github.com/rust-lang/rust/issues/36890
7048 [36891]: https://github.com/rust-lang/rust/issues/36891
7049 [36892]: https://github.com/rust-lang/rust/issues/36892
7050 [36894]: https://github.com/rust-lang/rust/pull/36894
7051 [36917]: https://github.com/rust-lang/rust/pull/36917
7052 [36993]: https://github.com/rust-lang/rust/pull/36993
7053 [37037]: https://github.com/rust-lang/rust/pull/37037
7054 [37064]: https://github.com/rust-lang/rust/pull/37064
7055 [37094]: https://github.com/rust-lang/rust/pull/37094
7056 [37108]: https://github.com/rust-lang/rust/pull/37108
7057 [37111]: https://github.com/rust-lang/rust/pull/37111
7058 [37161]: https://github.com/rust-lang/rust/pull/37161
7059 [37162]: https://github.com/rust-lang/rust/pull/37162
7060 [37167]: https://github.com/rust-lang/rust/pull/37167
7061 [37178]: https://github.com/rust-lang/rust/pull/37178
7062 [37200]: https://github.com/rust-lang/rust/pull/37200
7063 [37213]: https://github.com/rust-lang/rust/pull/37213
7064 [37221]: https://github.com/rust-lang/rust/pull/37221
7065 [37224]: https://github.com/rust-lang/rust/pull/37224
7066 [37230]: https://github.com/rust-lang/rust/pull/37230
7067 [37231]: https://github.com/rust-lang/rust/pull/37231
7068 [37247]: https://github.com/rust-lang/rust/pull/37247
7069 [37267]: https://github.com/rust-lang/rust/pull/37267
7070 [37270]: https://github.com/rust-lang/rust/pull/37270
7071 [37273]: https://github.com/rust-lang/rust/pull/37273
7072 [37280]: https://github.com/rust-lang/rust/pull/37280
7073 [37298]: https://github.com/rust-lang/rust/pull/37298
7074 [37306]: https://github.com/rust-lang/rust/pull/37306
7075 [37310]: https://github.com/rust-lang/rust/pull/37310
7076 [37312]: https://github.com/rust-lang/rust/pull/37312
7077 [37313]: https://github.com/rust-lang/rust/pull/37313
7078 [37315]: https://github.com/rust-lang/rust/pull/37315
7079 [37318]: https://github.com/rust-lang/rust/pull/37318
7080 [37322]: https://github.com/rust-lang/rust/pull/37322
7081 [37326]: https://github.com/rust-lang/rust/pull/37326
7082 [37351]: https://github.com/rust-lang/rust/pull/37351
7083 [37356]: https://github.com/rust-lang/rust/pull/37356
7084 [37367]: https://github.com/rust-lang/rust/pull/37367
7085 [37373]: https://github.com/rust-lang/rust/pull/37373
7086 [37378]: https://github.com/rust-lang/rust/pull/37378
7087 [37389]: https://github.com/rust-lang/rust/pull/37389
7088 [37392]: https://github.com/rust-lang/rust/pull/37392
7089 [37427]: https://github.com/rust-lang/rust/pull/37427
7090 [37439]: https://github.com/rust-lang/rust/pull/37439
7091 [37445]: https://github.com/rust-lang/rust/pull/37445
7092 [37470]: https://github.com/rust-lang/rust/pull/37470
7093 [37569]: https://github.com/rust-lang/rust/pull/37569
7094 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
7095 [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
7096 [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
7097 [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
7098 [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
7099 [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
7100 [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
7103 Version 1.13.0 (2016-11-10)
7104 ===========================
7109 * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
7110 errors, like the `try!` macro, described in [RFC 0243].
7111 * [Stabilize macros in type position][36014]. Described in [RFC 873].
7112 * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
7113 * [Fix `#[derive]` for empty tuple structs/variants][35728]
7114 * [Fix lifetime rules for 'if' conditions][36029]
7115 * [Avoid loading and parsing unconfigured non-inline modules][36482]
7120 * [Add the `-C link-arg` argument][36574]
7121 * [Remove the old AST-based backend from rustc_trans][35764]
7122 * [Don't enable NEON by default on armv7 Linux][35814]
7123 * [Fix debug line number info for macro expansions][35238]
7124 * [Do not emit "class method" debuginfo for types that are not
7125 DICompositeType][36008]
7126 * [Warn about multiple conflicting #[repr] hints][34623]
7127 * [When sizing DST, don't double-count nested struct prefixes][36351]
7128 * [Default RUST_MIN_STACK to 16MiB for now][36505]
7129 * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
7130 * [Reject macros with empty repetitions to avoid infinite loop][36721]
7131 * [Expand macros without recursing to avoid stack overflows][36214]
7136 * [Replace macro backtraces with labeled local uses][35702]
7137 * [Improve error message for misplaced doc comments][33922]
7138 * [Buffer unix and lock windows to prevent message interleaving][35975]
7139 * [Update lifetime errors to specifically note temporaries][36171]
7140 * [Special case a few colors for Windows][36178]
7141 * [Suggest `use self` when such an import resolves][36289]
7142 * [Be more specific when type parameter shadows primitive type][36338]
7143 * Many minor improvements
7145 Compile-time Optimizations
7146 --------------------------
7148 * [Compute and cache HIR hashes at beginning][35854]
7149 * [Don't hash types in loan paths][36004]
7150 * [Cache projections in trans][35761]
7151 * [Optimize the parser's last token handling][36527]
7152 * [Only instantiate #[inline] functions in codegen units referencing
7153 them][36524]. This leads to big improvements in cases where crates export
7154 define many inline functions without using them directly.
7155 * [Lazily allocate TypedArena's first chunk][36592]
7156 * [Don't allocate during default HashSet creation][36734]
7163 * [`overflowing_abs`]
7164 * [`RefCell::try_borrow`]
7165 * [`RefCell::try_borrow_mut`]
7170 * [Add `assert_ne!` and `debug_assert_ne!`][35074]
7171 * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
7173 * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
7174 * [Implement `Debug` for `std::vec::IntoIter`][35707]
7175 * [`CString`: avoid excessive growth just to 0-terminate][35871]
7176 * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
7177 * [Use arc4rand on FreeBSD][35884]
7178 * [memrchr: Correct aligned offset computation][35969]
7179 * [Improve Demangling of Rust Symbols][36059]
7180 * [Use monotonic time in condition variables][35048]
7181 * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
7182 * [Implement conversion traits for `char`][35755]
7183 * [Fix illegal instruction caused by overflow in channel cloning][36104]
7184 * [Zero first byte of CString on drop][36264]
7185 * [Inherit overflow checks for sum and product][36372]
7186 * [Add missing Eq implementations][36423]
7187 * [Implement `Debug` for `DirEntry`][36631]
7188 * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
7190 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7191 * [Implement more traits for `std::io::ErrorKind`][35911]
7192 * [Optimize BinaryHeap bounds checking][36072]
7193 * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
7194 `extend_with_element`][36355]
7195 * [Fix overflow checking in unsigned pow()][34942]
7200 * This release includes security fixes to both curl and OpenSSL.
7201 * [Fix transitive doctests when panic=abort][cargo/3021]
7202 * [Add --all-features flag to cargo][cargo/3038]
7203 * [Reject path-based dependencies in `cargo package`][cargo/3060]
7204 * [Don't parse the home directory more than once][cargo/3078]
7205 * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
7206 * [Update OpenSSL to 1.0.2j][cargo/3121]
7207 * [Add license and license_file to cargo metadata output][cargo/3110]
7208 * [Make crates-io registry URL optional in config; ignore all changes to
7209 source.crates-io][cargo/3089]
7210 * [Don't download dependencies from other platforms][cargo/3123]
7211 * [Build transitive dev-dependencies when needed][cargo/3125]
7212 * [Add support for per-target rustflags in .cargo/config][cargo/3157]
7213 * [Avoid updating registry when adding existing deps][cargo/3144]
7214 * [Warn about path overrides that won't work][cargo/3136]
7215 * [Use workspaces during `cargo install`][cargo/3146]
7216 * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
7217 * [Add --message-format flag][cargo/3000]
7218 * [Pass target environment for rustdoc][cargo/3205]
7219 * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
7220 * [Update curl and curl-sys][cargo/3241]
7221 * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
7226 * [rustdoc: Add the `--sysroot` argument][36586]
7227 * [rustdoc: Fix a couple of issues with the search results][35655]
7228 * [rustdoc: remove the `!` from macro URLs and titles][35234]
7229 * [gdb: Fix pretty-printing special-cased Rust types][35585]
7230 * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
7235 * [Remove unmaintained style guide][35124]
7236 * [Add s390x support][36369]
7237 * [Initial work at Haiku OS support][36727]
7238 * [Add mips-uclibc targets][35734]
7239 * [Crate-ify compiler-rt into compiler-builtins][35021]
7240 * [Add rustc version info (git hash + date) to dist tarball][36213]
7241 * Many documentation improvements
7246 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7247 * [Deny (by default) transmuting from fn item types to pointer-sized
7248 types][34923]. Continuing the long transition to zero-sized fn items,
7250 * [Fix `#[derive]` for empty tuple structs/variants][35728].
7252 * [Issue deprecation warnings for safe accesses to extern statics][36173]
7253 * [Fix lifetime rules for 'if' conditions][36029].
7254 * [Inherit overflow checks for sum and product][36372].
7255 * [Forbid user-defined macros named "macro_rules"][36730].
7257 [33922]: https://github.com/rust-lang/rust/pull/33922
7258 [34623]: https://github.com/rust-lang/rust/pull/34623
7259 [34923]: https://github.com/rust-lang/rust/pull/34923
7260 [34942]: https://github.com/rust-lang/rust/pull/34942
7261 [35021]: https://github.com/rust-lang/rust/pull/35021
7262 [35048]: https://github.com/rust-lang/rust/pull/35048
7263 [35074]: https://github.com/rust-lang/rust/pull/35074
7264 [35124]: https://github.com/rust-lang/rust/pull/35124
7265 [35234]: https://github.com/rust-lang/rust/pull/35234
7266 [35238]: https://github.com/rust-lang/rust/pull/35238
7267 [35354]: https://github.com/rust-lang/rust/pull/35354
7268 [35559]: https://github.com/rust-lang/rust/pull/35559
7269 [35585]: https://github.com/rust-lang/rust/pull/35585
7270 [35627]: https://github.com/rust-lang/rust/pull/35627
7271 [35655]: https://github.com/rust-lang/rust/pull/35655
7272 [35702]: https://github.com/rust-lang/rust/pull/35702
7273 [35707]: https://github.com/rust-lang/rust/pull/35707
7274 [35728]: https://github.com/rust-lang/rust/pull/35728
7275 [35734]: https://github.com/rust-lang/rust/pull/35734
7276 [35755]: https://github.com/rust-lang/rust/pull/35755
7277 [35761]: https://github.com/rust-lang/rust/pull/35761
7278 [35764]: https://github.com/rust-lang/rust/pull/35764
7279 [35814]: https://github.com/rust-lang/rust/pull/35814
7280 [35854]: https://github.com/rust-lang/rust/pull/35854
7281 [35871]: https://github.com/rust-lang/rust/pull/35871
7282 [35884]: https://github.com/rust-lang/rust/pull/35884
7283 [35911]: https://github.com/rust-lang/rust/pull/35911
7284 [35969]: https://github.com/rust-lang/rust/pull/35969
7285 [35975]: https://github.com/rust-lang/rust/pull/35975
7286 [36004]: https://github.com/rust-lang/rust/pull/36004
7287 [36008]: https://github.com/rust-lang/rust/pull/36008
7288 [36014]: https://github.com/rust-lang/rust/pull/36014
7289 [36029]: https://github.com/rust-lang/rust/pull/36029
7290 [36059]: https://github.com/rust-lang/rust/pull/36059
7291 [36072]: https://github.com/rust-lang/rust/pull/36072
7292 [36101]: https://github.com/rust-lang/rust/pull/36101
7293 [36104]: https://github.com/rust-lang/rust/pull/36104
7294 [36171]: https://github.com/rust-lang/rust/pull/36171
7295 [36173]: https://github.com/rust-lang/rust/pull/36173
7296 [36178]: https://github.com/rust-lang/rust/pull/36178
7297 [36213]: https://github.com/rust-lang/rust/pull/36213
7298 [36214]: https://github.com/rust-lang/rust/pull/36214
7299 [36264]: https://github.com/rust-lang/rust/pull/36264
7300 [36266]: https://github.com/rust-lang/rust/pull/36266
7301 [36289]: https://github.com/rust-lang/rust/pull/36289
7302 [36338]: https://github.com/rust-lang/rust/pull/36338
7303 [36351]: https://github.com/rust-lang/rust/pull/36351
7304 [36355]: https://github.com/rust-lang/rust/pull/36355
7305 [36369]: https://github.com/rust-lang/rust/pull/36369
7306 [36372]: https://github.com/rust-lang/rust/pull/36372
7307 [36423]: https://github.com/rust-lang/rust/pull/36423
7308 [36482]: https://github.com/rust-lang/rust/pull/36482
7309 [36505]: https://github.com/rust-lang/rust/pull/36505
7310 [36524]: https://github.com/rust-lang/rust/pull/36524
7311 [36527]: https://github.com/rust-lang/rust/pull/36527
7312 [36551]: https://github.com/rust-lang/rust/pull/36551
7313 [36574]: https://github.com/rust-lang/rust/pull/36574
7314 [36586]: https://github.com/rust-lang/rust/pull/36586
7315 [36592]: https://github.com/rust-lang/rust/pull/36592
7316 [36631]: https://github.com/rust-lang/rust/pull/36631
7317 [36721]: https://github.com/rust-lang/rust/pull/36721
7318 [36727]: https://github.com/rust-lang/rust/pull/36727
7319 [36730]: https://github.com/rust-lang/rust/pull/36730
7320 [36734]: https://github.com/rust-lang/rust/pull/36734
7321 [36754]: https://github.com/rust-lang/rust/pull/36754
7322 [36995]: https://github.com/rust-lang/rust/pull/36995
7323 [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
7324 [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
7325 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
7326 [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
7327 [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
7328 [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
7329 [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
7330 [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
7331 [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
7332 [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
7333 [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
7334 [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
7335 [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
7336 [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
7337 [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
7338 [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
7339 [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
7340 [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
7341 [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
7342 [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
7343 [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
7344 [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
7345 [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
7346 [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
7347 [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
7348 [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
7349 [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
7350 [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
7351 [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
7352 [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
7353 [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
7354 [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
7357 Version 1.12.1 (2016-10-20)
7358 ===========================
7363 * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
7364 * [Confusion with double negation and booleans][36856]
7365 * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
7366 * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
7367 * [1.12.0: High memory usage when linking in release mode with debug info][36926]
7368 * [Corrupted memory after updated to 1.12][36936]
7369 * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
7370 * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
7371 * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
7373 [36381]: https://github.com/rust-lang/rust/issues/36381
7374 [36856]: https://github.com/rust-lang/rust/issues/36856
7375 [36875]: https://github.com/rust-lang/rust/issues/36875
7376 [36924]: https://github.com/rust-lang/rust/issues/36924
7377 [36926]: https://github.com/rust-lang/rust/issues/36926
7378 [36936]: https://github.com/rust-lang/rust/issues/36936
7379 [37026]: https://github.com/rust-lang/rust/issues/37026
7380 [37112]: https://github.com/rust-lang/rust/issues/37112
7381 [37153]: https://github.com/rust-lang/rust/issues/37153
7384 Version 1.12.0 (2016-09-29)
7385 ===========================
7390 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7391 This translation pass is far simpler than the previous AST->LLVM pass, and
7392 creates opportunities to perform new optimizations directly on the MIR. It
7393 was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7394 * [`rustc` presents a new, more readable error format, along with
7395 machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7396 Most common editors supporting Rust have been updated to work with it. It was
7397 previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7402 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7403 This translation pass is far simpler than the previous AST->LLVM pass, and
7404 creates opportunities to perform new optimizations directly on the MIR. It
7405 was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7406 * [Print the Rust target name, not the LLVM target name, with
7407 `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
7408 * [The computation of `TypeId` is correct in some cases where it was previously
7409 producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
7410 * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
7411 * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
7412 `--print relocation-models`, and `--print code-models` print the available
7413 options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
7414 `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
7415 * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
7416 `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
7417 These targets produce statically-linked binaries. There are no binary release
7423 * [`rustc` presents a new, more readable error format, along with
7424 machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7425 Most common editors supporting Rust have been updated to work with it. It was
7426 previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7427 * [In error descriptions, references are now described in plain English,
7428 instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
7429 * [In error type descriptions, unknown numeric types are named `{integer}` or
7430 `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
7431 * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
7436 * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
7437 * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
7438 * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
7439 useful](https://github.com/rust-lang/rust/pull/34908)
7440 * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
7441 inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
7442 * [Semicolons are properly required as statement delimiters inside
7443 `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
7444 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
7449 * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
7450 * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
7451 * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
7452 * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
7453 * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
7454 * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
7455 * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
7456 * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
7457 * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
7458 * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
7459 Both on Unix and Windows.
7460 * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
7461 * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
7462 * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
7463 * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
7464 * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
7465 * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
7466 * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
7467 * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
7472 * [The `format!` macro and friends now allow a single argument to be formatted
7473 in multiple styles](https://github.com/rust-lang/rust/pull/33642)
7474 * [The lifetime bounds on `[T]::binary_search_by` and
7475 `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
7476 * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
7477 * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
7478 * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
7479 * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
7480 * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
7481 * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
7482 * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
7483 * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
7484 implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
7485 * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
7486 implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
7487 * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
7488 * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
7489 `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
7490 * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
7491 * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
7492 * [`mpsc::sync_channel` `Receiver`s return any available message before
7493 reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
7494 * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
7495 * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
7500 * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
7501 * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
7502 * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
7503 * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
7504 * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
7505 * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
7506 * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
7507 * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
7508 * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
7509 * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
7510 * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
7511 * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
7512 * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
7513 * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
7514 * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
7515 * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
7520 * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
7521 * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
7526 * [Test binaries now support a `--test-threads` argument to specify the number
7527 of threads used to run tests, and which acts the same as the
7528 `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
7529 * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
7530 * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
7531 * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7532 * [Rust releases now come with source packages that can be installed by rustup
7533 via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
7534 The resulting source code can be used by tools and IDES, located in the
7535 sysroot under `lib/rustlib/src`.
7540 * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
7541 * Many minor improvements to the documentation.
7542 * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
7547 * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
7548 with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
7549 * [When formatting strings, if "precision" is specified, the "fill",
7550 "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
7551 * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
7554 Version 1.11.0 (2016-08-18)
7555 ===========================
7560 * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
7561 * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
7562 * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
7563 * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
7568 * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
7569 * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
7570 * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
7571 * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
7572 * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
7573 * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
7574 (in libcore - previously stabilized in libstd)
7575 * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
7576 (in libcore - previously stabilized in libstd)
7577 * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
7578 (in libcore - previously stabilized in libstd)
7579 * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
7580 (in libcore - previously stabilized in libstd)
7581 * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7582 * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7583 * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
7584 * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
7589 * [The `thread_local!` macro supports multiple definitions in a single
7590 invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
7591 * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
7592 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
7593 `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
7594 * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
7595 * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
7596 * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
7597 * [The main thread is now called "main" instead of "<main>"](https://github.com/rust-lang/rust/pull/33803)
7602 * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
7603 * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
7604 * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
7605 * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
7606 * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
7607 and `-vv` prints warnings for all crates.
7608 * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
7609 * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
7610 This provides room for expansion by arbitrary tools.
7611 * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
7612 * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
7613 * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
7614 * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
7615 * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
7616 * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
7617 * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
7622 * [Caching projections speeds up type check dramatically for some
7623 workloads](https://github.com/rust-lang/rust/pull/33816)
7624 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
7625 This hasher is faster, but is believed to provide sufficient
7626 protection from collision attacks.
7627 * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
7632 * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
7633 * [Fix inlined renamed re-exports in import lists](https://github.com/rust-lang/rust/pull/34479)
7634 * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
7635 * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
7636 * [Fix redirect pages for renamed re-exports](https://github.com/rust-lang/rust/pull/34245)
7641 * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
7642 * [When emitting debug info, rustc emits frame pointers for closures,
7643 shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
7644 * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7645 * Many more errors have been given error codes and extended
7647 * API documentation continues to be improved, with many new examples
7652 * [rustc no longer hangs when dependencies recursively re-export
7653 submodules](https://github.com/rust-lang/rust/pull/34542)
7654 * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
7655 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
7656 rewritten](https://github.com/rust-lang/rust/pull/33895)
7657 * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
7658 No targets use this yet, but it works toward AVR support.
7663 * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
7664 * [The new follow-set rules that place restrictions on `macro_rules!`
7665 in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
7666 This was an [amendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
7667 and has been a warning since 1.10.
7668 * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
7669 This causes breakage in some corner cases.
7672 Version 1.10.0 (2016-07-07)
7673 ===========================
7678 * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
7679 [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
7680 * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
7681 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
7682 * [`panic!` can be converted to a runtime abort with the
7683 `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
7684 [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7685 * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
7686 cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
7687 [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md).
7688 Note that Cargo does not yet directly support cdylibs.
7693 * `os::windows::fs::OpenOptionsExt::access_mode`
7694 * `os::windows::fs::OpenOptionsExt::share_mode`
7695 * `os::windows::fs::OpenOptionsExt::custom_flags`
7696 * `os::windows::fs::OpenOptionsExt::attributes`
7697 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
7698 * `os::unix::fs::OpenOptionsExt::custom_flags`
7699 * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
7700 * `Default for sync::Weak`
7701 * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
7702 * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
7703 * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
7704 * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
7705 * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
7706 * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
7707 * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
7708 * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
7709 * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
7710 * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
7711 * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
7712 * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
7713 * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
7714 * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
7715 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
7716 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
7717 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
7718 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
7719 * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
7720 * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
7721 * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
7722 * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
7723 * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
7724 * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
7725 * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
7726 * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7727 * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7728 * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7729 * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7730 * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
7731 * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
7732 * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
7733 * Read/Write/RawFd impls for `UnixStream`
7734 * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
7735 * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
7736 * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
7737 * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
7738 * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
7739 * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
7740 * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
7741 * RawFd impls for `UnixListener`
7742 * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
7743 * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
7744 * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
7745 * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
7746 * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
7747 * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
7748 * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
7749 * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
7750 * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
7751 * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
7752 * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
7753 * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
7754 * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
7755 * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
7756 * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
7757 * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
7758 * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
7759 * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
7760 * RawFd impls for `UnixDatagram`
7761 * `{BTree,Hash}Map::values_mut`
7762 * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/std/primitive.slice.html#method.binary_search_by_key)
7767 * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
7768 The semantics of this minor method are subtle and probably not what
7770 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
7771 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
7772 will fall back to `/dev/urandom` temporarily to avoid blocking
7773 during early boot](https://github.com/rust-lang/rust/pull/33086).
7774 * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
7775 * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
7776 * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
7777 * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
7778 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
7779 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
7780 `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
7784 * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
7785 This controls the runtime behavior of the `panic!` macro
7786 and can be either "unwind" (the default), or "abort".
7787 [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7788 * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
7789 * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
7790 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
7791 variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
7792 * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
7793 * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
7794 * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
7795 By default they are retried twice, which can be customized with the
7796 `net.retry` value in `.cargo/config`.
7797 * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
7798 * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
7799 * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
7800 * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
7801 Makes it possible to install multiple crates in parallel.
7802 * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
7803 * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
7804 * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
7805 * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
7806 * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
7807 * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
7812 * [rustc memory usage was reduced by refactoring the context used for
7813 type checking](https://github.com/rust-lang/rust/pull/33425).
7814 * [Speed up creation of `HashMap`s by caching the random keys used
7815 to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
7816 * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
7817 * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
7818 * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
7819 10x faster than the previous lookup tables.
7820 * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
7825 * Many incremental improvements to documentation and rustdoc.
7826 * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
7827 * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
7828 * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
7829 * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
7830 * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
7831 * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
7832 * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
7837 * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
7838 * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
7839 * [`std` no longer prints backtraces on platforms where the running
7840 module must be loaded with `env::current_exe`, which can't be relied
7841 on](https://github.com/rust-lang/rust/pull/33554).
7842 * This release includes std binaries for the i586-unknown-linux-gnu,
7843 i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
7844 i586 target is for old x86 hardware without SSE2, and the armv7
7845 target is for Android running on modern ARM architectures.
7846 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
7847 Unix platforms](https://github.com/rust-lang/rust/pull/32835).
7848 * [On Unix the runtime aborts by calling `libc::abort` instead of
7849 generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
7850 * [Rust is now bootstrapped from the previous release of Rust,
7851 instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
7856 * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
7857 * [`target_env` for Linux ARM targets is just `gnu`, not
7858 `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
7859 * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
7860 * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
7861 * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
7862 Affects how macros are parsed.
7863 * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
7864 * [Feature-gated attributes on macro-generated macro invocations are
7865 now rejected](https://github.com/rust-lang/rust/pull/32791).
7866 * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
7867 This caused some minor changes to type inference.
7870 Version 1.9.0 (2016-05-26)
7871 ==========================
7876 * The `#[deprecated]` attribute when applied to an API will generate
7877 warnings when used. The warnings may be suppressed with
7878 `#[allow(deprecated)]`. [RFC 1270].
7879 * [`fn` item types are zero sized, and each `fn` names a unique
7880 type][1.9fn]. This will break code that transmutes `fn`s, so calling
7881 `transmute` on a `fn` type will generate a warning for a few cycles,
7882 then will be converted to an error.
7883 * [Field and method resolution understand visibility, so private
7884 fields and methods cannot prevent the proper use of public fields
7885 and methods][1.9fv].
7886 * [The parser considers unicode codepoints in the
7887 `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
7893 * [`std::panic::catch_unwind`] (renamed from `recover`)
7894 * [`std::panic::resume_unwind`] (renamed from `propagate`)
7895 * [`std::panic::AssertUnwindSafe`] (renamed from `AssertRecoverSafe`)
7896 * [`std::panic::UnwindSafe`] (renamed from `RecoverSafe`)
7897 * [`str::is_char_boundary`]
7898 * [`<*const T>::as_ref`]
7899 * [`<*mut T>::as_ref`]
7900 * [`<*mut T>::as_mut`]
7901 * [`AsciiExt::make_ascii_uppercase`]
7902 * [`AsciiExt::make_ascii_lowercase`]
7903 * [`char::decode_utf16`]
7904 * [`char::DecodeUtf16`]
7905 * [`char::DecodeUtf16Error`]
7906 * [`char::DecodeUtf16Error::unpaired_surrogate`]
7907 * [`BTreeSet::take`]
7908 * [`BTreeSet::replace`]
7911 * [`HashSet::replace`]
7913 * [`OsString::with_capacity`]
7914 * [`OsString::clear`]
7915 * [`OsString::capacity`]
7916 * [`OsString::reserve`]
7917 * [`OsString::reserve_exact`]
7918 * [`OsStr::is_empty`]
7920 * [`std::os::unix::thread`]
7923 * [`JoinHandleExt::as_pthread_t`]
7924 * [`JoinHandleExt::into_pthread_t`]
7925 * [`HashSet::hasher`]
7926 * [`HashMap::hasher`]
7927 * [`CommandExt::exec`]
7928 * [`File::try_clone`]
7929 * [`SocketAddr::set_ip`]
7930 * [`SocketAddr::set_port`]
7931 * [`SocketAddrV4::set_ip`]
7932 * [`SocketAddrV4::set_port`]
7933 * [`SocketAddrV6::set_ip`]
7934 * [`SocketAddrV6::set_port`]
7935 * [`SocketAddrV6::set_flowinfo`]
7936 * [`SocketAddrV6::set_scope_id`]
7937 * [`slice::copy_from_slice`]
7938 * [`ptr::read_volatile`]
7939 * [`ptr::write_volatile`]
7940 * [`OpenOptions::create_new`]
7941 * [`TcpStream::set_nodelay`]
7942 * [`TcpStream::nodelay`]
7943 * [`TcpStream::set_ttl`]
7944 * [`TcpStream::ttl`]
7945 * [`TcpStream::set_only_v6`]
7946 * [`TcpStream::only_v6`]
7947 * [`TcpStream::take_error`]
7948 * [`TcpStream::set_nonblocking`]
7949 * [`TcpListener::set_ttl`]
7950 * [`TcpListener::ttl`]
7951 * [`TcpListener::set_only_v6`]
7952 * [`TcpListener::only_v6`]
7953 * [`TcpListener::take_error`]
7954 * [`TcpListener::set_nonblocking`]
7955 * [`UdpSocket::set_broadcast`]
7956 * [`UdpSocket::broadcast`]
7957 * [`UdpSocket::set_multicast_loop_v4`]
7958 * [`UdpSocket::multicast_loop_v4`]
7959 * [`UdpSocket::set_multicast_ttl_v4`]
7960 * [`UdpSocket::multicast_ttl_v4`]
7961 * [`UdpSocket::set_multicast_loop_v6`]
7962 * [`UdpSocket::multicast_loop_v6`]
7963 * [`UdpSocket::set_multicast_ttl_v6`]
7964 * [`UdpSocket::multicast_ttl_v6`]
7965 * [`UdpSocket::set_ttl`]
7966 * [`UdpSocket::ttl`]
7967 * [`UdpSocket::set_only_v6`]
7968 * [`UdpSocket::only_v6`]
7969 * [`UdpSocket::join_multicast_v4`]
7970 * [`UdpSocket::join_multicast_v6`]
7971 * [`UdpSocket::leave_multicast_v4`]
7972 * [`UdpSocket::leave_multicast_v6`]
7973 * [`UdpSocket::take_error`]
7974 * [`UdpSocket::connect`]
7975 * [`UdpSocket::send`]
7976 * [`UdpSocket::recv`]
7977 * [`UdpSocket::set_nonblocking`]
7982 * [`std::sync::Once` is poisoned if its initialization function
7984 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
7985 * [Most types implement `fmt::Debug`][1.9db].
7986 * [The default buffer size used by `BufReader` and `BufWriter` was
7987 reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
7988 used by other languages.
7989 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
7990 `Duration` additionally implements `*=` and `/=`][1.9ta].
7991 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
7992 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
7993 * [`Chain` implements `BufRead`][1.9ch].
7994 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
7999 * [Cargo can now run concurrently][1.9cc].
8000 * [Top-level overrides allow specific revisions of crates to be
8001 overridden through the entire crate graph][1.9ct]. This is intended
8002 to make upgrades easier for large projects, by allowing crates to be
8003 forked temporarily until they've been upgraded and republished.
8004 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
8005 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
8006 on the commandline][1.9cf]. `rustc` arguments can also be specified
8007 in the `build.rustflags` configuration key.
8012 * [The time complexity of comparing variables for equivalence during type
8013 unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
8014 to major compilation time improvement in some scenarios.
8015 * [`ToString` is specialized for `str`, giving it the same performance
8016 as `to_owned`][1.9ts].
8017 * [Spawning processes with `Command::output` no longer creates extra
8019 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
8020 for C-like enums][1.9cl].
8025 * [Passing the `--quiet` flag to a test runner will produce
8026 much-abbreviated output][1.9q].
8027 * The Rust Project now publishes std binaries for the
8028 `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
8029 `i586-pc-windows-msvc` targets.
8034 * [`std::sync::Once` is poisoned if its initialization function
8036 * [It is illegal to define methods with the same name in overlapping
8037 inherent `impl` blocks][1.9sn].
8038 * [`fn` item types are zero sized, and each `fn` names a unique
8039 type][1.9fn]. This will break code that transmutes `fn`s, so calling
8040 `transmute` on a `fn` type will generate a warning for a few cycles,
8041 then will be converted to an error.
8042 * [Improvements to const evaluation may trigger new errors when integer
8043 literals are out of range][1.9ce].
8046 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
8047 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
8048 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
8049 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
8050 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
8051 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
8052 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
8053 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
8054 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
8055 [1.9db]: https://github.com/rust-lang/rust/pull/32054
8056 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
8057 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
8058 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
8059 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
8060 [1.9o]: https://github.com/rust-lang/rust/pull/32325
8061 [1.9q]: https://github.com/rust-lang/rust/pull/31887
8062 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
8063 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
8064 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
8065 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
8066 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
8067 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
8068 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
8069 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
8070 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8071 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
8072 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8073 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
8074 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
8075 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
8076 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
8077 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
8078 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
8079 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
8080 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
8081 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
8082 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
8083 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
8084 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
8085 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
8086 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
8087 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
8088 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
8089 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
8090 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
8091 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
8092 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
8093 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
8094 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
8095 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
8096 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
8097 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
8098 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
8099 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
8100 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
8101 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
8102 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
8103 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
8104 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
8105 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
8106 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8107 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8108 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8109 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8110 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8111 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8112 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
8113 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8114 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
8115 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8116 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8117 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8118 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8119 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8120 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
8121 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
8122 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
8123 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
8124 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
8125 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
8126 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
8127 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
8128 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
8129 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
8130 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
8131 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
8132 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
8133 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
8134 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
8135 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
8136 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
8137 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
8138 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
8139 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
8140 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
8141 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
8142 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
8143 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
8144 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
8145 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
8146 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
8147 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
8148 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
8149 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
8150 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
8151 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
8152 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
8153 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
8154 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
8155 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
8158 Version 1.8.0 (2016-04-14)
8159 ==========================
8164 * Rust supports overloading of compound assignment statements like
8165 `+=` by implementing the [`AddAssign`], [`SubAssign`],
8166 [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
8167 [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
8169 * Empty structs can be defined with braces, as in `struct Foo { }`, in
8170 addition to the non-braced form, `struct Foo;`. [RFC 218].
8176 * [`str::encode_utf16`] (renamed from `utf16_units`)
8177 * [`str::EncodeUtf16`] (renamed from `Utf16Units`)
8180 * [`ptr::drop_in_place`]
8182 * [`time::SystemTime`]
8184 * [`Instant::duration_since`] (renamed from `duration_from_earlier`)
8185 * [`Instant::elapsed`]
8186 * [`SystemTime::now`]
8187 * [`SystemTime::duration_since`] (renamed from `duration_from_earlier`)
8188 * [`SystemTime::elapsed`]
8189 * Various `Add`/`Sub` impls for `Time` and `SystemTime`
8190 * [`SystemTimeError`]
8191 * [`SystemTimeError::duration`]
8192 * Various impls for `SystemTimeError`
8194 * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
8195 [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
8196 [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
8197 * [The `write!` and `writeln!` macros correctly emit errors if any of
8198 their arguments can't be formatted][1.8w].
8199 * [Various I/O functions support large files on 32-bit Linux][1.8l].
8200 * [The Unix-specific `raw` modules, which contain a number of
8201 redefined C types are deprecated][1.8r], including `os::raw::unix`,
8202 `os::raw::macos`, and `os::raw::linux`. These modules defined types
8203 such as `ino_t` and `dev_t`. The inconsistency of these definitions
8204 across platforms was making it difficult to implement `std`
8205 correctly. Those that need these definitions should use the `libc`
8207 * The Unix-specific `MetadataExt` traits, including
8208 `os::unix::fs::MetadataExt`, which expose values such as inode
8209 numbers [no longer return platform-specific types][1.8r], but
8210 instead return widened integers. [RFC 1415].
8211 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
8212 * [Atomic loads and stores are not volatile][1.8a].
8213 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
8218 * [Inlining hash functions lead to a 3% compile-time improvement in
8219 some workloads][1.8h].
8220 * When using jemalloc, its symbols are [unprefixed so that it
8221 overrides the libc malloc implementation][1.8h]. This means that for
8222 rustc, LLVM is now using jemalloc, which results in a 6%
8223 compile-time improvement on a specific workload.
8224 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
8229 * [32-bit MSVC builds finally implement unwinding][1.8ms].
8230 i686-pc-windows-msvc is now considered a tier-1 platform.
8231 * [The `--print targets` flag prints a list of supported targets][1.8t].
8232 * [The `--print cfg` flag prints the `cfg`s defined for the current
8234 * [`rustc` can be built with an new Cargo-based build system, written
8235 in Rust][1.8b]. It will eventually replace Rust's Makefile-based
8236 build system. To enable it configure with `configure --rustbuild`.
8237 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
8238 variants while also indicating the total number of missing variants
8239 if more than 3][1.8m].
8240 * [Executable stacks are disabled on Linux and BSD][1.8nx].
8241 * The Rust Project now publishes binary releases of the standard
8242 library for a number of tier-2 targets:
8243 `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
8244 `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
8245 `x86_64-rumprun-netbsd`. These can be installed with
8246 tools such as [multirust][1.8mr].
8251 * [`cargo init` creates a new Cargo project in the current
8252 directory][1.8ci]. It is otherwise like `cargo new`.
8253 * [Cargo has configuration keys for `-v` and
8254 `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
8255 `[term]` section of `.cargo/config`.
8256 * [Configuration keys that evaluate to strings or integers can be set
8257 via environment variables][1.8ce]. For example the `build.jobs` key
8258 can be set via `CARGO_BUILD_JOBS`. Environment variables take
8259 precedence over config files.
8260 * [Target-specific dependencies support Rust `cfg` syntax for
8261 describing targets][1.8cfg] so that dependencies for multiple
8262 targets can be specified together. [RFC 1361].
8263 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
8264 `RUSTDOC` take precedence over the `build.target-dir`,
8265 `build.rustc`, and `build.rustdoc` configuration values][1.8cfv].
8266 * [The child process tree is killed on Windows when Cargo is
8268 * [The `build.target` configuration value sets the target platform,
8269 like `--target`][1.8ct].
8274 * [Unstable compiler flags have been further restricted][1.8u]. Since
8275 1.0 `-Z` flags have been considered unstable, and other flags that
8276 were considered unstable additionally required passing `-Z
8277 unstable-options` to access. Unlike unstable language and library
8278 features though, these options have been accessible on the stable
8279 release channel. Going forward, *new unstable flags will not be
8280 available on the stable release channel*, and old unstable flags
8281 will warn about their usage. In the future, all unstable flags will
8282 be unavailable on the stable release channel.
8283 * [It is no longer possible to `match` on empty enum variants using
8284 the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
8285 * The Unix-specific `MetadataExt` traits, including
8286 `os::unix::fs::MetadataExt`, which expose values such as inode
8287 numbers [no longer return platform-specific types][1.8r], but
8288 instead return widened integers. [RFC 1415].
8289 * [Modules sourced from the filesystem cannot appear within arbitrary
8290 blocks, but only within other modules][1.8mf].
8291 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
8292 * On Unix, [stack overflow triggers a runtime abort instead of a
8294 * [`Command::spawn` and its equivalents return an error if any of
8295 its command-line arguments contain interior `NUL`s][1.8n].
8296 * [Tuple and unit enum variants from other crates are in the type
8298 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
8299 type instead of `.a` files][1.8st]. Additionally, for the MSVC
8300 toolchain, `rustc` emits import libraries named `foo.dll.lib`
8301 instead of `foo.lib`.
8304 [1.8a]: https://github.com/rust-lang/rust/pull/30962
8305 [1.8b]: https://github.com/rust-lang/rust/pull/31123
8306 [1.8c]: https://github.com/rust-lang/rust/pull/31530
8307 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
8308 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
8309 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
8310 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
8311 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
8312 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
8313 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
8314 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
8315 [1.8cfv]: https://github.com/rust-lang/cargo/issues/2365
8316 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
8317 [1.8h]: https://github.com/rust-lang/rust/pull/31460
8318 [1.8l]: https://github.com/rust-lang/rust/pull/31668
8319 [1.8m]: https://github.com/rust-lang/rust/pull/31020
8320 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
8321 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
8322 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
8323 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
8324 [1.8n]: https://github.com/rust-lang/rust/pull/31056
8325 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
8326 [1.8r]: https://github.com/rust-lang/rust/pull/31551
8327 [1.8so]: https://github.com/rust-lang/rust/pull/31333
8328 [1.8st]: https://github.com/rust-lang/rust/pull/29520
8329 [1.8t]: https://github.com/rust-lang/rust/pull/31358
8330 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
8331 [1.8u]: https://github.com/rust-lang/rust/pull/31793
8332 [1.8v]: https://github.com/rust-lang/rust/pull/31757
8333 [1.8w]: https://github.com/rust-lang/rust/pull/31904
8334 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
8335 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
8336 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
8337 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
8338 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
8339 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
8340 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
8341 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
8342 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
8343 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
8344 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
8345 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
8346 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
8347 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
8348 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
8349 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
8350 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
8351 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
8352 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
8353 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
8354 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
8355 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
8356 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
8357 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
8358 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
8359 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
8360 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
8361 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
8362 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
8363 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
8366 Version 1.7.0 (2016-03-03)
8367 ==========================
8374 * [`Path::strip_prefix`] (renamed from relative_from)
8375 * [`path::StripPrefixError`] (new error type returned from strip_prefix)
8377 * [`Ipv4Addr::is_loopback`]
8378 * [`Ipv4Addr::is_private`]
8379 * [`Ipv4Addr::is_link_local`]
8380 * [`Ipv4Addr::is_multicast`]
8381 * [`Ipv4Addr::is_broadcast`]
8382 * [`Ipv4Addr::is_documentation`]
8384 * [`Ipv6Addr::is_unspecified`]
8385 * [`Ipv6Addr::is_loopback`]
8386 * [`Ipv6Addr::is_multicast`]
8389 * [`Vec::as_mut_slice`]
8391 * [`String::as_str`]
8392 * [`String::as_mut_str`]
8394 * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
8396 * `<[T]>::`[`sort_by_key`]
8397 * checked, saturated, and overflowing operations
8398 * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
8399 * [`i32::saturating_mul`]
8400 * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
8401 * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
8402 * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
8403 * [`u32::saturating_mul`]
8404 * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
8405 * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
8406 * and checked, saturated, and overflowing operations for other primitive types
8408 * [`ffi::IntoStringError`]
8409 * [`CString::into_string`]
8410 * [`CString::into_bytes`]
8411 * [`CString::into_bytes_with_nul`]
8412 * `From<CString> for Vec<u8>`
8414 * [`IntoStringError::into_cstring`]
8415 * [`IntoStringError::utf8_error`]
8416 * `Error for IntoStringError`
8418 * [`std::hash::BuildHasher`]
8419 * [`BuildHasher::Hasher`]
8420 * [`BuildHasher::build_hasher`]
8421 * [`std::hash::BuildHasherDefault`]
8422 * [`HashMap::with_hasher`]
8423 * [`HashMap::with_capacity_and_hasher`]
8424 * [`HashSet::with_hasher`]
8425 * [`HashSet::with_capacity_and_hasher`]
8426 * [`std::collections::hash_map::RandomState`]
8427 * [`RandomState::new`]
8428 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
8429 ASCII input][1.7utf8]. This means that creating `String`s and `str`s
8430 from bytes is faster.
8431 * [The performance of `LineWriter` (and thus `io::stdout`) was
8432 improved by using `memchr` to search for newlines][1.7m].
8433 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
8434 `f64` variants were stabilized previously.
8435 * [`BTreeMap` was rewritten to use less memory and improve the performance
8436 of insertion and iteration, the latter by as much as 5x][1.7bm].
8437 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
8438 covariant over their contained type][1.7bt].
8439 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
8440 over their contained type][1.7ll].
8441 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
8443 * [`Any` is implemented for unsized types][1.7a].
8444 * [`Hash` is implemented for `Duration`][1.7h].
8449 * [When running tests with `--test`, rustdoc will pass `--cfg`
8450 arguments to the compiler][1.7dt].
8451 * [The compiler is built with RPATH information by default][1.7rpa].
8452 This means that it will be possible to run `rustc` when installed in
8453 unusual configurations without configuring the dynamic linker search
8455 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
8456 any RPATH entries (emitted with `-C rpath`) *not* take precedence
8457 over `LD_LIBRARY_PATH`.
8462 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
8463 any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
8464 * [The `rerun-if-changed` build script directive no longer causes the
8465 build script to incorrectly run twice in certain scenarios][1.7rr].
8470 * Soundness fixes to the interactions between associated types and
8471 lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
8472 code that violates the new rules. This is a significant change that
8473 is known to break existing code, so it has emitted warnings for the
8474 new error cases since 1.4 to give crate authors time to adapt. The
8475 details of what is changing are subtle; read the RFC for more.
8476 * [Several bugs in the compiler's visibility calculations were
8477 fixed][1.7v]. Since this was found to break significant amounts of
8478 code, the new errors will be emitted as warnings for several release
8479 cycles, under the `private_in_public` lint.
8480 * Defaulted type parameters were accidentally accepted in positions
8481 that were not intended. In this release, [defaulted type parameters
8482 appearing outside of type definitions will generate a
8483 warning][1.7d], which will become an error in future releases.
8484 * [Parsing "." as a float results in an error instead of 0][1.7p].
8485 That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
8486 * [Borrows of closure parameters may not outlive the closure][1.7bc].
8488 [1.7a]: https://github.com/rust-lang/rust/pull/30928
8489 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
8490 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
8491 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
8492 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
8493 [1.7d]: https://github.com/rust-lang/rust/pull/30724
8494 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
8495 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
8496 [1.7f]: https://github.com/rust-lang/rust/pull/30672
8497 [1.7h]: https://github.com/rust-lang/rust/pull/30818
8498 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
8499 [1.7m]: https://github.com/rust-lang/rust/pull/30381
8500 [1.7p]: https://github.com/rust-lang/rust/pull/30681
8501 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
8502 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
8503 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
8504 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
8505 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
8506 [1.7v]: https://github.com/rust-lang/rust/pull/29973
8507 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8508 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
8509 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
8510 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
8511 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
8512 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
8513 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
8514 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
8515 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
8516 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
8517 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
8518 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
8519 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
8520 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
8521 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
8522 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
8523 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
8524 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
8525 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
8526 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
8527 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
8528 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
8529 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
8530 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
8531 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
8532 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
8533 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
8534 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
8535 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
8536 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
8537 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
8538 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
8539 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
8540 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
8541 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
8542 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
8543 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
8544 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
8545 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
8546 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
8547 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
8548 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
8549 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
8550 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
8551 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
8552 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
8553 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
8554 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8555 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
8556 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8557 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
8558 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
8559 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
8560 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
8561 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
8562 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
8563 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
8564 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
8565 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
8566 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
8569 Version 1.6.0 (2016-01-21)
8570 ==========================
8575 * The `#![no_std]` attribute causes a crate to not be linked to the
8576 standard library, but only the [core library][1.6co], as described
8577 in [RFC 1184]. The core library defines common types and traits but
8578 has no platform dependencies whatsoever, and is the basis for Rust
8579 software in environments that cannot support a full port of the
8580 standard library, such as operating systems. Most of the core
8581 library is now stable.
8587 [`Read::read_exact`],
8588 [`ErrorKind::UnexpectedEof`] (renamed from `UnexpectedEOF`),
8589 [`fs::DirBuilder`], [`fs::DirBuilder::new`],
8590 [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
8591 [`os::unix::fs::DirBuilderExt`],
8592 [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
8593 [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
8594 [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
8595 [`collections::hash_map::Drain`],
8596 [`collections::hash_map::HashMap::drain`],
8597 [`collections::hash_set::Drain`],
8598 [`collections::hash_set::HashSet::drain`],
8599 [`collections::binary_heap::Drain`],
8600 [`collections::binary_heap::BinaryHeap::drain`],
8601 [`Vec::extend_from_slice`] (renamed from `push_all`),
8602 [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
8603 [`RwLock::into_inner`],
8604 [`Iterator::min_by_key`] (renamed from `min_by`),
8605 [`Iterator::max_by_key`] (renamed from `max_by`).
8606 * The [core library][1.6co] is stable, as are most of its APIs.
8607 * [The `assert_eq!` macro supports arguments that don't implement
8608 `Sized`][1.6ae], such as arrays. In this way it behaves more like
8610 * Several timer functions that take duration in milliseconds [are
8611 deprecated in favor of those that take `Duration`][1.6ms]. These
8612 include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
8613 `thread::park_timeout_ms`.
8614 * The algorithm by which `Vec` reserves additional elements was
8615 [tweaked to not allocate excessive space][1.6a] while still growing
8617 * `From` conversions are [implemented from integers to floats][1.6f]
8618 in cases where the conversion is lossless. Thus they are not
8619 implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
8620 or `f64`. They are also not implemented for `isize` and `usize`
8621 because the implementations would be platform-specific. `From` is
8622 also implemented from `f32` to `f64`.
8623 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
8624 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
8625 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
8626 * [`BinaryHeap` was refactored][1.6bh] for modest performance
8628 * Sorting slices that are already sorted [is 50% faster in some
8634 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
8635 * Cargo build scripts can specify their dependencies by emitting the
8636 [`rerun-if-changed`][1.6rr] key.
8637 * crates.io will reject publication of crates with dependencies that
8638 have a wildcard version constraint. Crates with wildcard
8639 dependencies were seen to cause a variety of problems, as described
8640 in [RFC 1241]. Since 1.5 publication of such crates has emitted a
8642 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
8643 release folder. A variety of artifacts that Cargo failed to clean
8644 are now correctly deleted.
8649 * The `unreachable_code` lint [warns when a function call's argument
8651 * The parser indicates [failures that may be caused by
8652 confusingly-similar Unicode characters][1.6uc]
8653 * Certain macro errors [are reported at definition time][1.6m], not
8659 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
8660 environment variable when locating crates. This was a pre-cargo
8661 feature for integrating with the package manager that was
8662 accidentally never removed.
8663 * [A number of bugs were fixed in the privacy checker][1.6p] that
8664 could cause previously-accepted code to break.
8665 * [Modules and unit/tuple structs may not share the same name][1.6ts].
8666 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
8667 struct pattern syntax (`Foo(..)`) can no longer be used to match
8668 unit structs. This is a warning now, but will become an error in
8669 future releases. Patterns that share the same name as a const are
8671 * A bug was fixed that causes [rustc not to apply default type
8672 parameters][1.6xc] when resolving certain method implementations of
8673 traits defined in other crates.
8675 [1.6a]: https://github.com/rust-lang/rust/pull/29454
8676 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
8677 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
8678 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
8679 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
8680 [1.6co]: http://doc.rust-lang.org/core/index.html
8681 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
8682 [1.6f]: https://github.com/rust-lang/rust/pull/29129
8683 [1.6m]: https://github.com/rust-lang/rust/pull/29828
8684 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
8685 [1.6p]: https://github.com/rust-lang/rust/pull/29726
8686 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
8687 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
8688 [1.6s]: https://github.com/rust-lang/rust/pull/29675
8689 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
8690 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
8691 [1.6us]: https://github.com/rust-lang/rust/pull/29383
8692 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
8693 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
8694 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
8695 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
8696 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
8697 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
8698 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
8699 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
8700 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
8701 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
8702 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
8703 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
8704 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
8705 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
8706 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
8707 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
8708 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
8709 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
8710 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
8711 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
8712 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
8713 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
8714 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
8715 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
8716 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
8717 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
8718 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
8719 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
8720 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
8721 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
8724 Version 1.5.0 (2015-12-10)
8725 ==========================
8727 * ~700 changes, numerous bugfixes
8733 [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
8734 [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
8735 [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
8736 [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
8737 [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
8738 [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
8739 [`Formatter::sign_minus`], [`Formatter::sign_plus`],
8740 [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
8741 [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
8742 [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
8743 [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
8744 [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
8745 [`Path::read_link`], [`Path::symlink_metadata`],
8746 [`Utf8Error::valid_up_to`], [`Vec::resize`],
8747 [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
8748 [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
8749 [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
8750 [`slice::split_first_mut`], [`slice::split_first`],
8751 [`slice::split_last_mut`], [`slice::split_last`],
8752 [`char::from_u32_unchecked`], [`fs::canonicalize`],
8753 [`str::MatchIndices`], [`str::RMatchIndices`],
8754 [`str::match_indices`], [`str::rmatch_indices`],
8755 [`str::slice_mut_unchecked`], [`string::ParseError`].
8756 * Rust applications hosted on crates.io can be installed locally to
8757 `~/.cargo/bin` with the [`cargo install`] command. Among other
8758 things this makes it easier to augment Cargo with new subcommands:
8759 when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
8760 invoked as `cargo foo`.
8761 * Crates with wildcard (`*`) dependencies will [emit warnings when
8762 published][1.5w]. In 1.6 it will no longer be possible to publish
8763 crates with wildcard dependencies.
8768 * The rules determining when a particular lifetime must outlive
8769 a particular value (known as '[dropck]') have been [modified
8770 to not rely on parametricity][1.5p].
8771 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
8772 and `Arc`][1.5a]. Because these smart pointer types implement
8773 `Deref`, this causes breakage in cases where the interior type
8774 contains methods of the same name.
8775 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
8776 that they could drop their content. Soundness fix.
8777 * All method invocations are [properly checked][1.5wf1] for
8778 [well-formedness][1.5wf2]. Soundness fix.
8779 * Traits whose supertraits contain `Self` are [not object
8780 safe][1.5o]. Soundness fix.
8781 * Target specifications support a [`no_default_libraries`][1.5nd]
8782 setting that controls whether `-nodefaultlibs` is passed to the
8783 linker, and in turn the `is_like_windows` setting no longer affects
8784 the `-nodefaultlibs` flag.
8785 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
8786 * The `#[inline]` and `#[repr]` attributes [can only appear
8787 in valid locations][1.5at].
8788 * Native libraries linked from the local crate are [passed to
8789 the linker before native libraries from upstream crates][1.5nl].
8790 * Two rarely-used attributes, `#[no_debug]` and
8791 `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
8792 * Negation of unsigned integers, which has been a warning for
8793 several releases, [is now behind a feature gate and will
8794 generate errors][1.5nu].
8795 * The parser accidentally accepted visibility modifiers on
8796 enum variants, a bug [which has been fixed][1.5ev].
8797 * [A bug was fixed that allowed `use` statements to import unstable
8803 * When evaluating expressions at compile-time that are not
8804 compile-time constants (const-evaluating expressions in non-const
8805 contexts), incorrect code such as overlong bitshifts and arithmetic
8806 overflow will [generate a warning instead of an error][1.5ce],
8807 delaying the error until runtime. This will allow the
8808 const-evaluator to be expanded in the future backwards-compatibly.
8809 * The `improper_ctypes` lint [no longer warns about using `isize` and
8810 `usize` in FFI][1.5ict].
8815 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
8817 * `Default` is [implemented for mutable slices][1.5d].
8818 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
8819 * There are now `From` conversions [between floating point
8820 types][1.5f] where the conversions are lossless.
8821 * There are now `From` conversions [between integer types][1.5i] where
8822 the conversions are lossless.
8823 * [`fs::Metadata` implements `Clone`][1.5fs].
8824 * The `parse` method [accepts a leading "+" when parsing
8826 * [`AsMut` is implemented for `Vec`][1.5am].
8827 * The `clone_from` implementations for `String` and `BinaryHeap` [have
8828 been optimized][1.5cf] and no longer rely on the default impl.
8829 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
8830 `unsafe extern "C"` function types now [implement `Clone`,
8831 `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
8832 `fmt::Debug` for up to 12 arguments][1.5fp].
8833 * [Dropping `Vec`s is much faster in unoptimized builds when the
8834 element types don't implement `Drop`][1.5dv].
8835 * A bug that caused in incorrect behavior when [combining `VecDeque`
8836 with zero-sized types][1.5vdz] was resolved.
8837 * [`PartialOrd` for slices is faster][1.5po].
8842 * [Crate metadata size was reduced by 20%][1.5md].
8843 * [Improvements to code generation reduced the size of libcore by 3.3
8844 MB and rustc's memory usage by 18MB][1.5m].
8845 * [Improvements to deref translation increased performance in
8846 unoptimized builds][1.5dr].
8847 * Various errors in trait resolution [are deduplicated to only be
8848 reported once][1.5te].
8849 * Rust has preliminary [support for rumprun kernels][1.5rr].
8850 * Rust has preliminary [support for NetBSD on amd64][1.5na].
8852 [1.5use]: https://github.com/rust-lang/rust/pull/28364
8853 [1.5po]: https://github.com/rust-lang/rust/pull/28436
8854 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
8855 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
8856 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
8857 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
8858 [1.5md]: https://github.com/rust-lang/rust/pull/28521
8859 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
8860 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
8861 [1.5na]: https://github.com/rust-lang/rust/pull/28543
8862 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
8863 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
8864 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
8865 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
8866 [1.5te]: https://github.com/rust-lang/rust/pull/28645
8867 [1.5at]: https://github.com/rust-lang/rust/pull/28650
8868 [1.5am]: https://github.com/rust-lang/rust/pull/28663
8869 [1.5m]: https://github.com/rust-lang/rust/pull/28778
8870 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
8871 [1.5a]: https://github.com/rust-lang/rust/pull/28811
8872 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
8873 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
8874 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
8875 [1.5i]: https://github.com/rust-lang/rust/pull/28921
8876 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
8877 [1.5f]: https://github.com/rust-lang/rust/pull/29129
8878 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
8879 [1.5s]: https://github.com/rust-lang/rust/pull/29190
8880 [1.5d]: https://github.com/rust-lang/rust/pull/29245
8881 [1.5o]: https://github.com/rust-lang/rust/pull/29259
8882 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
8883 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8884 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
8885 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
8886 [1.5c]: https://github.com/rust-lang/rust/pull/29110
8887 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
8888 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
8889 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
8890 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
8891 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
8892 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
8893 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
8894 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
8895 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
8896 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
8897 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
8898 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
8899 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
8900 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
8901 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
8902 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
8903 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
8904 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
8905 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
8906 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
8907 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
8908 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
8909 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
8910 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
8911 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
8912 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
8913 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
8914 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
8915 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
8916 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
8917 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
8918 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
8919 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
8920 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
8921 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
8922 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
8923 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
8924 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
8925 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
8926 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
8927 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
8928 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
8929 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
8930 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
8931 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
8932 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
8933 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
8934 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
8935 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
8936 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
8937 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
8938 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
8939 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
8940 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
8942 Version 1.4.0 (2015-10-29)
8943 ==========================
8945 * ~1200 changes, numerous bugfixes
8950 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
8951 GNU) are now supported and recommended for use.
8956 * [Several changes have been made to fix type soundness and improve
8957 the behavior of associated types][sound]. See [RFC 1214]. Although
8958 we have mostly introduced these changes as warnings this release, to
8959 become errors next release, there are still some scenarios that will
8960 see immediate breakage.
8961 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
8962 line breaks in addition to `\n`][crlf].
8963 * [Loans of `'static` lifetime extend to the end of a function][stat].
8964 * [`str::parse` no longer introduces avoidable rounding error when
8965 parsing floating point numbers. Together with earlier changes to
8966 float formatting/output, "round trips" like f.to_string().parse()
8967 now preserve the value of f exactly. Additionally, leading plus
8968 signs are now accepted][fp3].
8974 * `use` statements that import multiple items [can now rename
8975 them][i], as in `use foo::{bar as kitten, baz as puppy}`.
8976 * [Binops work correctly on fat pointers][binfat].
8977 * `pub extern crate`, which does not behave as expected, [issues a
8978 warning][pec] until a better solution is found.
8983 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
8984 [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
8985 [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
8986 [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
8987 [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
8988 `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
8989 `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
8990 [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
8991 [`String::into_boxed_str`], [`TcpStream::read_timeout`],
8992 [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
8993 [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
8994 [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
8995 [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
8996 [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
8997 [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
8998 [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
8999 [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
9000 [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
9002 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
9003 `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
9004 `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
9005 `f64::from_str_radix`.
9006 * [Reverse-searching strings is faster with the 'two-way'
9008 * [`std::io::copy` allows `?Sized` arguments][cc].
9009 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
9010 [override `count`, `nth` and `last` with an *O*(1)
9011 implementation][it].
9012 * [`Default` is implemented for arrays up to `[T; 32]`][d].
9013 * [`IntoRawFd` has been added to the Unix-specific prelude,
9014 `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
9016 * [`Extend<String>` and `FromIterator<String` are both implemented for
9018 * [`IntoIterator` is implemented for references to `Option` and
9020 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
9021 Copy`][ext] as part of [RFC 839]. This will cause type inference
9022 breakage in rare situations.
9023 * [`BinaryHeap` implements `Debug`][bh2].
9024 * [`Borrow` and `BorrowMut` are implemented for fixed-size
9026 * [`extern fn`s with the "Rust" and "C" ABIs implement common
9027 traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
9028 * [String comparison is faster][faststr].
9029 * `&mut T` where `T: std::fmt::Write` [also implements
9030 `std::fmt::Write`][mutw].
9031 * [A stable regression in `VecDeque::push_back` and other
9032 capacity-altering methods that caused panics for zero-sized types
9034 * [Function pointers implement traits for up to 12 parameters][fp2].
9039 * The compiler [no longer uses the 'morestack' feature to prevent
9040 stack overflow][mm]. Instead it uses guard pages and stack
9041 probes (though stack probes are not yet implemented on any platform
9043 * [The compiler matches traits faster when projections are involved][p].
9044 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
9046 * [Cargo now displays useful information about what its doing during
9047 `cargo update`][cu].
9049 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
9050 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
9051 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
9052 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
9053 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
9054 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
9055 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
9056 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
9057 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
9058 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
9059 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
9060 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
9061 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
9062 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
9063 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
9064 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
9065 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
9066 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
9067 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9068 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9069 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9070 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9071 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9072 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9073 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9074 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9075 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
9076 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
9077 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
9078 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
9079 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
9080 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
9081 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
9082 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
9083 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
9084 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
9085 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
9086 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
9087 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
9088 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
9089 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
9090 [bh2]: https://github.com/rust-lang/rust/pull/28156
9091 [binfat]: https://github.com/rust-lang/rust/pull/28270
9092 [bm]: https://github.com/rust-lang/rust/pull/28197
9093 [cc]: https://github.com/rust-lang/rust/pull/27531
9094 [crlf]: https://github.com/rust-lang/rust/pull/28034
9095 [cu]: https://github.com/rust-lang/cargo/pull/1931
9096 [d]: https://github.com/rust-lang/rust/pull/27825
9097 [dep]: https://github.com/rust-lang/rust/pull/28339
9098 [es]: https://github.com/rust-lang/rust/pull/27956
9099 [ext]: https://github.com/rust-lang/rust/pull/28094
9100 [faststr]: https://github.com/rust-lang/rust/pull/28338
9101 [ffi]: https://github.com/rust-lang/rust/pull/28779
9102 [fp]: https://github.com/rust-lang/rust/pull/28268
9103 [fp2]: https://github.com/rust-lang/rust/pull/28560
9104 [fp3]: https://github.com/rust-lang/rust/pull/27307
9105 [i]: https://github.com/rust-lang/rust/pull/27451
9106 [into2]: https://github.com/rust-lang/rust/pull/28039
9107 [it]: https://github.com/rust-lang/rust/pull/27652
9108 [mm]: https://github.com/rust-lang/rust/pull/27338
9109 [mutw]: https://github.com/rust-lang/rust/pull/28368
9110 [sound]: https://github.com/rust-lang/rust/pull/27641
9111 [p]: https://github.com/rust-lang/rust/pull/27866
9112 [pec]: https://github.com/rust-lang/rust/pull/28486
9113 [pr]: https://github.com/rust-lang/rust/pull/27896
9114 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9115 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
9116 [s]: https://github.com/rust-lang/rust/pull/27474
9117 [stab]: https://github.com/rust-lang/rust/pull/28339
9118 [stat]: https://github.com/rust-lang/rust/pull/28321
9119 [vd]: https://github.com/rust-lang/rust/pull/28494
9121 Version 1.3.0 (2015-09-17)
9122 ==============================
9124 * ~900 changes, numerous bugfixes
9129 * The [new object lifetime defaults][nold] have been [turned
9130 on][nold2] after a cycle of warnings about the change. Now types
9131 like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
9132 being interpreted as `&'a Box<Trait+'a>` to `&'a
9133 Box<Trait+'static>`.
9134 * [The Rustonomicon][nom] is a new book in the official documentation
9135 that dives into writing unsafe Rust.
9136 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
9137 timekeeping is employed by other std APIs, as well as out-of-tree
9143 * The [new object lifetime defaults][nold] have been [turned
9144 on][nold2] after a cycle of warnings about the change.
9145 * There is a known [regression][lr] in how object lifetime elision is
9146 interpreted, the proper solution for which is undetermined.
9147 * The `#[prelude_import]` attribute, an internal implementation
9148 detail, was accidentally stabilized previously. [It has been put
9149 behind the `prelude_import` feature gate][pi]. This change is
9150 believed to break no existing code.
9151 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9152 [more sane for dynamically sized types][dst3]. Code that relied on
9153 the previous behavior is thought to be broken.
9154 * The `dropck` rules, which checks that destructors can't access
9155 destroyed values, [have been updated][dropck] to match the
9156 [RFC][dropckrfc]. This fixes some soundness holes, and as such will
9157 cause some previously-compiling code to no longer build.
9162 * The [new object lifetime defaults][nold] have been [turned
9163 on][nold2] after a cycle of warnings about the change.
9164 * Semicolons may [now follow types and paths in
9165 macros](https://github.com/rust-lang/rust/pull/27000).
9166 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9167 [more sane for dynamically sized types][dst3]. Code that relied on
9168 the previous behavior is not known to exist, and suspected to be
9170 * `'static` variables [may now be recursive][st].
9171 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
9172 implementations correctly.
9173 * The `dropck` rules, which checks that destructors can't access
9174 destroyed values, [have been updated][dropck] to match the
9180 * The [`Duration`] API, [has been stabilized][ds], as well as the
9181 `std::time` module, which presently contains only `Duration`.
9182 * `Box<str>` and `Box<[T]>` both implement `Clone`.
9183 * The owned C string, [`CString`], implements [`Borrow`] and the
9184 borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
9185 these allow C strings to be borrowed and cloned in generic code.
9186 * [`CStr`] implements [`Debug`].
9187 * [`AtomicPtr`] implements [`Debug`].
9188 * [`Error`] trait objects [can be downcast to their concrete types][e]
9189 in many common configurations, using the [`is`], [`downcast`],
9190 [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
9192 * Searching for substrings now [employs the two-way algorithm][search]
9193 instead of doing a naive search. This gives major speedups to a
9194 number of methods, including [`contains`][sc], [`find`][sf],
9195 [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
9196 [`ends_with`][sew] are also faster.
9197 * The performance of `PartialEq` for slices is [much faster][ps].
9198 * The [`Hash`] trait offers the default method, [`hash_slice`], which
9199 is overridden and optimized by the implementations for scalars.
9200 * The [`Hasher`] trait now has a number of specialized `write_*`
9201 methods for primitive types, for efficiency.
9202 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
9203 methods for accessing the 'inner error', if any: [`get_ref`][iegr],
9204 [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
9205 of [`std::error::Error::cause`][iec] also delegates to the inner
9207 * [`process::Child`][pc] gained the [`id`] method, which returns a
9208 `u32` representing the platform-specific process identifier.
9209 * The [`connect`] method on slices is deprecated, replaced by the new
9210 [`join`] method (note that both of these are on the *unstable*
9211 [`SliceConcatExt`] trait, but through the magic of the prelude are
9212 available to stable code anyway).
9213 * The [`Div`] operator is implemented for [`Wrapping`] types.
9214 * [`DerefMut` is implemented for `String`][dms].
9215 * Performance of SipHash (the default hasher for `HashMap`) is
9216 [better for long data][sh].
9217 * [`AtomicPtr`] implements [`Send`].
9218 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
9219 are now [specialized to use uninitialized buffers for increased
9221 * Lifetime parameters of foreign functions [are now resolved
9227 * Rust can now, with some coercion, [produce programs that run on
9228 Windows XP][xp], though XP is not considered a supported platform.
9229 * Porting Rust on Windows from the GNU toolchain to MSVC continues
9230 ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
9231 recommended for use in 1.3, though should be fully-functional
9232 in the [64-bit 1.4 beta][b14].
9233 * On Fedora-based systems installation will [properly configure the
9234 dynamic linker][fl].
9235 * The compiler gained many new extended error descriptions, which can
9236 be accessed with the `--explain` flag.
9237 * The `dropck` pass, which checks that destructors can't access
9238 destroyed values, [has been rewritten][27261]. This fixes some
9239 soundness holes, and as such will cause some previously-compiling
9240 code to no longer build.
9241 * `rustc` now uses [LLVM to write archive files where possible][ar].
9242 Eventually this will eliminate the compiler's dependency on the ar
9244 * Rust has [preliminary support for i686 FreeBSD][26959] (it has long
9245 supported FreeBSD on x86_64).
9246 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
9247 [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
9249 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
9250 will kill the process instead of leaking][nlp].
9252 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
9253 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
9254 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
9255 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
9256 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
9257 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9258 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9259 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
9260 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
9261 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
9262 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
9263 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
9264 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
9265 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
9266 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
9267 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
9268 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
9269 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
9270 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9271 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
9272 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
9273 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
9274 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
9275 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
9276 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
9277 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
9278 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
9279 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
9280 [ar]: https://github.com/rust-lang/rust/pull/26926
9281 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
9282 [dms]: https://github.com/rust-lang/rust/pull/26241
9283 [27261]: https://github.com/rust-lang/rust/pull/27261
9284 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9285 [ds]: https://github.com/rust-lang/rust/pull/26818
9286 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
9287 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
9288 [dst3]: https://github.com/rust-lang/rust/pull/27351
9289 [e]: https://github.com/rust-lang/rust/pull/24793
9290 [f]: https://github.com/rust-lang/rust/pull/26588
9291 [26959]: https://github.com/rust-lang/rust/pull/26959
9292 [fl]: https://github.com/rust-lang/rust-installer/pull/41
9293 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
9294 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
9295 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
9296 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
9297 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
9298 [lic]: https://github.com/rust-lang/rust/pull/26583
9299 [lnu]: https://github.com/rust-lang/rust/pull/27026
9300 [lr]: https://github.com/rust-lang/rust/issues/27248
9301 [lum]: https://github.com/rust-lang/rust/pull/26378
9302 [lur]: https://github.com/rust-lang/rust/pull/26783
9303 [nlp]: https://github.com/rust-lang/rust/pull/27176
9304 [nold2]: https://github.com/rust-lang/rust/pull/27045
9305 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
9306 [nom]: http://doc.rust-lang.org/nightly/nomicon/
9307 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
9308 [pi]: https://github.com/rust-lang/rust/pull/26699
9309 [ps]: https://github.com/rust-lang/rust/pull/26884
9310 [rte]: https://github.com/rust-lang/rust/pull/26950
9311 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
9312 [search]: https://github.com/rust-lang/rust/pull/26327
9313 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
9314 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
9315 [sh]: https://github.com/rust-lang/rust/pull/27280
9316 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
9317 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
9318 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
9319 [st]: https://github.com/rust-lang/rust/pull/26630
9320 [win1]: https://github.com/rust-lang/rust/pull/26569
9321 [win2]: https://github.com/rust-lang/rust/pull/26741
9322 [win3]: https://github.com/rust-lang/rust/pull/26741
9323 [win4]: https://github.com/rust-lang/rust/pull/27210
9324 [xp]: https://github.com/rust-lang/rust/pull/26569
9326 Version 1.2.0 (2015-08-07)
9327 ==========================
9329 * ~1200 changes, numerous bugfixes
9334 * [Dynamically-sized-type coercions][dst] allow smart pointer types
9335 like `Rc` to contain types without a fixed size, arrays and trait
9336 objects, finally enabling use of `Rc<[T]>` and completing the
9337 implementation of DST.
9338 * [Parallel codegen][parcodegen] is now working again, which can
9339 substantially speed up large builds in debug mode; It also gets
9340 another ~33% speedup when bootstrapping on a 4 core machine (using 8
9341 jobs). It's not enabled by default, but will be "in the near
9342 future". It can be activated with the `-C codegen-units=N` flag to
9344 * This is the first release with [experimental support for linking
9345 with the MSVC linker and lib C on Windows (instead of using the GNU
9346 variants via MinGW)][win]. It is yet recommended only for the most
9347 intrepid Rustaceans.
9348 * Benchmark compilations are showing a 30% improvement in
9349 bootstrapping over 1.1.
9354 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
9355 unicode case mapping, which is a previously-planned change in
9356 behavior and considered a bugfix.
9357 * [`mem::align_of`] now specifies [the *minimum alignment* for
9358 T][align], which is usually the alignment programs are interested
9359 in, and the same value reported by clang's
9360 `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
9362 * [The `#[packed]` attribute is no longer silently accepted by the
9363 compiler][packed]. This attribute did nothing and code that
9364 mentioned it likely did not work as intended.
9365 * Associated type defaults are [now behind the
9366 `associated_type_defaults` feature gate][ad]. In 1.1 associated type
9367 defaults *did not work*, but could be mentioned syntactically. As
9368 such this breakage has minimal impact.
9373 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
9374 matching against dereferenceable values.
9379 * The [`Extend`] trait, which grows a collection from an iterator, is
9380 implemented over iterators of references, for `String`, `Vec`,
9381 `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
9382 `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
9383 * The [`iter::once`] function returns an iterator that yields a single
9384 element, and [`iter::empty`] returns an iterator that yields no
9386 * The [`matches`] and [`rmatches`] methods on `str` return iterators
9387 over substring matches.
9388 * [`Cell`] and [`RefCell`] both implement `Eq`.
9389 * A number of methods for wrapping arithmetic are added to the
9390 integral types, [`wrapping_div`], [`wrapping_rem`],
9391 [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
9392 addition to the existing [`wrapping_add`], [`wrapping_sub`], and
9393 [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
9394 type.. It is illegal for the default arithmetic operations in Rust
9395 to overflow; the desire to wrap must be explicit.
9396 * The `{:#?}` formatting specifier [displays the alternate,
9397 pretty-printed][debugfmt] form of the `Debug` formatter. This
9398 feature was actually introduced prior to 1.0 with little
9400 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
9401 for writing data to formatted strings, similar to [`io::Write`].
9402 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
9403 [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
9404 are used by code generators to emit implementations of [`Debug`].
9405 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
9406 methods that convert case, following Unicode case mapping.
9407 * It is now easier to handle poisoned locks. The [`PoisonError`]
9408 type, returned by failing lock operations, exposes `into_inner`,
9409 `get_ref`, and `get_mut`, which all give access to the inner lock
9410 guard, and allow the poisoned lock to continue to operate. The
9411 `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
9412 poisoned lock without attempting to take the lock.
9413 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
9414 [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
9415 On Windows the `FromRawHandle` trait is implemented for `Stdio`,
9416 and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
9418 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
9424 * `rustc` employs smarter heuristics for guessing at [typos].
9425 * `rustc` emits more efficient code for [no-op conversions between
9426 unsafe pointers][nop].
9427 * Fat pointers are now [passed in pairs of immediate arguments][fat],
9428 resulting in faster compile times and smaller code.
9430 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
9431 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9432 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
9433 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
9434 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
9435 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
9436 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
9437 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
9438 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
9439 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
9440 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
9441 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
9442 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
9443 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
9444 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
9445 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
9446 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9447 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
9448 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
9449 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
9450 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
9451 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
9452 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
9453 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
9454 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
9455 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9456 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
9457 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
9458 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
9459 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
9460 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
9461 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
9462 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
9463 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9464 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9465 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
9466 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
9467 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
9468 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
9469 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
9470 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
9471 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9472 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
9473 [align]: https://github.com/rust-lang/rust/pull/25646
9474 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
9475 [typos]: https://github.com/rust-lang/rust/pull/26087
9476 [nop]: https://github.com/rust-lang/rust/pull/26336
9477 [fat]: https://github.com/rust-lang/rust/pull/26411
9478 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
9479 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
9480 [packed]: https://github.com/rust-lang/rust/pull/25541
9481 [ad]: https://github.com/rust-lang/rust/pull/27382
9482 [win]: https://github.com/rust-lang/rust/pull/25350
9484 Version 1.1.0 (2015-06-25)
9485 =========================
9487 * ~850 changes, numerous bugfixes
9492 * The [`std::fs` module has been expanded][fs] to expand the set of
9493 functionality exposed:
9494 * `DirEntry` now supports optimizations like `file_type` and `metadata` which
9495 don't incur a syscall on some platforms.
9496 * A `symlink_metadata` function has been added.
9497 * The `fs::Metadata` structure now lowers to its OS counterpart, providing
9498 access to all underlying information.
9499 * The compiler now contains extended explanations of many errors. When an error
9500 with an explanation occurs the compiler suggests using the `--explain` flag
9501 to read the explanation. Error explanations are also [available online][err-index].
9502 * Thanks to multiple [improvements][sk] to [type checking][pre], as
9503 well as other work, the time to bootstrap the compiler decreased by
9509 * The [`str::split_whitespace`] method splits a string on unicode
9510 whitespace boundaries.
9511 * On both Windows and Unix, new extension traits provide conversion of
9512 I/O types to and from the underlying system handles. On Unix, these
9513 traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
9514 and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
9515 `TcpListener`, and `UpdSocket`. Further implementations for
9516 `std::process` will be stabilized later.
9517 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
9518 Windows, symlinks can be created with
9519 `std::os::windows::symlink_dir` and
9520 `std::os::windows::symlink_file`.
9521 * The `mpsc::Receiver` type can now be converted into an iterator with
9522 `into_iter` on the [`IntoIterator`] trait.
9523 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
9524 implementation of the [`From`] trait.
9525 * The `Debug` implementation for `RangeFull` [creates output that is
9526 more consistent with other implementations][rf].
9527 * [`Debug` is implemented for `File`][file].
9528 * The `Default` implementation for `Arc` [no longer requires `Sync +
9530 * [The `Iterator` methods `count`, `nth`, and `last` have been
9531 overridden for slices to have *O*(1) performance instead of *O*(*n*)][si].
9532 * Incorrect handling of paths on Windows has been improved in both the
9533 compiler and the standard library.
9534 * [`AtomicPtr` gained a `Default` implementation][ap].
9535 * In accordance with Rust's policy on arithmetic overflow `abs` now
9536 [panics on overflow when debug assertions are enabled][abs].
9537 * The [`Cloned`] iterator, which was accidentally left unstable for
9538 1.0 [has been stabilized][c].
9539 * The [`Incoming`] iterator, which iterates over incoming TCP
9540 connections, and which was accidentally unnamable in 1.0, [is now
9541 properly exported][inc].
9542 * [`BinaryHeap`] no longer corrupts itself [when functions called by
9543 `sift_up` or `sift_down` panic][bh].
9544 * The [`split_off`] method of `LinkedList` [no longer corrupts
9545 the list in certain scenarios][ll].
9550 * Type checking performance [has improved notably][sk] with
9551 [multiple improvements][pre].
9552 * The compiler [suggests code changes][ch] for more errors.
9553 * rustc and it's build system have experimental support for [building
9554 toolchains against MUSL][m] instead of glibc on Linux.
9555 * The compiler defines the `target_env` cfg value, which is used for
9556 distinguishing toolchains that are otherwise for the same
9557 platform. Presently this is set to `gnu` for common GNU Linux
9558 targets and for MinGW targets, and `musl` for MUSL Linux targets.
9559 * The [`cargo rustc`][crc] command invokes a build with custom flags
9561 * [Android executables are always position independent][pie].
9562 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
9563 with `Drop`][24935].
9565 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
9566 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9567 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9568 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
9569 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
9570 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
9571 [rf]: https://github.com/rust-lang/rust/pull/24491
9572 [err-index]: https://doc.rust-lang.org/error-index.html
9573 [sk]: https://github.com/rust-lang/rust/pull/24615
9574 [pre]: https://github.com/rust-lang/rust/pull/25323
9575 [file]: https://github.com/rust-lang/rust/pull/24598
9576 [ch]: https://github.com/rust-lang/rust/pull/24683
9577 [arc]: https://github.com/rust-lang/rust/pull/24695
9578 [si]: https://github.com/rust-lang/rust/pull/24701
9579 [ap]: https://github.com/rust-lang/rust/pull/24834
9580 [m]: https://github.com/rust-lang/rust/pull/24777
9581 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
9582 [crc]: https://github.com/rust-lang/cargo/pull/1568
9583 [pie]: https://github.com/rust-lang/rust/pull/24953
9584 [abs]: https://github.com/rust-lang/rust/pull/25441
9585 [c]: https://github.com/rust-lang/rust/pull/25496
9586 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
9587 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
9588 [inc]: https://github.com/rust-lang/rust/pull/25522
9589 [bh]: https://github.com/rust-lang/rust/pull/25856
9590 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
9591 [ll]: https://github.com/rust-lang/rust/pull/26022
9592 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
9593 [24935]: https://github.com/rust-lang/rust/pull/24935
9595 Version 1.0.0 (2015-05-15)
9596 ========================
9598 * ~1500 changes, numerous bugfixes
9603 * The vast majority of the standard library is now `#[stable]`. It is
9604 no longer possible to use unstable features with a stable build of
9606 * Many popular crates on [crates.io] now work on the stable release
9608 * Arithmetic on basic integer types now [checks for overflow in debug
9614 * Several [restrictions have been added to trait coherence][coh] in
9615 order to make it easier for upstream authors to change traits
9616 without breaking downstream code.
9617 * Digits of binary and octal literals are [lexed more eagerly][lex] to
9618 improve error messages and macro behavior. For example, `0b1234` is
9619 now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
9620 * Trait bounds [are always invariant][inv], eliminating the need for
9621 the `PhantomFn` and `MarkerTrait` lang items, which have been
9623 * ["-" is no longer a valid character in crate names][cr], the `extern crate
9624 "foo" as bar` syntax has been replaced with `extern crate foo as
9625 bar`, and Cargo now automatically translates "-" in *package* names
9626 to underscore for the crate name.
9627 * [Lifetime shadowing is an error][lt].
9628 * [`Send` no longer implies `'static`][send-rfc].
9629 * [UFCS now supports trait-less associated paths][moar-ufcs] like
9630 `MyType::default()`.
9631 * Primitive types [now have inherent methods][prim-inherent],
9632 obviating the need for extension traits like `SliceExt`.
9633 * Methods with `Self: Sized` in their `where` clause are [considered
9634 object-safe][self-sized], allowing many extension traits like
9635 `IteratorExt` to be merged into the traits they extended.
9636 * You can now [refer to associated types][assoc-where] whose
9637 corresponding trait bounds appear only in a `where` clause.
9638 * The final bits of [OIBIT landed][oibit-final], meaning that traits
9639 like `Send` and `Sync` are now library-defined.
9640 * A [Reflect trait][reflect] was introduced, which means that
9641 downcasting via the `Any` trait is effectively limited to concrete
9642 types. This helps retain the potentially-important "parametricity"
9643 property: generic code cannot behave differently for different type
9644 arguments except in minor ways.
9645 * The `unsafe_destructor` feature is now deprecated in favor of the
9646 [new `dropck`][rfc769]. This change is a major reduction in unsafe
9652 * The `thread_local` module [has been renamed to `std::thread`][th].
9653 * The methods of `IteratorExt` [have been moved to the `Iterator`
9654 trait itself][23300].
9655 * Several traits that implement Rust's conventions for type
9656 conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
9657 [centralized in the `std::convert` module][con].
9658 * The `FromError` trait [was removed in favor of `From`][fe].
9659 * The basic sleep function [has moved to
9660 `std::thread::sleep_ms`][slp].
9661 * The `splitn` function now takes an `n` parameter that represents the
9662 number of items yielded by the returned iterator [instead of the
9663 number of 'splits'][spl].
9664 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
9665 * [Derived implementations of `PartialOrd` now order enums according
9666 to their explicitly-assigned discriminants][po].
9667 * [Methods for searching strings are generic over `Pattern`s][pat],
9668 implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
9670 * [In method resolution, object methods are resolved before inherent
9672 * [`String::from_str` has been deprecated in favor of the `From` impl,
9673 `String::from`][24517].
9674 * [`io::Error` implements `Sync`][ios].
9675 * [The `words` method on `&str` has been replaced with
9676 `split_whitespace`][sw], to avoid answering the tricky question, 'what is
9678 * The new path and IO modules are complete and `#[stable]`. This
9679 was the major library focus for this cycle.
9680 * The path API was [revised][path-normalize] to normalize `.`,
9681 adjusting the tradeoffs in favor of the most common usage.
9682 * A large number of remaining APIs in `std` were also stabilized
9683 during this cycle; about 75% of the non-deprecated API surface
9685 * The new [string pattern API][string-pattern] landed, which makes
9686 the string slice API much more internally consistent and flexible.
9687 * A new set of [generic conversion traits][conversion] replaced
9688 many existing ad hoc traits.
9689 * Generic numeric traits were [completely removed][num-traits]. This
9690 was made possible thanks to inherent methods for primitive types,
9691 and the removal gives maximal flexibility for designing a numeric
9692 hierarchy in the future.
9693 * The `Fn` traits are now related via [inheritance][fn-inherit]
9694 and provide ergonomic [blanket implementations][fn-blanket].
9695 * The `Index` and `IndexMut` traits were changed to
9696 [take the index by value][index-value], enabling code like
9697 `hash_map["string"]` to work.
9698 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
9699 `Copy` data is known to be `Clone` as well.
9704 * Many errors now have extended explanations that can be accessed with
9705 the `--explain` flag to `rustc`.
9706 * Many new examples have been added to the standard library
9708 * rustdoc has received a number of improvements focused on completion
9710 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
9711 * Much headway was made on ecosystem-wide CI, making it possible
9712 to [compare builds for breakage][ci-compare].
9715 [crates.io]: http://crates.io
9716 [clo]: https://github.com/rust-lang/rust/pull/24034
9717 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
9718 [con]: https://github.com/rust-lang/rust/pull/23875
9719 [cr]: https://github.com/rust-lang/rust/pull/23419
9720 [fe]: https://github.com/rust-lang/rust/pull/23879
9721 [23300]: https://github.com/rust-lang/rust/pull/23300
9722 [inv]: https://github.com/rust-lang/rust/pull/23938
9723 [ios]: https://github.com/rust-lang/rust/pull/24133
9724 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
9725 [lt]: https://github.com/rust-lang/rust/pull/24057
9726 [meth]: https://github.com/rust-lang/rust/pull/24056
9727 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
9728 [po]: https://github.com/rust-lang/rust/pull/24270
9729 [24517]: https://github.com/rust-lang/rust/pull/24517
9730 [slp]: https://github.com/rust-lang/rust/pull/23949
9731 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
9732 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
9733 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
9734 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
9735 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
9736 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
9737 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
9738 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
9739 [self-sized]: https://github.com/rust-lang/rust/pull/22301
9740 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
9741 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
9742 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
9743 [reflect]: https://github.com/rust-lang/rust/pull/23712
9744 [conversion]: https://github.com/rust-lang/rfcs/pull/529
9745 [num-traits]: https://github.com/rust-lang/rust/pull/23549
9746 [index-value]: https://github.com/rust-lang/rust/pull/23601
9747 [rfc769]: https://github.com/rust-lang/rfcs/pull/769
9748 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
9749 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
9750 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
9751 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
9752 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
9755 Version 1.0.0-alpha.2 (2015-02-20)
9756 =====================================
9758 * ~1300 changes, numerous bugfixes
9762 * The various I/O modules were [overhauled][io-rfc] to reduce
9763 unnecessary abstractions and provide better interoperation with
9764 the underlying platform. The old `io` module remains temporarily
9766 * The standard library now [participates in feature gating][feat],
9767 so use of unstable libraries now requires a `#![feature(...)]`
9768 attribute. The impact of this change is [described on the
9769 forum][feat-forum]. [RFC][feat-rfc].
9773 * `for` loops [now operate on the `IntoIterator` trait][into],
9774 which eliminates the need to call `.iter()`, etc. to iterate
9775 over collections. There are some new subtleties to remember
9776 though regarding what sort of iterators various types yield, in
9777 particular that `for foo in bar { }` yields values from a move
9778 iterator, destroying the original collection. [RFC][into-rfc].
9779 * Objects now have [default lifetime bounds][obj], so you don't
9780 have to write `Box<Trait+'static>` when you don't care about
9781 storing references. [RFC][obj-rfc].
9782 * In types that implement `Drop`, [lifetimes must outlive the
9783 value][drop]. This will soon make it possible to safely
9784 implement `Drop` for types where `#[unsafe_destructor]` is now
9785 required. Read the [gorgeous RFC][drop-rfc] for details.
9786 * The fully qualified <T as Trait>::X syntax lets you set the Self
9787 type for a trait method or associated type. [RFC][ufcs-rfc].
9788 * References to types that implement `Deref<U>` now [automatically
9789 coerce to references][deref] to the dereferenced type `U`,
9790 e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
9791 should eliminate many unsightly uses of `&*`, as when converting
9792 from references to vectors into references to
9793 slices. [RFC][deref-rfc].
9794 * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
9795 `|:|`) is obsolete and closure kind is inferred from context.
9796 * [`Self` is a keyword][Self].
9800 * The `Show` and `String` formatting traits [have been
9801 renamed][fmt] to `Debug` and `Display` to more clearly reflect
9802 their related purposes. Automatically getting a string
9803 conversion to use with `format!("{:?}", something_to_debug)` is
9804 now written `#[derive(Debug)]`.
9805 * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
9806 OsStr}`, provide strings in platform-specific encodings for easier
9807 interop with system APIs. [RFC][osstr-rfc].
9808 * The `boxed::into_raw` and `Box::from_raw` functions [convert
9809 between `Box<T>` and `*mut T`][boxraw], a common pattern for
9810 creating raw pointers.
9814 * Certain long error messages of the form 'expected foo found bar'
9815 are now [split neatly across multiple
9816 lines][multiline]. Examples in the PR.
9817 * On Unix Rust can be [uninstalled][un] by running
9818 `/usr/local/lib/rustlib/uninstall.sh`.
9819 * The `#[rustc_on_unimplemented]` attribute, requiring the
9820 'on_unimplemented' feature, lets rustc [display custom error
9821 messages when a trait is expected to be implemented for a type
9826 * Rust is tested against a [LALR grammar][lalr], which parses
9827 almost all the Rust files that rustc does.
9829 [boxraw]: https://github.com/rust-lang/rust/pull/21318
9830 [close]: https://github.com/rust-lang/rust/pull/21843
9831 [deref]: https://github.com/rust-lang/rust/pull/21351
9832 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
9833 [drop]: https://github.com/rust-lang/rust/pull/21972
9834 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9835 [feat]: https://github.com/rust-lang/rust/pull/21248
9836 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
9837 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
9838 [fmt]: https://github.com/rust-lang/rust/pull/21457
9839 [into]: https://github.com/rust-lang/rust/pull/20790
9840 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
9841 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9842 [lalr]: https://github.com/rust-lang/rust/pull/21452
9843 [multiline]: https://github.com/rust-lang/rust/pull/19870
9844 [obj]: https://github.com/rust-lang/rust/pull/22230
9845 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
9846 [onun]: https://github.com/rust-lang/rust/pull/20889
9847 [osstr]: https://github.com/rust-lang/rust/pull/21488
9848 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9849 [Self]: https://github.com/rust-lang/rust/pull/22158
9850 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
9851 [un]: https://github.com/rust-lang/rust/pull/22256
9854 Version 1.0.0-alpha (2015-01-09)
9855 ==================================
9857 * ~2400 changes, numerous bugfixes
9861 * The language itself is considered feature complete for 1.0,
9862 though there will be many usability improvements and bugfixes
9863 before the final release.
9864 * Nearly 50% of the public API surface of the standard library has
9865 been declared 'stable'. Those interfaces are unlikely to change
9867 * The long-running debate over integer types has been
9868 [settled][ints]: Rust will ship with types named `isize` and
9869 `usize`, rather than `int` and `uint`, for pointer-sized
9870 integers. Guidelines will be rolled out during the alpha cycle.
9871 * Most crates that are not `std` have been moved out of the Rust
9872 distribution into the Cargo ecosystem so they can evolve
9873 separately and don't need to be stabilized as quickly, including
9874 'time', 'getopts', 'num', 'regex', and 'term'.
9875 * Documentation continues to be expanded with more API coverage, more
9876 examples, and more in-depth explanations. The guides have been
9877 consolidated into [The Rust Programming Language][trpl].
9878 * "[Rust By Example][rbe]" is now maintained by the Rust team.
9879 * All official Rust binary installers now come with [Cargo], the
9880 Rust package manager.
9884 * Closures have been [completely redesigned][unboxed] to be
9885 implemented in terms of traits, can now be used as generic type
9886 bounds and thus monomorphized and inlined, or via an opaque
9887 pointer (boxed) as in the old system. The new system is often
9888 referred to as 'unboxed' closures.
9889 * Traits now support [associated types][assoc], allowing families
9890 of related types to be defined together and used generically in
9892 * Enum variants are [namespaced by their type names][enum].
9893 * [`where` clauses][where] provide a more versatile and attractive
9894 syntax for specifying generic bounds, though the previous syntax
9896 * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
9898 * Rust [no longer has a runtime][rt] of any description, and only
9899 supports OS threads, not green threads.
9900 * At long last, Rust has been overhauled for 'dynamically-sized
9901 types' ([DST]), which integrates 'fat pointers' (object types,
9902 arrays, and `str`) more deeply into the type system, making it
9904 * Rust now has a general [range syntax][range], `i..j`, `i..`, and
9905 `..j` that produce range types and which, when combined with the
9906 `Index` operator and multidispatch, leads to a convenient slice
9908 * The new range syntax revealed an ambiguity in the fixed-length
9909 array syntax, so now fixed length arrays [are written `[T;
9911 * The `Copy` trait is no longer implemented automatically. Unsafe
9912 pointers no longer implement `Sync` and `Send` so types
9913 containing them don't automatically either. `Sync` and `Send`
9914 are now 'unsafe traits' so one can "forcibly" implement them via
9915 `unsafe impl` if a type confirms to the requirements for them
9916 even though the internals do not (e.g. structs containing unsafe
9917 pointers like `Arc`). These changes are intended to prevent some
9918 footguns and are collectively known as [opt-in built-in
9919 traits][oibit] (though `Sync` and `Send` will soon become pure
9920 library types unknown to the compiler).
9921 * Operator traits now take their operands [by value][ops], and
9922 comparison traits can use multidispatch to compare one type
9923 against multiple other types, allowing e.g. `String` to be
9924 compared with `&str`.
9925 * `if let` and `while let` are no longer feature-gated.
9926 * Rust has adopted a more [uniform syntax for escaping unicode
9927 characters][unicode].
9928 * `macro_rules!` [has been declared stable][mac]. Though it is a
9929 flawed system it is sufficiently popular that it must be usable
9930 for 1.0. Effort has gone into [future-proofing][mac-future] it
9931 in ways that will allow other macro systems to be developed in
9932 parallel, and won't otherwise impact the evolution of the
9934 * The prelude has been [pared back significantly][prelude] such
9935 that it is the minimum necessary to support the most pervasive
9936 code patterns, and through [generalized where clauses][where]
9937 many of the prelude extension traits have been consolidated.
9938 * Rust's rudimentary reflection [has been removed][refl], as it
9939 incurred too much code generation for little benefit.
9940 * [Struct variants][structvars] are no longer feature-gated.
9941 * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
9942 known as 'higher-ranked trait bounds', this crucially allows
9943 unboxed closures to work.
9944 * Macros invocations surrounded by parens or square brackets and
9945 not terminated by a semicolon are [parsed as
9946 expressions][macros], which makes expressions like `vec![1i32,
9947 2, 3].len()` work as expected.
9948 * Trait objects now implement their traits automatically, and
9949 traits that can be coerced to objects now must be [object
9951 * Automatically deriving traits is now done with `#[derive(...)]`
9952 not `#[deriving(...)]` for [consistency with other naming
9953 conventions][derive].
9954 * Importing the containing module or enum at the same time as
9955 items or variants they contain is [now done with `self` instead
9956 of `mod`][self], as in use `foo::{self, bar}`
9957 * Glob imports are no longer feature-gated.
9958 * The `box` operator and `box` patterns have been feature-gated
9959 pending a redesign. For now unique boxes should be allocated
9960 like other containers, with `Box::new`.
9964 * A [series][coll1] of [efforts][coll2] to establish
9965 [conventions][coll3] for collections types has resulted in API
9966 improvements throughout the standard library.
9967 * New [APIs for error handling][err] provide ergonomic interop
9968 between error types, and [new conventions][err-conv] describe
9969 more clearly the recommended error handling strategies in Rust.
9970 * The `fail!` macro has been renamed to [`panic!`][panic] so that
9971 it is easier to discuss failure in the context of error handling
9972 without making clarifications as to whether you are referring to
9973 the 'fail' macro or failure more generally.
9974 * On Linux, `OsRng` prefers the new, more reliable `getrandom`
9975 syscall when available.
9976 * The 'serialize' crate has been renamed 'rustc-serialize' and
9977 moved out of the distribution to Cargo. Although it is widely
9978 used now, it is expected to be superseded in the near future.
9979 * The `Show` formatter, typically implemented with
9980 `#[derive(Show)]` is [now requested with the `{:?}`
9981 specifier][show] and is intended for use by all types, for uses
9982 such as `println!` debugging. The new `String` formatter must be
9983 implemented by hand, uses the `{}` specifier, and is intended
9984 for full-fidelity conversions of things that can logically be
9985 represented as strings.
9989 * [Flexible target specification][flex] allows rustc's code
9990 generation to be configured to support otherwise-unsupported
9992 * Rust comes with rust-gdb and rust-lldb scripts that launch their
9993 respective debuggers with Rust-appropriate pretty-printing.
9994 * The Windows installation of Rust is distributed with the
9995 MinGW components currently required to link binaries on that
10000 * Nullable enum optimizations have been extended to more types so
10001 that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
10002 space than the inner types themselves.
10003 * Work has begun on supporting AArch64.
10005 [Cargo]: https://crates.io
10006 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
10007 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
10008 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
10009 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
10010 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
10011 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
10012 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
10013 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
10014 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
10015 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
10016 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
10017 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
10018 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
10019 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
10020 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
10021 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
10022 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
10023 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
10024 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
10025 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
10026 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
10027 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
10028 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
10029 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
10030 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
10031 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
10032 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
10033 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
10034 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
10035 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
10036 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
10037 [trpl]: https://doc.rust-lang.org/book/index.html
10038 [rbe]: http://rustbyexample.com/
10041 Version 0.12.0 (2014-10-09)
10042 =============================
10044 * ~1900 changes, numerous bugfixes
10048 * The introductory documentation (now called The Rust Guide) has
10049 been completely rewritten, as have a number of supplementary
10051 * Rust's package manager, Cargo, continues to improve and is
10052 sometimes considered to be quite awesome.
10053 * Many API's in `std` have been reviewed and updated for
10054 consistency with the in-development Rust coding
10055 guidelines. The standard library documentation tracks
10056 stabilization progress.
10057 * Minor libraries have been moved out-of-tree to the rust-lang org
10058 on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
10059 be installed with Cargo.
10060 * Lifetime elision allows lifetime annotations to be left off of
10061 function declarations in many common scenarios.
10062 * Rust now works on 64-bit Windows.
10065 * Indexing can be overloaded with the `Index` and `IndexMut`
10067 * The `if let` construct takes a branch only if the `let` pattern
10068 matches, currently behind the 'if_let' feature gate.
10069 * 'where clauses', a more flexible syntax for specifying trait
10070 bounds that is more aesthetic, have been added for traits and
10071 free functions. Where clauses will in the future make it
10072 possible to constrain associated types, which would be
10073 impossible with the existing syntax.
10074 * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
10075 the 'slicing_syntax' feature gate, and can be overloaded with
10076 the `Slice` or `SliceMut` traits.
10077 * The syntax for matching of sub-slices has been changed to use a
10078 postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
10079 consistency with other uses of `..` and to future-proof
10080 potential additional uses of the syntax.
10081 * The syntax for matching inclusive ranges in patterns has changed
10082 from `0..3` to `0...4` to be consistent with the exclusive range
10083 syntax for slicing.
10084 * Matching of sub-slices in non-tail positions (e.g. `[a.., b,
10085 c]`) has been put behind the 'advanced_slice_patterns' feature
10086 gate and may be removed in the future.
10087 * Components of tuples and tuple structs can be extracted using
10088 the `value.0` syntax, currently behind the `tuple_indexing`
10090 * The `#[crate_id]` attribute is no longer supported; versioning
10091 is handled by the package manager.
10092 * Renaming crate imports are now written `extern crate foo as bar`
10093 instead of `extern crate bar = foo`.
10094 * Renaming use statements are now written `use foo as bar` instead
10095 of `use bar = foo`.
10096 * `let` and `match` bindings and argument names in macros are now
10098 * The new, more efficient, closure types ('unboxed closures') have
10099 been added under a feature gate, 'unboxed_closures'. These will
10100 soon replace the existing closure types, once higher-ranked
10101 trait lifetimes are added to the language.
10102 * `move` has been added as a keyword, for indicating closures
10103 that capture by value.
10104 * Mutation and assignment is no longer allowed in pattern guards.
10105 * Generic structs and enums can now have trait bounds.
10106 * The `Share` trait is now called `Sync` to free up the term
10107 'shared' to refer to 'shared reference' (the default reference
10109 * Dynamically-sized types have been mostly implemented,
10110 unifying the behavior of fat-pointer types with the rest of the
10112 * As part of dynamically-sized types, the `Sized` trait has been
10113 introduced, which qualifying types implement by default, and
10114 which type parameters expect by default. To specify that a type
10115 parameter does not need to be sized, write `<Sized? T>`. Most
10116 types are `Sized`, notable exceptions being unsized arrays
10117 (`[T]`) and trait types.
10118 * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
10119 * Lifetime bounds can now be applied to type parameters and object
10121 * The old, reference counted GC type, `Gc<T>` which was once
10122 denoted by the `@` sigil, has finally been removed. GC will be
10123 revisited in the future.
10126 * Library documentation has been improved for a number of modules.
10127 * Bit-vectors, collections::bitv has been modernized.
10128 * The url crate is deprecated in favor of
10129 http://github.com/servo/rust-url, which can be installed with
10131 * Most I/O stream types can be cloned and subsequently closed from
10132 a different thread.
10133 * A `std::time::Duration` type has been added for use in I/O
10134 methods that rely on timers, as well as in the 'time' crate's
10135 `Timespec` arithmetic.
10136 * The runtime I/O abstraction layer that enabled the green thread
10137 scheduler to do non-thread-blocking I/O has been removed, along
10138 with the libuv-based implementation employed by the green thread
10139 scheduler. This will greatly simplify the future I/O work.
10140 * `collections::btree` has been rewritten to have a more
10141 idiomatic and efficient design.
10144 * rustdoc output now indicates the stability levels of API's.
10145 * The `--crate-name` flag can specify the name of the crate
10146 being compiled, like `#[crate_name]`.
10147 * The `-C metadata` specifies additional metadata to hash into
10148 symbol names, and `-C extra-filename` specifies additional
10149 information to put into the output filename, for use by the
10150 package manager for versioning.
10151 * debug info generation has continued to improve and should be
10152 more reliable under both gdb and lldb.
10153 * rustc has experimental support for compiling in parallel
10154 using the `-C codegen-units` flag.
10155 * rustc no longer encodes rpath information into binaries by
10159 * Stack usage has been optimized with LLVM lifetime annotations.
10160 * Official Rust binaries on Linux are more compatible with older
10161 kernels and distributions, built on CentOS 5.10.
10164 Version 0.11.0 (2014-07-02)
10165 ==========================
10167 * ~1700 changes, numerous bugfixes
10170 * ~[T] has been removed from the language. This type is superseded by
10172 * ~str has been removed from the language. This type is superseded by
10174 * ~T has been removed from the language. This type is superseded by the
10176 * @T has been removed from the language. This type is superseded by the
10177 standard library's std::gc::Gc<T> type.
10178 * Struct fields are now all private by default.
10179 * Vector indices and shift amounts are both required to be a `uint`
10180 instead of any integral type.
10181 * Byte character, byte string, and raw byte string literals are now all
10182 supported by prefixing the normal literal with a `b`.
10183 * Multiple ABIs are no longer allowed in an ABI string
10184 * The syntax for lifetimes on closures/procedures has been tweaked
10185 slightly: `<'a>|A, B|: 'b + K -> T`
10186 * Floating point modulus has been removed from the language; however it
10187 is still provided by a library implementation.
10188 * Private enum variants are now disallowed.
10189 * The `priv` keyword has been removed from the language.
10190 * A closure can no longer be invoked through a &-pointer.
10191 * The `use foo, bar, baz;` syntax has been removed from the language.
10192 * The transmute intrinsic no longer works on type parameters.
10193 * Statics now allow blocks/items in their definition.
10194 * Trait bounds are separated from objects with + instead of : now.
10195 * Objects can no longer be read while they are mutably borrowed.
10196 * The address of a static is now marked as insignificant unless the
10197 #[inline(never)] attribute is placed it.
10198 * The #[unsafe_destructor] attribute is now behind a feature gate.
10199 * Struct literals are no longer allowed in ambiguous positions such as
10200 if, while, match, and for..in.
10201 * Declaration of lang items and intrinsics are now feature-gated by
10203 * Integral literals no longer default to `int`, and floating point
10204 literals no longer default to `f64`. Literals must be suffixed with an
10205 appropriate type if inference cannot determine the type of the
10207 * The Box<T> type is no longer implicitly borrowed to &mut T.
10208 * Procedures are now required to not capture borrowed references.
10211 * The standard library is now a "facade" over a number of underlying
10212 libraries. This means that development on the standard library should
10213 be speedier due to smaller crates, as well as a clearer line between
10215 * A new library, libcore, lives under the standard library's facade
10216 which is Rust's "0-assumption" library, suitable for embedded and
10217 kernel development for example.
10218 * A regex crate has been added to the standard distribution. This crate
10219 includes statically compiled regular expressions.
10220 * The unwrap/unwrap_err methods on Result require a Show bound for
10221 better error messages.
10222 * The return types of the std::comm primitives have been centralized
10223 around the Result type.
10224 * A number of I/O primitives have gained the ability to time out their
10226 * A number of I/O primitives have gained the ability to close their
10227 reading/writing halves to cancel pending operations.
10228 * Reverse iterator methods have been removed in favor of `rev()` on
10229 their forward-iteration counterparts.
10230 * A bitflags! macro has been added to enable easy interop with C and
10231 management of bit flags.
10232 * A debug_assert! macro is now provided which is disabled when
10233 `--cfg ndebug` is passed to the compiler.
10234 * A graphviz crate has been added for creating .dot files.
10235 * The std::cast module has been migrated into std::mem.
10236 * The std::local_data api has been migrated from freestanding functions
10237 to being based on methods.
10238 * The Pod trait has been renamed to Copy.
10239 * jemalloc has been added as the default allocator for types.
10240 * The API for allocating memory has been changed to use proper alignment
10241 and sized deallocation
10242 * Connecting a TcpStream or binding a TcpListener is now based on a
10243 string address and a u16 port. This allows connecting to a hostname as
10245 * The Reader trait now contains a core method, read_at_least(), which
10246 correctly handles many repeated 0-length reads.
10247 * The process-spawning API is now centered around a builder-style
10249 * The :? printing qualifier has been moved from the standard library to
10250 an external libdebug crate.
10251 * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
10252 have been renamed to Eq/Ord.
10253 * The select/plural methods have been removed from format!. The escapes
10254 for { and } have also changed from \{ and \} to {{ and }},
10256 * The TaskBuilder API has been re-worked to be a true builder, and
10257 extension traits for spawning native/green tasks have been added.
10260 * All breaking changes to the language or libraries now have their
10261 commit message annotated with `[breaking-change]` to allow for easy
10262 discovery of breaking changes.
10263 * The compiler will now try to suggest how to annotate lifetimes if a
10264 lifetime-related error occurs.
10265 * Debug info continues to be improved greatly with general bug fixes and
10266 better support for situations like link time optimization (LTO).
10267 * Usage of syntax extensions when cross-compiling has been fixed.
10268 * Functionality equivalent to GCC & Clang's -ffunction-sections,
10269 -fdata-sections and --gc-sections has been enabled by default
10270 * The compiler is now stricter about where it will load module files
10271 from when a module is declared via `mod foo;`.
10272 * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
10273 Syntax extensions are now discovered via a "plugin registrar" type
10274 which will be extended in the future to other various plugins.
10275 * Lints have been restructured to allow for dynamically loadable lints.
10276 * A number of rustdoc improvements:
10277 * The HTML output has been visually redesigned.
10278 * Markdown is now powered by hoedown instead of sundown.
10279 * Searching heuristics have been greatly improved.
10280 * The search index has been reduced in size by a great amount.
10281 * Cross-crate documentation via `pub use` has been greatly improved.
10282 * Primitive types are now hyperlinked and documented.
10283 * Documentation has been moved from static.rust-lang.org/doc to
10285 * A new sandbox, play.rust-lang.org, is available for running and
10286 sharing rust code examples on-line.
10287 * Unused attributes are now more robustly warned about.
10288 * The dead_code lint now warns about unused struct fields.
10289 * Cross-compiling to iOS is now supported.
10290 * Cross-compiling to mipsel is now supported.
10291 * Stability attributes are now inherited by default and no longer apply
10292 to intra-crate usage, only inter-crate usage.
10293 * Error message related to non-exhaustive match expressions have been
10297 Version 0.10 (2014-04-03)
10298 =========================
10300 * ~1500 changes, numerous bugfixes
10303 * A new RFC process is now in place for modifying the language.
10304 * Patterns with `@`-pointers have been removed from the language.
10305 * Patterns with unique vectors (`~[T]`) have been removed from the
10307 * Patterns with unique strings (`~str`) have been removed from the
10309 * `@str` has been removed from the language.
10310 * `@[T]` has been removed from the language.
10311 * `@self` has been removed from the language.
10312 * `@Trait` has been removed from the language.
10313 * Headers on `~` allocations which contain `@` boxes inside the type for
10314 reference counting have been removed.
10315 * The semantics around the lifetimes of temporary expressions have changed,
10316 see #3511 and #11585 for more information.
10317 * Cross-crate syntax extensions are now possible, but feature gated. See
10318 #11151 for more information. This includes both `macro_rules!` macros as
10319 well as syntax extensions such as `format!`.
10320 * New lint modes have been added, and older ones have been turned on to be
10322 * Unnecessary parentheses
10323 * Uppercase statics
10325 * Uppercase variables
10326 * Publicly visible private types
10327 * `#[deriving]` with raw pointers
10328 * Unsafe functions can no longer be coerced to closures.
10329 * Various obscure macros such as `log_syntax!` are now behind feature gates.
10330 * The `#[simd]` attribute is now behind a feature gate.
10331 * Visibility is no longer allowed on `extern crate` statements, and
10332 unnecessary visibility (`priv`) is no longer allowed on `use` statements.
10333 * Trailing commas are now allowed in argument lists and tuple patterns.
10334 * The `do` keyword has been removed, it is now a reserved keyword.
10335 * Default type parameters have been implemented, but are feature gated.
10336 * Borrowed variables through captures in closures are now considered soundly.
10337 * `extern mod` is now `extern crate`
10338 * The `Freeze` trait has been removed.
10339 * The `Share` trait has been added for types that can be shared among
10341 * Labels in macros are now hygienic.
10342 * Expression/statement macro invocations can be delimited with `{}` now.
10343 * Treatment of types allowed in `static mut` locations has been tweaked.
10344 * The `*` and `.` operators are now overloadable through the `Deref` and
10346 * `~Trait` and `proc` no longer have `Send` bounds by default.
10347 * Partial type hints are now supported with the `_` type marker.
10348 * An `Unsafe` type was introduced for interior mutability. It is now
10349 considered undefined to transmute from `&T` to `&mut T` without using the
10351 * The #[linkage] attribute was implemented for extern statics/functions.
10352 * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
10353 * `Pod` was renamed to `Copy`.
10356 * The `libextra` library has been removed. It has now been decomposed into
10357 component libraries with smaller and more focused nuggets of
10358 functionality. The full list of libraries can be found on the
10359 documentation index page.
10360 * std: `std::condition` has been removed. All I/O errors are now propagated
10361 through the `Result` type. In order to assist with error handling, a
10362 `try!` macro for unwrapping errors with an early return and a lint for
10363 unused results has been added. See #12039 for more information.
10364 * std: The `vec` module has been renamed to `slice`.
10365 * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
10366 This will become the only growable vector in the future.
10367 * std: `std::io` now has more public re-exports. Types such as `BufferedReader`
10368 are now found at `std::io::BufferedReader` instead of
10369 `std::io::buffered::BufferedReader`.
10370 * std: `print` and `println` are no longer in the prelude, the `print!` and
10371 `println!` macros are intended to be used instead.
10372 * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
10373 attempts to statically prevent cycles.
10374 * std: The standard distribution is adopting the policy of pushing failure
10375 to the user rather than failing in libraries. Many functions (such as
10376 `slice::last()`) now return `Option<T>` instead of `T` + failing.
10377 * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
10378 deriving mode: `#[deriving(Show)]`.
10379 * std: `ToStr` is now implemented for all types implementing `Show`.
10380 * std: The formatting trait methods now take `&self` instead of `&T`
10381 * std: The `invert()` method on iterators has been renamed to `rev()`
10382 * std: `std::num` has seen a reduction in the genericity of its traits,
10383 consolidating functionality into a few core traits.
10384 * std: Backtraces are now printed on task failure if the environment
10385 variable `RUST_BACKTRACE` is present.
10386 * std: Naming conventions for iterators have been standardized. More details
10387 can be found on the wiki's style guide.
10388 * std: `eof()` has been removed from the `Reader` trait. Specific types may
10389 still implement the function.
10390 * std: Networking types are now cloneable to allow simultaneous reads/writes.
10391 * std: `assert_approx_eq!` has been removed
10392 * std: The `e` and `E` formatting specifiers for floats have been added to
10393 print them in exponential notation.
10394 * std: The `Times` trait has been removed
10395 * std: Indications of variance and opting out of builtin bounds is done
10396 through marker types in `std::kinds::marker` now
10397 * std: `hash` has been rewritten, `IterBytes` has been removed, and
10398 `#[deriving(Hash)]` is now possible.
10399 * std: `SharedChan` has been removed, `Sender` is now cloneable.
10400 * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
10401 * std: `Chan::new` is now `channel()`.
10402 * std: A new synchronous channel type has been implemented.
10403 * std: A `select!` macro is now provided for selecting over `Receiver`s.
10404 * std: `hashmap` and `trie` have been moved to `libcollections`
10405 * std: `run` has been rolled into `io::process`
10406 * std: `assert_eq!` now uses `{}` instead of `{:?}`
10407 * std: The equality and comparison traits have seen some reorganization.
10408 * std: `rand` has moved to `librand`.
10409 * std: `to_{lower,upper}case` has been implemented for `char`.
10410 * std: Logging has been moved to `liblog`.
10411 * collections: `HashMap` has been rewritten for higher performance and less
10413 * native: The default runtime is now `libnative`. If `libgreen` is desired,
10414 it can be booted manually. The runtime guide has more information and
10416 * native: All I/O functionality except signals has been implemented.
10417 * green: Task spawning with `libgreen` has been optimized with stack caching
10418 and various trimming of code.
10419 * green: Tasks spawned by `libgreen` now have an unmapped guard page.
10420 * sync: The `extra::sync` module has been updated to modern rust (and moved
10421 to the `sync` library), tweaking and improving various interfaces while
10422 dropping redundant functionality.
10423 * sync: A new `Barrier` type has been added to the `sync` library.
10424 * sync: An efficient mutex for native and green tasks has been implemented.
10425 * serialize: The `base64` module has seen some improvement. It treats
10426 newlines better, has non-string error values, and has seen general
10428 * fourcc: A `fourcc!` macro was introduced
10429 * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
10430 hexadecimal literal.
10433 * `rustpkg` has been deprecated and removed from the main repository. Its
10434 replacement, `cargo`, is under development.
10435 * Nightly builds of rust are now available
10436 * The memory usage of rustc has been improved many times throughout this
10438 * The build process supports disabling rpath support for the rustc binary
10440 * Code generation has improved in some cases, giving more information to the
10441 LLVM optimization passes to enable more extensive optimizations.
10442 * Debuginfo compatibility with lldb on OSX has been restored.
10443 * The master branch is now gated on an android bot, making building for
10444 android much more reliable.
10445 * Output flags have been centralized into one `--emit` flag.
10446 * Crate type flags have been centralized into one `--crate-type` flag.
10447 * Codegen flags have been consolidated behind a `-C` flag.
10448 * Linking against outdated crates now has improved error messages.
10449 * Error messages with lifetimes will often suggest how to annotate the
10450 function to fix the error.
10451 * Many more types are documented in the standard library, and new guides
10453 * Many `rustdoc` improvements:
10454 * code blocks are syntax highlighted.
10455 * render standalone markdown files.
10456 * the --test flag tests all code blocks by default.
10457 * exported macros are displayed.
10458 * re-exported types have their documentation inlined at the location of the
10460 * search works across crates that have been rendered to the same output
10464 Version 0.9 (2014-01-09)
10465 ==========================
10467 * ~1800 changes, numerous bugfixes
10470 * The `float` type has been removed. Use `f32` or `f64` instead.
10471 * A new facility for enabling experimental features (feature gating) has
10472 been added, using the crate-level `#[feature(foo)]` attribute.
10473 * Managed boxes (@) are now behind a feature gate
10474 (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
10475 standard library's `Gc` or `Rc` types instead.
10476 * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
10477 * Jumping back to the top of a loop is now done with `continue` instead of
10479 * Strings can no longer be mutated through index assignment.
10480 * Raw strings can be created via the basic `r"foo"` syntax or with matched
10481 hash delimiters, as in `r###"foo"###`.
10482 * `~fn` is now written `proc (args) -> retval { ... }` and may only be
10484 * The `&fn` type is now written `|args| -> ret` to match the literal form.
10485 * `@fn`s have been removed.
10486 * `do` only works with procs in order to make it obvious what the cost
10488 * Single-element tuple-like structs can no longer be dereferenced to
10489 obtain the inner value. A more comprehensive solution for overloading
10490 the dereference operator will be provided in the future.
10491 * The `#[link(...)]` attribute has been replaced with
10492 `#[crate_id = "name#vers"]`.
10493 * Empty `impl`s must be terminated with empty braces and may not be
10494 terminated with a semicolon.
10495 * Keywords are no longer allowed as lifetime names; the `self` lifetime
10496 no longer has any special meaning.
10497 * The old `fmt!` string formatting macro has been removed.
10498 * `printf!` and `printfln!` (old-style formatting) removed in favor of
10499 `print!` and `println!`.
10500 * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
10501 * The `extern mod foo (name = "bar")` syntax has been removed. Use
10502 `extern mod foo = "bar"` instead.
10503 * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
10504 * Macros can have attributes.
10505 * Macros can expand to items with attributes.
10506 * Macros can expand to multiple items.
10507 * The `asm!` macro is feature-gated (`#[feature(asm)]`).
10508 * Comments may be nested.
10509 * Values automatically coerce to trait objects they implement, without
10511 * Enum discriminants are no longer an entire word but as small as needed to
10512 contain all the variants. The `repr` attribute can be used to override
10513 the discriminant size, as in `#[repr(int)]` for integer-sized, and
10514 `#[repr(C)]` to match C enums.
10515 * Non-string literals are not allowed in attributes (they never worked).
10516 * The FFI now supports variadic functions.
10517 * Octal numeric literals, as in `0o7777`.
10518 * The `concat!` syntax extension performs compile-time string concatenation.
10519 * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
10520 removed as Rust no longer uses segmented stacks.
10521 * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
10522 * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
10523 not `*`; ignoring remaining fields of a struct is also done with `..`,
10524 not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
10525 * `rustc` supports the "win64" calling convention via `extern "win64"`.
10526 * `rustc` supports the "system" calling convention, which defaults to the
10527 preferred convention for the target platform, "stdcall" on 32-bit Windows,
10529 * The `type_overflow` lint (default: warn) checks literals for overflow.
10530 * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
10531 * The `attribute_usage` lint (default: warn) warns about unknown
10533 * The `unknown_features` lint (default: warn) warns about unknown
10535 * The `dead_code` lint (default: warn) checks for dead code.
10536 * Rust libraries can be linked statically to one another
10537 * `#[link_args]` is behind the `link_args` feature gate.
10538 * Native libraries are now linked with `#[link(name = "foo")]`
10539 * Native libraries can be statically linked to a rust crate
10540 (`#[link(name = "foo", kind = "static")]`).
10541 * Native OS X frameworks are now officially supported
10542 (`#[link(name = "foo", kind = "framework")]`).
10543 * The `#[thread_local]` attribute creates thread-local (not task-local)
10544 variables. Currently behind the `thread_local` feature gate.
10545 * The `return` keyword may be used in closures.
10546 * Types that can be copied via a memcpy implement the `Pod` kind.
10547 * The `cfg` attribute can now be used on struct fields and enum variants.
10550 * std: The `option` and `result` API's have been overhauled to make them
10551 simpler, more consistent, and more composable.
10552 * std: The entire `std::io` module has been replaced with one that is
10553 more comprehensive and that properly interfaces with the underlying
10554 scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
10556 * std: `io::util` contains a number of useful implementations of
10557 `Reader` and `Writer`, including `NullReader`, `NullWriter`,
10558 `ZeroReader`, `TeeReader`.
10559 * std: The reference counted pointer type `extra::rc` moved into std.
10560 * std: The `Gc` type in the `gc` module will replace `@` (it is currently
10561 just a wrapper around it).
10562 * std: The `Either` type has been removed.
10563 * std: `fmt::Default` can be implemented for any type to provide default
10564 formatting to the `format!` macro, as in `format!("{}", myfoo)`.
10565 * std: The `rand` API continues to be tweaked.
10566 * std: The `rust_begin_unwind` function, useful for inserting breakpoints
10567 on failure in gdb, is now named `rust_fail`.
10568 * std: The `each_key` and `each_value` methods on `HashMap` have been
10569 replaced by the `keys` and `values` iterators.
10570 * std: Functions dealing with type size and alignment have moved from the
10571 `sys` module to the `mem` module.
10572 * std: The `path` module was written and API changed.
10573 * std: `str::from_utf8` has been changed to cast instead of allocate.
10574 * std: `starts_with` and `ends_with` methods added to vectors via the
10575 `ImmutableEqVector` trait, which is in the prelude.
10576 * std: Vectors can be indexed with the `get_opt` method, which returns `None`
10577 if the index is out of bounds.
10578 * std: Task failure no longer propagates between tasks, as the model was
10579 complex, expensive, and incompatible with thread-based tasks.
10580 * std: The `Any` type can be used for dynamic typing.
10581 * std: `~Any` can be passed to the `fail!` macro and retrieved via
10583 * std: Methods that produce iterators generally do not have an `_iter`
10585 * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
10586 roots (mutable fields, etc.). Use instead of e.g. `@mut`.
10587 * std: `util::ignore` renamed to `prelude::drop`.
10588 * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
10590 * std: `vec::raw` has seen a lot of cleanup and API changes.
10591 * std: The standard library no longer includes any C++ code, and very
10592 minimal C, eliminating the dependency on libstdc++.
10593 * std: Runtime scheduling and I/O functionality has been factored out into
10594 extensible interfaces and is now implemented by two different crates:
10595 libnative, for native threading and I/O; and libgreen, for green threading
10596 and I/O. This paves the way for using the standard library in more limited
10597 embedded environments.
10598 * std: The `comm` module has been rewritten to be much faster, have a
10599 simpler, more consistent API, and to work for both native and green
10601 * std: All libuv dependencies have been moved into the rustuv crate.
10602 * native: New implementations of runtime scheduling on top of OS threads.
10603 * native: New native implementations of TCP, UDP, file I/O, process spawning,
10605 * green: The green thread scheduler and message passing types are almost
10606 entirely lock-free.
10607 * extra: The `flatpipes` module had bitrotted and was removed.
10608 * extra: All crypto functions have been removed and Rust now has a policy of
10609 not reimplementing crypto in the standard library. In the future crypto
10610 will be provided by external crates with bindings to established libraries.
10611 * extra: `c_vec` has been modernized.
10612 * extra: The `sort` module has been removed. Use the `sort` method on
10616 * The `rust` and `rusti` commands have been removed, due to lack of
10618 * `rustdoc` was completely rewritten.
10619 * `rustdoc` can test code examples in documentation.
10620 * `rustpkg` can test packages with the argument, 'test'.
10621 * `rustpkg` supports arbitrary dependencies, including C libraries.
10622 * `rustc`'s support for generating debug info is improved again.
10623 * `rustc` has better error reporting for unbalanced delimiters.
10624 * `rustc`'s JIT support was removed due to bitrot.
10625 * Executables and static libraries can be built with LTO (-Z lto)
10626 * `rustc` adds a `--dep-info` flag for communicating dependencies to
10630 Version 0.8 (2013-09-26)
10631 ============================
10633 * ~2200 changes, numerous bugfixes
10636 * The `for` loop syntax has changed to work with the `Iterator` trait.
10637 * At long last, unwinding works on Windows.
10638 * Default methods are ready for use.
10639 * Many trait inheritance bugs fixed.
10640 * Owned and borrowed trait objects work more reliably.
10641 * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
10642 * rustc can omit emission of code for the `debug!` macro if it is passed
10644 * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
10645 for foo.rs, then foo/mod.rs, and will generate an error when both are
10647 * Strings no longer contain trailing nulls. The new `std::c_str` module
10648 provides new mechanisms for converting to C strings.
10649 * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
10650 * The FFI has been overhauled such that foreign functions are called directly,
10651 instead of through a stack-switching wrapper.
10652 * Calling a foreign function must be done through a Rust function with the
10653 `#[fixed_stack_segment]` attribute.
10654 * The `externfn!` macro can be used to declare both a foreign function and
10655 a `#[fixed_stack_segment]` wrapper at once.
10656 * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
10657 * `unsafe` is no longer allowed on extern fns - they are all unsafe.
10658 * `priv` is disallowed everywhere except for struct fields and enum variants.
10659 * `&T` (besides `&'static T`) is no longer allowed in `@T`.
10660 * `ref` bindings in irrefutable patterns work correctly now.
10661 * `char` is now prevented from containing invalid code points.
10662 * Casting to `bool` is no longer allowed.
10663 * `\0` is now accepted as an escape in chars and strings.
10664 * `yield` is a reserved keyword.
10665 * `typeof` is a reserved keyword.
10666 * Crates may be imported by URL with `extern mod foo = "url";`.
10667 * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
10668 * Static vectors can be initialized with repeating elements,
10669 e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
10670 * Static structs can be initialized with functional record update,
10671 e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
10672 * `cfg!` can be used to conditionally execute code based on the crate
10673 configuration, similarly to `#[cfg(...)]`.
10674 * The `unnecessary_qualification` lint detects unneeded module
10675 prefixes (default: allow).
10676 * Arithmetic operations have been implemented on the SIMD types in
10677 `std::unstable::simd`.
10678 * Exchange allocation headers were removed, reducing memory usage.
10679 * `format!` implements a completely new, extensible, and higher-performance
10680 string formatting system. It will replace `fmt!`.
10681 * `print!` and `println!` write formatted strings (using the `format!`
10682 extension) to stdout.
10683 * `write!` and `writeln!` write formatted strings (using the `format!`
10684 extension) to the new Writers in `std::rt::io`.
10685 * The library section in which a function or static is placed may
10686 be specified with `#[link_section = "..."]`.
10687 * The `proto!` syntax extension for defining bounded message protocols
10689 * `macro_rules!` is hygienic for `let` declarations.
10690 * The `#[export_name]` attribute specifies the name of a symbol.
10691 * `unreachable!` can be used to indicate unreachable code, and fails
10695 * std: Transitioned to the new runtime, written in Rust.
10696 * std: Added an experimental I/O library, `rt::io`, based on the new
10698 * std: A new generic `range` function was added to the prelude, replacing
10699 `uint::range` and friends.
10700 * std: `range_rev` no longer exists. Since range is an iterator it can be
10701 reversed with `range(lo, hi).invert()`.
10702 * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
10703 renamed to `unwrap_or`.
10704 * std: The `iterator` module was renamed to `iter`.
10705 * std: Integral types now support the `checked_add`, `checked_sub`, and
10706 `checked_mul` operations for detecting overflow.
10707 * std: Many methods in `str`, `vec`, `option, `result` were renamed for
10709 * std: Methods are standardizing on conventions for casting methods:
10710 `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
10712 * std: The `CString` type in `c_str` provides new ways to convert to and
10714 * std: `DoubleEndedIterator` can yield elements in two directions.
10715 * std: The `mut_split` method on vectors partitions an `&mut [T]` into
10717 * std: `str::from_bytes` renamed to `str::from_utf8`.
10718 * std: `pop_opt` and `shift_opt` methods added to vectors.
10719 * std: The task-local data interface no longer uses @, and keys are
10720 no longer function pointers.
10721 * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
10722 * std: Added `SharedPort` to `comm`.
10723 * std: `Eq` has a default method for `ne`; only `eq` is required
10724 in implementations.
10725 * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
10726 is required in implementations.
10727 * std: `is_utf8` performance is improved, impacting many string functions.
10728 * std: `os::MemoryMap` provides cross-platform mmap.
10729 * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
10730 are not 'in-bounds' are considered undefined.
10731 * std: Many freestanding functions in `vec` removed in favor of methods.
10732 * std: Many freestanding functions on scalar types removed in favor of
10734 * std: Many options to task builders were removed since they don't make
10735 sense in the new scheduler design.
10736 * std: More containers implement `FromIterator` so can be created by the
10738 * std: More complete atomic types in `unstable::atomics`.
10739 * std: `comm::PortSet` removed.
10740 * std: Mutating methods in the `Set` and `Map` traits have been moved into
10741 the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
10742 `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
10743 default implementations.
10744 * std: Various `from_str` functions were removed in favor of a generic
10745 `from_str` which is available in the prelude.
10746 * std: `util::unreachable` removed in favor of the `unreachable!` macro.
10747 * extra: `dlist`, the doubly-linked list was modernized.
10748 * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
10749 * extra: Added `glob` module, replacing `std::os::glob`.
10750 * extra: `rope` was removed.
10751 * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
10752 * extra: `net`, and `timer` were removed. The experimental replacements
10753 are `std::rt::io::net` and `std::rt::io::timer`.
10754 * extra: Iterators implemented for `SmallIntMap`.
10755 * extra: Iterators implemented for `Bitv` and `BitvSet`.
10756 * extra: `SmallIntSet` removed. Use `BitvSet`.
10757 * extra: Performance of JSON parsing greatly improved.
10758 * extra: `semver` updated to SemVer 2.0.0.
10759 * extra: `term` handles more terminals correctly.
10760 * extra: `dbg` module removed.
10761 * extra: `par` module removed.
10762 * extra: `future` was cleaned up, with some method renames.
10763 * extra: Most free functions in `getopts` were converted to methods.
10766 * rustc's debug info generation (`-Z debug-info`) is greatly improved.
10767 * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
10768 similarly to gcc's `--march` flag.
10769 * rustc's performance compiling small crates is much better.
10770 * rustpkg has received many improvements.
10771 * rustpkg supports git tags as package IDs.
10772 * rustpkg builds into target-specific directories so it can be used for
10774 * The number of concurrent test tasks is controlled by the environment
10775 variable RUST_TEST_TASKS.
10776 * The test harness can now report metrics for benchmarks.
10777 * All tools have man pages.
10778 * Programs compiled with `--test` now support the `-h` and `--help` flags.
10779 * The runtime uses jemalloc for allocations.
10780 * Segmented stacks are temporarily disabled as part of the transition to
10781 the new runtime. Stack overflows are possible!
10782 * A new documentation backend, rustdoc_ng, is available for use. It is
10783 still invoked through the normal `rustdoc` command.
10786 Version 0.7 (2013-07-03)
10787 =======================
10789 * ~2000 changes, numerous bugfixes
10792 * `impl`s no longer accept a visibility qualifier. Put them on methods
10794 * The borrow checker has been rewritten with flow-sensitivity, fixing
10795 many bugs and inconveniences.
10796 * The `self` parameter no longer implicitly means `&'self self`,
10797 and can be explicitly marked with a lifetime.
10798 * Overloadable compound operators (`+=`, etc.) have been temporarily
10799 removed due to bugs.
10800 * The `for` loop protocol now requires `for`-iterators to return `bool`
10801 so they compose better.
10802 * The `Durable` trait is replaced with the `'static` bounds.
10803 * Trait default methods work more often.
10804 * Structs with the `#[packed]` attribute have byte alignment and
10805 no padding between fields.
10806 * Type parameters bound by `Copy` must now be copied explicitly with
10807 the `copy` keyword.
10808 * It is now illegal to move out of a dereferenced unsafe pointer.
10809 * `Option<~T>` is now represented as a nullable pointer.
10810 * `@mut` does dynamic borrow checks correctly.
10811 * The `main` function is only detected at the topmost level of the crate.
10812 The `#[main]` attribute is still valid anywhere.
10813 * Struct fields may no longer be mutable. Use inherited mutability.
10814 * The `#[no_send]` attribute makes a type that would otherwise be
10816 * The `#[no_freeze]` attribute makes a type that would otherwise be
10818 * Unbounded recursion will abort the process after reaching the limit
10819 specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
10820 * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
10821 are never implicitly copyable.
10822 * `#[static_assert]` makes compile-time assertions about static bools.
10823 * At long last, 'argument modes' no longer exist.
10824 * The rarely used `use mod` statement no longer exists.
10826 * Syntax extensions
10827 * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
10829 * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
10830 `Rand`, `Zero` and `ToStr` can all be automatically derived with
10831 `#[deriving(...)]`.
10832 * The `bytes!` macro returns a vector of bytes for string, u8, char,
10833 and unsuffixed integer literals.
10836 * The `core` crate was renamed to `std`.
10837 * The `std` crate was renamed to `extra`.
10838 * More and improved documentation.
10839 * std: `iterator` module for external iterator objects.
10840 * Many old-style (internal, higher-order function) iterators replaced by
10841 implementations of `Iterator`.
10842 * std: Many old internal vector and string iterators,
10843 incl. `any`, `all`. removed.
10844 * std: The `finalize` method of `Drop` renamed to `drop`.
10845 * std: The `drop` method now takes `&mut self` instead of `&self`.
10846 * std: The prelude no longer re-exports any modules, only types and traits.
10847 * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
10848 `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
10849 * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
10850 `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
10851 * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
10852 `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
10853 * std: Many types implement `Clone`.
10854 * std: `path` type renamed to `Path`.
10855 * std: `mut` module and `Mut` type removed.
10856 * std: Many standalone functions removed in favor of methods and iterators
10857 in `vec`, `str`. In the future methods will also work as functions.
10858 * std: `reinterpret_cast` removed. Use `transmute`.
10859 * std: ascii string handling in `std::ascii`.
10860 * std: `Rand` is implemented for ~/@.
10861 * std: `run` module for spawning processes overhauled.
10862 * std: Various atomic types added to `unstable::atomic`.
10863 * std: Various types implement `Zero`.
10864 * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
10865 * std: Borrowed pointer functions moved from `ptr` to `borrow`.
10866 * std: Added `os::mkdir_recursive`.
10867 * std: Added `os::glob` function performs filesystems globs.
10868 * std: `FuzzyEq` renamed to `ApproxEq`.
10869 * std: `Map` now defines `pop` and `swap` methods.
10870 * std: `Cell` constructors converted to static methods.
10871 * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
10872 * extra: `flate` module moved from `std` to `extra`.
10873 * extra: `fileinput` module for iterating over a series of files.
10874 * extra: `Complex` number type and `complex` module.
10875 * extra: `Rational` number type and `rational` module.
10876 * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
10877 * extra: `term` uses terminfo now, is more correct.
10878 * extra: `arc` functions converted to methods.
10879 * extra: Implementation of fixed output size variations of SHA-2.
10882 * `unused_variables` lint mode for unused variables (default: warn).
10883 * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
10885 * `unused_mut` lint mode for identifying unused `mut` qualifiers
10887 * `dead_assignment` lint mode for unread variables (default: warn).
10888 * `unnecessary_allocation` lint mode detects some heap allocations that are
10889 immediately borrowed so could be written without allocating (default: warn).
10890 * `missing_doc` lint mode (default: allow).
10891 * `unreachable_code` lint mode (default: warn).
10892 * The `rusti` command has been rewritten and a number of bugs addressed.
10893 * rustc outputs in color on more terminals.
10894 * rustc accepts a `--link-args` flag to pass arguments to the linker.
10895 * rustc accepts a `-Z print-link-args` flag for debugging linkage.
10896 * Compiling with `-g` will make the binary record information about
10897 dynamic borrowcheck failures for debugging.
10898 * rustdoc has a nicer stylesheet.
10899 * Various improvements to rustdoc.
10900 * Improvements to rustpkg (see the detailed release notes).
10903 Version 0.6 (2013-04-03)
10904 ========================
10906 * ~2100 changes, numerous bugfixes
10909 * The self type parameter in traits is now spelled `Self`
10910 * The `self` parameter in trait and impl methods must now be explicitly
10911 named (for example: `fn f(&self) { }`). Implicit self is deprecated.
10912 * Static methods no longer require the `static` keyword and instead
10913 are distinguished by the lack of a `self` parameter
10914 * Replaced the `Durable` trait with the `'static` lifetime
10915 * The old closure type syntax with the trailing sigil has been
10916 removed in favor of the more consistent leading sigil
10917 * `super` is a keyword, and may be prefixed to paths
10918 * Trait bounds are separated with `+` instead of whitespace
10919 * Traits are implemented with `impl Trait for Type`
10920 instead of `impl Type: Trait`
10921 * Lifetime syntax is now `&'l foo` instead of `&l/foo`
10922 * The `export` keyword has finally been removed
10923 * The `move` keyword has been removed (see "Semantic changes")
10924 * The interior mutability qualifier on vectors, `[mut T]`, has been
10925 removed. Use `&mut [T]`, etc.
10926 * `mut` is no longer valid in `~mut T`. Use inherited mutability
10927 * `fail` is no longer a keyword. Use `fail!()`
10928 * `assert` is no longer a keyword. Use `assert!()`
10929 * `log` is no longer a keyword. use `debug!`, etc.
10930 * 1-tuples may be represented as `(T,)`
10931 * Struct fields may no longer be `mut`. Use inherited mutability,
10932 `@mut T`, `core::mut` or `core::cell`
10933 * `extern mod { ... }` is no longer valid syntax for foreign
10934 function modules. Use extern blocks: `extern { ... }`
10935 * Newtype enums removed. Use tuple-structs.
10936 * Trait implementations no longer support visibility modifiers
10937 * Pattern matching over vectors improved and expanded
10938 * `const` renamed to `static` to correspond to lifetime name,
10939 and make room for future `static mut` unsafe mutable globals.
10940 * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
10941 * `Clone` implementations can be automatically generated with
10942 `#[deriving(Clone)]`
10943 * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
10944 instead of `foo as Bar`.
10945 * Fixed length vector types are now written as `[int, .. 3]`
10946 instead of `[int * 3]`.
10947 * Fixed length vector types can express the length as a constant
10948 expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
10951 * Types with owned pointers or custom destructors move by default,
10952 eliminating the `move` keyword
10953 * All foreign functions are considered unsafe
10954 * &mut is now unaliasable
10955 * Writes to borrowed @mut pointers are prevented dynamically
10957 * The name of the main function can be customized using #[main]
10958 * The default type of an inferred closure is &fn instead of @fn
10959 * `use` statements may no longer be "chained" - they cannot import
10960 identifiers imported by previous `use` statements
10961 * `use` statements are crate relative, importing from the "top"
10962 of the crate by default. Paths may be prefixed with `super::`
10963 or `self::` to change the search behavior.
10964 * Method visibility is inherited from the implementation declaration
10965 * Structural records have been removed
10966 * Many more types can be used in static items, including enums
10967 'static-lifetime pointers and vectors
10968 * Pattern matching over vectors improved and expanded
10969 * Typechecking of closure types has been overhauled to
10970 improve inference and eliminate unsoundness
10971 * Macros leave scope at the end of modules, unless that module is
10972 tagged with #[macro_escape]
10975 * Added big integers to `std::bigint`
10976 * Removed `core::oldcomm` module
10977 * Added pipe-based `core::comm` module
10978 * Numeric traits have been reorganized under `core::num`
10979 * `vec::slice` finally returns a slice
10980 * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
10981 * Containers reorganized around traits in `core::container`
10982 * `core::dvec` removed, `~[T]` is a drop-in replacement
10983 * `core::send_map` renamed to `core::hashmap`
10984 * `std::map` removed; replaced with `core::hashmap`
10985 * `std::treemap` reimplemented as an owned balanced tree
10986 * `std::deque` and `std::smallintmap` reimplemented as owned containers
10987 * `core::trie` added as a fast ordered map for integer keys
10988 * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
10989 * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
10990 overload the comparison operators, whereas `TotalOrd` is used
10991 by certain container types
10994 * Replaced the 'cargo' package manager with 'rustpkg'
10995 * Added all-purpose 'rust' tool
10996 * `rustc --test` now supports benchmarks with the `#[bench]` attribute
10997 * rustc now *attempts* to offer spelling suggestions
10998 * Improved support for ARM and Android
10999 * Preliminary MIPS backend
11000 * Improved foreign function ABI implementation for x86, x86_64
11001 * Various memory usage improvements
11002 * Rust code may be embedded in foreign code under limited circumstances
11003 * Inline assembler supported by new asm!() syntax extension.
11006 Version 0.5 (2012-12-21)
11007 ===========================
11009 * ~900 changes, numerous bugfixes
11012 * Removed `<-` move operator
11013 * Completed the transition from the `#fmt` extension syntax to `fmt!`
11014 * Removed old fixed length vector syntax - `[T]/N`
11015 * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
11016 * Macros may now expand to items and statements
11017 * `a.b()` is always parsed as a method call, never as a field projection
11018 * `Eq` and `IterBytes` implementations can be automatically generated
11019 with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
11020 * Removed the special crate language for `.rc` files
11021 * Function arguments may consist of any irrefutable pattern
11024 * `&` and `~` pointers may point to objects
11025 * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
11026 * Enum variants may be structs
11027 * Destructors can be added to all nominal types with the Drop trait
11028 * Structs and nullary enum variants may be constants
11029 * Values that cannot be implicitly copied are now automatically moved
11030 without writing `move` explicitly
11031 * `&T` may now be coerced to `*T`
11032 * Coercions happen in `let` statements as well as function calls
11033 * `use` statements now take crate-relative paths
11034 * The module and type namespaces have been merged so that static
11035 method names can be resolved under the trait in which they are
11038 * Improved support for language features
11039 * Trait inheritance works in many scenarios
11040 * More support for explicit self arguments in methods - `self`, `&self`
11041 `@self`, and `~self` all generally work as expected
11042 * Static methods work in more situations
11043 * Experimental: Traits may declare default methods for the implementations
11047 * New condition handling system in `core::condition`
11048 * Timsort added to `std::sort`
11049 * New priority queue, `std::priority_queue`
11050 * Pipes for serializable types, `std::flatpipes'
11051 * Serialization overhauled to be trait-based
11052 * Expanded `getopts` definitions
11053 * Moved futures to `std`
11054 * More functions are pure now
11055 * `core::comm` renamed to `oldcomm`. Still deprecated
11056 * `rustdoc` and `cargo` are libraries now
11059 * Added a preliminary REPL, `rusti`
11060 * License changed from MIT to dual MIT/APL2
11063 Version 0.4 (2012-10-15)
11064 ==========================
11066 * ~2000 changes, numerous bugfixes
11069 * All keywords are now strict and may not be used as identifiers anywhere
11070 * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
11071 'of', 'with', 'to', 'class'.
11072 * Classes are replaced with simpler structs
11073 * Explicit method self types
11074 * `ret` became `return` and `alt` became `match`
11075 * `import` is now `use`; `use is now `extern mod`
11076 * `extern mod { ... }` is now `extern { ... }`
11077 * `use mod` is the recommended way to import modules
11078 * `pub` and `priv` replace deprecated export lists
11079 * The syntax of `match` pattern arms now uses fat arrow (=>)
11080 * `main` no longer accepts an args vector; use `os::args` instead
11083 * Trait implementations are now coherent, ala Haskell typeclasses
11084 * Trait methods may be static
11085 * Argument modes are deprecated
11086 * Borrowed pointers are much more mature and recommended for use
11087 * Strings and vectors in the static region are stored in constant memory
11088 * Typestate was removed
11089 * Resolution rewritten to be more reliable
11090 * Support for 'dual-mode' data structures (freezing and thawing)
11093 * Most binary operators can now be overloaded via the traits in
11095 * `std::net::url` for representing URLs
11096 * Sendable hash maps in `core::send_map`
11097 * `core::task' gained a (currently unsafe) task-local storage API
11100 * An efficient new intertask communication primitive called the pipe,
11101 along with a number of higher-level channel types, in `core::pipes`
11102 * `std::arc`, an atomically reference counted, immutable, shared memory
11104 * `std::sync`, various exotic synchronization tools based on arcs and pipes
11105 * Futures are now based on pipes and sendable
11106 * More robust linked task failure
11107 * Improved task builder API
11110 * Improved error reporting
11111 * Preliminary JIT support
11112 * Preliminary work on precise GC
11113 * Extensive architectural improvements to rustc
11114 * Begun a transition away from buggy C++-based reflection (shape) code to
11115 Rust-based (visitor) code
11116 * All hash functions and tables converted to secure, randomized SipHash
11119 Version 0.3 (2012-07-12)
11120 ========================
11122 * ~1900 changes, numerous bugfixes
11124 * New coding conveniences
11125 * Integer-literal suffix inference
11126 * Per-item control over warnings, errors
11127 * #[cfg(windows)] and #[cfg(unix)] attributes
11128 * Documentation comments
11129 * More compact closure syntax
11130 * 'do' expressions for treating higher-order functions as
11132 * *-patterns (wildcard extended to all constructor fields)
11135 * Name resolution pass and exhaustiveness checker rewritten
11136 * Region pointers and borrow checking supersede alias
11138 * Init-ness checking is now provided by a region-based liveness
11139 pass instead of the typestate pass; same for last-use analysis
11140 * Extensive work on region pointers
11142 * Experimental new language features
11143 * Slices and fixed-size, interior-allocated vectors
11144 * #!-comments for lang versioning, shell execution
11145 * Destructors and iface implementation for classes;
11146 type-parameterized classes and class methods
11147 * 'const' type kind for types that can be used to implement
11148 shared-memory concurrency patterns
11152 * Removal of various obsolete features
11153 * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
11154 'crust', 'native' (now 'extern'), 'cont' (now 'again')
11156 * Constructs: do-while loops ('do' repurposed), fn binding,
11157 resources (replaced by destructors)
11159 * Compiler reorganization
11160 * Syntax-layer of compiler split into separate crate
11161 * Clang (from LLVM project) integrated into build
11162 * Typechecker split into sub-modules
11165 * New time functions
11166 * Extension methods for many built-in types
11167 * Arc: atomic-refcount read-only / exclusive-use shared cells
11168 * Par: parallel map and search routines
11169 * Extensive work on libuv interface
11170 * Much vector code moved to libraries
11171 * Syntax extensions: #line, #col, #file, #mod, #stringify,
11172 #include, #include_str, #include_bin
11174 * Tool improvements
11175 * Cargo automatically resolves dependencies
11178 Version 0.2 (2012-03-29)
11179 =========================
11181 * >1500 changes, numerous bugfixes
11183 * New docs and doc tooling
11185 * New port: FreeBSD x86_64
11187 * Compilation model enhancements
11188 * Generics now specialized, multiply instantiated
11189 * Functions now inlined across separate crates
11191 * Scheduling, stack and threading fixes
11192 * Noticeably improved message-passing performance
11193 * Explicit schedulers
11197 * Experimental new language features
11198 * Operator overloading
11202 * Various language extensions
11203 * C-callback function types: 'crust fn ...'
11204 * Infinite-loop construct: 'loop { ... }'
11205 * Shorten 'mutable' to 'mut'
11206 * Required mutable-local qualifier: 'let mut ...'
11207 * Basic glob-exporting: 'export foo::*;'
11208 * Alt now exhaustive, 'alt check' for runtime-checked
11209 * Block-function form of 'for' loop, with 'break' and 'ret'.
11212 * AST quasi-quote syntax extension
11213 * Revived libuv interface
11214 * New modules: core::{future, iter}, std::arena
11215 * Merged per-platform std::{os*, fs*} to core::{libc, os}
11216 * Extensive cleanup, regularization in libstd, libcore
11219 Version 0.1 (2012-01-20)
11220 ===============================
11222 * Most language features work, including:
11223 * Unique pointers, unique closures, move semantics
11224 * Interface-constrained generics
11225 * Static interface dispatch
11227 * Multithread task scheduling
11228 * Typestate predicates
11229 * Failure unwinding, destructors
11230 * Pattern matching and destructuring assignment
11231 * Lightweight block-lambda syntax
11232 * Preliminary macro-by-example
11234 * Compiler works with the following configurations:
11235 * Linux: x86 and x86_64 hosts and targets
11236 * macOS: x86 and x86_64 hosts and targets
11237 * Windows: x86 hosts and targets
11239 * Cross compilation / multi-target configuration supported.
11241 * Preliminary API-documentation and package-management tools included.
11245 * Documentation is incomplete.
11247 * Performance is below intended target.
11249 * Standard library APIs are subject to extensive change, reorganization.
11251 * Language-level versioning is not yet operational - future code will
11252 break unexpectedly.